2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for scss 1.0.0.
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.
730 PACKAGE_TARNAME='scss'
731 PACKAGE_VERSION='1.0.0'
732 PACKAGE_STRING='scss 1.0.0'
733 PACKAGE_BUGREPORT='konn@users.sourceforge.jp'
735 ac_unique_file="src/main.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
888 ac_precious_vars='build_alias
905 # Initialize some variables set by options.
907 ac_init_version=false
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
917 program_transform_name=s,x,x,
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 includedir='${prefix}/include'
940 oldincludedir='/usr/include'
941 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
942 infodir='${datarootdir}/info'
947 libdir='${exec_prefix}/lib'
948 localedir='${datarootdir}/locale'
949 mandir='${datarootdir}/man'
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
957 eval $ac_prev=\$ac_option
963 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967 # Accept the important Cygnus configure options, so we can diagnose typos.
969 case $ac_dashdash$ac_option in
973 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978 -build | --build | --buil | --bui | --bu)
979 ac_prev=build_alias ;;
980 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981 build_alias=$ac_optarg ;;
983 -cache-file | --cache-file | --cache-fil | --cache-fi \
984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985 ac_prev=cache_file ;;
986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988 cache_file=$ac_optarg ;;
991 cache_file=config.cache ;;
993 -datadir | --datadir | --datadi | --datad)
995 -datadir=* | --datadir=* | --datadi=* | --datad=*)
996 datadir=$ac_optarg ;;
998 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999 | --dataroo | --dataro | --datar)
1000 ac_prev=datarootdir ;;
1001 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003 datarootdir=$ac_optarg ;;
1005 -disable-* | --disable-*)
1006 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1010 { (exit 1); exit 1; }; }
1011 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1012 eval enable_$ac_feature=no ;;
1014 -docdir | --docdir | --docdi | --doc | --do)
1016 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017 docdir=$ac_optarg ;;
1019 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022 dvidir=$ac_optarg ;;
1024 -enable-* | --enable-*)
1025 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029 { (exit 1); exit 1; }; }
1030 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1031 eval enable_$ac_feature=\$ac_optarg ;;
1033 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035 | --exec | --exe | --ex)
1036 ac_prev=exec_prefix ;;
1037 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039 | --exec=* | --exe=* | --ex=*)
1040 exec_prefix=$ac_optarg ;;
1042 -gas | --gas | --ga | --g)
1043 # Obsolete; use --with-gas.
1046 -help | --help | --hel | --he | -h)
1047 ac_init_help=long ;;
1048 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049 ac_init_help=recursive ;;
1050 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051 ac_init_help=short ;;
1053 -host | --host | --hos | --ho)
1054 ac_prev=host_alias ;;
1055 -host=* | --host=* | --hos=* | --ho=*)
1056 host_alias=$ac_optarg ;;
1058 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 htmldir=$ac_optarg ;;
1064 -includedir | --includedir | --includedi | --included | --include \
1065 | --includ | --inclu | --incl | --inc)
1066 ac_prev=includedir ;;
1067 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068 | --includ=* | --inclu=* | --incl=* | --inc=*)
1069 includedir=$ac_optarg ;;
1071 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074 infodir=$ac_optarg ;;
1076 -libdir | --libdir | --libdi | --libd)
1078 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079 libdir=$ac_optarg ;;
1081 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082 | --libexe | --libex | --libe)
1083 ac_prev=libexecdir ;;
1084 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085 | --libexe=* | --libex=* | --libe=*)
1086 libexecdir=$ac_optarg ;;
1088 -localedir | --localedir | --localedi | --localed | --locale)
1089 ac_prev=localedir ;;
1090 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091 localedir=$ac_optarg ;;
1093 -localstatedir | --localstatedir | --localstatedi | --localstated \
1094 | --localstate | --localstat | --localsta | --localst | --locals)
1095 ac_prev=localstatedir ;;
1096 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098 localstatedir=$ac_optarg ;;
1100 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103 mandir=$ac_optarg ;;
1105 -nfp | --nfp | --nf)
1106 # Obsolete; use --without-fp.
1109 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110 | --no-cr | --no-c | -n)
1113 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119 | --oldin | --oldi | --old | --ol | --o)
1120 ac_prev=oldincludedir ;;
1121 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124 oldincludedir=$ac_optarg ;;
1126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129 prefix=$ac_optarg ;;
1131 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132 | --program-pre | --program-pr | --program-p)
1133 ac_prev=program_prefix ;;
1134 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136 program_prefix=$ac_optarg ;;
1138 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139 | --program-suf | --program-su | --program-s)
1140 ac_prev=program_suffix ;;
1141 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143 program_suffix=$ac_optarg ;;
1145 -program-transform-name | --program-transform-name \
1146 | --program-transform-nam | --program-transform-na \
1147 | --program-transform-n | --program-transform- \
1148 | --program-transform | --program-transfor \
1149 | --program-transfo | --program-transf \
1150 | --program-trans | --program-tran \
1151 | --progr-tra | --program-tr | --program-t)
1152 ac_prev=program_transform_name ;;
1153 -program-transform-name=* | --program-transform-name=* \
1154 | --program-transform-nam=* | --program-transform-na=* \
1155 | --program-transform-n=* | --program-transform-=* \
1156 | --program-transform=* | --program-transfor=* \
1157 | --program-transfo=* | --program-transf=* \
1158 | --program-trans=* | --program-tran=* \
1159 | --progr-tra=* | --program-tr=* | --program-t=*)
1160 program_transform_name=$ac_optarg ;;
1162 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165 pdfdir=$ac_optarg ;;
1167 -psdir | --psdir | --psdi | --psd | --ps)
1169 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173 | -silent | --silent | --silen | --sile | --sil)
1176 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 sbindir=$ac_optarg ;;
1182 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184 | --sharedst | --shareds | --shared | --share | --shar \
1186 ac_prev=sharedstatedir ;;
1187 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 sharedstatedir=$ac_optarg ;;
1193 -site | --site | --sit)
1195 -site=* | --site=* | --sit=*)
1198 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201 srcdir=$ac_optarg ;;
1203 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204 | --syscon | --sysco | --sysc | --sys | --sy)
1205 ac_prev=sysconfdir ;;
1206 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208 sysconfdir=$ac_optarg ;;
1210 -target | --target | --targe | --targ | --tar | --ta | --t)
1211 ac_prev=target_alias ;;
1212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213 target_alias=$ac_optarg ;;
1215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218 -version | --version | --versio | --versi | --vers | -V)
1219 ac_init_version=: ;;
1222 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 { echo "$as_me: error: invalid package name: $ac_package" >&2
1226 { (exit 1); exit 1; }; }
1227 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228 eval with_$ac_package=\$ac_optarg ;;
1230 -without-* | --without-*)
1231 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 { echo "$as_me: error: invalid package name: $ac_package" >&2
1235 { (exit 1); exit 1; }; }
1236 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1237 eval with_$ac_package=no ;;
1240 # Obsolete; use --with-x.
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1245 ac_prev=x_includes ;;
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248 x_includes=$ac_optarg ;;
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252 ac_prev=x_libraries ;;
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255 x_libraries=$ac_optarg ;;
1257 -*) { echo "$as_me: error: unrecognized option: $ac_option
1258 Try \`$0 --help' for more information." >&2
1259 { (exit 1); exit 1; }; }
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1266 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1267 { (exit 1); exit 1; }; }
1268 eval $ac_envvar=\$ac_optarg
1269 export $ac_envvar ;;
1272 # FIXME: should be removed in autoconf 3.0.
1273 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1282 if test -n "$ac_prev"; then
1283 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284 { echo "$as_me: error: missing argument to $ac_option" >&2
1285 { (exit 1); exit 1; }; }
1288 # Be sure to have absolute directory names.
1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
1294 eval ac_val=\$$ac_var
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1300 { (exit 1); exit 1; }; }
1303 # There might be people who depend on the old broken behavior: `$host'
1304 # used to hold the argument of --host etc.
1305 # FIXME: To remove some day.
1308 target=$target_alias
1310 # FIXME: To remove some day.
1311 if test "x$host_alias" != x; then
1312 if test "x$build_alias" = x; then
1313 cross_compiling=maybe
1314 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1315 If a cross compiler is detected then cross compile mode will be used." >&2
1316 elif test "x$build_alias" != "x$host_alias"; then
1322 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324 test "$silent" = yes && exec 6>/dev/null
1327 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328 ac_ls_di=`ls -di .` &&
1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330 { echo "$as_me: error: Working directory cannot be determined" >&2
1331 { (exit 1); exit 1; }; }
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 { echo "$as_me: error: pwd does not report name of working directory" >&2
1334 { (exit 1); exit 1; }; }
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339 ac_srcdir_defaulted=yes
1340 # Try the directory containing this script, then the parent directory.
1341 ac_confdir=`$as_dirname -- "$0" ||
1342 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343 X"$0" : 'X\(//\)[^/]' \| \
1344 X"$0" : 'X\(//\)$' \| \
1345 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1369 ac_srcdir_defaulted=no
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1374 { (exit 1); exit 1; }; }
1376 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1379 { (exit 1); exit 1; }; }
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391 for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399 # Report the --help message.
1401 if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1405 \`configure' configures scss 1.0.0 to adapt to many kinds of systems.
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE. See below for descriptions of some of the useful variables.
1412 Defaults for the options are specified in brackets.
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
1419 -q, --quiet, --silent do not print \`checking...' messages
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1425 Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1436 For better control, use the options below.
1438 Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --libdir=DIR object code libraries [EPREFIX/lib]
1446 --includedir=DIR C header files [PREFIX/include]
1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450 --infodir=DIR info documentation [DATAROOTDIR/info]
1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452 --mandir=DIR man documentation [DATAROOTDIR/man]
1453 --docdir=DIR documentation root [DATAROOTDIR/doc/scss]
1454 --htmldir=DIR html documentation [DOCDIR]
1455 --dvidir=DIR dvi documentation [DOCDIR]
1456 --pdfdir=DIR pdf documentation [DOCDIR]
1457 --psdir=DIR ps documentation [DOCDIR]
1463 --program-prefix=PREFIX prepend PREFIX to installed program names
1464 --program-suffix=SUFFIX append SUFFIX to installed program names
1465 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1468 --build=BUILD configure for building on BUILD [guessed]
1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470 --target=TARGET configure for building compilers for TARGET [HOST]
1474 if test -n "$ac_init_help"; then
1475 case $ac_init_help in
1476 short | recursive ) echo "Configuration of scss 1.0.0:";;
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --enable-shared[=PKGS] build shared libraries [default=yes]
1484 --enable-static[=PKGS] build static libraries [default=yes]
1485 --enable-fast-install[=PKGS]
1486 optimize for fast installation [default=yes]
1487 --disable-dependency-tracking speeds up one-time build
1488 --enable-dependency-tracking do not reject slow dependency extractors
1489 --disable-libtool-lock avoid locking (might break parallel builds)
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1495 --with-pic try to use only PIC/non-PIC objects [default=use
1497 --with-tags[=TAGS] include additional configurations [automatic]
1498 --with-apr-config=ARG Path of apr-config program file.
1499 --with-apu-config=ARG Path of apu-config program file.
1501 Some influential environment variables:
1502 CC C compiler command
1503 CFLAGS C compiler flags
1504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1505 nonstandard directory <lib dir>
1506 LIBS libraries to pass to the linker, e.g. -l<library>
1507 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1508 you have headers in a nonstandard directory <include dir>
1510 CXX C++ compiler command
1511 CXXFLAGS C++ compiler flags
1512 CXXCPP C++ preprocessor
1513 F77 Fortran 77 compiler command
1514 FFLAGS Fortran 77 compiler flags
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1519 Report bugs to <konn@users.sourceforge.jp>.
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" || continue
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1547 .) # We are building in place.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1571 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1580 scss configure 1.0.0
1581 generated by GNU Autoconf 2.61
1583 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1584 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1590 cat >config.log <<_ACEOF
1591 This file contains any messages produced by compilers while
1592 running configure, to aid debugging if configure makes a mistake.
1594 It was created by scss $as_me 1.0.0, which was
1595 generated by GNU Autoconf 2.61. Invocation command line was
1607 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1608 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1609 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1610 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1611 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1613 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1614 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1616 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1617 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1618 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1619 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1620 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1621 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1622 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 test -z "$as_dir" && as_dir=.
1631 echo "PATH: $as_dir"
1647 # Keep a trace of the command line.
1648 # Strip out --no-create and --no-recursion so they do not pile up.
1649 # Strip out --silent because we don't want to record it for future runs.
1650 # Also quote any args containing shell meta-characters.
1651 # Make two passes to allow for proper duplicate-argument suppression.
1655 ac_must_keep_next=false
1661 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1662 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1663 | -silent | --silent | --silen | --sile | --sil)
1666 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1669 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1671 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1672 if test $ac_must_keep_next = true; then
1673 ac_must_keep_next=false # Got value, back to normal.
1676 *=* | --config-cache | -C | -disable-* | --disable-* \
1677 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1678 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1679 | -with-* | --with-* | -without-* | --without-* | --x)
1680 case "$ac_configure_args0 " in
1681 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1684 -* ) ac_must_keep_next=true ;;
1687 ac_configure_args="$ac_configure_args '$ac_arg'"
1692 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1693 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1695 # When interrupted or exit'd, cleanup temporary files, and complete
1696 # config.log. We remove comments because anyway the quotes in there
1697 # would cause problems or look ugly.
1698 # WARNING: Use '\'' to represent an apostrophe within the trap.
1699 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1700 trap 'exit_status=$?
1701 # Save into config.log some information that might help in debugging.
1706 ## ---------------- ##
1707 ## Cache variables. ##
1708 ## ---------------- ##
1711 # The following way of writing the cache mishandles newlines in values,
1713 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1714 eval ac_val=\$$ac_var
1718 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1719 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1722 _ | IFS | as_nl) ;; #(
1723 *) $as_unset $ac_var ;;
1728 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1729 *${as_nl}ac_space=\ *)
1731 "s/'\''/'\''\\\\'\'''\''/g;
1732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1735 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1743 ## ----------------- ##
1744 ## Output variables. ##
1745 ## ----------------- ##
1748 for ac_var in $ac_subst_vars
1750 eval ac_val=\$$ac_var
1752 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754 echo "$ac_var='\''$ac_val'\''"
1758 if test -n "$ac_subst_files"; then
1760 ## ------------------- ##
1761 ## File substitutions. ##
1762 ## ------------------- ##
1765 for ac_var in $ac_subst_files
1767 eval ac_val=\$$ac_var
1769 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771 echo "$ac_var='\''$ac_val'\''"
1776 if test -s confdefs.h; then
1786 test "$ac_signal" != 0 &&
1787 echo "$as_me: caught signal $ac_signal"
1788 echo "$as_me: exit $exit_status"
1790 rm -f core *.core core.conftest.* &&
1791 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1794 for ac_signal in 1 2 13 15; do
1795 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1799 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1800 rm -f -r conftest* confdefs.h
1802 # Predefined preprocessor variables.
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_NAME "$PACKAGE_NAME"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_STRING "$PACKAGE_STRING"
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1829 # Let the site file select an alternate cache file if it wants to.
1830 # Prefer explicitly selected file to automatically selected ones.
1831 if test -n "$CONFIG_SITE"; then
1832 set x "$CONFIG_SITE"
1833 elif test "x$prefix" != xNONE; then
1834 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1836 set x "$ac_default_prefix/share/config.site" \
1837 "$ac_default_prefix/etc/config.site"
1842 if test -r "$ac_site_file"; then
1843 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1844 echo "$as_me: loading site script $ac_site_file" >&6;}
1845 sed 's/^/| /' "$ac_site_file" >&5
1850 if test -r "$cache_file"; then
1851 # Some versions of bash will fail to source /dev/null (special
1852 # files actually), so we avoid doing that.
1853 if test -f "$cache_file"; then
1854 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1855 echo "$as_me: loading cache $cache_file" >&6;}
1857 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1858 *) . "./$cache_file";;
1862 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1863 echo "$as_me: creating cache $cache_file" >&6;}
1867 # Check that the precious variables saved in the cache have kept the same
1869 ac_cache_corrupted=false
1870 for ac_var in $ac_precious_vars; do
1871 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1872 eval ac_new_set=\$ac_env_${ac_var}_set
1873 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1874 eval ac_new_val=\$ac_env_${ac_var}_value
1875 case $ac_old_set,$ac_new_set in
1877 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1878 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1879 ac_cache_corrupted=: ;;
1881 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1882 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1883 ac_cache_corrupted=: ;;
1886 if test "x$ac_old_val" != "x$ac_new_val"; then
1887 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1888 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1889 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1890 echo "$as_me: former value: $ac_old_val" >&2;}
1891 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1892 echo "$as_me: current value: $ac_new_val" >&2;}
1893 ac_cache_corrupted=:
1896 # Pass precious variables to config.status.
1897 if test "$ac_new_set" = set; then
1899 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1900 *) ac_arg=$ac_var=$ac_new_val ;;
1902 case " $ac_configure_args " in
1903 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1904 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1908 if $ac_cache_corrupted; then
1909 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1910 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1911 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1912 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1913 { (exit 1); exit 1; }; }
1941 ac_cpp='$CPP $CPPFLAGS'
1942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1949 if test -f "$ac_dir/install-sh"; then
1951 ac_install_sh="$ac_aux_dir/install-sh -c"
1953 elif test -f "$ac_dir/install.sh"; then
1955 ac_install_sh="$ac_aux_dir/install.sh -c"
1957 elif test -f "$ac_dir/shtool"; then
1959 ac_install_sh="$ac_aux_dir/shtool install -c"
1963 if test -z "$ac_aux_dir"; then
1964 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1965 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1966 { (exit 1); exit 1; }; }
1969 # These three variables are undocumented and unsupported,
1970 # and are intended to be withdrawn in a future Autoconf release.
1971 # They can cause serious problems if a builder's source tree is in a directory
1972 # whose full name contains unusual characters.
1973 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1974 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1975 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1978 # Make sure we can run config.sub.
1979 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1980 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1981 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1982 { (exit 1); exit 1; }; }
1984 { echo "$as_me:$LINENO: checking build system type" >&5
1985 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1986 if test "${ac_cv_build+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 ac_build_alias=$build_alias
1990 test "x$ac_build_alias" = x &&
1991 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1992 test "x$ac_build_alias" = x &&
1993 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1994 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1995 { (exit 1); exit 1; }; }
1996 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1997 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1998 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1999 { (exit 1); exit 1; }; }
2002 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2003 echo "${ECHO_T}$ac_cv_build" >&6; }
2004 case $ac_cv_build in
2006 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2007 echo "$as_me: error: invalid value of canonical build" >&2;}
2008 { (exit 1); exit 1; }; };;
2011 ac_save_IFS=$IFS; IFS='-'
2017 # Remember, the first character of IFS is used to create $*,
2018 # except with old shells:
2021 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2024 { echo "$as_me:$LINENO: checking host system type" >&5
2025 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2026 if test "${ac_cv_host+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 if test "x$host_alias" = x; then
2030 ac_cv_host=$ac_cv_build
2032 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2033 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2034 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2035 { (exit 1); exit 1; }; }
2039 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2040 echo "${ECHO_T}$ac_cv_host" >&6; }
2043 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2044 echo "$as_me: error: invalid value of canonical host" >&2;}
2045 { (exit 1); exit 1; }; };;
2048 ac_save_IFS=$IFS; IFS='-'
2054 # Remember, the first character of IFS is used to create $*,
2055 # except with old shells:
2058 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2061 { echo "$as_me:$LINENO: checking target system type" >&5
2062 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2063 if test "${ac_cv_target+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 if test "x$target_alias" = x; then
2067 ac_cv_target=$ac_cv_host
2069 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2070 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2071 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2072 { (exit 1); exit 1; }; }
2076 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2077 echo "${ECHO_T}$ac_cv_target" >&6; }
2078 case $ac_cv_target in
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2081 echo "$as_me: error: invalid value of canonical target" >&2;}
2082 { (exit 1); exit 1; }; };;
2084 target=$ac_cv_target
2085 ac_save_IFS=$IFS; IFS='-'
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2095 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2098 # The aliases save the names the user supplied, while $host etc.
2099 # will get canonicalized.
2100 test -n "$target_alias" &&
2101 test "$program_prefix$program_suffix$program_transform_name" = \
2103 program_prefix=${target_alias}-
2104 am__api_version='1.10'
2106 # Find a good install program. We prefer a C program (faster),
2107 # so one script is as good as another. But avoid the broken or
2108 # incompatible versions:
2109 # SysV /etc/install, /usr/sbin/install
2110 # SunOS /usr/etc/install
2111 # IRIX /sbin/install
2113 # AmigaOS /C/install, which installs bootblocks on floppy discs
2114 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2115 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2116 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2117 # OS/2's system install, which has a completely different semantic
2118 # ./install, which can be erroneously created by make from ./install.sh.
2119 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2120 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2121 if test -z "$INSTALL"; then
2122 if test "${ac_cv_path_install+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 test -z "$as_dir" && as_dir=.
2130 # Account for people who put trailing slashes in PATH elements.
2132 ./ | .// | /cC/* | \
2133 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2134 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2137 # OSF1 and SCO ODT 3.0 have their own names for install.
2138 # Don't use installbsd from OSF since it installs stuff as root
2140 for ac_prog in ginstall scoinst install; do
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2143 if test $ac_prog = install &&
2144 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2145 # AIX install. It has an incompatible calling convention.
2147 elif test $ac_prog = install &&
2148 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2149 # program-specific install script used by HP pwplus--don't use.
2152 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2165 if test "${ac_cv_path_install+set}" = set; then
2166 INSTALL=$ac_cv_path_install
2168 # As a last resort, use the slow shell script. Don't cache a
2169 # value for INSTALL within a source directory, because that will
2170 # break other packages using the cache if that directory is
2171 # removed, or if the value is a relative name.
2172 INSTALL=$ac_install_sh
2175 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2176 echo "${ECHO_T}$INSTALL" >&6; }
2178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2179 # It thinks the first close brace ends the variable substitution.
2180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2186 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2187 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2190 echo timestamp > conftest.file
2191 # Do `set' in a subshell so we don't clobber the current shell's
2192 # arguments. Must try -L first in case configure is actually a
2193 # symlink; some systems play weird games with the mod time of symlinks
2194 # (eg FreeBSD returns the mod time of the symlink's containing
2197 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2198 if test "$*" = "X"; then
2200 set X `ls -t $srcdir/configure conftest.file`
2203 if test "$*" != "X $srcdir/configure conftest.file" \
2204 && test "$*" != "X conftest.file $srcdir/configure"; then
2206 # If neither matched, then we have a broken ls. This can happen
2207 # if, for instance, CONFIG_SHELL is bash and it inherits a
2208 # broken ls alias from the environment. This has actually
2209 # happened. Such a system could not be considered "sane".
2210 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2211 alias in your environment" >&5
2212 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2213 alias in your environment" >&2;}
2214 { (exit 1); exit 1; }; }
2217 test "$2" = conftest.file
2223 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2224 Check your system clock" >&5
2225 echo "$as_me: error: newly created file is older than distributed files!
2226 Check your system clock" >&2;}
2227 { (exit 1); exit 1; }; }
2229 { echo "$as_me:$LINENO: result: yes" >&5
2230 echo "${ECHO_T}yes" >&6; }
2231 test "$program_prefix" != NONE &&
2232 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2233 # Use a double $ so make ignores it.
2234 test "$program_suffix" != NONE &&
2235 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2236 # Double any \ or $. echo might interpret backslashes.
2237 # By default was `s,x,x', remove it if useless.
2238 cat <<\_ACEOF >conftest.sed
2239 s/[\\$]/&&/g;s/;s,x,x,$//
2241 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2244 # expand $ac_aux_dir to an absolute path
2245 am_aux_dir=`cd $ac_aux_dir && pwd`
2247 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2248 # Use eval to expand $SHELL
2249 if eval "$MISSING --run true"; then
2250 am_missing_run="$MISSING --run "
2253 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2254 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2257 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2258 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2259 if test -z "$MKDIR_P"; then
2260 if test "${ac_cv_path_mkdir+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2267 test -z "$as_dir" && as_dir=.
2268 for ac_prog in mkdir gmkdir; do
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2271 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2272 'mkdir (GNU coreutils) '* | \
2273 'mkdir (coreutils) '* | \
2274 'mkdir (fileutils) '4.1*)
2275 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2285 if test "${ac_cv_path_mkdir+set}" = set; then
2286 MKDIR_P="$ac_cv_path_mkdir -p"
2288 # As a last resort, use the slow shell script. Don't cache a
2289 # value for MKDIR_P within a source directory, because that will
2290 # break other packages using the cache if that directory is
2291 # removed, or if the value is a relative name.
2292 test -d ./--version && rmdir ./--version
2293 MKDIR_P="$ac_install_sh -d"
2296 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2297 echo "${ECHO_T}$MKDIR_P" >&6; }
2301 [\\/$]* | ?:[\\/]*) ;;
2302 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2305 for ac_prog in gawk mawk nawk awk
2307 # Extract the first word of "$ac_prog", so it can be a program name with args.
2308 set dummy $ac_prog; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_prog_AWK+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 if test -n "$AWK"; then
2315 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_AWK="$ac_prog"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 if test -n "$AWK"; then
2336 { echo "$as_me:$LINENO: result: $AWK" >&5
2337 echo "${ECHO_T}$AWK" >&6; }
2339 { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2344 test -n "$AWK" && break
2347 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2348 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2349 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2350 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 cat >conftest.make <<\_ACEOF
2356 @echo '@@@%%%=$(MAKE)=@@@%%%'
2358 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2359 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2361 eval ac_cv_prog_make_${ac_make}_set=yes;;
2363 eval ac_cv_prog_make_${ac_make}_set=no;;
2367 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2368 { echo "$as_me:$LINENO: result: yes" >&5
2369 echo "${ECHO_T}yes" >&6; }
2372 { echo "$as_me:$LINENO: result: no" >&5
2373 echo "${ECHO_T}no" >&6; }
2374 SET_MAKE="MAKE=${MAKE-make}"
2377 rm -rf .tst 2>/dev/null
2378 mkdir .tst 2>/dev/null
2379 if test -d .tst; then
2384 rmdir .tst 2>/dev/null
2386 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2387 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2388 # is not polluted with repeated "-I."
2389 am__isrc=' -I$(srcdir)'
2390 # test to see if srcdir already configured
2391 if test -f $srcdir/config.status; then
2392 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2393 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2394 { (exit 1); exit 1; }; }
2398 # test whether we have cygpath
2399 if test -z "$CYGPATH_W"; then
2400 if (cygpath --version) >/dev/null 2>/dev/null; then
2401 CYGPATH_W='cygpath -w'
2408 # Define the identity of the package.
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE "$PACKAGE"
2418 cat >>confdefs.h <<_ACEOF
2419 #define VERSION "$VERSION"
2422 # Some tools Automake needs.
2424 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2427 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2430 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2433 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2436 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2438 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2440 # Installed binaries are usually stripped using `strip' when the user
2441 # run `make install-strip'. However `strip' might not be the right
2442 # tool to use in cross-compilation environments, therefore Automake
2443 # will honor the `STRIP' environment variable to overrule this program.
2444 if test "$cross_compiling" != no; then
2445 if test -n "$ac_tool_prefix"; then
2446 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2447 set dummy ${ac_tool_prefix}strip; ac_word=$2
2448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2450 if test "${ac_cv_prog_STRIP+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 if test -n "$STRIP"; then
2454 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2463 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 STRIP=$ac_cv_prog_STRIP
2474 if test -n "$STRIP"; then
2475 { echo "$as_me:$LINENO: result: $STRIP" >&5
2476 echo "${ECHO_T}$STRIP" >&6; }
2478 { echo "$as_me:$LINENO: result: no" >&5
2479 echo "${ECHO_T}no" >&6; }
2484 if test -z "$ac_cv_prog_STRIP"; then
2486 # Extract the first word of "strip", so it can be a program name with args.
2487 set dummy strip; ac_word=$2
2488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2490 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 if test -n "$ac_ct_STRIP"; then
2494 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503 ac_cv_prog_ac_ct_STRIP="strip"
2504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2514 if test -n "$ac_ct_STRIP"; then
2515 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2516 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2518 { echo "$as_me:$LINENO: result: no" >&5
2519 echo "${ECHO_T}no" >&6; }
2522 if test "x$ac_ct_STRIP" = x; then
2525 case $cross_compiling:$ac_tool_warned in
2527 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2528 whose name does not start with the host triplet. If you think this
2529 configuration is useful to you, please write to autoconf@gnu.org." >&5
2530 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2531 whose name does not start with the host triplet. If you think this
2532 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2533 ac_tool_warned=yes ;;
2538 STRIP="$ac_cv_prog_STRIP"
2542 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2544 # We need awk for the "check" target. The system "awk" is bad on
2546 # Always define AMTAR for backward compatibility.
2548 AMTAR=${AMTAR-"${am_missing_run}tar"}
2550 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2557 ac_config_headers="$ac_config_headers include/config.h"
2560 # Checks for programs.
2561 # Check whether --enable-shared was given.
2562 if test "${enable_shared+set}" = set; then
2563 enableval=$enable_shared; p=${PACKAGE-default}
2565 yes) enable_shared=yes ;;
2566 no) enable_shared=no ;;
2569 # Look at the argument we got. We use all the common list separators.
2570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2571 for pkg in $enableval; do
2573 if test "X$pkg" = "X$p"; then
2585 # Check whether --enable-static was given.
2586 if test "${enable_static+set}" = set; then
2587 enableval=$enable_static; p=${PACKAGE-default}
2589 yes) enable_static=yes ;;
2590 no) enable_static=no ;;
2593 # Look at the argument we got. We use all the common list separators.
2594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2595 for pkg in $enableval; do
2597 if test "X$pkg" = "X$p"; then
2609 # Check whether --enable-fast-install was given.
2610 if test "${enable_fast_install+set}" = set; then
2611 enableval=$enable_fast_install; p=${PACKAGE-default}
2613 yes) enable_fast_install=yes ;;
2614 no) enable_fast_install=no ;;
2616 enable_fast_install=no
2617 # Look at the argument we got. We use all the common list separators.
2618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2619 for pkg in $enableval; do
2621 if test "X$pkg" = "X$p"; then
2622 enable_fast_install=yes
2629 enable_fast_install=yes
2633 DEPDIR="${am__leading_dot}deps"
2635 ac_config_commands="$ac_config_commands depfiles"
2638 am_make=${MAKE-make}
2639 cat > confinc << 'END'
2644 # If we don't find an include directive, just comment out the code.
2645 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2646 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2650 # First try GNU make style include.
2651 echo "include confinc" > confmf
2652 # We grep out `Entering directory' and `Leaving directory'
2653 # messages which can occur if `w' ends up in MAKEFLAGS.
2654 # In particular we don't look at `^make:' because GNU make might
2655 # be invoked under some other name (usually "gmake"), in which
2656 # case it prints its new name instead of `make'.
2657 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2662 # Now try BSD make style include.
2663 if test "$am__include" = "#"; then
2664 echo '.include "confinc"' > confmf
2665 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2666 am__include=.include
2673 { echo "$as_me:$LINENO: result: $_am_result" >&5
2674 echo "${ECHO_T}$_am_result" >&6; }
2675 rm -f confinc confmf
2677 # Check whether --enable-dependency-tracking was given.
2678 if test "${enable_dependency_tracking+set}" = set; then
2679 enableval=$enable_dependency_tracking;
2682 if test "x$enable_dependency_tracking" != xno; then
2683 am_depcomp="$ac_aux_dir/depcomp"
2686 if test "x$enable_dependency_tracking" != xno; then
2696 ac_cpp='$CPP $CPPFLAGS'
2697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700 if test -n "$ac_tool_prefix"; then
2701 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2702 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2705 if test "${ac_cv_prog_CC+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 if test -n "$CC"; then
2709 ac_cv_prog_CC="$CC" # Let the user override the test.
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 if test -n "$CC"; then
2730 { echo "$as_me:$LINENO: result: $CC" >&5
2731 echo "${ECHO_T}$CC" >&6; }
2733 { echo "$as_me:$LINENO: result: no" >&5
2734 echo "${ECHO_T}no" >&6; }
2739 if test -z "$ac_cv_prog_CC"; then
2741 # Extract the first word of "gcc", so it can be a program name with args.
2742 set dummy gcc; ac_word=$2
2743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2745 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 if test -n "$ac_ct_CC"; then
2749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 ac_cv_prog_ac_ct_CC="gcc"
2759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2769 if test -n "$ac_ct_CC"; then
2770 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2771 echo "${ECHO_T}$ac_ct_CC" >&6; }
2773 { echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6; }
2777 if test "x$ac_ct_CC" = x; then
2780 case $cross_compiling:$ac_tool_warned in
2782 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2783 whose name does not start with the host triplet. If you think this
2784 configuration is useful to you, please write to autoconf@gnu.org." >&5
2785 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2786 whose name does not start with the host triplet. If you think this
2787 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2788 ac_tool_warned=yes ;;
2796 if test -z "$CC"; then
2797 if test -n "$ac_tool_prefix"; then
2798 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2799 set dummy ${ac_tool_prefix}cc; ac_word=$2
2800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2802 if test "${ac_cv_prog_CC+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 if test -n "$CC"; then
2806 ac_cv_prog_CC="$CC" # Let the user override the test.
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_CC="${ac_tool_prefix}cc"
2816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 if test -n "$CC"; then
2827 { echo "$as_me:$LINENO: result: $CC" >&5
2828 echo "${ECHO_T}$CC" >&6; }
2830 { echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6; }
2837 if test -z "$CC"; then
2838 # Extract the first word of "cc", so it can be a program name with args.
2839 set dummy cc; ac_word=$2
2840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2842 if test "${ac_cv_prog_CC+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC="$CC" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2857 ac_prog_rejected=yes
2861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 if test $ac_prog_rejected = yes; then
2869 # We found a bogon in the path, so make sure we never use it.
2870 set dummy $ac_cv_prog_CC
2872 if test $# != 0; then
2873 # We chose a different compiler from the bogus one.
2874 # However, it has the same basename, so the bogon will be chosen
2875 # first if we set CC to just the basename; use the full file name.
2877 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2883 if test -n "$CC"; then
2884 { echo "$as_me:$LINENO: result: $CC" >&5
2885 echo "${ECHO_T}$CC" >&6; }
2887 { echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6; }
2893 if test -z "$CC"; then
2894 if test -n "$ac_tool_prefix"; then
2895 for ac_prog in cl.exe
2897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2901 if test "${ac_cv_prog_CC+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 if test -n "$CC"; then
2926 { echo "$as_me:$LINENO: result: $CC" >&5
2927 echo "${ECHO_T}$CC" >&6; }
2929 { echo "$as_me:$LINENO: result: no" >&5
2930 echo "${ECHO_T}no" >&6; }
2934 test -n "$CC" && break
2937 if test -z "$CC"; then
2939 for ac_prog in cl.exe
2941 # Extract the first word of "$ac_prog", so it can be a program name with args.
2942 set dummy $ac_prog; ac_word=$2
2943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2945 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 if test -n "$ac_ct_CC"; then
2949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958 ac_cv_prog_ac_ct_CC="$ac_prog"
2959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2969 if test -n "$ac_ct_CC"; then
2970 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2971 echo "${ECHO_T}$ac_ct_CC" >&6; }
2973 { echo "$as_me:$LINENO: result: no" >&5
2974 echo "${ECHO_T}no" >&6; }
2978 test -n "$ac_ct_CC" && break
2981 if test "x$ac_ct_CC" = x; then
2984 case $cross_compiling:$ac_tool_warned in
2986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2987 whose name does not start with the host triplet. If you think this
2988 configuration is useful to you, please write to autoconf@gnu.org." >&5
2989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2990 whose name does not start with the host triplet. If you think this
2991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2992 ac_tool_warned=yes ;;
3001 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3002 See \`config.log' for more details." >&5
3003 echo "$as_me: error: no acceptable C compiler found in \$PATH
3004 See \`config.log' for more details." >&2;}
3005 { (exit 1); exit 1; }; }
3007 # Provide some information about the compiler.
3008 echo "$as_me:$LINENO: checking for C compiler version" >&5
3009 ac_compiler=`set X $ac_compile; echo $2`
3010 { (ac_try="$ac_compiler --version >&5"
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_compiler --version >&5") 2>&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }
3020 { (ac_try="$ac_compiler -v >&5"
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_compiler -v >&5") 2>&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }
3030 { (ac_try="$ac_compiler -V >&5"
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_compiler -V >&5") 2>&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }
3041 cat >conftest.$ac_ext <<_ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3056 ac_clean_files_save=$ac_clean_files
3057 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3058 # Try to create an executable without -o first, disregard a.out.
3059 # It will help us diagnose broken compilers, and finding out an intuition
3061 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3062 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3063 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3065 # List of possible output files, starting from the most likely.
3066 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3067 # only as a last resort. b.out is created by i960 compilers.
3068 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3070 # The IRIX 6 linker writes into existing files which may not be
3071 # executable, retaining their permissions. Remove them first so a
3072 # subsequent execution test works.
3074 for ac_file in $ac_files
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3078 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3083 if { (ac_try="$ac_link_default"
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_link_default") 2>&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; then
3093 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3094 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3095 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3096 # so that the user can short-circuit this test for compilers unknown to
3098 for ac_file in $ac_files ''
3100 test -f "$ac_file" || continue
3102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3105 # We found the default executable, but exeext='' is most
3109 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3111 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3113 # We set ac_cv_exeext here because the later test for it is not
3114 # safe: cross compilers may not add the suffix if given an `-o'
3115 # argument, so we may need to know it at that point already.
3116 # Even if this section looks crufty: it has the advantage of
3123 test "$ac_cv_exeext" = no && ac_cv_exeext=
3129 { echo "$as_me:$LINENO: result: $ac_file" >&5
3130 echo "${ECHO_T}$ac_file" >&6; }
3131 if test -z "$ac_file"; then
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3135 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3136 See \`config.log' for more details." >&5
3137 echo "$as_me: error: C compiler cannot create executables
3138 See \`config.log' for more details." >&2;}
3139 { (exit 77); exit 77; }; }
3142 ac_exeext=$ac_cv_exeext
3144 # Check that the compiler produces executables we can run. If not, either
3145 # the compiler is broken, or we cross compile.
3146 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3147 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3148 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3149 # If not cross compiling, check that we can run a simple program.
3150 if test "$cross_compiling" != yes; then
3151 if { ac_try='./$ac_file'
3152 { (case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_try") 2>&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3163 if test "$cross_compiling" = maybe; then
3166 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3167 If you meant to cross compile, use \`--host'.
3168 See \`config.log' for more details." >&5
3169 echo "$as_me: error: cannot run C compiled programs.
3170 If you meant to cross compile, use \`--host'.
3171 See \`config.log' for more details." >&2;}
3172 { (exit 1); exit 1; }; }
3176 { echo "$as_me:$LINENO: result: yes" >&5
3177 echo "${ECHO_T}yes" >&6; }
3179 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3180 ac_clean_files=$ac_clean_files_save
3181 # Check that the compiler produces executables we can run. If not, either
3182 # the compiler is broken, or we cross compile.
3183 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3184 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3185 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3186 echo "${ECHO_T}$cross_compiling" >&6; }
3188 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3189 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3190 if { (ac_try="$ac_link"
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_link") 2>&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; then
3200 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3201 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3202 # work properly (i.e., refer to `conftest.exe'), while it won't with
3204 for ac_file in conftest.exe conftest conftest.*; do
3205 test -f "$ac_file" || continue
3207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3208 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3214 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3215 See \`config.log' for more details." >&5
3216 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3217 See \`config.log' for more details." >&2;}
3218 { (exit 1); exit 1; }; }
3221 rm -f conftest$ac_cv_exeext
3222 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3223 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3225 rm -f conftest.$ac_ext
3226 EXEEXT=$ac_cv_exeext
3228 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3229 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3230 if test "${ac_cv_objext+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3248 rm -f conftest.o conftest.obj
3249 if { (ac_try="$ac_compile"
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_compile") 2>&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; then
3259 for ac_file in conftest.o conftest.obj conftest.*; do
3260 test -f "$ac_file" || continue;
3262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3263 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3271 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3272 See \`config.log' for more details." >&5
3273 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3274 See \`config.log' for more details." >&2;}
3275 { (exit 1); exit 1; }; }
3278 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3280 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3281 echo "${ECHO_T}$ac_cv_objext" >&6; }
3282 OBJEXT=$ac_cv_objext
3284 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3285 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3286 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 cat >conftest.$ac_ext <<_ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3307 rm -f conftest.$ac_objext
3308 if { (ac_try="$ac_compile"
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_compile") 2>conftest.er1
3316 grep -v '^ *+' conftest.er1 >conftest.err
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } && {
3321 test -z "$ac_c_werror_flag" ||
3322 test ! -s conftest.err
3323 } && test -s conftest.$ac_objext; then
3326 echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3336 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3337 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3338 GCC=`test $ac_compiler_gnu = yes && echo yes`
3339 ac_test_CFLAGS=${CFLAGS+set}
3340 ac_save_CFLAGS=$CFLAGS
3341 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3342 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3343 if test "${ac_cv_prog_cc_g+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 ac_save_c_werror_flag=$ac_c_werror_flag
3347 ac_c_werror_flag=yes
3350 cat >conftest.$ac_ext <<_ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h. */
3365 rm -f conftest.$ac_objext
3366 if { (ac_try="$ac_compile"
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372 (eval "$ac_compile") 2>conftest.er1
3374 grep -v '^ *+' conftest.er1 >conftest.err
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } && {
3379 test -z "$ac_c_werror_flag" ||
3380 test ! -s conftest.err
3381 } && test -s conftest.$ac_objext; then
3384 echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3403 rm -f conftest.$ac_objext
3404 if { (ac_try="$ac_compile"
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_compile") 2>conftest.er1
3412 grep -v '^ *+' conftest.er1 >conftest.err
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } && {
3417 test -z "$ac_c_werror_flag" ||
3418 test ! -s conftest.err
3419 } && test -s conftest.$ac_objext; then
3422 echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3425 ac_c_werror_flag=$ac_save_c_werror_flag
3427 cat >conftest.$ac_ext <<_ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3442 rm -f conftest.$ac_objext
3443 if { (ac_try="$ac_compile"
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449 (eval "$ac_compile") 2>conftest.er1
3451 grep -v '^ *+' conftest.er1 >conftest.err
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } && {
3456 test -z "$ac_c_werror_flag" ||
3457 test ! -s conftest.err
3458 } && test -s conftest.$ac_objext; then
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 ac_c_werror_flag=$ac_save_c_werror_flag
3476 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3477 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3478 if test "$ac_test_CFLAGS" = set; then
3479 CFLAGS=$ac_save_CFLAGS
3480 elif test $ac_cv_prog_cc_g = yes; then
3481 if test "$GCC" = yes; then
3487 if test "$GCC" = yes; then
3493 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3494 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3495 if test "${ac_cv_prog_cc_c89+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 ac_cv_prog_cc_c89=no
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3508 #include <sys/types.h>
3509 #include <sys/stat.h>
3510 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3511 struct buf { int x; };
3512 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3513 static char *e (p, i)
3519 static char *f (char * (*g) (char **, int), char **p, ...)
3524 s = g (p, va_arg (v,int));
3529 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3530 function prototypes and stuff, but not '\xHH' hex character constants.
3531 These don't provoke an error unfortunately, instead are silently treated
3532 as 'x'. The following induces an error, until -std is added to get
3533 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3534 array size at least. It's necessary to write '\x00'==0 to get something
3535 that's true only with -std. */
3536 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3538 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3539 inside strings and character constants. */
3541 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3543 int test (int i, double x);
3544 struct s1 {int (*f) (int a);};
3545 struct s2 {int (*f) (double a);};
3546 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3552 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3557 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3558 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3560 CC="$ac_save_CC $ac_arg"
3561 rm -f conftest.$ac_objext
3562 if { (ac_try="$ac_compile"
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_compile") 2>conftest.er1
3570 grep -v '^ *+' conftest.er1 >conftest.err
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } && {
3575 test -z "$ac_c_werror_flag" ||
3576 test ! -s conftest.err
3577 } && test -s conftest.$ac_objext; then
3578 ac_cv_prog_cc_c89=$ac_arg
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3586 rm -f core conftest.err conftest.$ac_objext
3587 test "x$ac_cv_prog_cc_c89" != "xno" && break
3589 rm -f conftest.$ac_ext
3594 case "x$ac_cv_prog_cc_c89" in
3596 { echo "$as_me:$LINENO: result: none needed" >&5
3597 echo "${ECHO_T}none needed" >&6; } ;;
3599 { echo "$as_me:$LINENO: result: unsupported" >&5
3600 echo "${ECHO_T}unsupported" >&6; } ;;
3602 CC="$CC $ac_cv_prog_cc_c89"
3603 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3604 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614 depcc="$CC" am_compiler_list=
3616 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3617 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3618 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3622 # We make a subdir and do the tests there. Otherwise we can end up
3623 # making bogus files that we don't know about and never remove. For
3624 # instance it was reported that on HP-UX the gcc test will end up
3625 # making a dummy file named `D' -- because `-MD' means `put the output
3628 # Copy depcomp to subdir because otherwise we won't find it if we're
3629 # using a relative directory.
3630 cp "$am_depcomp" conftest.dir
3632 # We will build objects and dependencies in a subdirectory because
3633 # it helps to detect inapplicable dependency modes. For instance
3634 # both Tru64's cc and ICC support -MD to output dependencies as a
3635 # side effect of compilation, but ICC will put the dependencies in
3636 # the current directory while Tru64 will put them in the object
3640 am_cv_CC_dependencies_compiler_type=none
3641 if test "$am_compiler_list" = ""; then
3642 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3644 for depmode in $am_compiler_list; do
3645 # Setup a source with many dependencies, because some compilers
3646 # like to wrap large dependency lists on column 80 (with \), and
3647 # we should not choose a depcomp mode which is confused by this.
3649 # We need to recreate these files for each test, as the compiler may
3650 # overwrite some of them when testing with obscure command lines.
3651 # This happens at least with the AIX C compiler.
3653 for i in 1 2 3 4 5 6; do
3654 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3655 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3656 # Solaris 8's {/usr,}/bin/sh.
3657 touch sub/conftst$i.h
3659 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3663 # after this tag, mechanisms are not by side-effect, so they'll
3664 # only be used when explicitly requested
3665 if test "x$enable_dependency_tracking" = xyes; then
3673 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3674 # mode. It turns out that the SunPro C++ compiler does not properly
3675 # handle `-M -o', and we need to detect this.
3676 if depmode=$depmode \
3677 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3678 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3679 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3680 >/dev/null 2>conftest.err &&
3681 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3682 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3683 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3684 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3685 # icc doesn't choke on unknown options, it will just issue warnings
3686 # or remarks (even with -Werror). So we grep stderr for any message
3687 # that says an option was ignored or not supported.
3688 # When given -MP, icc 7.0 and 7.1 complain thusly:
3689 # icc: Command line warning: ignoring option '-M'; no argument required
3690 # The diagnosis changed in icc 8.0:
3691 # icc: Command line remark: option '-MP' not supported
3692 if (grep 'ignoring option' conftest.err ||
3693 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3694 am_cv_CC_dependencies_compiler_type=$depmode
3703 am_cv_CC_dependencies_compiler_type=none
3707 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3708 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3709 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3712 test "x$enable_dependency_tracking" != xno \
3713 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3715 am__fastdepCC_FALSE='#'
3717 am__fastdepCC_TRUE='#'
3718 am__fastdepCC_FALSE=
3722 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3723 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3724 if test "${lt_cv_path_SED+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 # Loop through the user's path and test for sed and gsed.
3728 # Then use that list of sed's as ones to test for truncation.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir=.
3734 for lt_ac_prog in sed gsed; do
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3737 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3745 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3746 # along with /bin/sed that truncates output.
3747 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3748 test ! -f $lt_ac_sed && continue
3749 cat /dev/null > conftest.in
3751 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3752 # Check for GNU sed and select it if it is found.
3753 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3754 lt_cv_path_SED=$lt_ac_sed
3758 cat conftest.in conftest.in >conftest.tmp
3759 mv conftest.tmp conftest.in
3760 cp conftest.in conftest.nl
3762 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3763 cmp -s conftest.out conftest.nl || break
3764 # 10000 chars as input seems more than enough
3765 test $lt_ac_count -gt 10 && break
3766 lt_ac_count=`expr $lt_ac_count + 1`
3767 if test $lt_ac_count -gt $lt_ac_max; then
3768 lt_ac_max=$lt_ac_count
3769 lt_cv_path_SED=$lt_ac_sed
3778 { echo "$as_me:$LINENO: result: $SED" >&5
3779 echo "${ECHO_T}$SED" >&6; }
3781 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3782 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3783 if test "${ac_cv_path_GREP+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 # Extract the first word of "grep ggrep" to use in msg output
3787 if test -z "$GREP"; then
3788 set dummy grep ggrep; ac_prog_name=$2
3789 if test "${ac_cv_path_GREP+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 ac_path_GREP_found=false
3793 # Loop through the user's path and test for each of PROGNAME-LIST
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3798 test -z "$as_dir" && as_dir=.
3799 for ac_prog in grep ggrep; do
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3802 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3803 # Check for GNU ac_path_GREP and select it if it is found.
3804 # Check for GNU $ac_path_GREP
3805 case `"$ac_path_GREP" --version 2>&1` in
3807 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3810 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3813 cat "conftest.in" "conftest.in" >"conftest.tmp"
3814 mv "conftest.tmp" "conftest.in"
3815 cp "conftest.in" "conftest.nl"
3816 echo 'GREP' >> "conftest.nl"
3817 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3819 ac_count=`expr $ac_count + 1`
3820 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3821 # Best one so far, save it but keep looking for a better one
3822 ac_cv_path_GREP="$ac_path_GREP"
3823 ac_path_GREP_max=$ac_count
3825 # 10*(2^10) chars as input seems more than enough
3826 test $ac_count -gt 10 && break
3828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3832 $ac_path_GREP_found && break 3
3842 GREP="$ac_cv_path_GREP"
3843 if test -z "$GREP"; then
3844 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3845 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3846 { (exit 1); exit 1; }; }
3850 ac_cv_path_GREP=$GREP
3855 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3856 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3857 GREP="$ac_cv_path_GREP"
3860 { echo "$as_me:$LINENO: checking for egrep" >&5
3861 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3862 if test "${ac_cv_path_EGREP+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3866 then ac_cv_path_EGREP="$GREP -E"
3868 # Extract the first word of "egrep" to use in msg output
3869 if test -z "$EGREP"; then
3870 set dummy egrep; ac_prog_name=$2
3871 if test "${ac_cv_path_EGREP+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 ac_path_EGREP_found=false
3875 # Loop through the user's path and test for each of PROGNAME-LIST
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3880 test -z "$as_dir" && as_dir=.
3881 for ac_prog in egrep; do
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3884 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3885 # Check for GNU ac_path_EGREP and select it if it is found.
3886 # Check for GNU $ac_path_EGREP
3887 case `"$ac_path_EGREP" --version 2>&1` in
3889 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3892 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3895 cat "conftest.in" "conftest.in" >"conftest.tmp"
3896 mv "conftest.tmp" "conftest.in"
3897 cp "conftest.in" "conftest.nl"
3898 echo 'EGREP' >> "conftest.nl"
3899 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3900 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3901 ac_count=`expr $ac_count + 1`
3902 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3903 # Best one so far, save it but keep looking for a better one
3904 ac_cv_path_EGREP="$ac_path_EGREP"
3905 ac_path_EGREP_max=$ac_count
3907 # 10*(2^10) chars as input seems more than enough
3908 test $ac_count -gt 10 && break
3910 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3914 $ac_path_EGREP_found && break 3
3924 EGREP="$ac_cv_path_EGREP"
3925 if test -z "$EGREP"; then
3926 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3927 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3928 { (exit 1); exit 1; }; }
3932 ac_cv_path_EGREP=$EGREP
3938 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3939 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3940 EGREP="$ac_cv_path_EGREP"
3944 # Check whether --with-gnu-ld was given.
3945 if test "${with_gnu_ld+set}" = set; then
3946 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3952 if test "$GCC" = yes; then
3953 # Check if gcc -print-prog-name=ld gives a path.
3954 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3955 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3958 # gcc leaves a trailing carriage return which upsets mingw
3959 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3961 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3964 # Accept absolute paths.
3966 re_direlt='/[^/][^/]*/\.\./'
3967 # Canonicalize the pathname of ld
3968 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3969 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3970 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3972 test -z "$LD" && LD="$ac_prog"
3975 # If it fails, then pretend we aren't using GCC.
3979 # If it is relative, then search for the first ld in PATH.
3983 elif test "$with_gnu_ld" = yes; then
3984 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3985 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3987 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3988 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3990 if test "${lt_cv_path_LD+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 if test -z "$LD"; then
3994 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3995 for ac_dir in $PATH; do
3997 test -z "$ac_dir" && ac_dir=.
3998 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3999 lt_cv_path_LD="$ac_dir/$ac_prog"
4000 # Check to see if the program is GNU ld. I'd rather use --version,
4001 # but apparently some variants of GNU ld only accept -v.
4002 # Break only if it was the GNU/non-GNU ld that we prefer.
4003 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4004 *GNU* | *'with BFD'*)
4005 test "$with_gnu_ld" != no && break
4008 test "$with_gnu_ld" != yes && break
4015 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4020 if test -n "$LD"; then
4021 { echo "$as_me:$LINENO: result: $LD" >&5
4022 echo "${ECHO_T}$LD" >&6; }
4024 { echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6; }
4027 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4028 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4029 { (exit 1); exit 1; }; }
4030 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4031 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4032 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4036 case `$LD -v 2>&1 </dev/null` in
4037 *GNU* | *'with BFD'*)
4038 lt_cv_prog_gnu_ld=yes
4041 lt_cv_prog_gnu_ld=no
4045 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4046 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4047 with_gnu_ld=$lt_cv_prog_gnu_ld
4050 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4051 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4052 if test "${lt_cv_ld_reload_flag+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 lt_cv_ld_reload_flag='-r'
4057 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4058 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4059 reload_flag=$lt_cv_ld_reload_flag
4060 case $reload_flag in
4062 *) reload_flag=" $reload_flag" ;;
4064 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4067 if test "$GCC" = yes; then
4068 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4070 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4075 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4076 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4077 if test "${lt_cv_path_NM+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 if test -n "$NM"; then
4081 # Let the user override the test.
4084 lt_nm_to_check="${ac_tool_prefix}nm"
4085 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4086 lt_nm_to_check="$lt_nm_to_check nm"
4088 for lt_tmp_nm in $lt_nm_to_check; do
4089 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4090 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4092 test -z "$ac_dir" && ac_dir=.
4093 tmp_nm="$ac_dir/$lt_tmp_nm"
4094 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4095 # Check to see if the nm accepts a BSD-compat flag.
4096 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4097 # nm: unknown option "B" ignored
4098 # Tru64's nm complains that /dev/null is an invalid object file
4099 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4100 */dev/null* | *'Invalid file or object type'*)
4101 lt_cv_path_NM="$tmp_nm -B"
4105 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4107 lt_cv_path_NM="$tmp_nm -p"
4111 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4112 continue # so that we can try to find one that supports BSD flags
4121 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4124 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4125 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4128 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4129 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4131 if test "$LN_S" = "ln -s"; then
4132 { echo "$as_me:$LINENO: result: yes" >&5
4133 echo "${ECHO_T}yes" >&6; }
4135 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4136 echo "${ECHO_T}no, using $LN_S" >&6; }
4139 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4140 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4141 if test "${lt_cv_deplibs_check_method+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 lt_cv_file_magic_cmd='$MAGIC_CMD'
4145 lt_cv_file_magic_test_file=
4146 lt_cv_deplibs_check_method='unknown'
4147 # Need to set the preceding variable on all platforms that support
4148 # interlibrary dependencies.
4149 # 'none' -- dependencies not supported.
4150 # `unknown' -- same as none, but documents that we really don't know.
4151 # 'pass_all' -- all dependencies passed with no checks.
4152 # 'test_compile' -- check by making test program.
4153 # 'file_magic [[regex]]' -- check by looking for files in library path
4154 # which responds to the $file_magic_cmd with a given extended regex.
4155 # If you have `file' or equivalent on your system and you're not sure
4156 # whether `pass_all' will *always* work, you probably want this one.
4160 lt_cv_deplibs_check_method=pass_all
4164 lt_cv_deplibs_check_method=pass_all
4168 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4169 lt_cv_file_magic_cmd='/usr/bin/file -L'
4170 lt_cv_file_magic_test_file=/shlib/libc.so
4174 # func_win32_libid is a shell function defined in ltmain.sh
4175 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4176 lt_cv_file_magic_cmd='func_win32_libid'
4180 # Base MSYS/MinGW do not provide the 'file' command needed by
4181 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4182 # unless we find 'file', for example because we are cross-compiling.
4183 if ( file / ) >/dev/null 2>&1; then
4184 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4185 lt_cv_file_magic_cmd='func_win32_libid'
4187 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4188 lt_cv_file_magic_cmd='$OBJDUMP -f'
4192 darwin* | rhapsody*)
4193 lt_cv_deplibs_check_method=pass_all
4196 freebsd* | dragonfly*)
4197 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4200 # Not sure whether the presence of OpenBSD here was a mistake.
4201 # Let's accept both of them until this is cleared up.
4202 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4203 lt_cv_file_magic_cmd=/usr/bin/file
4204 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4208 lt_cv_deplibs_check_method=pass_all
4213 lt_cv_deplibs_check_method=pass_all
4216 hpux10.20* | hpux11*)
4217 lt_cv_file_magic_cmd=/usr/bin/file
4220 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4221 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4224 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]'
4225 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4229 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4235 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4239 irix5* | irix6* | nonstopux*)
4241 *-32|*"-32 ") libmagic=32-bit;;
4242 *-n32|*"-n32 ") libmagic=N32;;
4243 *-64|*"-64 ") libmagic=64-bit;;
4244 *) libmagic=never-match;;
4246 lt_cv_deplibs_check_method=pass_all
4249 # This must be Linux ELF.
4250 linux* | k*bsd*-gnu)
4251 lt_cv_deplibs_check_method=pass_all
4254 netbsd* | netbsdelf*-gnu)
4255 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4263 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4264 lt_cv_file_magic_cmd=/usr/bin/file
4265 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4269 lt_cv_deplibs_check_method=unknown
4273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4274 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4276 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4280 osf3* | osf4* | osf5*)
4281 lt_cv_deplibs_check_method=pass_all
4285 lt_cv_deplibs_check_method=pass_all
4289 lt_cv_deplibs_check_method=pass_all
4293 case $host_vendor in
4295 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]'
4296 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4299 lt_cv_deplibs_check_method=pass_all
4302 lt_cv_file_magic_cmd='/bin/file'
4303 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4306 lt_cv_file_magic_cmd='/bin/file'
4307 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4308 lt_cv_file_magic_test_file=/lib/libc.so
4311 lt_cv_deplibs_check_method=pass_all
4314 lt_cv_deplibs_check_method=pass_all
4319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4320 lt_cv_deplibs_check_method=pass_all
4325 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4326 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4327 file_magic_cmd=$lt_cv_file_magic_cmd
4328 deplibs_check_method=$lt_cv_deplibs_check_method
4329 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4334 # If no C compiler was specified, use CC.
4337 # If no C compiler flags were specified, use CFLAGS.
4338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4340 # Allow CC to be a program name with arguments.
4344 # Check whether --enable-libtool-lock was given.
4345 if test "${enable_libtool_lock+set}" = set; then
4346 enableval=$enable_libtool_lock;
4349 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4351 # Some flags need to be propagated to the compiler or linker for good
4355 # Find out which ABI we are using.
4356 echo 'int i;' > conftest.$ac_ext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; then
4362 case `/usr/bin/file conftest.$ac_objext` in
4374 # Find out which ABI we are using.
4375 echo '#line 4375 "configure"' > conftest.$ac_ext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4377 (eval $ac_compile) 2>&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; then
4381 if test "$lt_cv_prog_gnu_ld" = yes; then
4382 case `/usr/bin/file conftest.$ac_objext` in
4384 LD="${LD-ld} -melf32bsmip"
4387 LD="${LD-ld} -melf32bmipn32"
4390 LD="${LD-ld} -melf64bmip"
4394 case `/usr/bin/file conftest.$ac_objext` in
4410 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4411 s390*-*linux*|sparc*-*linux*)
4412 # Find out which ABI we are using.
4413 echo 'int i;' > conftest.$ac_ext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4415 (eval $ac_compile) 2>&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; then
4419 case `/usr/bin/file conftest.o` in
4422 x86_64-*kfreebsd*-gnu)
4423 LD="${LD-ld} -m elf_i386_fbsd"
4426 LD="${LD-ld} -m elf_i386"
4428 ppc64-*linux*|powerpc64-*linux*)
4429 LD="${LD-ld} -m elf32ppclinux"
4432 LD="${LD-ld} -m elf_s390"
4435 LD="${LD-ld} -m elf32_sparc"
4441 x86_64-*kfreebsd*-gnu)
4442 LD="${LD-ld} -m elf_x86_64_fbsd"
4445 LD="${LD-ld} -m elf_x86_64"
4447 ppc*-*linux*|powerpc*-*linux*)
4448 LD="${LD-ld} -m elf64ppc"
4451 LD="${LD-ld} -m elf64_s390"
4454 LD="${LD-ld} -m elf64_sparc"
4464 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4465 SAVE_CFLAGS="$CFLAGS"
4466 CFLAGS="$CFLAGS -belf"
4467 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4468 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4469 if test "${lt_cv_cc_needs_belf+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 ac_cpp='$CPP $CPPFLAGS'
4474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478 cat >conftest.$ac_ext <<_ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4493 rm -f conftest.$ac_objext conftest$ac_exeext
4494 if { (ac_try="$ac_link"
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500 (eval "$ac_link") 2>conftest.er1
4502 grep -v '^ *+' conftest.er1 >conftest.err
4504 cat conftest.err >&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); } && {
4507 test -z "$ac_c_werror_flag" ||
4508 test ! -s conftest.err
4509 } && test -s conftest$ac_exeext &&
4510 $as_test_x conftest$ac_exeext; then
4511 lt_cv_cc_needs_belf=yes
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 lt_cv_cc_needs_belf=no
4519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4520 conftest$ac_exeext conftest.$ac_ext
4522 ac_cpp='$CPP $CPPFLAGS'
4523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4529 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4530 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4531 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4532 CFLAGS="$SAVE_CFLAGS"
4536 # Find out which ABI we are using.
4537 echo 'int i;' > conftest.$ac_ext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; then
4543 case `/usr/bin/file conftest.o` in
4545 case $lt_cv_prog_gnu_ld in
4546 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4548 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4562 need_locks="$enable_libtool_lock"
4566 ac_cpp='$CPP $CPPFLAGS'
4567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4570 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4571 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4572 # On Suns, sometimes $CPP names a directory.
4573 if test -n "$CPP" && test -d "$CPP"; then
4576 if test -z "$CPP"; then
4577 if test "${ac_cv_prog_CPP+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 # Double quotes because CPP needs to be expanded
4581 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4584 for ac_c_preproc_warn_flag in '' yes
4586 # Use a header file that comes with gcc, so configuring glibc
4587 # with a fresh cross-compiler works.
4588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4589 # <limits.h> exists even on freestanding compilers.
4590 # On the NeXT, cc -E runs the code through the compiler's parser,
4591 # not just through cpp. "Syntax error" is here to catch this case.
4592 cat >conftest.$ac_ext <<_ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4599 # include <limits.h>
4601 # include <assert.h>
4605 if { (ac_try="$ac_cpp conftest.$ac_ext"
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4613 grep -v '^ *+' conftest.er1 >conftest.err
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } >/dev/null && {
4618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4619 test ! -s conftest.err
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4626 # Broken: fails on valid input.
4630 rm -f conftest.err conftest.$ac_ext
4632 # OK, works on sane cases. Now check whether nonexistent headers
4633 # can be detected and how.
4634 cat >conftest.$ac_ext <<_ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4640 #include <ac_nonexistent.h>
4642 if { (ac_try="$ac_cpp conftest.$ac_ext"
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4650 grep -v '^ *+' conftest.er1 >conftest.err
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } >/dev/null && {
4655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4656 test ! -s conftest.err
4658 # Broken: success on invalid input.
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4664 # Passes both tests.
4669 rm -f conftest.err conftest.$ac_ext
4672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4673 rm -f conftest.err conftest.$ac_ext
4674 if $ac_preproc_ok; then
4686 { echo "$as_me:$LINENO: result: $CPP" >&5
4687 echo "${ECHO_T}$CPP" >&6; }
4689 for ac_c_preproc_warn_flag in '' yes
4691 # Use a header file that comes with gcc, so configuring glibc
4692 # with a fresh cross-compiler works.
4693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4694 # <limits.h> exists even on freestanding compilers.
4695 # On the NeXT, cc -E runs the code through the compiler's parser,
4696 # not just through cpp. "Syntax error" is here to catch this case.
4697 cat >conftest.$ac_ext <<_ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4704 # include <limits.h>
4706 # include <assert.h>
4710 if { (ac_try="$ac_cpp conftest.$ac_ext"
4712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4718 grep -v '^ *+' conftest.er1 >conftest.err
4720 cat conftest.err >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } >/dev/null && {
4723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4724 test ! -s conftest.err
4728 echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4731 # Broken: fails on valid input.
4735 rm -f conftest.err conftest.$ac_ext
4737 # OK, works on sane cases. Now check whether nonexistent headers
4738 # can be detected and how.
4739 cat >conftest.$ac_ext <<_ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4745 #include <ac_nonexistent.h>
4747 if { (ac_try="$ac_cpp conftest.$ac_ext"
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4755 grep -v '^ *+' conftest.er1 >conftest.err
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } >/dev/null && {
4760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4761 test ! -s conftest.err
4763 # Broken: success on invalid input.
4766 echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4769 # Passes both tests.
4774 rm -f conftest.err conftest.$ac_ext
4777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4778 rm -f conftest.err conftest.$ac_ext
4779 if $ac_preproc_ok; then
4782 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4783 See \`config.log' for more details." >&5
4784 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4785 See \`config.log' for more details." >&2;}
4786 { (exit 1); exit 1; }; }
4790 ac_cpp='$CPP $CPPFLAGS'
4791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4796 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4797 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4798 if test "${ac_cv_header_stdc+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 cat >conftest.$ac_ext <<_ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4820 rm -f conftest.$ac_objext
4821 if { (ac_try="$ac_compile"
4823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824 *) ac_try_echo=$ac_try;;
4826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4827 (eval "$ac_compile") 2>conftest.er1
4829 grep -v '^ *+' conftest.er1 >conftest.err
4831 cat conftest.err >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } && {
4834 test -z "$ac_c_werror_flag" ||
4835 test ! -s conftest.err
4836 } && test -s conftest.$ac_objext; then
4837 ac_cv_header_stdc=yes
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4842 ac_cv_header_stdc=no
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 if test $ac_cv_header_stdc = yes; then
4848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4849 cat >conftest.$ac_ext <<_ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4859 $EGREP "memchr" >/dev/null 2>&1; then
4862 ac_cv_header_stdc=no
4868 if test $ac_cv_header_stdc = yes; then
4869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4870 cat >conftest.$ac_ext <<_ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4880 $EGREP "free" >/dev/null 2>&1; then
4883 ac_cv_header_stdc=no
4889 if test $ac_cv_header_stdc = yes; then
4890 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4891 if test "$cross_compiling" = yes; then
4894 cat >conftest.$ac_ext <<_ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4902 #if ((' ' & 0x0FF) == 0x020)
4903 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4904 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4906 # define ISLOWER(c) \
4907 (('a' <= (c) && (c) <= 'i') \
4908 || ('j' <= (c) && (c) <= 'r') \
4909 || ('s' <= (c) && (c) <= 'z'))
4910 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4913 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4918 for (i = 0; i < 256; i++)
4919 if (XOR (islower (i), ISLOWER (i))
4920 || toupper (i) != TOUPPER (i))
4925 rm -f conftest$ac_exeext
4926 if { (ac_try="$ac_link"
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932 (eval "$ac_link") 2>&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4936 { (case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941 (eval "$ac_try") 2>&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; }; then
4947 echo "$as_me: program exited with status $ac_status" >&5
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4952 ac_cv_header_stdc=no
4954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4960 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4961 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4962 if test $ac_cv_header_stdc = yes; then
4964 cat >>confdefs.h <<\_ACEOF
4965 #define STDC_HEADERS 1
4970 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4980 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4981 inttypes.h stdint.h unistd.h
4983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 cat >conftest.$ac_ext <<_ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4995 $ac_includes_default
4997 #include <$ac_header>
4999 rm -f conftest.$ac_objext
5000 if { (ac_try="$ac_compile"
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5006 (eval "$ac_compile") 2>conftest.er1
5008 grep -v '^ *+' conftest.er1 >conftest.err
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } && {
5013 test -z "$ac_c_werror_flag" ||
5014 test ! -s conftest.err
5015 } && test -s conftest.$ac_objext; then
5016 eval "$as_ac_Header=yes"
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5021 eval "$as_ac_Header=no"
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026 ac_res=`eval echo '${'$as_ac_Header'}'`
5027 { echo "$as_me:$LINENO: result: $ac_res" >&5
5028 echo "${ECHO_T}$ac_res" >&6; }
5029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5030 cat >>confdefs.h <<_ACEOF
5031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5040 for ac_header in dlfcn.h
5042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 ac_res=`eval echo '${'$as_ac_Header'}'`
5050 { echo "$as_me:$LINENO: result: $ac_res" >&5
5051 echo "${ECHO_T}$ac_res" >&6; }
5053 # Is the header compilable?
5054 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5056 cat >conftest.$ac_ext <<_ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h. */
5062 $ac_includes_default
5063 #include <$ac_header>
5065 rm -f conftest.$ac_objext
5066 if { (ac_try="$ac_compile"
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5072 (eval "$ac_compile") 2>conftest.er1
5074 grep -v '^ *+' conftest.er1 >conftest.err
5076 cat conftest.err >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } && {
5079 test -z "$ac_c_werror_flag" ||
5080 test ! -s conftest.err
5081 } && test -s conftest.$ac_objext; then
5082 ac_header_compiler=yes
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5087 ac_header_compiler=no
5090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5092 echo "${ECHO_T}$ac_header_compiler" >&6; }
5094 # Is the header present?
5095 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5097 cat >conftest.$ac_ext <<_ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 #include <$ac_header>
5105 if { (ac_try="$ac_cpp conftest.$ac_ext"
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5113 grep -v '^ *+' conftest.er1 >conftest.err
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null && {
5118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5119 test ! -s conftest.err
5121 ac_header_preproc=yes
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5126 ac_header_preproc=no
5129 rm -f conftest.err conftest.$ac_ext
5130 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5131 echo "${ECHO_T}$ac_header_preproc" >&6; }
5133 # So? What about this header?
5134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5140 ac_header_preproc=yes
5143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5156 ## ---------------------------------------- ##
5157 ## Report this to konn@users.sourceforge.jp ##
5158 ## ---------------------------------------- ##
5160 ) | sed "s/^/$as_me: WARNING: /" >&2
5163 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 eval "$as_ac_Header=\$ac_header_preproc"
5170 ac_res=`eval echo '${'$as_ac_Header'}'`
5171 { echo "$as_me:$LINENO: result: $ac_res" >&5
5172 echo "${ECHO_T}$ac_res" >&6; }
5175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5176 cat >>confdefs.h <<_ACEOF
5177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5185 ac_cpp='$CXXCPP $CPPFLAGS'
5186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5189 if test -z "$CXX"; then
5190 if test -n "$CCC"; then
5193 if test -n "$ac_tool_prefix"; then
5194 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5200 if test "${ac_cv_prog_CXX+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 if test -n "$CXX"; then
5204 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 if test -n "$CXX"; then
5225 { echo "$as_me:$LINENO: result: $CXX" >&5
5226 echo "${ECHO_T}$CXX" >&6; }
5228 { echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6; }
5233 test -n "$CXX" && break
5236 if test -z "$CXX"; then
5238 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5240 # Extract the first word of "$ac_prog", so it can be a program name with args.
5241 set dummy $ac_prog; ac_word=$2
5242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5244 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 if test -n "$ac_ct_CXX"; then
5248 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257 ac_cv_prog_ac_ct_CXX="$ac_prog"
5258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5268 if test -n "$ac_ct_CXX"; then
5269 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5270 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5272 { echo "$as_me:$LINENO: result: no" >&5
5273 echo "${ECHO_T}no" >&6; }
5277 test -n "$ac_ct_CXX" && break
5280 if test "x$ac_ct_CXX" = x; then
5283 case $cross_compiling:$ac_tool_warned in
5285 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5286 whose name does not start with the host triplet. If you think this
5287 configuration is useful to you, please write to autoconf@gnu.org." >&5
5288 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5289 whose name does not start with the host triplet. If you think this
5290 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5291 ac_tool_warned=yes ;;
5299 # Provide some information about the compiler.
5300 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5301 ac_compiler=`set X $ac_compile; echo $2`
5302 { (ac_try="$ac_compiler --version >&5"
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_compiler --version >&5") 2>&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }
5312 { (ac_try="$ac_compiler -v >&5"
5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315 *) ac_try_echo=$ac_try;;
5317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318 (eval "$ac_compiler -v >&5") 2>&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }
5322 { (ac_try="$ac_compiler -V >&5"
5324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5325 *) ac_try_echo=$ac_try;;
5327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5328 (eval "$ac_compiler -V >&5") 2>&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }
5333 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5334 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5335 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 cat >conftest.$ac_ext <<_ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5356 rm -f conftest.$ac_objext
5357 if { (ac_try="$ac_compile"
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_compile") 2>conftest.er1
5365 grep -v '^ *+' conftest.er1 >conftest.err
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } && {
5370 test -z "$ac_cxx_werror_flag" ||
5371 test ! -s conftest.err
5372 } && test -s conftest.$ac_objext; then
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5385 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5386 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5387 GXX=`test $ac_compiler_gnu = yes && echo yes`
5388 ac_test_CXXFLAGS=${CXXFLAGS+set}
5389 ac_save_CXXFLAGS=$CXXFLAGS
5390 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5391 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5392 if test "${ac_cv_prog_cxx_g+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5396 ac_cxx_werror_flag=yes
5399 cat >conftest.$ac_ext <<_ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5414 rm -f conftest.$ac_objext
5415 if { (ac_try="$ac_compile"
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_compile") 2>conftest.er1
5423 grep -v '^ *+' conftest.er1 >conftest.err
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } && {
5428 test -z "$ac_cxx_werror_flag" ||
5429 test ! -s conftest.err
5430 } && test -s conftest.$ac_objext; then
5431 ac_cv_prog_cxx_g=yes
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5437 cat >conftest.$ac_ext <<_ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5452 rm -f conftest.$ac_objext
5453 if { (ac_try="$ac_compile"
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459 (eval "$ac_compile") 2>conftest.er1
5461 grep -v '^ *+' conftest.er1 >conftest.err
5463 cat conftest.err >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } && {
5466 test -z "$ac_cxx_werror_flag" ||
5467 test ! -s conftest.err
5468 } && test -s conftest.$ac_objext; then
5471 echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5474 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5476 cat >conftest.$ac_ext <<_ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5491 rm -f conftest.$ac_objext
5492 if { (ac_try="$ac_compile"
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498 (eval "$ac_compile") 2>conftest.er1
5500 grep -v '^ *+' conftest.er1 >conftest.err
5502 cat conftest.err >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } && {
5505 test -z "$ac_cxx_werror_flag" ||
5506 test ! -s conftest.err
5507 } && test -s conftest.$ac_objext; then
5508 ac_cv_prog_cxx_g=yes
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5525 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5526 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5527 if test "$ac_test_CXXFLAGS" = set; then
5528 CXXFLAGS=$ac_save_CXXFLAGS
5529 elif test $ac_cv_prog_cxx_g = yes; then
5530 if test "$GXX" = yes; then
5536 if test "$GXX" = yes; then
5543 ac_cpp='$CXXCPP $CPPFLAGS'
5544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5548 depcc="$CXX" am_compiler_list=
5550 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5551 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5552 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5556 # We make a subdir and do the tests there. Otherwise we can end up
5557 # making bogus files that we don't know about and never remove. For
5558 # instance it was reported that on HP-UX the gcc test will end up
5559 # making a dummy file named `D' -- because `-MD' means `put the output
5562 # Copy depcomp to subdir because otherwise we won't find it if we're
5563 # using a relative directory.
5564 cp "$am_depcomp" conftest.dir
5566 # We will build objects and dependencies in a subdirectory because
5567 # it helps to detect inapplicable dependency modes. For instance
5568 # both Tru64's cc and ICC support -MD to output dependencies as a
5569 # side effect of compilation, but ICC will put the dependencies in
5570 # the current directory while Tru64 will put them in the object
5574 am_cv_CXX_dependencies_compiler_type=none
5575 if test "$am_compiler_list" = ""; then
5576 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5578 for depmode in $am_compiler_list; do
5579 # Setup a source with many dependencies, because some compilers
5580 # like to wrap large dependency lists on column 80 (with \), and
5581 # we should not choose a depcomp mode which is confused by this.
5583 # We need to recreate these files for each test, as the compiler may
5584 # overwrite some of them when testing with obscure command lines.
5585 # This happens at least with the AIX C compiler.
5587 for i in 1 2 3 4 5 6; do
5588 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5589 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5590 # Solaris 8's {/usr,}/bin/sh.
5591 touch sub/conftst$i.h
5593 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5597 # after this tag, mechanisms are not by side-effect, so they'll
5598 # only be used when explicitly requested
5599 if test "x$enable_dependency_tracking" = xyes; then
5607 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5608 # mode. It turns out that the SunPro C++ compiler does not properly
5609 # handle `-M -o', and we need to detect this.
5610 if depmode=$depmode \
5611 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5612 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5613 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5614 >/dev/null 2>conftest.err &&
5615 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5616 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5617 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5618 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5619 # icc doesn't choke on unknown options, it will just issue warnings
5620 # or remarks (even with -Werror). So we grep stderr for any message
5621 # that says an option was ignored or not supported.
5622 # When given -MP, icc 7.0 and 7.1 complain thusly:
5623 # icc: Command line warning: ignoring option '-M'; no argument required
5624 # The diagnosis changed in icc 8.0:
5625 # icc: Command line remark: option '-MP' not supported
5626 if (grep 'ignoring option' conftest.err ||
5627 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5628 am_cv_CXX_dependencies_compiler_type=$depmode
5637 am_cv_CXX_dependencies_compiler_type=none
5641 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5642 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5643 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5646 test "x$enable_dependency_tracking" != xno \
5647 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5648 am__fastdepCXX_TRUE=
5649 am__fastdepCXX_FALSE='#'
5651 am__fastdepCXX_TRUE='#'
5652 am__fastdepCXX_FALSE=
5658 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5659 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5660 (test "X$CXX" != "Xg++"))) ; then
5662 ac_cpp='$CXXCPP $CPPFLAGS'
5663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5666 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5667 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5668 if test -z "$CXXCPP"; then
5669 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 # Double quotes because CXXCPP needs to be expanded
5673 for CXXCPP in "$CXX -E" "/lib/cpp"
5676 for ac_cxx_preproc_warn_flag in '' yes
5678 # Use a header file that comes with gcc, so configuring glibc
5679 # with a fresh cross-compiler works.
5680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5681 # <limits.h> exists even on freestanding compilers.
5682 # On the NeXT, cc -E runs the code through the compiler's parser,
5683 # not just through cpp. "Syntax error" is here to catch this case.
5684 cat >conftest.$ac_ext <<_ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5691 # include <limits.h>
5693 # include <assert.h>
5697 if { (ac_try="$ac_cpp conftest.$ac_ext"
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } >/dev/null && {
5710 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5711 test ! -s conftest.err
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5718 # Broken: fails on valid input.
5722 rm -f conftest.err conftest.$ac_ext
5724 # OK, works on sane cases. Now check whether nonexistent headers
5725 # can be detected and how.
5726 cat >conftest.$ac_ext <<_ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5732 #include <ac_nonexistent.h>
5734 if { (ac_try="$ac_cpp conftest.$ac_ext"
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5742 grep -v '^ *+' conftest.er1 >conftest.err
5744 cat conftest.err >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } >/dev/null && {
5747 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5748 test ! -s conftest.err
5750 # Broken: success on invalid input.
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5756 # Passes both tests.
5761 rm -f conftest.err conftest.$ac_ext
5764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5765 rm -f conftest.err conftest.$ac_ext
5766 if $ac_preproc_ok; then
5771 ac_cv_prog_CXXCPP=$CXXCPP
5774 CXXCPP=$ac_cv_prog_CXXCPP
5776 ac_cv_prog_CXXCPP=$CXXCPP
5778 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5779 echo "${ECHO_T}$CXXCPP" >&6; }
5781 for ac_cxx_preproc_warn_flag in '' yes
5783 # Use a header file that comes with gcc, so configuring glibc
5784 # with a fresh cross-compiler works.
5785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5786 # <limits.h> exists even on freestanding compilers.
5787 # On the NeXT, cc -E runs the code through the compiler's parser,
5788 # not just through cpp. "Syntax error" is here to catch this case.
5789 cat >conftest.$ac_ext <<_ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5796 # include <limits.h>
5798 # include <assert.h>
5802 if { (ac_try="$ac_cpp conftest.$ac_ext"
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5810 grep -v '^ *+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } >/dev/null && {
5815 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5816 test ! -s conftest.err
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5823 # Broken: fails on valid input.
5827 rm -f conftest.err conftest.$ac_ext
5829 # OK, works on sane cases. Now check whether nonexistent headers
5830 # can be detected and how.
5831 cat >conftest.$ac_ext <<_ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5837 #include <ac_nonexistent.h>
5839 if { (ac_try="$ac_cpp conftest.$ac_ext"
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5847 grep -v '^ *+' conftest.er1 >conftest.err
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } >/dev/null && {
5852 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5853 test ! -s conftest.err
5855 # Broken: success on invalid input.
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5861 # Passes both tests.
5866 rm -f conftest.err conftest.$ac_ext
5869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5870 rm -f conftest.err conftest.$ac_ext
5871 if $ac_preproc_ok; then
5874 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5875 See \`config.log' for more details." >&5
5876 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5877 See \`config.log' for more details." >&2;}
5878 { (exit 1); exit 1; }; }
5882 ac_cpp='$CXXCPP $CPPFLAGS'
5883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5891 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5892 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5894 if test -n "$ac_tool_prefix"; then
5895 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
5897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5901 if test "${ac_cv_prog_F77+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 if test -n "$F77"; then
5905 ac_cv_prog_F77="$F77" # Let the user override the test.
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5914 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 if test -n "$F77"; then
5926 { echo "$as_me:$LINENO: result: $F77" >&5
5927 echo "${ECHO_T}$F77" >&6; }
5929 { echo "$as_me:$LINENO: result: no" >&5
5930 echo "${ECHO_T}no" >&6; }
5934 test -n "$F77" && break
5937 if test -z "$F77"; then
5939 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
5941 # Extract the first word of "$ac_prog", so it can be a program name with args.
5942 set dummy $ac_prog; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 if test -n "$ac_ct_F77"; then
5949 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958 ac_cv_prog_ac_ct_F77="$ac_prog"
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5969 if test -n "$ac_ct_F77"; then
5970 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5971 echo "${ECHO_T}$ac_ct_F77" >&6; }
5973 { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5978 test -n "$ac_ct_F77" && break
5981 if test "x$ac_ct_F77" = x; then
5984 case $cross_compiling:$ac_tool_warned in
5986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5987 whose name does not start with the host triplet. If you think this
5988 configuration is useful to you, please write to autoconf@gnu.org." >&5
5989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5990 whose name does not start with the host triplet. If you think this
5991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5992 ac_tool_warned=yes ;;
5999 # Provide some information about the compiler.
6000 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6001 ac_compiler=`set X $ac_compile; echo $2`
6002 { (ac_try="$ac_compiler --version >&5"
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compiler --version >&5") 2>&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }
6012 { (ac_try="$ac_compiler -v >&5"
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_compiler -v >&5") 2>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }
6022 { (ac_try="$ac_compiler -V >&5"
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_compiler -V >&5") 2>&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }
6034 # If we don't use `.F' as extension, the preprocessor is not run on the
6035 # input file. (Note that this only needs to work for GNU compilers.)
6038 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6039 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6040 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 cat >conftest.$ac_ext <<_ACEOF
6051 rm -f conftest.$ac_objext
6052 if { (ac_try="$ac_compile"
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_compile") 2>conftest.er1
6060 grep -v '^ *+' conftest.er1 >conftest.err
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } && {
6065 test -z "$ac_f77_werror_flag" ||
6066 test ! -s conftest.err
6067 } && test -s conftest.$ac_objext; then
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6080 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6081 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6083 ac_test_FFLAGS=${FFLAGS+set}
6084 ac_save_FFLAGS=$FFLAGS
6086 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6087 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6088 if test "${ac_cv_prog_f77_g+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 cat >conftest.$ac_ext <<_ACEOF
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104 (eval "$ac_compile") 2>conftest.er1
6106 grep -v '^ *+' conftest.er1 >conftest.err
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } && {
6111 test -z "$ac_f77_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.$ac_objext; then
6114 ac_cv_prog_f77_g=yes
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6126 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6127 if test "$ac_test_FFLAGS" = set; then
6128 FFLAGS=$ac_save_FFLAGS
6129 elif test $ac_cv_prog_f77_g = yes; then
6130 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6136 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6143 G77=`test $ac_compiler_gnu = yes && echo yes`
6145 ac_cpp='$CPP $CPPFLAGS'
6146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6152 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6153 # find the maximum length of command line arguments
6154 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6155 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6156 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 # On DJGPP, this test can blow up pretty badly due to problems in libc
6165 # (any single argument exceeding 2000 bytes causes a buffer overrun
6166 # during glob expansion). Even if it were fixed, the result of this
6167 # check would be larger than it should be.
6168 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6172 # Under GNU Hurd, this test is not required because there is
6173 # no limit to the length of command line arguments.
6174 # Libtool will interpret -1 as no limit whatsoever
6175 lt_cv_sys_max_cmd_len=-1;
6179 # On Win9x/ME, this test blows up -- it succeeds, but takes
6180 # about 5 minutes as the teststring grows exponentially.
6181 # Worse, since 9x/ME are not pre-emptively multitasking,
6182 # you end up with a "frozen" computer, even though with patience
6183 # the test eventually succeeds (with a max line length of 256k).
6184 # Instead, let's just punt: use the minimum linelength reported by
6185 # all of the supported platforms: 8192 (on NT/2K/XP).
6186 lt_cv_sys_max_cmd_len=8192;
6190 # On AmigaOS with pdksh, this test takes hours, literally.
6191 # So we just punt and use a minimum line length of 8192.
6192 lt_cv_sys_max_cmd_len=8192;
6195 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6196 # This has been around since 386BSD, at least. Likely further.
6197 if test -x /sbin/sysctl; then
6198 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6199 elif test -x /usr/sbin/sysctl; then
6200 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6202 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6204 # And add a safety zone
6205 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6210 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6211 lt_cv_sys_max_cmd_len=196608
6215 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6216 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6217 # nice to cause kernel panics so lets avoid the loop below.
6218 # First set a reasonable default.
6219 lt_cv_sys_max_cmd_len=16384
6221 if test -x /sbin/sysconfig; then
6222 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6223 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6228 lt_cv_sys_max_cmd_len=102400
6230 sysv5* | sco5v6* | sysv4.2uw2*)
6231 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6232 if test -n "$kargmax"; then
6233 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6235 lt_cv_sys_max_cmd_len=32768
6239 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6240 if test -n "$lt_cv_sys_max_cmd_len"; then
6241 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6244 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6245 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6246 = "XX$teststring") >/dev/null 2>&1 &&
6247 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6248 lt_cv_sys_max_cmd_len=$new_result &&
6249 test $i != 17 # 1/2 MB should be enough
6252 teststring=$teststring$teststring
6255 # Add a significant safety factor because C++ compilers can tack on massive
6256 # amounts of additional arguments before passing them to the linker.
6257 # It appears as though 1/2 is a usable value.
6258 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6265 if test -n $lt_cv_sys_max_cmd_len ; then
6266 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6267 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6269 { echo "$as_me:$LINENO: result: none" >&5
6270 echo "${ECHO_T}none" >&6; }
6277 # Check for command to grab the raw symbol name followed by C symbol from nm.
6278 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6279 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6280 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 # These are sane defaults that work on at least a few old systems.
6285 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6287 # Character class describing NM global symbol codes.
6288 symcode='[BCDEGRST]'
6290 # Regexp to match symbols that can be accessed directly from C.
6291 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6293 # Transform an extracted symbol line into a proper C declaration
6294 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6296 # Transform an extracted symbol line into symbol name and symbol address
6297 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'"
6299 # Define system-specific variables.
6304 cygwin* | mingw* | pw32*)
6305 symcode='[ABCDGISTW]'
6307 hpux*) # Its linker distinguishes data from code symbols
6308 if test "$host_cpu" = ia64; then
6309 symcode='[ABCDEGRST]'
6311 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6312 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'"
6314 linux* | k*bsd*-gnu)
6315 if test "$host_cpu" = ia64; then
6316 symcode='[ABCDGIRSTW]'
6317 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6318 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'"
6322 symcode='[BCDEGRST]'
6325 symcode='[BCDEGQRST]'
6336 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6344 # Handle CRLF in mingw tool chain
6348 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6352 # If we're using GNU nm, then use its standard symbol codes.
6353 case `$NM -V 2>&1` in
6354 *GNU* | *'with BFD'*)
6355 symcode='[ABCDGIRSTW]' ;;
6358 # Try without a prefix undercore, then with it.
6359 for ac_symprfx in "" "_"; do
6361 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6362 symxfrm="\\1 $ac_symprfx\\2 \\2"
6364 # Write the raw and C identifiers.
6365 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6367 # Check to see that the pipe works correctly.
6371 cat > conftest.$ac_ext <<EOF
6376 void nm_test_func(){}
6380 int main(){nm_test_var='a';nm_test_func();return(0);}
6383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 (eval $ac_compile) 2>&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; then
6388 # Now try to grab the symbols.
6390 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6391 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } && test -s "$nlist"; then
6395 # Try sorting and uniquifying the output.
6396 if sort "$nlist" | uniq > "$nlist"T; then
6397 mv -f "$nlist"T "$nlist"
6402 # Make sure that we snagged all the symbols we need.
6403 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6404 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6405 cat <<EOF > conftest.$ac_ext
6411 # Now generate the symbol file.
6412 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6414 cat <<EOF >> conftest.$ac_ext
6415 #if defined (__STDC__) && __STDC__
6416 # define lt_ptr_t void *
6418 # define lt_ptr_t char *
6422 /* The mapping between symbol names and symbols. */
6427 lt_preloaded_symbols[] =
6430 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6431 cat <<\EOF >> conftest.$ac_ext
6439 # Now try linking the two files.
6440 mv conftest.$ac_objext conftstm.$ac_objext
6441 lt_save_LIBS="$LIBS"
6442 lt_save_CFLAGS="$CFLAGS"
6443 LIBS="conftstm.$ac_objext"
6444 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6446 (eval $ac_link) 2>&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6452 LIBS="$lt_save_LIBS"
6453 CFLAGS="$lt_save_CFLAGS"
6455 echo "cannot find nm_test_func in $nlist" >&5
6458 echo "cannot find nm_test_var in $nlist" >&5
6461 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6464 echo "$progname: failed program was:" >&5
6465 cat conftest.$ac_ext >&5
6467 rm -rf conftest* conftst*
6469 # Do not use the global_symbol_pipe unless it works.
6470 if test "$pipe_works" = yes; then
6473 lt_cv_sys_global_symbol_pipe=
6479 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6480 lt_cv_sys_global_symbol_to_cdecl=
6482 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6483 { echo "$as_me:$LINENO: result: failed" >&5
6484 echo "${ECHO_T}failed" >&6; }
6486 { echo "$as_me:$LINENO: result: ok" >&5
6487 echo "${ECHO_T}ok" >&6; }
6490 { echo "$as_me:$LINENO: checking for objdir" >&5
6491 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6492 if test "${lt_cv_objdir+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 rm -f .libs 2>/dev/null
6496 mkdir .libs 2>/dev/null
6497 if test -d .libs; then
6500 # MS-DOS does not allow filenames that begin with a dot.
6503 rmdir .libs 2>/dev/null
6505 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6506 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6507 objdir=$lt_cv_objdir
6515 # AIX sometimes has problems with the GCC collect2 program. For some
6516 # reason, if we set the COLLECT_NAMES environment variable, the problems
6517 # vanish in a puff of smoke.
6518 if test "X${COLLECT_NAMES+set}" != Xset; then
6520 export COLLECT_NAMES
6525 # Sed substitution that helps us do robust quoting. It backslashifies
6526 # metacharacters that are still active within double-quoted strings.
6527 Xsed='sed -e 1s/^X//'
6528 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6530 # Same as above, but do not quote variable references.
6531 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6533 # Sed substitution to delay expansion of an escaped shell variable in a
6534 # double_quote_subst'ed string.
6535 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6537 # Sed substitution to avoid accidental globbing in evaled expressions
6538 no_glob_subst='s/\*/\\\*/g'
6544 default_ofile=libtool
6545 can_build_shared=yes
6547 # All known linkers require a `.a' archive for static linking (except MSVC,
6548 # which needs '.lib').
6550 ltmain="$ac_aux_dir/ltmain.sh"
6551 ofile="$default_ofile"
6552 with_gnu_ld="$lt_cv_prog_gnu_ld"
6554 if test -n "$ac_tool_prefix"; then
6555 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6556 set dummy ${ac_tool_prefix}ar; ac_word=$2
6557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559 if test "${ac_cv_prog_AR+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 if test -n "$AR"; then
6563 ac_cv_prog_AR="$AR" # Let the user override the test.
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_prog_AR="${ac_tool_prefix}ar"
6573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 if test -n "$AR"; then
6584 { echo "$as_me:$LINENO: result: $AR" >&5
6585 echo "${ECHO_T}$AR" >&6; }
6587 { echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6; }
6593 if test -z "$ac_cv_prog_AR"; then
6595 # Extract the first word of "ar", so it can be a program name with args.
6596 set dummy ar; ac_word=$2
6597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 if test -n "$ac_ct_AR"; then
6603 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_ac_ct_AR="ar"
6613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6623 if test -n "$ac_ct_AR"; then
6624 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6625 echo "${ECHO_T}$ac_ct_AR" >&6; }
6627 { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6631 if test "x$ac_ct_AR" = x; then
6634 case $cross_compiling:$ac_tool_warned in
6636 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6637 whose name does not start with the host triplet. If you think this
6638 configuration is useful to you, please write to autoconf@gnu.org." >&5
6639 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6640 whose name does not start with the host triplet. If you think this
6641 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6642 ac_tool_warned=yes ;;
6650 if test -n "$ac_tool_prefix"; then
6651 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6652 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6655 if test "${ac_cv_prog_RANLIB+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 if test -n "$RANLIB"; then
6659 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6668 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 RANLIB=$ac_cv_prog_RANLIB
6679 if test -n "$RANLIB"; then
6680 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6681 echo "${ECHO_T}$RANLIB" >&6; }
6683 { echo "$as_me:$LINENO: result: no" >&5
6684 echo "${ECHO_T}no" >&6; }
6689 if test -z "$ac_cv_prog_RANLIB"; then
6690 ac_ct_RANLIB=$RANLIB
6691 # Extract the first word of "ranlib", so it can be a program name with args.
6692 set dummy ranlib; ac_word=$2
6693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6695 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 if test -n "$ac_ct_RANLIB"; then
6699 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708 ac_cv_prog_ac_ct_RANLIB="ranlib"
6709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6719 if test -n "$ac_ct_RANLIB"; then
6720 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6721 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6723 { echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6; }
6727 if test "x$ac_ct_RANLIB" = x; then
6730 case $cross_compiling:$ac_tool_warned in
6732 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6733 whose name does not start with the host triplet. If you think this
6734 configuration is useful to you, please write to autoconf@gnu.org." >&5
6735 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6736 whose name does not start with the host triplet. If you think this
6737 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6738 ac_tool_warned=yes ;;
6740 RANLIB=$ac_ct_RANLIB
6743 RANLIB="$ac_cv_prog_RANLIB"
6746 if test -n "$ac_tool_prefix"; then
6747 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6748 set dummy ${ac_tool_prefix}strip; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_prog_STRIP+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 if test -n "$STRIP"; then
6755 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 STRIP=$ac_cv_prog_STRIP
6775 if test -n "$STRIP"; then
6776 { echo "$as_me:$LINENO: result: $STRIP" >&5
6777 echo "${ECHO_T}$STRIP" >&6; }
6779 { echo "$as_me:$LINENO: result: no" >&5
6780 echo "${ECHO_T}no" >&6; }
6785 if test -z "$ac_cv_prog_STRIP"; then
6787 # Extract the first word of "strip", so it can be a program name with args.
6788 set dummy strip; ac_word=$2
6789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6791 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 if test -n "$ac_ct_STRIP"; then
6795 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_prog_ac_ct_STRIP="strip"
6805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6815 if test -n "$ac_ct_STRIP"; then
6816 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6817 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6819 { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6823 if test "x$ac_ct_STRIP" = x; then
6826 case $cross_compiling:$ac_tool_warned in
6828 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6829 whose name does not start with the host triplet. If you think this
6830 configuration is useful to you, please write to autoconf@gnu.org." >&5
6831 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6832 whose name does not start with the host triplet. If you think this
6833 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6834 ac_tool_warned=yes ;;
6839 STRIP="$ac_cv_prog_STRIP"
6844 old_CFLAGS="$CFLAGS"
6846 # Set sane defaults for various variables
6847 test -z "$AR" && AR=ar
6848 test -z "$AR_FLAGS" && AR_FLAGS=cru
6849 test -z "$AS" && AS=as
6850 test -z "$CC" && CC=cc
6851 test -z "$LTCC" && LTCC=$CC
6852 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6853 test -z "$DLLTOOL" && DLLTOOL=dlltool
6854 test -z "$LD" && LD=ld
6855 test -z "$LN_S" && LN_S="ln -s"
6856 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6857 test -z "$NM" && NM=nm
6858 test -z "$SED" && SED=sed
6859 test -z "$OBJDUMP" && OBJDUMP=objdump
6860 test -z "$RANLIB" && RANLIB=:
6861 test -z "$STRIP" && STRIP=:
6862 test -z "$ac_objext" && ac_objext=o
6864 # Determine commands to create old-style static archives.
6865 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6866 old_postinstall_cmds='chmod 644 $oldlib'
6867 old_postuninstall_cmds=
6869 if test -n "$RANLIB"; then
6872 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6875 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6878 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6881 for cc_temp in $compiler""; do
6883 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6884 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6889 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6892 # Only perform the check for file, if the check method requires it
6893 case $deplibs_check_method in
6895 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6896 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6897 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6898 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6906 lt_save_MAGIC_CMD="$MAGIC_CMD"
6907 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6908 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6909 for ac_dir in $ac_dummy; do
6911 test -z "$ac_dir" && ac_dir=.
6912 if test -f $ac_dir/${ac_tool_prefix}file; then
6913 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6914 if test -n "$file_magic_test_file"; then
6915 case $deplibs_check_method in
6917 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6918 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6919 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6920 $EGREP "$file_magic_regex" > /dev/null; then
6925 *** Warning: the command libtool uses to detect shared libraries,
6926 *** $file_magic_cmd, produces output that libtool cannot recognize.
6927 *** The result is that libtool may fail to recognize shared libraries
6928 *** as such. This will affect the creation of libtool libraries that
6929 *** depend on shared libraries, but programs linked with such libtool
6930 *** libraries will work regardless of this problem. Nevertheless, you
6931 *** may want to report the problem to your system manager and/or to
6932 *** bug-libtool@gnu.org
6942 MAGIC_CMD="$lt_save_MAGIC_CMD"
6947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6948 if test -n "$MAGIC_CMD"; then
6949 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6950 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6952 { echo "$as_me:$LINENO: result: no" >&5
6953 echo "${ECHO_T}no" >&6; }
6956 if test -z "$lt_cv_path_MAGIC_CMD"; then
6957 if test -n "$ac_tool_prefix"; then
6958 { echo "$as_me:$LINENO: checking for file" >&5
6959 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6960 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6968 lt_save_MAGIC_CMD="$MAGIC_CMD"
6969 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6970 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6971 for ac_dir in $ac_dummy; do
6973 test -z "$ac_dir" && ac_dir=.
6974 if test -f $ac_dir/file; then
6975 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6976 if test -n "$file_magic_test_file"; then
6977 case $deplibs_check_method in
6979 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6981 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6982 $EGREP "$file_magic_regex" > /dev/null; then
6987 *** Warning: the command libtool uses to detect shared libraries,
6988 *** $file_magic_cmd, produces output that libtool cannot recognize.
6989 *** The result is that libtool may fail to recognize shared libraries
6990 *** as such. This will affect the creation of libtool libraries that
6991 *** depend on shared libraries, but programs linked with such libtool
6992 *** libraries will work regardless of this problem. Nevertheless, you
6993 *** may want to report the problem to your system manager and/or to
6994 *** bug-libtool@gnu.org
7004 MAGIC_CMD="$lt_save_MAGIC_CMD"
7009 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7010 if test -n "$MAGIC_CMD"; then
7011 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7012 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7014 { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7029 rhapsody* | darwin*)
7030 if test -n "$ac_tool_prefix"; then
7031 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7032 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 if test -n "$DSYMUTIL"; then
7039 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7059 if test -n "$DSYMUTIL"; then
7060 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7061 echo "${ECHO_T}$DSYMUTIL" >&6; }
7063 { echo "$as_me:$LINENO: result: no" >&5
7064 echo "${ECHO_T}no" >&6; }
7069 if test -z "$ac_cv_prog_DSYMUTIL"; then
7070 ac_ct_DSYMUTIL=$DSYMUTIL
7071 # Extract the first word of "dsymutil", so it can be a program name with args.
7072 set dummy dsymutil; ac_word=$2
7073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7075 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 if test -n "$ac_ct_DSYMUTIL"; then
7079 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7099 if test -n "$ac_ct_DSYMUTIL"; then
7100 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7101 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7103 { echo "$as_me:$LINENO: result: no" >&5
7104 echo "${ECHO_T}no" >&6; }
7107 if test "x$ac_ct_DSYMUTIL" = x; then
7110 case $cross_compiling:$ac_tool_warned in
7112 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7113 whose name does not start with the host triplet. If you think this
7114 configuration is useful to you, please write to autoconf@gnu.org." >&5
7115 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7116 whose name does not start with the host triplet. If you think this
7117 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7118 ac_tool_warned=yes ;;
7120 DSYMUTIL=$ac_ct_DSYMUTIL
7123 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7126 if test -n "$ac_tool_prefix"; then
7127 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7128 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7131 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 if test -n "$NMEDIT"; then
7135 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7144 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 NMEDIT=$ac_cv_prog_NMEDIT
7155 if test -n "$NMEDIT"; then
7156 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7157 echo "${ECHO_T}$NMEDIT" >&6; }
7159 { echo "$as_me:$LINENO: result: no" >&5
7160 echo "${ECHO_T}no" >&6; }
7165 if test -z "$ac_cv_prog_NMEDIT"; then
7166 ac_ct_NMEDIT=$NMEDIT
7167 # Extract the first word of "nmedit", so it can be a program name with args.
7168 set dummy nmedit; ac_word=$2
7169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 if test -n "$ac_ct_NMEDIT"; then
7175 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7195 if test -n "$ac_ct_NMEDIT"; then
7196 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7197 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7199 { echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6; }
7203 if test "x$ac_ct_NMEDIT" = x; then
7206 case $cross_compiling:$ac_tool_warned in
7208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7209 whose name does not start with the host triplet. If you think this
7210 configuration is useful to you, please write to autoconf@gnu.org." >&5
7211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7212 whose name does not start with the host triplet. If you think this
7213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7214 ac_tool_warned=yes ;;
7216 NMEDIT=$ac_ct_NMEDIT
7219 NMEDIT="$ac_cv_prog_NMEDIT"
7223 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7224 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7225 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 lt_cv_apple_cc_single_mod=no
7229 if test -z "${LT_MULTI_MODULE}"; then
7230 # By default we will add the -single_module flag. You can override
7231 # by either setting the environment variable LT_MULTI_MODULE
7232 # non-empty at configure time, or by adding -multi_module to the
7234 echo "int foo(void){return 1;}" > conftest.c
7235 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7236 -dynamiclib ${wl}-single_module conftest.c
7237 if test -f libconftest.dylib; then
7238 lt_cv_apple_cc_single_mod=yes
7239 rm -rf libconftest.dylib*
7244 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7245 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7246 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7247 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7248 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 lt_cv_ld_exported_symbols_list=no
7252 save_LDFLAGS=$LDFLAGS
7253 echo "_main" > conftest.sym
7254 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7255 cat >conftest.$ac_ext <<_ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7270 rm -f conftest.$ac_objext conftest$ac_exeext
7271 if { (ac_try="$ac_link"
7273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274 *) ac_try_echo=$ac_try;;
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277 (eval "$ac_link") 2>conftest.er1
7279 grep -v '^ *+' conftest.er1 >conftest.err
7281 cat conftest.err >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } && {
7284 test -z "$ac_c_werror_flag" ||
7285 test ! -s conftest.err
7286 } && test -s conftest$ac_exeext &&
7287 $as_test_x conftest$ac_exeext; then
7288 lt_cv_ld_exported_symbols_list=yes
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7293 lt_cv_ld_exported_symbols_list=no
7296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7297 conftest$ac_exeext conftest.$ac_ext
7298 LDFLAGS="$save_LDFLAGS"
7301 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7302 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7304 rhapsody* | darwin1.[0123])
7305 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7307 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7309 # if running on 10.5 or later, the deployment target defaults
7310 # to the OS version, if on x86, and 10.4, the deployment
7311 # target defaults to 10.4. Don't you love it?
7312 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7313 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7314 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7316 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7318 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7322 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7323 _lt_dar_single_mod='$single_module'
7325 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7326 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7328 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7330 if test "$DSYMUTIL" != ":"; then
7331 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7342 # Check whether --enable-libtool-lock was given.
7343 if test "${enable_libtool_lock+set}" = set; then
7344 enableval=$enable_libtool_lock;
7347 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7350 # Check whether --with-pic was given.
7351 if test "${with_pic+set}" = set; then
7352 withval=$with_pic; pic_mode="$withval"
7357 test -z "$pic_mode" && pic_mode=default
7359 # Use C for the default configuration in the libtool script
7363 ac_cpp='$CPP $CPPFLAGS'
7364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7369 # Source file extension for C test sources.
7372 # Object file extension for compiled C test sources.
7376 # Code to be used in simple compile tests
7377 lt_simple_compile_test_code="int some_variable = 0;"
7379 # Code to be used in simple link tests
7380 lt_simple_link_test_code='int main(){return(0);}'
7383 # If no C compiler was specified, use CC.
7386 # If no C compiler flags were specified, use CFLAGS.
7387 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7389 # Allow CC to be a program name with arguments.
7393 # save warnings/boilerplate of simple test code
7394 ac_outfile=conftest.$ac_objext
7395 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7396 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7397 _lt_compiler_boilerplate=`cat conftest.err`
7400 ac_outfile=conftest.$ac_objext
7401 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7402 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7403 _lt_linker_boilerplate=`cat conftest.err`
7408 lt_prog_compiler_no_builtin_flag=
7410 if test "$GCC" = yes; then
7411 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7414 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7415 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7416 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 lt_cv_prog_compiler_rtti_exceptions=no
7420 ac_outfile=conftest.$ac_objext
7421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7422 lt_compiler_flag="-fno-rtti -fno-exceptions"
7423 # Insert the option either (1) after the last *FLAGS variable, or
7424 # (2) before a word containing "conftest.", or (3) at the end.
7425 # Note that $ac_compile itself does not contain backslashes and begins
7426 # with a dollar sign (not a hyphen), so the echo should work correctly.
7427 # The option is referenced via a variable to avoid confusing sed.
7428 lt_compile=`echo "$ac_compile" | $SED \
7429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7431 -e 's:$: $lt_compiler_flag:'`
7432 (eval echo "\"\$as_me:7432: $lt_compile\"" >&5)
7433 (eval "$lt_compile" 2>conftest.err)
7435 cat conftest.err >&5
7436 echo "$as_me:7436: \$? = $ac_status" >&5
7437 if (exit $ac_status) && test -s "$ac_outfile"; then
7438 # The compiler can only warn and ignore the option if not recognized
7439 # So say no if there are warnings other than the usual output.
7440 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7443 lt_cv_prog_compiler_rtti_exceptions=yes
7449 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7450 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7452 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7453 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7460 lt_prog_compiler_wl=
7461 lt_prog_compiler_pic=
7462 lt_prog_compiler_static=
7464 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7465 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7467 if test "$GCC" = yes; then
7468 lt_prog_compiler_wl='-Wl,'
7469 lt_prog_compiler_static='-static'
7473 # All AIX code is PIC.
7474 if test "$host_cpu" = ia64; then
7475 # AIX 5 now supports IA64 processor
7476 lt_prog_compiler_static='-Bstatic'
7481 # FIXME: we need at least 68020 code to build shared libraries, but
7482 # adding the `-m68020' flag to GCC prevents building anything better,
7484 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7487 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7488 # PIC is the default for these OSes.
7491 mingw* | cygwin* | pw32* | os2*)
7492 # This hack is so that the source file can tell whether it is being
7493 # built for inclusion in a dll (and should export symbols for example).
7494 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7495 # (--disable-auto-import) libraries
7496 lt_prog_compiler_pic='-DDLL_EXPORT'
7499 darwin* | rhapsody*)
7500 # PIC is the default on this platform
7501 # Common symbols not allowed in MH_DYLIB files
7502 lt_prog_compiler_pic='-fno-common'
7506 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7507 # Instead, we relocate shared libraries at runtime.
7511 # Just because we use GCC doesn't mean we suddenly get shared libraries
7512 # on systems that don't support them.
7513 lt_prog_compiler_can_build_shared=no
7518 if test -d /usr/nec; then
7519 lt_prog_compiler_pic=-Kconform_pic
7524 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7531 lt_prog_compiler_pic='-fPIC'
7537 lt_prog_compiler_pic='-fPIC'
7541 # PORTME Check for flag to pass linker flags through the system compiler.
7544 lt_prog_compiler_wl='-Wl,'
7545 if test "$host_cpu" = ia64; then
7546 # AIX 5 now supports IA64 processor
7547 lt_prog_compiler_static='-Bstatic'
7549 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7553 # PIC is the default on this platform
7554 # Common symbols not allowed in MH_DYLIB files
7555 case $cc_basename in
7557 lt_prog_compiler_pic='-qnocommon'
7558 lt_prog_compiler_wl='-Wl,'
7563 mingw* | cygwin* | pw32* | os2*)
7564 # This hack is so that the source file can tell whether it is being
7565 # built for inclusion in a dll (and should export symbols for example).
7566 lt_prog_compiler_pic='-DDLL_EXPORT'
7569 hpux9* | hpux10* | hpux11*)
7570 lt_prog_compiler_wl='-Wl,'
7571 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7578 lt_prog_compiler_pic='+Z'
7581 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7582 lt_prog_compiler_static='${wl}-a ${wl}archive'
7585 irix5* | irix6* | nonstopux*)
7586 lt_prog_compiler_wl='-Wl,'
7587 # PIC (with -KPIC) is the default.
7588 lt_prog_compiler_static='-non_shared'
7592 lt_prog_compiler_pic='-KPIC'
7593 lt_prog_compiler_static='-Bstatic'
7596 linux* | k*bsd*-gnu)
7597 case $cc_basename in
7599 lt_prog_compiler_wl='-Wl,'
7600 lt_prog_compiler_pic='-KPIC'
7601 lt_prog_compiler_static='-static'
7603 pgcc* | pgf77* | pgf90* | pgf95*)
7604 # Portland Group compilers (*not* the Pentium gcc compiler,
7605 # which looks to be a dead project)
7606 lt_prog_compiler_wl='-Wl,'
7607 lt_prog_compiler_pic='-fpic'
7608 lt_prog_compiler_static='-Bstatic'
7611 lt_prog_compiler_wl='-Wl,'
7612 # All Alpha code is PIC.
7613 lt_prog_compiler_static='-non_shared'
7616 case `$CC -V 2>&1 | sed 5q` in
7619 lt_prog_compiler_pic='-KPIC'
7620 lt_prog_compiler_static='-Bstatic'
7621 lt_prog_compiler_wl='-Wl,'
7624 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7625 lt_prog_compiler_pic='-KPIC'
7626 lt_prog_compiler_static='-Bstatic'
7627 lt_prog_compiler_wl=''
7634 osf3* | osf4* | osf5*)
7635 lt_prog_compiler_wl='-Wl,'
7636 # All OSF/1 code is PIC.
7637 lt_prog_compiler_static='-non_shared'
7641 lt_prog_compiler_static='-non_shared'
7645 lt_prog_compiler_pic='-KPIC'
7646 lt_prog_compiler_static='-Bstatic'
7647 case $cc_basename in
7649 lt_prog_compiler_wl='-Qoption ld ';;
7651 lt_prog_compiler_wl='-Wl,';;
7656 lt_prog_compiler_wl='-Qoption ld '
7657 lt_prog_compiler_pic='-PIC'
7658 lt_prog_compiler_static='-Bstatic'
7661 sysv4 | sysv4.2uw2* | sysv4.3*)
7662 lt_prog_compiler_wl='-Wl,'
7663 lt_prog_compiler_pic='-KPIC'
7664 lt_prog_compiler_static='-Bstatic'
7668 if test -d /usr/nec ;then
7669 lt_prog_compiler_pic='-Kconform_pic'
7670 lt_prog_compiler_static='-Bstatic'
7674 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7675 lt_prog_compiler_wl='-Wl,'
7676 lt_prog_compiler_pic='-KPIC'
7677 lt_prog_compiler_static='-Bstatic'
7681 lt_prog_compiler_wl='-Wl,'
7682 lt_prog_compiler_can_build_shared=no
7686 lt_prog_compiler_pic='-pic'
7687 lt_prog_compiler_static='-Bstatic'
7691 lt_prog_compiler_can_build_shared=no
7696 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7697 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7700 # Check to make sure the PIC flag actually works.
7702 if test -n "$lt_prog_compiler_pic"; then
7704 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7705 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7706 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 lt_cv_prog_compiler_pic_works=no
7710 ac_outfile=conftest.$ac_objext
7711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7712 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7713 # Insert the option either (1) after the last *FLAGS variable, or
7714 # (2) before a word containing "conftest.", or (3) at the end.
7715 # Note that $ac_compile itself does not contain backslashes and begins
7716 # with a dollar sign (not a hyphen), so the echo should work correctly.
7717 # The option is referenced via a variable to avoid confusing sed.
7718 lt_compile=`echo "$ac_compile" | $SED \
7719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7721 -e 's:$: $lt_compiler_flag:'`
7722 (eval echo "\"\$as_me:7722: $lt_compile\"" >&5)
7723 (eval "$lt_compile" 2>conftest.err)
7725 cat conftest.err >&5
7726 echo "$as_me:7726: \$? = $ac_status" >&5
7727 if (exit $ac_status) && test -s "$ac_outfile"; then
7728 # The compiler can only warn and ignore the option if not recognized
7729 # So say no if there are warnings other than the usual output.
7730 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7733 lt_cv_prog_compiler_pic_works=yes
7739 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7740 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7742 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7743 case $lt_prog_compiler_pic in
7745 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7748 lt_prog_compiler_pic=
7749 lt_prog_compiler_can_build_shared=no
7754 # For platforms which do not support PIC, -DPIC is meaningless:
7756 lt_prog_compiler_pic=
7759 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7764 # Check to make sure the static flag actually works.
7766 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7767 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7768 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7769 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 lt_cv_prog_compiler_static_works=no
7773 save_LDFLAGS="$LDFLAGS"
7774 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7775 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7776 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7777 # The linker can only warn and ignore the option if not recognized
7778 # So say no if there are warnings
7779 if test -s conftest.err; then
7780 # Append any errors to the config.log.
7781 cat conftest.err 1>&5
7782 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7784 if diff conftest.exp conftest.er2 >/dev/null; then
7785 lt_cv_prog_compiler_static_works=yes
7788 lt_cv_prog_compiler_static_works=yes
7792 LDFLAGS="$save_LDFLAGS"
7795 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7796 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7798 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7801 lt_prog_compiler_static=
7805 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7806 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7807 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 lt_cv_prog_compiler_c_o=no
7811 $rm -r conftest 2>/dev/null
7815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7817 lt_compiler_flag="-o out/conftest2.$ac_objext"
7818 # Insert the option either (1) after the last *FLAGS variable, or
7819 # (2) before a word containing "conftest.", or (3) at the end.
7820 # Note that $ac_compile itself does not contain backslashes and begins
7821 # with a dollar sign (not a hyphen), so the echo should work correctly.
7822 lt_compile=`echo "$ac_compile" | $SED \
7823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7825 -e 's:$: $lt_compiler_flag:'`
7826 (eval echo "\"\$as_me:7826: $lt_compile\"" >&5)
7827 (eval "$lt_compile" 2>out/conftest.err)
7829 cat out/conftest.err >&5
7830 echo "$as_me:7830: \$? = $ac_status" >&5
7831 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7833 # The compiler can only warn and ignore the option if not recognized
7834 # So say no if there are warnings
7835 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7836 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7837 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7838 lt_cv_prog_compiler_c_o=yes
7843 # SGI C++ compiler will create directory out/ii_files/ for
7844 # template instantiation
7845 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7846 $rm out/* && rmdir out
7852 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7853 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7856 hard_links="nottested"
7857 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7858 # do not overwrite the value of need_locks provided by the user
7859 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7860 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7863 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7865 ln conftest.a conftest.b 2>&5 || hard_links=no
7866 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7867 { echo "$as_me:$LINENO: result: $hard_links" >&5
7868 echo "${ECHO_T}$hard_links" >&6; }
7869 if test "$hard_links" = no; then
7870 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7871 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7878 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7879 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7882 allow_undefined_flag=
7883 enable_shared_with_static_runtimes=no
7885 archive_expsym_cmds=
7886 old_archive_From_new_cmds=
7887 old_archive_from_expsyms_cmds=
7888 export_dynamic_flag_spec=
7889 whole_archive_flag_spec=
7890 thread_safe_flag_spec=
7891 hardcode_libdir_flag_spec=
7892 hardcode_libdir_flag_spec_ld=
7893 hardcode_libdir_separator=
7896 hardcode_shlibpath_var=unsupported
7897 link_all_deplibs=unknown
7898 hardcode_automatic=no
7901 always_export_symbols=no
7902 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7903 # include_expsyms should be a list of space-separated symbols to be *always*
7904 # included in the symbol list
7906 # exclude_expsyms can be an extended regexp of symbols to exclude
7907 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7908 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7909 # as well as any symbol that contains `d'.
7910 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7911 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7912 # platforms (ab)use it in PIC code, but their linkers get confused if
7913 # the symbol is explicitly referenced. Since portable code cannot
7914 # rely on this symbol name, it's probably fine to never include it in
7915 # preloaded symbol tables.
7916 # Exclude shared library initialization/finalization symbols.
7917 extract_expsyms_cmds=
7918 # Just being paranoid about ensuring that cc_basename is set.
7919 for cc_temp in $compiler""; do
7921 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7922 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7927 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7930 cygwin* | mingw* | pw32*)
7931 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7932 # When not using gcc, we currently assume that we are using
7933 # Microsoft Visual C++.
7934 if test "$GCC" != yes; then
7939 # we just hope/assume this is gcc and not c89 (= MSVC++)
7948 if test "$with_gnu_ld" = yes; then
7949 # If archive_cmds runs LD, not CC, wlarc should be empty
7952 # Set some defaults for GNU ld with shared library support. These
7953 # are reset later if shared libraries are not supported. Putting them
7954 # here allows them to be overridden if necessary.
7955 runpath_var=LD_RUN_PATH
7956 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7957 export_dynamic_flag_spec='${wl}--export-dynamic'
7958 # ancient GNU ld didn't support --whole-archive et. al.
7959 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7960 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7962 whole_archive_flag_spec=
7964 supports_anon_versioning=no
7965 case `$LD -v 2>/dev/null` in
7966 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7967 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7968 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7969 *\ 2.11.*) ;; # other 2.11 versions
7970 *) supports_anon_versioning=yes ;;
7973 # See if GNU ld supports shared libraries.
7976 # On AIX/PPC, the GNU linker is very broken
7977 if test "$host_cpu" != ia64; then
7981 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7982 *** to be unable to reliably create shared libraries on AIX.
7983 *** Therefore, libtool is disabling shared libraries support. If you
7984 *** really care for shared libraries, you may want to modify your PATH
7985 *** so that a non-GNU linker is found, and then restart.
7992 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)'
7993 hardcode_libdir_flag_spec='-L$libdir'
7994 hardcode_minus_L=yes
7996 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7997 # that the semantics of dynamic libraries on AmigaOS, at least up
7998 # to version 4, is to share data among multiple programs linked
7999 # with the same dynamic library. Since this doesn't match the
8000 # behavior of shared libraries on other platforms, we can't use
8006 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8007 allow_undefined_flag=unsupported
8008 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8009 # support --undefined. This deserves some investigation. FIXME
8010 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8016 cygwin* | mingw* | pw32*)
8017 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8018 # as there is no search path for DLLs.
8019 hardcode_libdir_flag_spec='-L$libdir'
8020 allow_undefined_flag=unsupported
8021 always_export_symbols=no
8022 enable_shared_with_static_runtimes=yes
8023 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8025 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8027 # If the export-symbols file already is a .def file (1st line
8028 # is EXPORTS), use it as is; otherwise, prepend...
8029 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8030 cp $export_symbols $output_objdir/$soname.def;
8032 echo EXPORTS > $output_objdir/$soname.def;
8033 cat $export_symbols >> $output_objdir/$soname.def;
8035 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8043 hardcode_shlibpath_var=no
8044 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8045 export_dynamic_flag_spec='${wl}-E'
8046 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8047 # Instead, shared libraries are loaded at an image base (0x10000000 by
8048 # default) and relocated if they conflict, which is a slow very memory
8049 # consuming and fragmenting process. To avoid this, we pick a random,
8050 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8051 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8052 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8053 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'
8056 gnu* | linux* | k*bsd*-gnu)
8057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8059 case $cc_basename,$host_cpu in
8060 pgcc*) # Portland Group C compiler
8061 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'
8062 tmp_addflag=' $pic_flag'
8064 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8065 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'
8066 tmp_addflag=' $pic_flag -Mnomain' ;;
8067 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8068 tmp_addflag=' -i_dynamic' ;;
8069 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8070 tmp_addflag=' -i_dynamic -nofor_main' ;;
8071 ifc* | ifort*) # Intel Fortran compiler
8072 tmp_addflag=' -nofor_main' ;;
8074 case `$CC -V 2>&1 | sed 5q` in
8075 *Sun\ C*) # Sun C 5.9
8076 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8077 tmp_sharedflag='-G' ;;
8078 *Sun\ F*) # Sun Fortran 8.3
8079 tmp_sharedflag='-G' ;;
8081 tmp_sharedflag='-shared' ;;
8083 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8085 if test $supports_anon_versioning = yes; then
8086 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8087 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8088 $echo "local: *; };" >> $output_objdir/$libname.ver~
8089 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8097 netbsd* | netbsdelf*-gnu)
8098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8099 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8103 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8108 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8113 *** create shared libraries on Solaris systems. Therefore, libtool
8114 *** is disabling shared libraries support. We urge you to upgrade GNU
8115 *** binutils to release 2.9.1 or newer. Another option is to modify
8116 *** your PATH or compiler configuration so that the native linker is
8117 *** used, and then restart.
8120 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8129 case `$LD -v 2>&1` in
8130 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8134 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8135 *** reliably create shared libraries on SCO systems. Therefore, libtool
8136 *** is disabling shared libraries support. We urge you to upgrade GNU
8137 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8138 *** your PATH or compiler configuration so that the native linker is
8139 *** used, and then restart.
8144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8145 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8147 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8156 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8159 hardcode_shlibpath_var=no
8163 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8165 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8172 if test "$ld_shlibs" = no; then
8174 hardcode_libdir_flag_spec=
8175 export_dynamic_flag_spec=
8176 whole_archive_flag_spec=
8179 # PORTME fill in a description of your system's linker (not GNU ld)
8182 allow_undefined_flag=unsupported
8183 always_export_symbols=yes
8184 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'
8185 # Note: this linker hardcodes the directories in LIBPATH if there
8186 # are no directories specified by -L.
8187 hardcode_minus_L=yes
8188 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8189 # Neither direct hardcoding nor static linking is supported with a
8191 hardcode_direct=unsupported
8196 if test "$host_cpu" = ia64; then
8197 # On IA64, the linker does run time linking by default, so we don't
8198 # have to do anything special.
8199 aix_use_runtimelinking=no
8200 exp_sym_flag='-Bexport'
8203 # If we're using GNU nm, then we don't want the "-C" option.
8204 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8205 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8206 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'
8208 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'
8210 aix_use_runtimelinking=no
8212 # Test if we are trying to use run time linking or normal
8213 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8214 # need to do runtime linking.
8215 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8216 for ld_flag in $LDFLAGS; do
8217 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8218 aix_use_runtimelinking=yes
8225 exp_sym_flag='-bexport'
8226 no_entry_flag='-bnoentry'
8229 # When large executables or shared objects are built, AIX ld can
8230 # have problems creating the table of contents. If linking a library
8231 # or program results in "error TOC overflow" add -mminimal-toc to
8232 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8233 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8237 hardcode_libdir_separator=':'
8238 link_all_deplibs=yes
8240 if test "$GCC" = yes; then
8241 case $host_os in aix4.[012]|aix4.[012].*)
8242 # We only want to do this on AIX 4.2 and lower, the check
8243 # below for broken collect2 doesn't work under 4.3+
8244 collect2name=`${CC} -print-prog-name=collect2`
8245 if test -f "$collect2name" && \
8246 strings "$collect2name" | grep resolve_lib_name >/dev/null
8248 # We have reworked collect2
8251 # We have old collect2
8252 hardcode_direct=unsupported
8253 # It fails to find uninstalled libraries when the uninstalled
8254 # path is not listed in the libpath. Setting hardcode_minus_L
8255 # to unsupported forces relinking
8256 hardcode_minus_L=yes
8257 hardcode_libdir_flag_spec='-L$libdir'
8258 hardcode_libdir_separator=
8262 shared_flag='-shared'
8263 if test "$aix_use_runtimelinking" = yes; then
8264 shared_flag="$shared_flag "'${wl}-G'
8268 if test "$host_cpu" = ia64; then
8269 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8270 # chokes on -Wl,-G. The following line is correct:
8273 if test "$aix_use_runtimelinking" = yes; then
8274 shared_flag='${wl}-G'
8276 shared_flag='${wl}-bM:SRE'
8281 # It seems that -bexpall does not export symbols beginning with
8282 # underscore (_), so it is better to generate a list of symbols to export.
8283 always_export_symbols=yes
8284 if test "$aix_use_runtimelinking" = yes; then
8285 # Warning - without using the other runtime loading flags (-brtl),
8286 # -berok will link without error, but may produce a broken library.
8287 allow_undefined_flag='-berok'
8288 # Determine the default libpath from the value encoded in an empty executable.
8289 cat >conftest.$ac_ext <<_ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8304 rm -f conftest.$ac_objext conftest$ac_exeext
8305 if { (ac_try="$ac_link"
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311 (eval "$ac_link") 2>conftest.er1
8313 grep -v '^ *+' conftest.er1 >conftest.err
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } && {
8318 test -z "$ac_c_werror_flag" ||
8319 test ! -s conftest.err
8320 } && test -s conftest$ac_exeext &&
8321 $as_test_x conftest$ac_exeext; then
8323 lt_aix_libpath_sed='
8324 /Import File Strings/,/^$/ {
8330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8331 # Check for a 64-bit object if we didn't find anything.
8332 if test -z "$aix_libpath"; then
8333 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8343 conftest$ac_exeext conftest.$ac_ext
8344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8346 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8347 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"
8349 if test "$host_cpu" = ia64; then
8350 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8351 allow_undefined_flag="-z nodefs"
8352 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"
8354 # Determine the default libpath from the value encoded in an empty executable.
8355 cat >conftest.$ac_ext <<_ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8370 rm -f conftest.$ac_objext conftest$ac_exeext
8371 if { (ac_try="$ac_link"
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_link") 2>conftest.er1
8379 grep -v '^ *+' conftest.er1 >conftest.err
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } && {
8384 test -z "$ac_c_werror_flag" ||
8385 test ! -s conftest.err
8386 } && test -s conftest$ac_exeext &&
8387 $as_test_x conftest$ac_exeext; then
8389 lt_aix_libpath_sed='
8390 /Import File Strings/,/^$/ {
8396 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8397 # Check for a 64-bit object if we didn't find anything.
8398 if test -z "$aix_libpath"; then
8399 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8402 echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8409 conftest$ac_exeext conftest.$ac_ext
8410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8412 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8413 # Warning - without using the other run time loading flags,
8414 # -berok will link without error, but may produce a broken library.
8415 no_undefined_flag=' ${wl}-bernotok'
8416 allow_undefined_flag=' ${wl}-berok'
8417 # Exported symbols can be pulled into shared objects from archives
8418 whole_archive_flag_spec='$convenience'
8419 archive_cmds_need_lc=yes
8420 # This is similar to how AIX traditionally builds its shared libraries.
8421 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'
8427 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)'
8428 hardcode_libdir_flag_spec='-L$libdir'
8429 hardcode_minus_L=yes
8430 # see comment about different semantics on the GNU ld section
8435 export_dynamic_flag_spec=-rdynamic
8438 cygwin* | mingw* | pw32*)
8439 # When not using gcc, we currently assume that we are using
8440 # Microsoft Visual C++.
8441 # hardcode_libdir_flag_spec is actually meaningless, as there is
8442 # no search path for DLLs.
8443 hardcode_libdir_flag_spec=' '
8444 allow_undefined_flag=unsupported
8445 # Tell ltmain to make .lib files, not .a files.
8447 # Tell ltmain to make .dll files, not .so files.
8449 # FIXME: Setting linknames here is a bad hack.
8450 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8451 # The linker will automatically build a .lib file if we build a DLL.
8452 old_archive_From_new_cmds='true'
8453 # FIXME: Should let the user specify the lib program.
8454 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8455 fix_srcfile_path='`cygpath -w "$srcfile"`'
8456 enable_shared_with_static_runtimes=yes
8459 darwin* | rhapsody*)
8461 rhapsody* | darwin1.[012])
8462 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8465 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8466 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8468 case ${MACOSX_DEPLOYMENT_TARGET} in
8470 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8473 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8479 archive_cmds_need_lc=no
8481 hardcode_automatic=yes
8482 hardcode_shlibpath_var=unsupported
8483 whole_archive_flag_spec=''
8484 link_all_deplibs=yes
8485 if test "$GCC" = yes ; then
8486 output_verbose_link_cmd='echo'
8487 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8488 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8489 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8490 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8492 case $cc_basename in
8494 output_verbose_link_cmd='echo'
8495 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8496 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8497 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8498 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8499 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}'
8509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8510 hardcode_libdir_flag_spec='-L$libdir'
8511 hardcode_shlibpath_var=no
8518 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8519 # support. Future versions do this automatically, but an explicit c++rt0.o
8520 # does not break anything, and helps significantly (at the cost of a little
8523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8524 hardcode_libdir_flag_spec='-R$libdir'
8526 hardcode_shlibpath_var=no
8529 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8533 hardcode_minus_L=yes
8534 hardcode_shlibpath_var=no
8537 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8538 freebsd* | dragonfly*)
8539 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8540 hardcode_libdir_flag_spec='-R$libdir'
8542 hardcode_shlibpath_var=no
8546 if test "$GCC" = yes; then
8547 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'
8549 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'
8551 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8552 hardcode_libdir_separator=:
8555 # hardcode_minus_L: Not really in the search PATH,
8556 # but as the default location of the library.
8557 hardcode_minus_L=yes
8558 export_dynamic_flag_spec='${wl}-E'
8562 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8563 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8565 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8567 if test "$with_gnu_ld" = no; then
8568 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8569 hardcode_libdir_separator=:
8572 export_dynamic_flag_spec='${wl}-E'
8574 # hardcode_minus_L: Not really in the search PATH,
8575 # but as the default location of the library.
8576 hardcode_minus_L=yes
8581 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8584 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8587 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8590 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8596 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8599 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8602 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8606 if test "$with_gnu_ld" = no; then
8607 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8608 hardcode_libdir_separator=:
8612 hardcode_libdir_flag_spec_ld='+b $libdir'
8614 hardcode_shlibpath_var=no
8618 export_dynamic_flag_spec='${wl}-E'
8620 # hardcode_minus_L: Not really in the search PATH,
8621 # but as the default location of the library.
8622 hardcode_minus_L=yes
8628 irix5* | irix6* | nonstopux*)
8629 if test "$GCC" = yes; then
8630 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'
8632 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'
8633 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8636 hardcode_libdir_separator=:
8637 link_all_deplibs=yes
8640 netbsd* | netbsdelf*-gnu)
8641 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8644 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8646 hardcode_libdir_flag_spec='-R$libdir'
8648 hardcode_shlibpath_var=no
8652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8655 hardcode_libdir_separator=:
8656 hardcode_shlibpath_var=no
8660 if test -f /usr/libexec/ld.so; then
8662 hardcode_shlibpath_var=no
8663 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8664 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8665 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8666 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8667 export_dynamic_flag_spec='${wl}-E'
8670 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8672 hardcode_libdir_flag_spec='-R$libdir'
8675 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8676 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8686 hardcode_libdir_flag_spec='-L$libdir'
8687 hardcode_minus_L=yes
8688 allow_undefined_flag=unsupported
8689 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'
8690 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8694 if test "$GCC" = yes; then
8695 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8696 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'
8698 allow_undefined_flag=' -expect_unresolved \*'
8699 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'
8701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8702 hardcode_libdir_separator=:
8705 osf4* | osf5*) # as osf3* with the addition of -msym flag
8706 if test "$GCC" = yes; then
8707 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8708 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'
8709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8711 allow_undefined_flag=' -expect_unresolved \*'
8712 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'
8713 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8714 $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'
8716 # Both c and cxx compiler support -rpath directly
8717 hardcode_libdir_flag_spec='-rpath $libdir'
8719 hardcode_libdir_separator=:
8723 no_undefined_flag=' -z text'
8724 if test "$GCC" = yes; then
8726 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8727 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8728 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8731 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8732 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8733 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8735 hardcode_libdir_flag_spec='-R$libdir'
8736 hardcode_shlibpath_var=no
8738 solaris2.[0-5] | solaris2.[0-5].*) ;;
8740 # The compiler driver will combine and reorder linker options,
8741 # but understands `-z linker_flag'. GCC discards it without `$wl',
8742 # but is careful enough not to reorder.
8743 # Supported since Solaris 2.6 (maybe 2.5.1?)
8744 if test "$GCC" = yes; then
8745 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8747 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8751 link_all_deplibs=yes
8755 if test "x$host_vendor" = xsequent; then
8756 # Use $CC to link under sequent, because it throws in some extra .o
8757 # files that make .init and .fini sections work.
8758 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8760 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8762 hardcode_libdir_flag_spec='-L$libdir'
8764 hardcode_minus_L=yes
8765 hardcode_shlibpath_var=no
8769 case $host_vendor in
8771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8772 hardcode_direct=yes # is this really true???
8775 ## LD is ld it makes a PLAMLIB
8776 ## CC just makes a GrossModule.
8777 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8778 reload_cmds='$CC -r -o $output$reload_objs'
8782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8783 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8786 runpath_var='LD_RUN_PATH'
8787 hardcode_shlibpath_var=no
8791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8792 hardcode_shlibpath_var=no
8793 export_dynamic_flag_spec='-Bexport'
8797 if test -d /usr/nec; then
8798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8799 hardcode_shlibpath_var=no
8800 runpath_var=LD_RUN_PATH
8801 hardcode_runpath_var=yes
8806 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8807 no_undefined_flag='${wl}-z,text'
8808 archive_cmds_need_lc=no
8809 hardcode_shlibpath_var=no
8810 runpath_var='LD_RUN_PATH'
8812 if test "$GCC" = yes; then
8813 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8814 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8816 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8817 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8821 sysv5* | sco3.2v5* | sco5v6*)
8822 # Note: We can NOT use -z defs as we might desire, because we do not
8823 # link with -lc, and that would cause any symbols used from libc to
8824 # always be unresolved, which means just about no library would
8825 # ever link correctly. If we're not using GNU ld we use -z text
8826 # though, which does catch some bad symbols but isn't as heavy-handed
8828 no_undefined_flag='${wl}-z,text'
8829 allow_undefined_flag='${wl}-z,nodefs'
8830 archive_cmds_need_lc=no
8831 hardcode_shlibpath_var=no
8832 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8833 hardcode_libdir_separator=':'
8834 link_all_deplibs=yes
8835 export_dynamic_flag_spec='${wl}-Bexport'
8836 runpath_var='LD_RUN_PATH'
8838 if test "$GCC" = yes; then
8839 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8840 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8842 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8843 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849 hardcode_libdir_flag_spec='-L$libdir'
8850 hardcode_shlibpath_var=no
8859 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8860 echo "${ECHO_T}$ld_shlibs" >&6; }
8861 test "$ld_shlibs" = no && can_build_shared=no
8864 # Do we need to explicitly link libc?
8866 case "x$archive_cmds_need_lc" in
8868 # Assume -lc should be added
8869 archive_cmds_need_lc=yes
8871 if test "$enable_shared" = yes && test "$GCC" = yes; then
8872 case $archive_cmds in
8874 # FIXME: we may have to deal with multi-command sequences.
8877 # Test whether the compiler implicitly links with -lc since on some
8878 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8879 # to ld, don't add -lc before -lgcc.
8880 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8881 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8886 (eval $ac_compile) 2>&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } 2>conftest.err; then
8892 libobjs=conftest.$ac_objext
8894 wl=$lt_prog_compiler_wl
8895 pic_flag=$lt_prog_compiler_pic
8901 lt_save_allow_undefined_flag=$allow_undefined_flag
8902 allow_undefined_flag=
8903 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8904 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }
8909 archive_cmds_need_lc=no
8911 archive_cmds_need_lc=yes
8913 allow_undefined_flag=$lt_save_allow_undefined_flag
8915 cat conftest.err 1>&5
8918 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8919 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8926 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8927 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8929 libname_spec='lib$name'
8937 shlibpath_overrides_runpath=unknown
8939 dynamic_linker="$host_os ld.so"
8940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8942 if test "$GCC" = yes; then
8944 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8945 *) lt_awk_arg="/^libraries:/" ;;
8947 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8948 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8949 # if the path contains ";" then we assume it to be the separator
8950 # otherwise default to the standard path separator (i.e. ":") - it is
8951 # assumed that no part of a normal pathname contains ";" but that should
8952 # okay in the real world where ";" in dirpaths is itself problematic.
8953 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8955 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8957 # Ok, now we have the path, separated by spaces, we can step through it
8958 # and add multilib dir if necessary.
8959 lt_tmp_lt_search_path_spec=
8960 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8961 for lt_sys_path in $lt_search_path_spec; do
8962 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8963 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8965 test -d "$lt_sys_path" && \
8966 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8969 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8970 BEGIN {RS=" "; FS="/|\n";} {
8973 for (lt_i = NF; lt_i > 0; lt_i--) {
8974 if ($lt_i != "" && $lt_i != ".") {
8975 if ($lt_i == "..") {
8978 if (lt_count == 0) {
8979 lt_foo="/" $lt_i lt_foo;
8986 if (lt_foo != "") { lt_freq[lt_foo]++; }
8987 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8989 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8991 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8993 need_lib_prefix=unknown
8994 hardcode_into_libs=no
8996 # when you set need_version to no, make sure it does not cause -set_version
8997 # flags to be left without arguments
8998 need_version=unknown
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9004 shlibpath_var=LIBPATH
9006 # AIX 3 has no versioning support, so we append a major version to the name.
9007 soname_spec='${libname}${release}${shared_ext}$major'
9014 hardcode_into_libs=yes
9015 if test "$host_cpu" = ia64; then
9016 # AIX 5 supports IA64
9017 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9018 shlibpath_var=LD_LIBRARY_PATH
9020 # With GCC up to 2.95.x, collect2 would create an import file
9021 # for dependence libraries. The import file would start with
9022 # the line `#! .'. This would cause the generated library to
9023 # depend on `.', always an invalid library. This was fixed in
9024 # development snapshots of GCC prior to 3.0.
9026 aix4 | aix4.[01] | aix4.[01].*)
9027 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9029 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9036 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9037 # soname into executable. Probably we can add versioning support to
9038 # collect2, so additional links can be useful in future.
9039 if test "$aix_use_runtimelinking" = yes; then
9040 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9041 # instead of lib<name>.a to let people know that these are not
9042 # typical AIX shared libraries.
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045 # We preserve .a as extension for shared libraries through AIX4.2
9046 # and later when we are not doing run time linking.
9047 library_names_spec='${libname}${release}.a $libname.a'
9048 soname_spec='${libname}${release}${shared_ext}$major'
9050 shlibpath_var=LIBPATH
9055 library_names_spec='$libname.ixlibrary $libname.a'
9056 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9057 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'
9061 library_names_spec='${libname}${shared_ext}'
9062 dynamic_linker="$host_os ld.so"
9063 shlibpath_var=LIBRARY_PATH
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070 soname_spec='${libname}${release}${shared_ext}$major'
9071 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9074 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9075 # the default ld.so.conf also contains /usr/contrib/lib and
9076 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9077 # libtool to hard-code these into programs
9080 cygwin* | mingw* | pw32*)
9081 version_type=windows
9086 case $GCC,$host_os in
9087 yes,cygwin* | yes,mingw* | yes,pw32*)
9088 library_names_spec='$libname.dll.a'
9089 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9090 postinstall_cmds='base_file=`basename \${file}`~
9091 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9092 dldir=$destdir/`dirname \$dlpath`~
9093 test -d \$dldir || mkdir -p \$dldir~
9094 $install_prog $dir/$dlname \$dldir/$dlname~
9095 chmod a+x \$dldir/$dlname'
9096 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9097 dlpath=$dir/\$dldll~
9099 shlibpath_overrides_runpath=yes
9103 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9104 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9105 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9108 # MinGW DLLs use traditional 'lib' prefix
9109 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9110 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9111 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9112 # It is most probably a Windows format PATH printed by
9113 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9114 # path with ; separators, and with drive letters. We can handle the
9115 # drive letters (cygwin fileutils understands them), so leave them,
9116 # especially as we might pass files found there to a mingw objdump,
9117 # which wouldn't understand a cygwinified path. Ahh.
9118 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9120 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9124 # pw32 DLLs use 'pw' prefix rather than 'lib'
9125 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9131 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9134 dynamic_linker='Win32 ld.exe'
9135 # FIXME: first we should search . and the directory the executable is in
9139 darwin* | rhapsody*)
9140 dynamic_linker="$host_os dyld"
9144 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9145 soname_spec='${libname}${release}${major}$shared_ext'
9146 shlibpath_overrides_runpath=yes
9147 shlibpath_var=DYLD_LIBRARY_PATH
9148 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9150 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9151 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9159 soname_spec='${libname}${release}${shared_ext}$major'
9160 shlibpath_var=LD_LIBRARY_PATH
9167 freebsd* | dragonfly*)
9168 # DragonFly does not have aout. When/if they implement a new
9169 # versioning mechanism, adjust this.
9170 if test -x /usr/bin/objformat; then
9171 objformat=`/usr/bin/objformat`
9174 freebsd[123]*) objformat=aout ;;
9178 version_type=freebsd-$objformat
9179 case $version_type in
9181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9190 shlibpath_var=LD_LIBRARY_PATH
9193 shlibpath_overrides_runpath=yes
9195 freebsd3.[01]* | freebsdelf3.[01]*)
9196 shlibpath_overrides_runpath=yes
9197 hardcode_into_libs=yes
9199 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9200 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9201 shlibpath_overrides_runpath=no
9202 hardcode_into_libs=yes
9204 *) # from 4.6 on, and DragonFly
9205 shlibpath_overrides_runpath=yes
9206 hardcode_into_libs=yes
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 hardcode_into_libs=yes
9221 hpux9* | hpux10* | hpux11*)
9222 # Give a soname corresponding to the major version so that dld.sl refuses to
9223 # link against other versions.
9230 hardcode_into_libs=yes
9231 dynamic_linker="$host_os dld.so"
9232 shlibpath_var=LD_LIBRARY_PATH
9233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 if test "X$HPUX_IA64_MODE" = X32; then
9237 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9239 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9245 hardcode_into_libs=yes
9246 dynamic_linker="$host_os dld.sl"
9247 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250 soname_spec='${libname}${release}${shared_ext}$major'
9251 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9256 dynamic_linker="$host_os dld.sl"
9257 shlibpath_var=SHLIB_PATH
9258 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9263 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9264 postinstall_cmds='chmod 555 $lib'
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9272 soname_spec='${libname}${release}${shared_ext}$major'
9273 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9274 shlibpath_var=LD_LIBRARY_PATH
9275 shlibpath_overrides_runpath=no
9276 hardcode_into_libs=yes
9279 irix5* | irix6* | nonstopux*)
9281 nonstopux*) version_type=nonstopux ;;
9283 if test "$lt_cv_prog_gnu_ld" = yes; then
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9294 irix5* | nonstopux*)
9298 case $LD in # libtool.m4 will add one of these switches to LD
9299 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9300 libsuff= shlibsuff= libmagic=32-bit;;
9301 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9302 libsuff=32 shlibsuff=N32 libmagic=N32;;
9303 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9304 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9305 *) libsuff= shlibsuff= libmagic=never-match;;
9309 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9310 shlibpath_overrides_runpath=no
9311 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9312 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9313 hardcode_into_libs=yes
9316 # No shared lib support for Linux oldld, aout, or coff.
9317 linux*oldld* | linux*aout* | linux*coff*)
9321 # This must be Linux ELF.
9322 linux* | k*bsd*-gnu)
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327 soname_spec='${libname}${release}${shared_ext}$major'
9328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9329 shlibpath_var=LD_LIBRARY_PATH
9330 shlibpath_overrides_runpath=no
9331 # This implies no fast_install, which is unacceptable.
9332 # Some rework will be needed to allow for fast_install
9333 # before this can be enabled.
9334 hardcode_into_libs=yes
9336 # Append ld.so.conf contents to the search path
9337 if test -f /etc/ld.so.conf; then
9338 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9339 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9342 # We used to test for /lib/ld.so.1 and disable shared libraries on
9343 # powerpc, because MkLinux only supported shared libraries with the
9344 # GNU dynamic linker. Since this was broken with cross compilers,
9345 # most powerpc-linux boxes support dynamic linking these days and
9346 # people can always --disable-shared, the test was removed, and we
9347 # assume the GNU/Linux dynamic linker is in use.
9348 dynamic_linker='GNU/Linux ld.so'
9355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9356 soname_spec='${libname}${release}${shared_ext}$major'
9357 shlibpath_var=LD_LIBRARY_PATH
9358 shlibpath_overrides_runpath=no
9359 hardcode_into_libs=yes
9360 dynamic_linker='NetBSD ld.elf_so'
9367 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9370 dynamic_linker='NetBSD (a.out) ld.so'
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 dynamic_linker='NetBSD ld.elf_so'
9376 shlibpath_var=LD_LIBRARY_PATH
9377 shlibpath_overrides_runpath=yes
9378 hardcode_into_libs=yes
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384 shlibpath_var=LD_LIBRARY_PATH
9385 shlibpath_overrides_runpath=yes
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393 soname_spec='${libname}${release}${shared_ext}$major'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 shlibpath_overrides_runpath=yes
9400 sys_lib_dlsearch_path_spec="/usr/lib"
9402 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9404 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9405 *) need_version=no ;;
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9409 shlibpath_var=LD_LIBRARY_PATH
9410 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9412 openbsd2.[89] | openbsd2.[89].*)
9413 shlibpath_overrides_runpath=no
9416 shlibpath_overrides_runpath=yes
9420 shlibpath_overrides_runpath=yes
9425 libname_spec='$name'
9428 library_names_spec='$libname${shared_ext} $libname.a'
9429 dynamic_linker='OS/2 ld.exe'
9430 shlibpath_var=LIBPATH
9433 osf3* | osf4* | osf5*)
9437 soname_spec='${libname}${release}${shared_ext}$major'
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439 shlibpath_var=LD_LIBRARY_PATH
9440 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9441 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453 soname_spec='${libname}${release}${shared_ext}$major'
9454 shlibpath_var=LD_LIBRARY_PATH
9455 shlibpath_overrides_runpath=yes
9456 hardcode_into_libs=yes
9457 # ldd complains unless libraries are executable
9458 postinstall_cmds='chmod +x $lib'
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9464 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9465 shlibpath_var=LD_LIBRARY_PATH
9466 shlibpath_overrides_runpath=yes
9467 if test "$with_gnu_ld" = yes; then
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9476 soname_spec='${libname}${release}${shared_ext}$major'
9477 shlibpath_var=LD_LIBRARY_PATH
9478 case $host_vendor in
9480 shlibpath_overrides_runpath=no
9482 export_dynamic_flag_spec='${wl}-Blargedynsym'
9483 runpath_var=LD_RUN_PATH
9491 shlibpath_overrides_runpath=no
9492 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9498 if test -d /usr/nec ;then
9500 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9501 soname_spec='$libname${shared_ext}.$major'
9502 shlibpath_var=LD_LIBRARY_PATH
9506 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9507 version_type=freebsd-elf
9510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9511 soname_spec='${libname}${release}${shared_ext}$major'
9512 shlibpath_var=LD_LIBRARY_PATH
9513 hardcode_into_libs=yes
9514 if test "$with_gnu_ld" = yes; then
9515 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9516 shlibpath_overrides_runpath=no
9518 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9519 shlibpath_overrides_runpath=yes
9522 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9526 sys_lib_dlsearch_path_spec='/usr/lib'
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9532 soname_spec='${libname}${release}${shared_ext}$major'
9533 shlibpath_var=LD_LIBRARY_PATH
9540 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9541 echo "${ECHO_T}$dynamic_linker" >&6; }
9542 test "$dynamic_linker" = no && can_build_shared=no
9544 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9550 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9551 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9557 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9559 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9560 if test "$GCC" = yes; then
9561 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9564 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9565 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9567 if test -n "$hardcode_libdir_flag_spec" || \
9568 test -n "$runpath_var" || \
9569 test "X$hardcode_automatic" = "Xyes" ; then
9571 # We can hardcode non-existant directories.
9572 if test "$hardcode_direct" != no &&
9573 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9574 # have to relink, otherwise we might link with an installed library
9575 # when we should be linking with a yet-to-be-installed one
9576 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9577 test "$hardcode_minus_L" != no; then
9578 # Linking always hardcodes the temporary library directory.
9579 hardcode_action=relink
9581 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9582 hardcode_action=immediate
9585 # We cannot hardcode anything, or else we can only hardcode existing
9587 hardcode_action=unsupported
9589 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9590 echo "${ECHO_T}$hardcode_action" >&6; }
9592 if test "$hardcode_action" = relink; then
9593 # Fast installation is not supported
9594 enable_fast_install=no
9595 elif test "$shlibpath_overrides_runpath" = yes ||
9596 test "$enable_shared" = no; then
9597 # Fast installation is not necessary
9598 enable_fast_install=needless
9603 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9604 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9605 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9606 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9607 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9608 { echo "$as_me:$LINENO: result: yes" >&5
9609 echo "${ECHO_T}yes" >&6; }
9611 # FIXME - insert some real tests, host_os isn't really good enough
9614 if test -n "$STRIP" ; then
9615 striplib="$STRIP -x"
9616 old_striplib="$STRIP -S"
9617 { echo "$as_me:$LINENO: result: yes" >&5
9618 echo "${ECHO_T}yes" >&6; }
9620 { echo "$as_me:$LINENO: result: no" >&5
9621 echo "${ECHO_T}no" >&6; }
9625 { echo "$as_me:$LINENO: result: no" >&5
9626 echo "${ECHO_T}no" >&6; }
9631 if test "x$enable_dlopen" != xyes; then
9632 enable_dlopen=unknown
9633 enable_dlopen_self=unknown
9634 enable_dlopen_self_static=unknown
9641 lt_cv_dlopen="load_add_on"
9643 lt_cv_dlopen_self=yes
9647 lt_cv_dlopen="LoadLibrary"
9652 lt_cv_dlopen="dlopen"
9657 # if libdl is installed we need to link against it
9658 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9659 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9660 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 ac_check_lib_save_LIBS=$LIBS
9665 cat >conftest.$ac_ext <<_ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9672 /* Override any GCC internal prototype to avoid an error.
9673 Use char because int might match the return type of a GCC
9674 builtin and then its argument prototype would still apply. */
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (ac_try="$ac_link"
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_link") 2>conftest.er1
9696 grep -v '^ *+' conftest.er1 >conftest.err
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } && {
9701 test -z "$ac_c_werror_flag" ||
9702 test ! -s conftest.err
9703 } && test -s conftest$ac_exeext &&
9704 $as_test_x conftest$ac_exeext; then
9705 ac_cv_lib_dl_dlopen=yes
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 ac_cv_lib_dl_dlopen=no
9713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9714 conftest$ac_exeext conftest.$ac_ext
9715 LIBS=$ac_check_lib_save_LIBS
9717 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9718 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9719 if test $ac_cv_lib_dl_dlopen = yes; then
9720 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9725 lt_cv_dlopen_self=yes
9732 { echo "$as_me:$LINENO: checking for shl_load" >&5
9733 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9734 if test "${ac_cv_func_shl_load+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 cat >conftest.$ac_ext <<_ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9745 #define shl_load innocuous_shl_load
9747 /* System header to define __stub macros and hopefully few prototypes,
9748 which can conflict with char shl_load (); below.
9749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9750 <limits.h> exists even on freestanding compilers. */
9753 # include <limits.h>
9755 # include <assert.h>
9760 /* Override any GCC internal prototype to avoid an error.
9761 Use char because int might match the return type of a GCC
9762 builtin and then its argument prototype would still apply. */
9767 /* The GNU C library defines this for functions which it implements
9768 to always fail with ENOSYS. Some functions are actually named
9769 something starting with __ and the normal name is an alias. */
9770 #if defined __stub_shl_load || defined __stub___shl_load
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (ac_try="$ac_link"
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_link") 2>conftest.er1
9791 grep -v '^ *+' conftest.er1 >conftest.err
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } && {
9796 test -z "$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 } && test -s conftest$ac_exeext &&
9799 $as_test_x conftest$ac_exeext; then
9800 ac_cv_func_shl_load=yes
9802 echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9805 ac_cv_func_shl_load=no
9808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9809 conftest$ac_exeext conftest.$ac_ext
9811 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9812 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9813 if test $ac_cv_func_shl_load = yes; then
9814 lt_cv_dlopen="shl_load"
9816 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9817 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9818 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 ac_check_lib_save_LIBS=$LIBS
9823 cat >conftest.$ac_ext <<_ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9830 /* Override any GCC internal prototype to avoid an error.
9831 Use char because int might match the return type of a GCC
9832 builtin and then its argument prototype would still apply. */
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (ac_try="$ac_link"
9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852 (eval "$ac_link") 2>conftest.er1
9854 grep -v '^ *+' conftest.er1 >conftest.err
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } && {
9859 test -z "$ac_c_werror_flag" ||
9860 test ! -s conftest.err
9861 } && test -s conftest$ac_exeext &&
9862 $as_test_x conftest$ac_exeext; then
9863 ac_cv_lib_dld_shl_load=yes
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9868 ac_cv_lib_dld_shl_load=no
9871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9872 conftest$ac_exeext conftest.$ac_ext
9873 LIBS=$ac_check_lib_save_LIBS
9875 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9876 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9877 if test $ac_cv_lib_dld_shl_load = yes; then
9878 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9880 { echo "$as_me:$LINENO: checking for dlopen" >&5
9881 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9882 if test "${ac_cv_func_dlopen+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 cat >conftest.$ac_ext <<_ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9893 #define dlopen innocuous_dlopen
9895 /* System header to define __stub macros and hopefully few prototypes,
9896 which can conflict with char dlopen (); below.
9897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9898 <limits.h> exists even on freestanding compilers. */
9901 # include <limits.h>
9903 # include <assert.h>
9908 /* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
9915 /* The GNU C library defines this for functions which it implements
9916 to always fail with ENOSYS. Some functions are actually named
9917 something starting with __ and the normal name is an alias. */
9918 #if defined __stub_dlopen || defined __stub___dlopen
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (ac_try="$ac_link"
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937 (eval "$ac_link") 2>conftest.er1
9939 grep -v '^ *+' conftest.er1 >conftest.err
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } && {
9944 test -z "$ac_c_werror_flag" ||
9945 test ! -s conftest.err
9946 } && test -s conftest$ac_exeext &&
9947 $as_test_x conftest$ac_exeext; then
9948 ac_cv_func_dlopen=yes
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9953 ac_cv_func_dlopen=no
9956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9957 conftest$ac_exeext conftest.$ac_ext
9959 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9960 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9961 if test $ac_cv_func_dlopen = yes; then
9962 lt_cv_dlopen="dlopen"
9964 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9965 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9966 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 ac_check_lib_save_LIBS=$LIBS
9971 cat >conftest.$ac_ext <<_ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9978 /* Override any GCC internal prototype to avoid an error.
9979 Use char because int might match the return type of a GCC
9980 builtin and then its argument prototype would still apply. */
9993 rm -f conftest.$ac_objext conftest$ac_exeext
9994 if { (ac_try="$ac_link"
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000 (eval "$ac_link") 2>conftest.er1
10002 grep -v '^ *+' conftest.er1 >conftest.err
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && {
10007 test -z "$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10009 } && test -s conftest$ac_exeext &&
10010 $as_test_x conftest$ac_exeext; then
10011 ac_cv_lib_dl_dlopen=yes
10013 echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10016 ac_cv_lib_dl_dlopen=no
10019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10020 conftest$ac_exeext conftest.$ac_ext
10021 LIBS=$ac_check_lib_save_LIBS
10023 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10024 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10025 if test $ac_cv_lib_dl_dlopen = yes; then
10026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10028 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10029 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10030 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10031 echo $ECHO_N "(cached) $ECHO_C" >&6
10033 ac_check_lib_save_LIBS=$LIBS
10034 LIBS="-lsvld $LIBS"
10035 cat >conftest.$ac_ext <<_ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10042 /* Override any GCC internal prototype to avoid an error.
10043 Use char because int might match the return type of a GCC
10044 builtin and then its argument prototype would still apply. */
10057 rm -f conftest.$ac_objext conftest$ac_exeext
10058 if { (ac_try="$ac_link"
10059 case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_link") 2>conftest.er1
10066 grep -v '^ *+' conftest.er1 >conftest.err
10068 cat conftest.err >&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } && {
10071 test -z "$ac_c_werror_flag" ||
10072 test ! -s conftest.err
10073 } && test -s conftest$ac_exeext &&
10074 $as_test_x conftest$ac_exeext; then
10075 ac_cv_lib_svld_dlopen=yes
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10080 ac_cv_lib_svld_dlopen=no
10083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10084 conftest$ac_exeext conftest.$ac_ext
10085 LIBS=$ac_check_lib_save_LIBS
10087 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10088 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10089 if test $ac_cv_lib_svld_dlopen = yes; then
10090 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10092 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10093 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10094 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 ac_check_lib_save_LIBS=$LIBS
10099 cat >conftest.$ac_ext <<_ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h. */
10106 /* Override any GCC internal prototype to avoid an error.
10107 Use char because int might match the return type of a GCC
10108 builtin and then its argument prototype would still apply. */
10116 return dld_link ();
10121 rm -f conftest.$ac_objext conftest$ac_exeext
10122 if { (ac_try="$ac_link"
10123 case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_link") 2>conftest.er1
10130 grep -v '^ *+' conftest.er1 >conftest.err
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } && {
10135 test -z "$ac_c_werror_flag" ||
10136 test ! -s conftest.err
10137 } && test -s conftest$ac_exeext &&
10138 $as_test_x conftest$ac_exeext; then
10139 ac_cv_lib_dld_dld_link=yes
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10144 ac_cv_lib_dld_dld_link=no
10147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10148 conftest$ac_exeext conftest.$ac_ext
10149 LIBS=$ac_check_lib_save_LIBS
10151 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10152 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10153 if test $ac_cv_lib_dld_dld_link = yes; then
10154 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10175 if test "x$lt_cv_dlopen" != xno; then
10181 case $lt_cv_dlopen in
10183 save_CPPFLAGS="$CPPFLAGS"
10184 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10186 save_LDFLAGS="$LDFLAGS"
10187 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10190 LIBS="$lt_cv_dlopen_libs $LIBS"
10192 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10193 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10194 if test "${lt_cv_dlopen_self+set}" = set; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10197 if test "$cross_compiling" = yes; then :
10198 lt_cv_dlopen_self=cross
10200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10201 lt_status=$lt_dlunknown
10202 cat > conftest.$ac_ext <<EOF
10203 #line 10203 "configure"
10204 #include "confdefs.h"
10213 # define LT_DLGLOBAL RTLD_GLOBAL
10216 # define LT_DLGLOBAL DL_GLOBAL
10218 # define LT_DLGLOBAL 0
10222 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10223 find out it does not work in some platform. */
10224 #ifndef LT_DLLAZY_OR_NOW
10226 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10229 # define LT_DLLAZY_OR_NOW DL_LAZY
10232 # define LT_DLLAZY_OR_NOW RTLD_NOW
10235 # define LT_DLLAZY_OR_NOW DL_NOW
10237 # define LT_DLLAZY_OR_NOW 0
10245 extern "C" void exit (int);
10248 void fnord() { int i=42;}
10251 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10252 int status = $lt_dlunknown;
10256 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10257 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10258 /* dlclose (self); */
10266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10267 (eval $ac_link) 2>&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10271 (./conftest; exit; ) >&5 2>/dev/null
10273 case x$lt_status in
10274 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10275 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10276 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10279 # compilation failed
10280 lt_cv_dlopen_self=no
10287 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10288 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10290 if test "x$lt_cv_dlopen_self" = xyes; then
10291 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10292 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10293 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10294 if test "${lt_cv_dlopen_self_static+set}" = set; then
10295 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 if test "$cross_compiling" = yes; then :
10298 lt_cv_dlopen_self_static=cross
10300 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10301 lt_status=$lt_dlunknown
10302 cat > conftest.$ac_ext <<EOF
10303 #line 10303 "configure"
10304 #include "confdefs.h"
10313 # define LT_DLGLOBAL RTLD_GLOBAL
10316 # define LT_DLGLOBAL DL_GLOBAL
10318 # define LT_DLGLOBAL 0
10322 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10323 find out it does not work in some platform. */
10324 #ifndef LT_DLLAZY_OR_NOW
10326 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10329 # define LT_DLLAZY_OR_NOW DL_LAZY
10332 # define LT_DLLAZY_OR_NOW RTLD_NOW
10335 # define LT_DLLAZY_OR_NOW DL_NOW
10337 # define LT_DLLAZY_OR_NOW 0
10345 extern "C" void exit (int);
10348 void fnord() { int i=42;}
10351 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10352 int status = $lt_dlunknown;
10356 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10357 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10358 /* dlclose (self); */
10366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10367 (eval $ac_link) 2>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10371 (./conftest; exit; ) >&5 2>/dev/null
10373 case x$lt_status in
10374 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10375 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10376 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10379 # compilation failed
10380 lt_cv_dlopen_self_static=no
10387 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10388 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10391 CPPFLAGS="$save_CPPFLAGS"
10392 LDFLAGS="$save_LDFLAGS"
10397 case $lt_cv_dlopen_self in
10398 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10399 *) enable_dlopen_self=unknown ;;
10402 case $lt_cv_dlopen_self_static in
10403 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10404 *) enable_dlopen_self_static=unknown ;;
10409 # Report which library types will actually be built
10410 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10411 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10412 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10413 echo "${ECHO_T}$can_build_shared" >&6; }
10415 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10416 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10417 test "$can_build_shared" = "no" && enable_shared=no
10419 # On AIX, shared libraries and static libraries use the same namespace, and
10420 # are all built from PIC.
10423 test "$enable_shared" = yes && enable_static=no
10424 if test -n "$RANLIB"; then
10425 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10426 postinstall_cmds='$RANLIB $lib'
10431 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10432 test "$enable_shared" = yes && enable_static=no
10436 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10437 echo "${ECHO_T}$enable_shared" >&6; }
10439 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10440 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10441 # Make sure either enable_shared or enable_static is yes.
10442 test "$enable_shared" = yes || enable_static=yes
10443 { echo "$as_me:$LINENO: result: $enable_static" >&5
10444 echo "${ECHO_T}$enable_static" >&6; }
10446 # The else clause should only fire when bootstrapping the
10447 # libtool distribution, otherwise you forgot to ship ltmain.sh
10448 # with your package, and you will get complaints that there are
10449 # no rules to generate ltmain.sh.
10450 if test -f "$ltmain"; then
10451 # See if we are running on zsh, and set the options which allow our commands through
10452 # without removal of \ escapes.
10453 if test -n "${ZSH_VERSION+set}" ; then
10454 setopt NO_GLOB_SUBST
10456 # Now quote all the things that may contain metacharacters while being
10457 # careful not to overquote the AC_SUBSTed values. We take copies of the
10458 # variables and quote the copies for generation of the libtool script.
10459 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10461 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10462 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10463 deplibs_check_method reload_flag reload_cmds need_locks \
10464 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10465 lt_cv_sys_global_symbol_to_c_name_address \
10466 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10467 old_postinstall_cmds old_postuninstall_cmds \
10471 lt_prog_compiler_wl \
10472 lt_prog_compiler_pic \
10473 lt_prog_compiler_static \
10474 lt_prog_compiler_no_builtin_flag \
10475 export_dynamic_flag_spec \
10476 thread_safe_flag_spec \
10477 whole_archive_flag_spec \
10478 enable_shared_with_static_runtimes \
10480 old_archive_from_new_cmds \
10485 compiler_lib_search_path \
10486 compiler_lib_search_dirs \
10488 archive_expsym_cmds \
10490 postuninstall_cmds \
10491 old_archive_from_expsyms_cmds \
10492 allow_undefined_flag \
10493 no_undefined_flag \
10494 export_symbols_cmds \
10495 hardcode_libdir_flag_spec \
10496 hardcode_libdir_flag_spec_ld \
10497 hardcode_libdir_separator \
10498 hardcode_automatic \
10500 module_expsym_cmds \
10501 lt_cv_prog_compiler_c_o \
10504 include_expsyms; do
10507 old_archive_cmds | \
10508 old_archive_from_new_cmds | \
10510 archive_expsym_cmds | \
10512 module_expsym_cmds | \
10513 old_archive_from_expsyms_cmds | \
10514 export_symbols_cmds | \
10515 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10516 postinstall_cmds | postuninstall_cmds | \
10517 old_postinstall_cmds | old_postuninstall_cmds | \
10518 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10519 # Double-quote double-evaled strings.
10520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10523 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10529 *'\$0 --fallback-echo"')
10530 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10534 cfgfile="${ofile}T"
10535 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10537 { echo "$as_me:$LINENO: creating $ofile" >&5
10538 echo "$as_me: creating $ofile" >&6;}
10540 cat <<__EOF__ >> "$cfgfile"
10543 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10544 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10545 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10547 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10548 # Free Software Foundation, Inc.
10550 # This file is part of GNU Libtool:
10551 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10553 # This program is free software; you can redistribute it and/or modify
10554 # it under the terms of the GNU General Public License as published by
10555 # the Free Software Foundation; either version 2 of the License, or
10556 # (at your option) any later version.
10558 # This program is distributed in the hope that it will be useful, but
10559 # WITHOUT ANY WARRANTY; without even the implied warranty of
10560 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10561 # General Public License for more details.
10563 # You should have received a copy of the GNU General Public License
10564 # along with this program; if not, write to the Free Software
10565 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10567 # As a special exception to the GNU General Public License, if you
10568 # distribute this file as part of a program that contains a
10569 # configuration script generated by Autoconf, you may include it under
10570 # the same distribution terms that you use for the rest of that program.
10572 # A sed program that does not truncate output.
10575 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10576 Xsed="$SED -e 1s/^X//"
10578 # The HP-UX ksh and POSIX shell print the target directory to stdout
10579 # if CDPATH is set.
10580 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10582 # The names of the tagged configurations supported by this script.
10585 # ### BEGIN LIBTOOL CONFIG
10587 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10589 # Shell to use when invoking shell scripts.
10592 # Whether or not to build shared libraries.
10593 build_libtool_libs=$enable_shared
10595 # Whether or not to build static libraries.
10596 build_old_libs=$enable_static
10598 # Whether or not to add -lc for building shared libraries.
10599 build_libtool_need_lc=$archive_cmds_need_lc
10601 # Whether or not to disallow shared libs when runtime libs are static
10602 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10604 # Whether or not to optimize for fast installation.
10605 fast_install=$enable_fast_install
10608 host_alias=$host_alias
10612 # The build system.
10613 build_alias=$build_alias
10617 # An echo program that does not interpret backslashes.
10622 AR_FLAGS=$lt_AR_FLAGS
10627 # LTCC compiler flags.
10628 LTCFLAGS=$lt_LTCFLAGS
10630 # A language-specific compiler.
10633 # Is the compiler the GNU C compiler?
10639 # The linker used to build libraries.
10642 # Whether we need hard or soft links.
10645 # A BSD-compatible nm program.
10648 # A symbol stripping program
10651 # Used to examine libraries when file_magic_cmd begins "file"
10652 MAGIC_CMD=$MAGIC_CMD
10654 # Used on cygwin: DLL creation program.
10657 # Used on cygwin: object dumper.
10660 # Used on cygwin: assembler.
10663 # The name of the directory that contains temporary libtool files.
10666 # How to create reloadable object files.
10667 reload_flag=$lt_reload_flag
10668 reload_cmds=$lt_reload_cmds
10670 # How to pass a linker flag through the compiler.
10671 wl=$lt_lt_prog_compiler_wl
10673 # Object file suffix (normally "o").
10674 objext="$ac_objext"
10676 # Old archive suffix (normally "a").
10679 # Shared library suffix (normally ".so").
10680 shrext_cmds='$shrext_cmds'
10682 # Executable file suffix (normally "").
10685 # Additional compiler flags for building library objects.
10686 pic_flag=$lt_lt_prog_compiler_pic
10689 # What is the maximum length of a command?
10690 max_cmd_len=$lt_cv_sys_max_cmd_len
10692 # Does compiler simultaneously support -c and -o options?
10693 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10695 # Must we lock files when doing compilation?
10696 need_locks=$lt_need_locks
10698 # Do we need the lib prefix for modules?
10699 need_lib_prefix=$need_lib_prefix
10701 # Do we need a version for libraries?
10702 need_version=$need_version
10704 # Whether dlopen is supported.
10705 dlopen_support=$enable_dlopen
10707 # Whether dlopen of programs is supported.
10708 dlopen_self=$enable_dlopen_self
10710 # Whether dlopen of statically linked programs is supported.
10711 dlopen_self_static=$enable_dlopen_self_static
10713 # Compiler flag to prevent dynamic linking.
10714 link_static_flag=$lt_lt_prog_compiler_static
10716 # Compiler flag to turn off builtin functions.
10717 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10719 # Compiler flag to allow reflexive dlopens.
10720 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10722 # Compiler flag to generate shared objects directly from archives.
10723 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10725 # Compiler flag to generate thread-safe objects.
10726 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10728 # Library versioning type.
10729 version_type=$version_type
10731 # Format of library name prefix.
10732 libname_spec=$lt_libname_spec
10734 # List of archive names. First name is the real one, the rest are links.
10735 # The last name is the one that the linker finds with -lNAME.
10736 library_names_spec=$lt_library_names_spec
10738 # The coded name of the library, if different from the real name.
10739 soname_spec=$lt_soname_spec
10741 # Commands used to build and install an old-style archive.
10743 old_archive_cmds=$lt_old_archive_cmds
10744 old_postinstall_cmds=$lt_old_postinstall_cmds
10745 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10747 # Create an old-style archive from a shared archive.
10748 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10750 # Create a temporary old-style archive to link instead of a shared archive.
10751 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10753 # Commands used to build and install a shared archive.
10754 archive_cmds=$lt_archive_cmds
10755 archive_expsym_cmds=$lt_archive_expsym_cmds
10756 postinstall_cmds=$lt_postinstall_cmds
10757 postuninstall_cmds=$lt_postuninstall_cmds
10759 # Commands used to build a loadable module (assumed same as above if empty)
10760 module_cmds=$lt_module_cmds
10761 module_expsym_cmds=$lt_module_expsym_cmds
10763 # Commands to strip libraries.
10764 old_striplib=$lt_old_striplib
10765 striplib=$lt_striplib
10767 # Dependencies to place before the objects being linked to create a
10769 predep_objects=$lt_predep_objects
10771 # Dependencies to place after the objects being linked to create a
10773 postdep_objects=$lt_postdep_objects
10775 # Dependencies to place before the objects being linked to create a
10777 predeps=$lt_predeps
10779 # Dependencies to place after the objects being linked to create a
10781 postdeps=$lt_postdeps
10783 # The directories searched by this compiler when creating a shared
10785 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10787 # The library search path used internally by the compiler when linking
10788 # a shared library.
10789 compiler_lib_search_path=$lt_compiler_lib_search_path
10791 # Method to check whether dependent libraries are shared objects.
10792 deplibs_check_method=$lt_deplibs_check_method
10794 # Command to use when deplibs_check_method == file_magic.
10795 file_magic_cmd=$lt_file_magic_cmd
10797 # Flag that allows shared libraries with undefined symbols to be built.
10798 allow_undefined_flag=$lt_allow_undefined_flag
10800 # Flag that forces no undefined symbols.
10801 no_undefined_flag=$lt_no_undefined_flag
10803 # Commands used to finish a libtool library installation in a directory.
10804 finish_cmds=$lt_finish_cmds
10806 # Same as above, but a single script fragment to be evaled but not shown.
10807 finish_eval=$lt_finish_eval
10809 # Take the output of nm and produce a listing of raw symbols and C names.
10810 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10812 # Transform the output of nm in a proper C declaration
10813 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10815 # Transform the output of nm in a C name address pair
10816 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10818 # This is the shared library runtime path variable.
10819 runpath_var=$runpath_var
10821 # This is the shared library path variable.
10822 shlibpath_var=$shlibpath_var
10824 # Is shlibpath searched before the hard-coded library search path?
10825 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10827 # How to hardcode a shared library path into an executable.
10828 hardcode_action=$hardcode_action
10830 # Whether we should hardcode library paths into libraries.
10831 hardcode_into_libs=$hardcode_into_libs
10833 # Flag to hardcode \$libdir into a binary during linking.
10834 # This must work even if \$libdir does not exist.
10835 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10837 # If ld is used when linking, flag to hardcode \$libdir into
10838 # a binary during linking. This must work even if \$libdir does
10840 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10842 # Whether we need a single -rpath flag with a separated argument.
10843 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10845 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10846 # resulting binary.
10847 hardcode_direct=$hardcode_direct
10849 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10850 # resulting binary.
10851 hardcode_minus_L=$hardcode_minus_L
10853 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10854 # the resulting binary.
10855 hardcode_shlibpath_var=$hardcode_shlibpath_var
10857 # Set to yes if building a shared library automatically hardcodes DIR into the library
10858 # and all subsequent libraries and executables linked against it.
10859 hardcode_automatic=$hardcode_automatic
10861 # Variables whose values should be saved in libtool wrapper scripts and
10862 # restored at relink time.
10863 variables_saved_for_relink="$variables_saved_for_relink"
10865 # Whether libtool must link a program against all its dependency libraries.
10866 link_all_deplibs=$link_all_deplibs
10868 # Compile-time system search path for libraries
10869 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10871 # Run-time system search path for libraries
10872 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10874 # Fix the shell variable \$srcfile for the compiler.
10875 fix_srcfile_path=$lt_fix_srcfile_path
10877 # Set to yes if exported symbols are required.
10878 always_export_symbols=$always_export_symbols
10880 # The commands to list exported symbols.
10881 export_symbols_cmds=$lt_export_symbols_cmds
10883 # The commands to extract the exported symbol list from a shared archive.
10884 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10886 # Symbols that should not be listed in the preloaded symbols.
10887 exclude_expsyms=$lt_exclude_expsyms
10889 # Symbols that must always be exported.
10890 include_expsyms=$lt_include_expsyms
10892 # ### END LIBTOOL CONFIG
10899 cat <<\EOF >> "$cfgfile"
10901 # AIX sometimes has problems with the GCC collect2 program. For some
10902 # reason, if we set the COLLECT_NAMES environment variable, the problems
10903 # vanish in a puff of smoke.
10904 if test "X${COLLECT_NAMES+set}" != Xset; then
10906 export COLLECT_NAMES
10912 # We use sed instead of cat because bash on DJGPP gets confused if
10913 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10914 # text mode, it properly converts lines to CR/LF. This bash problem
10915 # is reportedly fixed, but why not run on old versions too?
10916 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10918 mv -f "$cfgfile" "$ofile" || \
10919 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10923 # If there is no Makefile yet, we rely on a make rule to execute
10924 # `config.status --recheck' to rerun these tests and create the
10925 # libtool script then.
10926 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10927 if test -f "$ltmain_in"; then
10928 test -f Makefile && make "$ltmain"
10934 ac_cpp='$CPP $CPPFLAGS'
10935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10942 # Check whether --with-tags was given.
10943 if test "${with_tags+set}" = set; then
10944 withval=$with_tags; tagnames="$withval"
10948 if test -f "$ltmain" && test -n "$tagnames"; then
10949 if test ! -f "${ofile}"; then
10950 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10951 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10954 if test -z "$LTCC"; then
10955 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10956 if test -z "$LTCC"; then
10957 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10958 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10961 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10964 if test -z "$LTCFLAGS"; then
10965 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10968 # Extract list of available tagged configurations in $ofile.
10969 # Note that this assumes the entire list is on one line.
10970 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10972 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10973 for tagname in $tagnames; do
10975 # Check whether tagname contains only valid characters
10976 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10978 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10979 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10980 { (exit 1); exit 1; }; }
10984 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10986 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10987 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10988 { (exit 1); exit 1; }; }
10991 # Update the list of available tags.
10992 if test -n "$tagname"; then
10993 echo appending configuration tag \"$tagname\" to $ofile
10997 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10998 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10999 (test "X$CXX" != "Xg++"))) ; then
11001 ac_cpp='$CXXCPP $CPPFLAGS'
11002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11009 archive_cmds_need_lc_CXX=no
11010 allow_undefined_flag_CXX=
11011 always_export_symbols_CXX=no
11012 archive_expsym_cmds_CXX=
11013 export_dynamic_flag_spec_CXX=
11014 hardcode_direct_CXX=no
11015 hardcode_libdir_flag_spec_CXX=
11016 hardcode_libdir_flag_spec_ld_CXX=
11017 hardcode_libdir_separator_CXX=
11018 hardcode_minus_L_CXX=no
11019 hardcode_shlibpath_var_CXX=unsupported
11020 hardcode_automatic_CXX=no
11022 module_expsym_cmds_CXX=
11023 link_all_deplibs_CXX=unknown
11024 old_archive_cmds_CXX=$old_archive_cmds
11025 no_undefined_flag_CXX=
11026 whole_archive_flag_spec_CXX=
11027 enable_shared_with_static_runtimes_CXX=no
11029 # Dependencies to place before and after the object being linked:
11030 predep_objects_CXX=
11031 postdep_objects_CXX=
11034 compiler_lib_search_path_CXX=
11035 compiler_lib_search_dirs_CXX=
11037 # Source file extension for C++ test sources.
11040 # Object file extension for compiled C++ test sources.
11044 # Code to be used in simple compile tests
11045 lt_simple_compile_test_code="int some_variable = 0;"
11047 # Code to be used in simple link tests
11048 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11050 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11052 # If no C compiler was specified, use CC.
11055 # If no C compiler flags were specified, use CFLAGS.
11056 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11058 # Allow CC to be a program name with arguments.
11062 # save warnings/boilerplate of simple test code
11063 ac_outfile=conftest.$ac_objext
11064 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11065 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11066 _lt_compiler_boilerplate=`cat conftest.err`
11069 ac_outfile=conftest.$ac_objext
11070 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11071 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11072 _lt_linker_boilerplate=`cat conftest.err`
11076 # Allow CC to be a program name with arguments.
11081 lt_save_with_gnu_ld=$with_gnu_ld
11082 lt_save_path_LD=$lt_cv_path_LD
11083 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11084 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11086 $as_unset lt_cv_prog_gnu_ld
11088 if test -n "${lt_cv_path_LDCXX+set}"; then
11089 lt_cv_path_LD=$lt_cv_path_LDCXX
11091 $as_unset lt_cv_path_LD
11093 test -z "${LDCXX+set}" || LD=$LDCXX
11097 for cc_temp in $compiler""; do
11099 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11100 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11105 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11108 # We don't want -fno-exception wen compiling C++ code, so set the
11109 # no_builtin_flag separately
11110 if test "$GXX" = yes; then
11111 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11113 lt_prog_compiler_no_builtin_flag_CXX=
11116 if test "$GXX" = yes; then
11117 # Set up default GNU C++ configuration
11120 # Check whether --with-gnu-ld was given.
11121 if test "${with_gnu_ld+set}" = set; then
11122 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11128 if test "$GCC" = yes; then
11129 # Check if gcc -print-prog-name=ld gives a path.
11130 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11131 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11134 # gcc leaves a trailing carriage return which upsets mingw
11135 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11137 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11140 # Accept absolute paths.
11142 re_direlt='/[^/][^/]*/\.\./'
11143 # Canonicalize the pathname of ld
11144 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11145 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11146 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11148 test -z "$LD" && LD="$ac_prog"
11151 # If it fails, then pretend we aren't using GCC.
11155 # If it is relative, then search for the first ld in PATH.
11156 with_gnu_ld=unknown
11159 elif test "$with_gnu_ld" = yes; then
11160 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11161 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11163 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11164 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11166 if test "${lt_cv_path_LD+set}" = set; then
11167 echo $ECHO_N "(cached) $ECHO_C" >&6
11169 if test -z "$LD"; then
11170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11171 for ac_dir in $PATH; do
11173 test -z "$ac_dir" && ac_dir=.
11174 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11175 lt_cv_path_LD="$ac_dir/$ac_prog"
11176 # Check to see if the program is GNU ld. I'd rather use --version,
11177 # but apparently some variants of GNU ld only accept -v.
11178 # Break only if it was the GNU/non-GNU ld that we prefer.
11179 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11180 *GNU* | *'with BFD'*)
11181 test "$with_gnu_ld" != no && break
11184 test "$with_gnu_ld" != yes && break
11191 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11195 LD="$lt_cv_path_LD"
11196 if test -n "$LD"; then
11197 { echo "$as_me:$LINENO: result: $LD" >&5
11198 echo "${ECHO_T}$LD" >&6; }
11200 { echo "$as_me:$LINENO: result: no" >&5
11201 echo "${ECHO_T}no" >&6; }
11203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11205 { (exit 1); exit 1; }; }
11206 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11208 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11211 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11212 case `$LD -v 2>&1 </dev/null` in
11213 *GNU* | *'with BFD'*)
11214 lt_cv_prog_gnu_ld=yes
11217 lt_cv_prog_gnu_ld=no
11221 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11222 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11223 with_gnu_ld=$lt_cv_prog_gnu_ld
11227 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11228 # archiving commands below assume that GNU ld is being used.
11229 if test "$with_gnu_ld" = yes; then
11230 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11231 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'
11233 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11234 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11236 # If archive_cmds runs LD, not CC, wlarc should be empty
11237 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11238 # investigate it a little bit more. (MM)
11241 # ancient GNU ld didn't support --whole-archive et. al.
11242 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11243 grep 'no-whole-archive' > /dev/null; then
11244 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11246 whole_archive_flag_spec_CXX=
11252 # A generic and very simple default shared library creation
11253 # command for GNU C++ for the case where it uses the native
11254 # linker, instead of GNU ld. If possible, this setting should
11255 # overridden to take advantage of the native linker features on
11256 # the platform it is being used on.
11257 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11260 # Commands to make compiler produce verbose output that lists
11261 # what "hidden" libraries, object files and flags are used when
11262 # linking a shared library.
11263 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11271 # PORTME: fill in a description of your system's C++ link characteristics
11272 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11273 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11277 # FIXME: insert proper C++ library support
11281 if test "$host_cpu" = ia64; then
11282 # On IA64, the linker does run time linking by default, so we don't
11283 # have to do anything special.
11284 aix_use_runtimelinking=no
11285 exp_sym_flag='-Bexport'
11288 aix_use_runtimelinking=no
11290 # Test if we are trying to use run time linking or normal
11291 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11292 # need to do runtime linking.
11293 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11294 for ld_flag in $LDFLAGS; do
11297 aix_use_runtimelinking=yes
11305 exp_sym_flag='-bexport'
11306 no_entry_flag='-bnoentry'
11309 # When large executables or shared objects are built, AIX ld can
11310 # have problems creating the table of contents. If linking a library
11311 # or program results in "error TOC overflow" add -mminimal-toc to
11312 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11313 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11315 archive_cmds_CXX=''
11316 hardcode_direct_CXX=yes
11317 hardcode_libdir_separator_CXX=':'
11318 link_all_deplibs_CXX=yes
11320 if test "$GXX" = yes; then
11321 case $host_os in aix4.[012]|aix4.[012].*)
11322 # We only want to do this on AIX 4.2 and lower, the check
11323 # below for broken collect2 doesn't work under 4.3+
11324 collect2name=`${CC} -print-prog-name=collect2`
11325 if test -f "$collect2name" && \
11326 strings "$collect2name" | grep resolve_lib_name >/dev/null
11328 # We have reworked collect2
11331 # We have old collect2
11332 hardcode_direct_CXX=unsupported
11333 # It fails to find uninstalled libraries when the uninstalled
11334 # path is not listed in the libpath. Setting hardcode_minus_L
11335 # to unsupported forces relinking
11336 hardcode_minus_L_CXX=yes
11337 hardcode_libdir_flag_spec_CXX='-L$libdir'
11338 hardcode_libdir_separator_CXX=
11342 shared_flag='-shared'
11343 if test "$aix_use_runtimelinking" = yes; then
11344 shared_flag="$shared_flag "'${wl}-G'
11348 if test "$host_cpu" = ia64; then
11349 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11350 # chokes on -Wl,-G. The following line is correct:
11353 if test "$aix_use_runtimelinking" = yes; then
11354 shared_flag='${wl}-G'
11356 shared_flag='${wl}-bM:SRE'
11361 # It seems that -bexpall does not export symbols beginning with
11362 # underscore (_), so it is better to generate a list of symbols to export.
11363 always_export_symbols_CXX=yes
11364 if test "$aix_use_runtimelinking" = yes; then
11365 # Warning - without using the other runtime loading flags (-brtl),
11366 # -berok will link without error, but may produce a broken library.
11367 allow_undefined_flag_CXX='-berok'
11368 # Determine the default libpath from the value encoded in an empty executable.
11369 cat >conftest.$ac_ext <<_ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11384 rm -f conftest.$ac_objext conftest$ac_exeext
11385 if { (ac_try="$ac_link"
11386 case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_link") 2>conftest.er1
11393 grep -v '^ *+' conftest.er1 >conftest.err
11395 cat conftest.err >&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } && {
11398 test -z "$ac_cxx_werror_flag" ||
11399 test ! -s conftest.err
11400 } && test -s conftest$ac_exeext &&
11401 $as_test_x conftest$ac_exeext; then
11403 lt_aix_libpath_sed='
11404 /Import File Strings/,/^$/ {
11410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11411 # Check for a 64-bit object if we didn't find anything.
11412 if test -z "$aix_libpath"; then
11413 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11416 echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11423 conftest$ac_exeext conftest.$ac_ext
11424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11426 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11428 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"
11430 if test "$host_cpu" = ia64; then
11431 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11432 allow_undefined_flag_CXX="-z nodefs"
11433 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"
11435 # Determine the default libpath from the value encoded in an empty executable.
11436 cat >conftest.$ac_ext <<_ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11451 rm -f conftest.$ac_objext conftest$ac_exeext
11452 if { (ac_try="$ac_link"
11453 case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_link") 2>conftest.er1
11460 grep -v '^ *+' conftest.er1 >conftest.err
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } && {
11465 test -z "$ac_cxx_werror_flag" ||
11466 test ! -s conftest.err
11467 } && test -s conftest$ac_exeext &&
11468 $as_test_x conftest$ac_exeext; then
11470 lt_aix_libpath_sed='
11471 /Import File Strings/,/^$/ {
11477 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11478 # Check for a 64-bit object if we didn't find anything.
11479 if test -z "$aix_libpath"; then
11480 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11483 echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11490 conftest$ac_exeext conftest.$ac_ext
11491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11493 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11494 # Warning - without using the other run time loading flags,
11495 # -berok will link without error, but may produce a broken library.
11496 no_undefined_flag_CXX=' ${wl}-bernotok'
11497 allow_undefined_flag_CXX=' ${wl}-berok'
11498 # Exported symbols can be pulled into shared objects from archives
11499 whole_archive_flag_spec_CXX='$convenience'
11500 archive_cmds_need_lc_CXX=yes
11501 # This is similar to how AIX traditionally builds its shared libraries.
11502 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'
11508 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11509 allow_undefined_flag_CXX=unsupported
11510 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11511 # support --undefined. This deserves some investigation. FIXME
11512 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11519 case $cc_basename in
11521 # FIXME: insert proper C++ library support
11527 cygwin* | mingw* | pw32*)
11528 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11529 # as there is no search path for DLLs.
11530 hardcode_libdir_flag_spec_CXX='-L$libdir'
11531 allow_undefined_flag_CXX=unsupported
11532 always_export_symbols_CXX=no
11533 enable_shared_with_static_runtimes_CXX=yes
11535 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11536 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'
11537 # If the export-symbols file already is a .def file (1st line
11538 # is EXPORTS), use it as is; otherwise, prepend...
11539 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11540 cp $export_symbols $output_objdir/$soname.def;
11542 echo EXPORTS > $output_objdir/$soname.def;
11543 cat $export_symbols >> $output_objdir/$soname.def;
11545 $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'
11550 darwin* | rhapsody*)
11551 archive_cmds_need_lc_CXX=no
11552 hardcode_direct_CXX=no
11553 hardcode_automatic_CXX=yes
11554 hardcode_shlibpath_var_CXX=unsupported
11555 whole_archive_flag_spec_CXX=''
11556 link_all_deplibs_CXX=yes
11557 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11558 if test "$GXX" = yes ; then
11559 output_verbose_link_cmd='echo'
11560 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11561 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11562 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11563 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11564 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11565 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${_lt_dsymutil}"
11566 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11569 case $cc_basename in
11571 output_verbose_link_cmd='echo'
11572 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11573 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11574 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11575 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11576 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}'
11586 case $cc_basename in
11588 # FIXME: insert proper C++ library support
11592 # Green Hills C++ Compiler
11593 # FIXME: insert proper C++ library support
11597 # FIXME: insert proper C++ library support
11603 # C++ shared libraries reported to be fairly broken before switch to ELF
11607 archive_cmds_need_lc_CXX=no
11609 freebsd* | dragonfly*)
11610 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11617 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11618 hardcode_libdir_separator_CXX=:
11619 export_dynamic_flag_spec_CXX='${wl}-E'
11620 hardcode_direct_CXX=yes
11621 hardcode_minus_L_CXX=yes # Not in the search PATH,
11622 # but as the default
11623 # location of the library.
11625 case $cc_basename in
11627 # FIXME: insert proper C++ library support
11631 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'
11632 # Commands to make compiler produce verbose output that lists
11633 # what "hidden" libraries, object files and flags are used when
11634 # linking a shared library.
11636 # There doesn't appear to be a way to prevent this compiler from
11637 # explicitly linking system object files so we need to strip them
11638 # from the output so that they don't get included in the library
11640 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'
11643 if test "$GXX" = yes; then
11644 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'
11646 # FIXME: insert proper C++ library support
11653 if test $with_gnu_ld = no; then
11654 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11655 hardcode_libdir_separator_CXX=:
11660 export_dynamic_flag_spec_CXX='${wl}-E'
11666 hardcode_direct_CXX=no
11667 hardcode_shlibpath_var_CXX=no
11670 hardcode_direct_CXX=yes
11671 hardcode_minus_L_CXX=yes # Not in the search PATH,
11672 # but as the default
11673 # location of the library.
11677 case $cc_basename in
11679 # FIXME: insert proper C++ library support
11685 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11688 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11691 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11694 # Commands to make compiler produce verbose output that lists
11695 # what "hidden" libraries, object files and flags are used when
11696 # linking a shared library.
11698 # There doesn't appear to be a way to prevent this compiler from
11699 # explicitly linking system object files so we need to strip them
11700 # from the output so that they don't get included in the library
11702 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'
11705 if test "$GXX" = yes; then
11706 if test $with_gnu_ld = no; then
11709 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11712 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11715 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'
11720 # FIXME: insert proper C++ library support
11727 hardcode_direct_CXX=no
11728 hardcode_shlibpath_var_CXX=no
11729 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11730 export_dynamic_flag_spec_CXX='${wl}-E'
11731 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11732 # Instead, shared libraries are loaded at an image base (0x10000000 by
11733 # default) and relocated if they conflict, which is a slow very memory
11734 # consuming and fragmenting process. To avoid this, we pick a random,
11735 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11736 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11737 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'
11738 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'
11741 case $cc_basename in
11744 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'
11746 # Archives containing C++ object files must be created using
11747 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11748 # necessary to make sure instantiated templates are included
11750 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11753 if test "$GXX" = yes; then
11754 if test "$with_gnu_ld" = no; then
11755 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'
11757 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'
11760 link_all_deplibs_CXX=yes
11763 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11764 hardcode_libdir_separator_CXX=:
11766 linux* | k*bsd*-gnu)
11767 case $cc_basename in
11769 # Kuck and Associates, Inc. (KAI) C++ Compiler
11771 # KCC will only create a shared library if the output file
11772 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11773 # to its proper name (with version) after linking.
11774 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'
11775 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'
11776 # Commands to make compiler produce verbose output that lists
11777 # what "hidden" libraries, object files and flags are used when
11778 # linking a shared library.
11780 # There doesn't appear to be a way to prevent this compiler from
11781 # explicitly linking system object files so we need to strip them
11782 # from the output so that they don't get included in the library
11784 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'
11786 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11787 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11789 # Archives containing C++ object files must be created using
11790 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11791 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11796 # version 8.0 and above of icpc choke on multiply defined symbols
11797 # if we add $predep_objects and $postdep_objects, however 7.1 and
11798 # earlier do not add the objects themselves.
11799 case `$CC -V 2>&1` in
11801 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11802 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'
11804 *) # Version 8.0 or newer
11807 ia64*) tmp_idyn=' -i_dynamic';;
11809 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11810 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'
11813 archive_cmds_need_lc_CXX=no
11814 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11815 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11816 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11819 # Portland Group C++ compiler
11820 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11821 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'
11823 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11824 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11825 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'
11829 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11830 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'
11832 runpath_var=LD_RUN_PATH
11833 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11834 hardcode_libdir_separator_CXX=:
11836 # Commands to make compiler produce verbose output that lists
11837 # what "hidden" libraries, object files and flags are used when
11838 # linking a shared library.
11840 # There doesn't appear to be a way to prevent this compiler from
11841 # explicitly linking system object files so we need to strip them
11842 # from the output so that they don't get included in the library
11844 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'
11847 case `$CC -V 2>&1 | sed 5q` in
11850 no_undefined_flag_CXX=' -zdefs'
11851 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11852 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11853 hardcode_libdir_flag_spec_CXX='-R$libdir'
11854 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11856 # Not sure whether something based on
11857 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11859 output_verbose_link_cmd='echo'
11861 # Archives containing C++ object files must be created using
11862 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11863 # necessary to make sure instantiated templates are included
11865 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11872 # FIXME: insert proper C++ library support
11876 # FIXME: insert proper C++ library support
11880 case $cc_basename in
11882 # FIXME: insert proper C++ library support
11886 # FIXME: insert proper C++ library support
11891 netbsd* | netbsdelf*-gnu)
11892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11893 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11895 hardcode_libdir_flag_spec_CXX='-R$libdir'
11896 hardcode_direct_CXX=yes
11897 hardcode_shlibpath_var_CXX=no
11899 # Workaround some broken pre-1.5 toolchains
11900 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11903 # C++ shared libraries are fairly broken
11907 if test -f /usr/libexec/ld.so; then
11908 hardcode_direct_CXX=yes
11909 hardcode_shlibpath_var_CXX=no
11910 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11911 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11913 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11914 export_dynamic_flag_spec_CXX='${wl}-E'
11915 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11917 output_verbose_link_cmd='echo'
11923 case $cc_basename in
11925 # Kuck and Associates, Inc. (KAI) C++ Compiler
11927 # KCC will only create a shared library if the output file
11928 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11929 # to its proper name (with version) after linking.
11930 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'
11932 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11933 hardcode_libdir_separator_CXX=:
11935 # Archives containing C++ object files must be created using
11936 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11937 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11941 # Rational C++ 2.4.1
11942 # FIXME: insert proper C++ library support
11946 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11947 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'
11949 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11950 hardcode_libdir_separator_CXX=:
11952 # Commands to make compiler produce verbose output that lists
11953 # what "hidden" libraries, object files and flags are used when
11954 # linking a shared library.
11956 # There doesn't appear to be a way to prevent this compiler from
11957 # explicitly linking system object files so we need to strip them
11958 # from the output so that they don't get included in the library
11960 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'
11963 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11964 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11965 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'
11967 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11968 hardcode_libdir_separator_CXX=:
11970 # Commands to make compiler produce verbose output that lists
11971 # what "hidden" libraries, object files and flags are used when
11972 # linking a shared library.
11973 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11976 # FIXME: insert proper C++ library support
11983 case $cc_basename in
11985 # Kuck and Associates, Inc. (KAI) C++ Compiler
11987 # KCC will only create a shared library if the output file
11988 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11989 # to its proper name (with version) after linking.
11990 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'
11992 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11993 hardcode_libdir_separator_CXX=:
11995 # Archives containing C++ object files must be created using
11996 # the KAI C++ compiler.
11997 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12000 # Rational C++ 2.4.1
12001 # FIXME: insert proper C++ library support
12005 allow_undefined_flag_CXX=' -expect_unresolved \*'
12006 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'
12007 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12008 echo "-hidden">> $lib.exp~
12009 $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~
12012 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12013 hardcode_libdir_separator_CXX=:
12015 # Commands to make compiler produce verbose output that lists
12016 # what "hidden" libraries, object files and flags are used when
12017 # linking a shared library.
12019 # There doesn't appear to be a way to prevent this compiler from
12020 # explicitly linking system object files so we need to strip them
12021 # from the output so that they don't get included in the library
12023 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'
12026 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12027 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12028 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'
12030 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12031 hardcode_libdir_separator_CXX=:
12033 # Commands to make compiler produce verbose output that lists
12034 # what "hidden" libraries, object files and flags are used when
12035 # linking a shared library.
12036 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12039 # FIXME: insert proper C++ library support
12046 # FIXME: insert proper C++ library support
12050 case $cc_basename in
12053 # FIXME: insert proper C++ library support
12058 # FIXME: insert proper C++ library support
12062 # FIXME: insert proper C++ library support
12068 case $cc_basename in
12070 # Sun C++ 4.2, 5.x and Centerline C++
12071 archive_cmds_need_lc_CXX=yes
12072 no_undefined_flag_CXX=' -zdefs'
12073 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12074 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12075 $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'
12077 hardcode_libdir_flag_spec_CXX='-R$libdir'
12078 hardcode_shlibpath_var_CXX=no
12080 solaris2.[0-5] | solaris2.[0-5].*) ;;
12082 # The compiler driver will combine and reorder linker options,
12083 # but understands `-z linker_flag'.
12084 # Supported since Solaris 2.6 (maybe 2.5.1?)
12085 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12088 link_all_deplibs_CXX=yes
12090 output_verbose_link_cmd='echo'
12092 # Archives containing C++ object files must be created using
12093 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12094 # necessary to make sure instantiated templates are included
12096 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12099 # Green Hills C++ Compiler
12100 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12102 # The C++ compiler must be used to create the archive.
12103 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12106 # GNU C++ compiler with Solaris linker
12107 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12108 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12109 if $CC --version | grep -v '^2\.7' > /dev/null; then
12110 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12111 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12112 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12114 # Commands to make compiler produce verbose output that lists
12115 # what "hidden" libraries, object files and flags are used when
12116 # linking a shared library.
12117 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12119 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12121 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12122 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12123 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12125 # Commands to make compiler produce verbose output that lists
12126 # what "hidden" libraries, object files and flags are used when
12127 # linking a shared library.
12128 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12131 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12133 solaris2.[0-5] | solaris2.[0-5].*) ;;
12135 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12142 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12143 no_undefined_flag_CXX='${wl}-z,text'
12144 archive_cmds_need_lc_CXX=no
12145 hardcode_shlibpath_var_CXX=no
12146 runpath_var='LD_RUN_PATH'
12148 case $cc_basename in
12150 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12151 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12154 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12155 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12159 sysv5* | sco3.2v5* | sco5v6*)
12160 # Note: We can NOT use -z defs as we might desire, because we do not
12161 # link with -lc, and that would cause any symbols used from libc to
12162 # always be unresolved, which means just about no library would
12163 # ever link correctly. If we're not using GNU ld we use -z text
12164 # though, which does catch some bad symbols but isn't as heavy-handed
12166 # For security reasons, it is highly recommended that you always
12167 # use absolute paths for naming shared libraries, and exclude the
12168 # DT_RUNPATH tag from executables and libraries. But doing so
12169 # requires that you compile everything twice, which is a pain.
12170 # So that behaviour is only enabled if SCOABSPATH is set to a
12171 # non-empty value in the environment. Most likely only useful for
12172 # creating official distributions of packages.
12173 # This is a hack until libtool officially supports absolute path
12174 # names for shared libraries.
12175 no_undefined_flag_CXX='${wl}-z,text'
12176 allow_undefined_flag_CXX='${wl}-z,nodefs'
12177 archive_cmds_need_lc_CXX=no
12178 hardcode_shlibpath_var_CXX=no
12179 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12180 hardcode_libdir_separator_CXX=':'
12181 link_all_deplibs_CXX=yes
12182 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12183 runpath_var='LD_RUN_PATH'
12185 case $cc_basename in
12187 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12188 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12191 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12192 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12197 case $cc_basename in
12199 # NonStop-UX NCC 3.20
12200 # FIXME: insert proper C++ library support
12204 # FIXME: insert proper C++ library support
12210 # FIXME: insert proper C++ library support
12214 # FIXME: insert proper C++ library support
12218 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12219 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12220 test "$ld_shlibs_CXX" = no && can_build_shared=no
12225 cat > conftest.$ac_ext <<EOF
12229 Foo (void) { a = 0; }
12235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12236 (eval $ac_compile) 2>&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; then
12240 # Parse the compiler output and extract the necessary
12241 # objects, libraries and library flags.
12243 # Sentinel used to keep track of whether or not we are before
12244 # the conftest object file.
12245 pre_test_object_deps_done=no
12247 # The `*' in the case matches for architectures that use `case' in
12248 # $output_verbose_cmd can trigger glob expansion during the loop
12249 # eval without this substitution.
12250 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12252 for p in `eval $output_verbose_link_cmd`; do
12256 # Some compilers place space between "-{L,R}" and the path.
12257 # Remove the space.
12258 if test $p = "-L" \
12259 || test $p = "-R"; then
12266 if test "$pre_test_object_deps_done" = no; then
12269 # Internal compiler library paths should come after those
12270 # provided the user. The postdeps already come after the
12271 # user supplied libs so there is no need to process them.
12272 if test -z "$compiler_lib_search_path_CXX"; then
12273 compiler_lib_search_path_CXX="${prev}${p}"
12275 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12278 # The "-l" case would never come before the object being
12279 # linked, so don't bother handling this case.
12282 if test -z "$postdeps_CXX"; then
12283 postdeps_CXX="${prev}${p}"
12285 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12291 # This assumes that the test object file only shows up
12292 # once in the compiler output.
12293 if test "$p" = "conftest.$objext"; then
12294 pre_test_object_deps_done=yes
12298 if test "$pre_test_object_deps_done" = no; then
12299 if test -z "$predep_objects_CXX"; then
12300 predep_objects_CXX="$p"
12302 predep_objects_CXX="$predep_objects_CXX $p"
12305 if test -z "$postdep_objects_CXX"; then
12306 postdep_objects_CXX="$p"
12308 postdep_objects_CXX="$postdep_objects_CXX $p"
12313 *) ;; # Ignore the rest.
12321 echo "libtool.m4: error: problem compiling CXX test program"
12324 $rm -f confest.$objext
12326 compiler_lib_search_dirs_CXX=
12327 if test -n "$compiler_lib_search_path_CXX"; then
12328 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12331 # PORTME: override above test on systems where it is broken
12334 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12335 # hack all around it, let's just trust "g++" to DTRT.
12336 predep_objects_CXX=
12337 postdep_objects_CXX=
12342 case `$CC -V 2>&1 | sed 5q` in
12346 # The more standards-conforming stlport4 library is
12347 # incompatible with the Cstd library. Avoid specifying
12348 # it if it's in CXXFLAGS. Ignore libCrun as
12349 # -library=stlport4 depends on it.
12350 case " $CXX $CXXFLAGS " in
12351 *" -library=stlport4 "*)
12352 solaris_use_stlport4=yes
12355 if test "$solaris_use_stlport4" != yes; then
12356 postdeps_CXX='-library=Cstd -library=Crun'
12363 case $cc_basename in
12365 # The more standards-conforming stlport4 library is
12366 # incompatible with the Cstd library. Avoid specifying
12367 # it if it's in CXXFLAGS. Ignore libCrun as
12368 # -library=stlport4 depends on it.
12369 case " $CXX $CXXFLAGS " in
12370 *" -library=stlport4 "*)
12371 solaris_use_stlport4=yes
12375 # Adding this requires a known-good setup of shared libraries for
12376 # Sun compiler versions before 5.6, else PIC objects from an old
12377 # archive will be linked into the output, leading to subtle bugs.
12378 if test "$solaris_use_stlport4" != yes; then
12379 postdeps_CXX='-library=Cstd -library=Crun'
12386 case " $postdeps_CXX " in
12387 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12390 lt_prog_compiler_wl_CXX=
12391 lt_prog_compiler_pic_CXX=
12392 lt_prog_compiler_static_CXX=
12394 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12395 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12397 # C++ specific cases for pic, static, wl, etc.
12398 if test "$GXX" = yes; then
12399 lt_prog_compiler_wl_CXX='-Wl,'
12400 lt_prog_compiler_static_CXX='-static'
12404 # All AIX code is PIC.
12405 if test "$host_cpu" = ia64; then
12406 # AIX 5 now supports IA64 processor
12407 lt_prog_compiler_static_CXX='-Bstatic'
12411 # FIXME: we need at least 68020 code to build shared libraries, but
12412 # adding the `-m68020' flag to GCC prevents building anything better,
12414 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12416 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12417 # PIC is the default for these OSes.
12419 mingw* | cygwin* | os2* | pw32*)
12420 # This hack is so that the source file can tell whether it is being
12421 # built for inclusion in a dll (and should export symbols for example).
12422 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12423 # (--disable-auto-import) libraries
12424 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12426 darwin* | rhapsody*)
12427 # PIC is the default on this platform
12428 # Common symbols not allowed in MH_DYLIB files
12429 lt_prog_compiler_pic_CXX='-fno-common'
12432 # DJGPP does not support shared libraries at all
12433 lt_prog_compiler_pic_CXX=
12436 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12437 # Instead, we relocate shared libraries at runtime.
12440 if test -d /usr/nec; then
12441 lt_prog_compiler_pic_CXX=-Kconform_pic
12445 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12446 # not for PA HP-UX.
12451 lt_prog_compiler_pic_CXX='-fPIC'
12456 lt_prog_compiler_pic_CXX='-fPIC'
12462 # All AIX code is PIC.
12463 if test "$host_cpu" = ia64; then
12464 # AIX 5 now supports IA64 processor
12465 lt_prog_compiler_static_CXX='-Bstatic'
12467 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12471 case $cc_basename in
12473 # Green Hills C++ Compiler
12474 # _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"
12479 # PIC is the default on this platform
12480 # Common symbols not allowed in MH_DYLIB files
12481 case $cc_basename in
12483 lt_prog_compiler_pic_CXX='-qnocommon'
12484 lt_prog_compiler_wl_CXX='-Wl,'
12489 case $cc_basename in
12491 lt_prog_compiler_pic_CXX='-KPIC'
12494 # Green Hills C++ Compiler
12495 lt_prog_compiler_pic_CXX='-pic'
12501 freebsd* | dragonfly*)
12502 # FreeBSD uses GNU C++
12504 hpux9* | hpux10* | hpux11*)
12505 case $cc_basename in
12507 lt_prog_compiler_wl_CXX='-Wl,'
12508 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12509 if test "$host_cpu" != ia64; then
12510 lt_prog_compiler_pic_CXX='+Z'
12514 lt_prog_compiler_wl_CXX='-Wl,'
12515 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12521 lt_prog_compiler_pic_CXX='+Z'
12530 # This is c89, which is MS Visual C++ (no shared libs)
12531 # Anyone wants to do a port?
12533 irix5* | irix6* | nonstopux*)
12534 case $cc_basename in
12536 lt_prog_compiler_wl_CXX='-Wl,'
12537 lt_prog_compiler_static_CXX='-non_shared'
12538 # CC pic flag -KPIC is the default.
12544 linux* | k*bsd*-gnu)
12545 case $cc_basename in
12548 lt_prog_compiler_wl_CXX='--backend -Wl,'
12549 lt_prog_compiler_pic_CXX='-fPIC'
12553 lt_prog_compiler_wl_CXX='-Wl,'
12554 lt_prog_compiler_pic_CXX='-KPIC'
12555 lt_prog_compiler_static_CXX='-static'
12558 # Portland Group C++ compiler.
12559 lt_prog_compiler_wl_CXX='-Wl,'
12560 lt_prog_compiler_pic_CXX='-fpic'
12561 lt_prog_compiler_static_CXX='-Bstatic'
12565 # Make sure the PIC flag is empty. It appears that all Alpha
12566 # Linux and Compaq Tru64 Unix objects are PIC.
12567 lt_prog_compiler_pic_CXX=
12568 lt_prog_compiler_static_CXX='-non_shared'
12571 case `$CC -V 2>&1 | sed 5q` in
12574 lt_prog_compiler_pic_CXX='-KPIC'
12575 lt_prog_compiler_static_CXX='-Bstatic'
12576 lt_prog_compiler_wl_CXX='-Qoption ld '
12587 case $cc_basename in
12589 lt_prog_compiler_pic_CXX='-W c,exportall'
12595 netbsd* | netbsdelf*-gnu)
12597 osf3* | osf4* | osf5*)
12598 case $cc_basename in
12600 lt_prog_compiler_wl_CXX='--backend -Wl,'
12603 # Rational C++ 2.4.1
12604 lt_prog_compiler_pic_CXX='-pic'
12607 # Digital/Compaq C++
12608 lt_prog_compiler_wl_CXX='-Wl,'
12609 # Make sure the PIC flag is empty. It appears that all Alpha
12610 # Linux and Compaq Tru64 Unix objects are PIC.
12611 lt_prog_compiler_pic_CXX=
12612 lt_prog_compiler_static_CXX='-non_shared'
12621 case $cc_basename in
12623 # Sun C++ 4.2, 5.x and Centerline C++
12624 lt_prog_compiler_pic_CXX='-KPIC'
12625 lt_prog_compiler_static_CXX='-Bstatic'
12626 lt_prog_compiler_wl_CXX='-Qoption ld '
12629 # Green Hills C++ Compiler
12630 lt_prog_compiler_pic_CXX='-PIC'
12637 case $cc_basename in
12640 lt_prog_compiler_pic_CXX='-pic'
12641 lt_prog_compiler_static_CXX='-Bstatic'
12645 lt_prog_compiler_pic_CXX='-pic'
12652 case $cc_basename in
12654 # NonStop-UX NCC 3.20
12655 lt_prog_compiler_pic_CXX='-KPIC'
12661 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12662 case $cc_basename in
12664 lt_prog_compiler_wl_CXX='-Wl,'
12665 lt_prog_compiler_pic_CXX='-KPIC'
12666 lt_prog_compiler_static_CXX='-Bstatic'
12673 lt_prog_compiler_can_build_shared_CXX=no
12678 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12679 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12682 # Check to make sure the PIC flag actually works.
12684 if test -n "$lt_prog_compiler_pic_CXX"; then
12686 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12687 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12688 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 lt_cv_prog_compiler_pic_works_CXX=no
12692 ac_outfile=conftest.$ac_objext
12693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12694 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12695 # Insert the option either (1) after the last *FLAGS variable, or
12696 # (2) before a word containing "conftest.", or (3) at the end.
12697 # Note that $ac_compile itself does not contain backslashes and begins
12698 # with a dollar sign (not a hyphen), so the echo should work correctly.
12699 # The option is referenced via a variable to avoid confusing sed.
12700 lt_compile=`echo "$ac_compile" | $SED \
12701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12703 -e 's:$: $lt_compiler_flag:'`
12704 (eval echo "\"\$as_me:12704: $lt_compile\"" >&5)
12705 (eval "$lt_compile" 2>conftest.err)
12707 cat conftest.err >&5
12708 echo "$as_me:12708: \$? = $ac_status" >&5
12709 if (exit $ac_status) && test -s "$ac_outfile"; then
12710 # The compiler can only warn and ignore the option if not recognized
12711 # So say no if there are warnings other than the usual output.
12712 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12714 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12715 lt_cv_prog_compiler_pic_works_CXX=yes
12721 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12722 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12724 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12725 case $lt_prog_compiler_pic_CXX in
12727 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12730 lt_prog_compiler_pic_CXX=
12731 lt_prog_compiler_can_build_shared_CXX=no
12736 # For platforms which do not support PIC, -DPIC is meaningless:
12738 lt_prog_compiler_pic_CXX=
12741 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12746 # Check to make sure the static flag actually works.
12748 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12749 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12750 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12751 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 lt_cv_prog_compiler_static_works_CXX=no
12755 save_LDFLAGS="$LDFLAGS"
12756 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12757 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12758 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12759 # The linker can only warn and ignore the option if not recognized
12760 # So say no if there are warnings
12761 if test -s conftest.err; then
12762 # Append any errors to the config.log.
12763 cat conftest.err 1>&5
12764 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12766 if diff conftest.exp conftest.er2 >/dev/null; then
12767 lt_cv_prog_compiler_static_works_CXX=yes
12770 lt_cv_prog_compiler_static_works_CXX=yes
12774 LDFLAGS="$save_LDFLAGS"
12777 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12778 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12780 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12783 lt_prog_compiler_static_CXX=
12787 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12788 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12789 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 lt_cv_prog_compiler_c_o_CXX=no
12793 $rm -r conftest 2>/dev/null
12797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12799 lt_compiler_flag="-o out/conftest2.$ac_objext"
12800 # Insert the option either (1) after the last *FLAGS variable, or
12801 # (2) before a word containing "conftest.", or (3) at the end.
12802 # Note that $ac_compile itself does not contain backslashes and begins
12803 # with a dollar sign (not a hyphen), so the echo should work correctly.
12804 lt_compile=`echo "$ac_compile" | $SED \
12805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12807 -e 's:$: $lt_compiler_flag:'`
12808 (eval echo "\"\$as_me:12808: $lt_compile\"" >&5)
12809 (eval "$lt_compile" 2>out/conftest.err)
12811 cat out/conftest.err >&5
12812 echo "$as_me:12812: \$? = $ac_status" >&5
12813 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12815 # The compiler can only warn and ignore the option if not recognized
12816 # So say no if there are warnings
12817 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12818 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12819 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12820 lt_cv_prog_compiler_c_o_CXX=yes
12825 # SGI C++ compiler will create directory out/ii_files/ for
12826 # template instantiation
12827 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12828 $rm out/* && rmdir out
12834 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12835 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12838 hard_links="nottested"
12839 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12840 # do not overwrite the value of need_locks provided by the user
12841 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12842 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12845 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12847 ln conftest.a conftest.b 2>&5 || hard_links=no
12848 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12849 { echo "$as_me:$LINENO: result: $hard_links" >&5
12850 echo "${ECHO_T}$hard_links" >&6; }
12851 if test "$hard_links" = no; then
12852 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12853 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12860 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12861 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12863 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12866 # If we're using GNU nm, then we don't want the "-C" option.
12867 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12868 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12869 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'
12871 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'
12875 export_symbols_cmds_CXX="$ltdll_cmds"
12878 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'
12880 linux* | k*bsd*-gnu)
12881 link_all_deplibs_CXX=no
12884 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12887 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12889 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12890 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12891 test "$ld_shlibs_CXX" = no && can_build_shared=no
12894 # Do we need to explicitly link libc?
12896 case "x$archive_cmds_need_lc_CXX" in
12898 # Assume -lc should be added
12899 archive_cmds_need_lc_CXX=yes
12901 if test "$enable_shared" = yes && test "$GCC" = yes; then
12902 case $archive_cmds_CXX in
12904 # FIXME: we may have to deal with multi-command sequences.
12907 # Test whether the compiler implicitly links with -lc since on some
12908 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12909 # to ld, don't add -lc before -lgcc.
12910 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12911 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12916 (eval $ac_compile) 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } 2>conftest.err; then
12922 libobjs=conftest.$ac_objext
12924 wl=$lt_prog_compiler_wl_CXX
12925 pic_flag=$lt_prog_compiler_pic_CXX
12931 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12932 allow_undefined_flag_CXX=
12933 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12934 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }
12939 archive_cmds_need_lc_CXX=no
12941 archive_cmds_need_lc_CXX=yes
12943 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12945 cat conftest.err 1>&5
12948 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12949 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12956 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12957 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12958 library_names_spec=
12959 libname_spec='lib$name'
12963 postuninstall_cmds=
12967 shlibpath_overrides_runpath=unknown
12969 dynamic_linker="$host_os ld.so"
12970 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12972 need_lib_prefix=unknown
12973 hardcode_into_libs=no
12975 # when you set need_version to no, make sure it does not cause -set_version
12976 # flags to be left without arguments
12977 need_version=unknown
12982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12983 shlibpath_var=LIBPATH
12985 # AIX 3 has no versioning support, so we append a major version to the name.
12986 soname_spec='${libname}${release}${shared_ext}$major'
12993 hardcode_into_libs=yes
12994 if test "$host_cpu" = ia64; then
12995 # AIX 5 supports IA64
12996 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12997 shlibpath_var=LD_LIBRARY_PATH
12999 # With GCC up to 2.95.x, collect2 would create an import file
13000 # for dependence libraries. The import file would start with
13001 # the line `#! .'. This would cause the generated library to
13002 # depend on `.', always an invalid library. This was fixed in
13003 # development snapshots of GCC prior to 3.0.
13005 aix4 | aix4.[01] | aix4.[01].*)
13006 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13008 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13011 can_build_shared=no
13015 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13016 # soname into executable. Probably we can add versioning support to
13017 # collect2, so additional links can be useful in future.
13018 if test "$aix_use_runtimelinking" = yes; then
13019 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13020 # instead of lib<name>.a to let people know that these are not
13021 # typical AIX shared libraries.
13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13024 # We preserve .a as extension for shared libraries through AIX4.2
13025 # and later when we are not doing run time linking.
13026 library_names_spec='${libname}${release}.a $libname.a'
13027 soname_spec='${libname}${release}${shared_ext}$major'
13029 shlibpath_var=LIBPATH
13034 library_names_spec='$libname.ixlibrary $libname.a'
13035 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13036 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'
13040 library_names_spec='${libname}${shared_ext}'
13041 dynamic_linker="$host_os ld.so"
13042 shlibpath_var=LIBRARY_PATH
13048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13049 soname_spec='${libname}${release}${shared_ext}$major'
13050 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13051 shlibpath_var=LD_LIBRARY_PATH
13052 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13053 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13054 # the default ld.so.conf also contains /usr/contrib/lib and
13055 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13056 # libtool to hard-code these into programs
13059 cygwin* | mingw* | pw32*)
13060 version_type=windows
13065 case $GCC,$host_os in
13066 yes,cygwin* | yes,mingw* | yes,pw32*)
13067 library_names_spec='$libname.dll.a'
13068 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13069 postinstall_cmds='base_file=`basename \${file}`~
13070 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13071 dldir=$destdir/`dirname \$dlpath`~
13072 test -d \$dldir || mkdir -p \$dldir~
13073 $install_prog $dir/$dlname \$dldir/$dlname~
13074 chmod a+x \$dldir/$dlname'
13075 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13076 dlpath=$dir/\$dldll~
13078 shlibpath_overrides_runpath=yes
13082 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13083 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13084 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13087 # MinGW DLLs use traditional 'lib' prefix
13088 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13089 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13090 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13091 # It is most probably a Windows format PATH printed by
13092 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13093 # path with ; separators, and with drive letters. We can handle the
13094 # drive letters (cygwin fileutils understands them), so leave them,
13095 # especially as we might pass files found there to a mingw objdump,
13096 # which wouldn't understand a cygwinified path. Ahh.
13097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13103 # pw32 DLLs use 'pw' prefix rather than 'lib'
13104 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13110 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13113 dynamic_linker='Win32 ld.exe'
13114 # FIXME: first we should search . and the directory the executable is in
13118 darwin* | rhapsody*)
13119 dynamic_linker="$host_os dyld"
13120 version_type=darwin
13123 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13124 soname_spec='${libname}${release}${major}$shared_ext'
13125 shlibpath_overrides_runpath=yes
13126 shlibpath_var=DYLD_LIBRARY_PATH
13127 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13129 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13137 soname_spec='${libname}${release}${shared_ext}$major'
13138 shlibpath_var=LD_LIBRARY_PATH
13145 freebsd* | dragonfly*)
13146 # DragonFly does not have aout. When/if they implement a new
13147 # versioning mechanism, adjust this.
13148 if test -x /usr/bin/objformat; then
13149 objformat=`/usr/bin/objformat`
13152 freebsd[123]*) objformat=aout ;;
13153 *) objformat=elf ;;
13156 version_type=freebsd-$objformat
13157 case $version_type in
13159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13164 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13168 shlibpath_var=LD_LIBRARY_PATH
13171 shlibpath_overrides_runpath=yes
13173 freebsd3.[01]* | freebsdelf3.[01]*)
13174 shlibpath_overrides_runpath=yes
13175 hardcode_into_libs=yes
13177 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13178 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13179 shlibpath_overrides_runpath=no
13180 hardcode_into_libs=yes
13182 *) # from 4.6 on, and DragonFly
13183 shlibpath_overrides_runpath=yes
13184 hardcode_into_libs=yes
13193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13194 soname_spec='${libname}${release}${shared_ext}$major'
13195 shlibpath_var=LD_LIBRARY_PATH
13196 hardcode_into_libs=yes
13199 hpux9* | hpux10* | hpux11*)
13200 # Give a soname corresponding to the major version so that dld.sl refuses to
13201 # link against other versions.
13208 hardcode_into_libs=yes
13209 dynamic_linker="$host_os dld.so"
13210 shlibpath_var=LD_LIBRARY_PATH
13211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13213 soname_spec='${libname}${release}${shared_ext}$major'
13214 if test "X$HPUX_IA64_MODE" = X32; then
13215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13223 hardcode_into_libs=yes
13224 dynamic_linker="$host_os dld.sl"
13225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13228 soname_spec='${libname}${release}${shared_ext}$major'
13229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13234 dynamic_linker="$host_os dld.sl"
13235 shlibpath_var=SHLIB_PATH
13236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13238 soname_spec='${libname}${release}${shared_ext}$major'
13241 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13242 postinstall_cmds='chmod 555 $lib'
13249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13250 soname_spec='${libname}${release}${shared_ext}$major'
13251 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13252 shlibpath_var=LD_LIBRARY_PATH
13253 shlibpath_overrides_runpath=no
13254 hardcode_into_libs=yes
13257 irix5* | irix6* | nonstopux*)
13259 nonstopux*) version_type=nonstopux ;;
13261 if test "$lt_cv_prog_gnu_ld" = yes; then
13269 soname_spec='${libname}${release}${shared_ext}$major'
13270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13272 irix5* | nonstopux*)
13273 libsuff= shlibsuff=
13276 case $LD in # libtool.m4 will add one of these switches to LD
13277 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13278 libsuff= shlibsuff= libmagic=32-bit;;
13279 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13280 libsuff=32 shlibsuff=N32 libmagic=N32;;
13281 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13282 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13283 *) libsuff= shlibsuff= libmagic=never-match;;
13287 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13288 shlibpath_overrides_runpath=no
13289 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13290 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13291 hardcode_into_libs=yes
13294 # No shared lib support for Linux oldld, aout, or coff.
13295 linux*oldld* | linux*aout* | linux*coff*)
13299 # This must be Linux ELF.
13300 linux* | k*bsd*-gnu)
13304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13305 soname_spec='${libname}${release}${shared_ext}$major'
13306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13307 shlibpath_var=LD_LIBRARY_PATH
13308 shlibpath_overrides_runpath=no
13309 # This implies no fast_install, which is unacceptable.
13310 # Some rework will be needed to allow for fast_install
13311 # before this can be enabled.
13312 hardcode_into_libs=yes
13314 # Append ld.so.conf contents to the search path
13315 if test -f /etc/ld.so.conf; then
13316 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13317 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13320 # We used to test for /lib/ld.so.1 and disable shared libraries on
13321 # powerpc, because MkLinux only supported shared libraries with the
13322 # GNU dynamic linker. Since this was broken with cross compilers,
13323 # most powerpc-linux boxes support dynamic linking these days and
13324 # people can always --disable-shared, the test was removed, and we
13325 # assume the GNU/Linux dynamic linker is in use.
13326 dynamic_linker='GNU/Linux ld.so'
13333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13334 soname_spec='${libname}${release}${shared_ext}$major'
13335 shlibpath_var=LD_LIBRARY_PATH
13336 shlibpath_overrides_runpath=no
13337 hardcode_into_libs=yes
13338 dynamic_linker='NetBSD ld.elf_so'
13345 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13348 dynamic_linker='NetBSD (a.out) ld.so'
13350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13351 soname_spec='${libname}${release}${shared_ext}$major'
13352 dynamic_linker='NetBSD ld.elf_so'
13354 shlibpath_var=LD_LIBRARY_PATH
13355 shlibpath_overrides_runpath=yes
13356 hardcode_into_libs=yes
13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13362 shlibpath_var=LD_LIBRARY_PATH
13363 shlibpath_overrides_runpath=yes
13370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13371 soname_spec='${libname}${release}${shared_ext}$major'
13372 shlibpath_var=LD_LIBRARY_PATH
13373 shlibpath_overrides_runpath=yes
13378 sys_lib_dlsearch_path_spec="/usr/lib"
13380 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13382 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13383 *) need_version=no ;;
13385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13387 shlibpath_var=LD_LIBRARY_PATH
13388 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13390 openbsd2.[89] | openbsd2.[89].*)
13391 shlibpath_overrides_runpath=no
13394 shlibpath_overrides_runpath=yes
13398 shlibpath_overrides_runpath=yes
13403 libname_spec='$name'
13406 library_names_spec='$libname${shared_ext} $libname.a'
13407 dynamic_linker='OS/2 ld.exe'
13408 shlibpath_var=LIBPATH
13411 osf3* | osf4* | osf5*)
13415 soname_spec='${libname}${release}${shared_ext}$major'
13416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13417 shlibpath_var=LD_LIBRARY_PATH
13418 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13419 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13431 soname_spec='${libname}${release}${shared_ext}$major'
13432 shlibpath_var=LD_LIBRARY_PATH
13433 shlibpath_overrides_runpath=yes
13434 hardcode_into_libs=yes
13435 # ldd complains unless libraries are executable
13436 postinstall_cmds='chmod +x $lib'
13441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13442 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13443 shlibpath_var=LD_LIBRARY_PATH
13444 shlibpath_overrides_runpath=yes
13445 if test "$with_gnu_ld" = yes; then
13453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13454 soname_spec='${libname}${release}${shared_ext}$major'
13455 shlibpath_var=LD_LIBRARY_PATH
13456 case $host_vendor in
13458 shlibpath_overrides_runpath=no
13460 export_dynamic_flag_spec='${wl}-Blargedynsym'
13461 runpath_var=LD_RUN_PATH
13469 shlibpath_overrides_runpath=no
13470 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13476 if test -d /usr/nec ;then
13478 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13479 soname_spec='$libname${shared_ext}.$major'
13480 shlibpath_var=LD_LIBRARY_PATH
13484 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13485 version_type=freebsd-elf
13488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13489 soname_spec='${libname}${release}${shared_ext}$major'
13490 shlibpath_var=LD_LIBRARY_PATH
13491 hardcode_into_libs=yes
13492 if test "$with_gnu_ld" = yes; then
13493 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13494 shlibpath_overrides_runpath=no
13496 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13497 shlibpath_overrides_runpath=yes
13500 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13504 sys_lib_dlsearch_path_spec='/usr/lib'
13509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13510 soname_spec='${libname}${release}${shared_ext}$major'
13511 shlibpath_var=LD_LIBRARY_PATH
13518 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13519 echo "${ECHO_T}$dynamic_linker" >&6; }
13520 test "$dynamic_linker" = no && can_build_shared=no
13522 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13528 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13529 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13535 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13537 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13538 if test "$GCC" = yes; then
13539 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13542 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13544 hardcode_action_CXX=
13545 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13546 test -n "$runpath_var_CXX" || \
13547 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13549 # We can hardcode non-existant directories.
13550 if test "$hardcode_direct_CXX" != no &&
13551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13552 # have to relink, otherwise we might link with an installed library
13553 # when we should be linking with a yet-to-be-installed one
13554 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13555 test "$hardcode_minus_L_CXX" != no; then
13556 # Linking always hardcodes the temporary library directory.
13557 hardcode_action_CXX=relink
13559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13560 hardcode_action_CXX=immediate
13563 # We cannot hardcode anything, or else we can only hardcode existing
13565 hardcode_action_CXX=unsupported
13567 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13568 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13570 if test "$hardcode_action_CXX" = relink; then
13571 # Fast installation is not supported
13572 enable_fast_install=no
13573 elif test "$shlibpath_overrides_runpath" = yes ||
13574 test "$enable_shared" = no; then
13575 # Fast installation is not necessary
13576 enable_fast_install=needless
13580 # The else clause should only fire when bootstrapping the
13581 # libtool distribution, otherwise you forgot to ship ltmain.sh
13582 # with your package, and you will get complaints that there are
13583 # no rules to generate ltmain.sh.
13584 if test -f "$ltmain"; then
13585 # See if we are running on zsh, and set the options which allow our commands through
13586 # without removal of \ escapes.
13587 if test -n "${ZSH_VERSION+set}" ; then
13588 setopt NO_GLOB_SUBST
13590 # Now quote all the things that may contain metacharacters while being
13591 # careful not to overquote the AC_SUBSTed values. We take copies of the
13592 # variables and quote the copies for generation of the libtool script.
13593 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13595 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13596 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13597 deplibs_check_method reload_flag reload_cmds need_locks \
13598 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13599 lt_cv_sys_global_symbol_to_c_name_address \
13600 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13601 old_postinstall_cmds old_postuninstall_cmds \
13605 lt_prog_compiler_wl_CXX \
13606 lt_prog_compiler_pic_CXX \
13607 lt_prog_compiler_static_CXX \
13608 lt_prog_compiler_no_builtin_flag_CXX \
13609 export_dynamic_flag_spec_CXX \
13610 thread_safe_flag_spec_CXX \
13611 whole_archive_flag_spec_CXX \
13612 enable_shared_with_static_runtimes_CXX \
13613 old_archive_cmds_CXX \
13614 old_archive_from_new_cmds_CXX \
13615 predep_objects_CXX \
13616 postdep_objects_CXX \
13619 compiler_lib_search_path_CXX \
13620 compiler_lib_search_dirs_CXX \
13622 archive_expsym_cmds_CXX \
13623 postinstall_cmds_CXX \
13624 postuninstall_cmds_CXX \
13625 old_archive_from_expsyms_cmds_CXX \
13626 allow_undefined_flag_CXX \
13627 no_undefined_flag_CXX \
13628 export_symbols_cmds_CXX \
13629 hardcode_libdir_flag_spec_CXX \
13630 hardcode_libdir_flag_spec_ld_CXX \
13631 hardcode_libdir_separator_CXX \
13632 hardcode_automatic_CXX \
13634 module_expsym_cmds_CXX \
13635 lt_cv_prog_compiler_c_o_CXX \
13636 fix_srcfile_path_CXX \
13637 exclude_expsyms_CXX \
13638 include_expsyms_CXX; do
13641 old_archive_cmds_CXX | \
13642 old_archive_from_new_cmds_CXX | \
13643 archive_cmds_CXX | \
13644 archive_expsym_cmds_CXX | \
13645 module_cmds_CXX | \
13646 module_expsym_cmds_CXX | \
13647 old_archive_from_expsyms_cmds_CXX | \
13648 export_symbols_cmds_CXX | \
13649 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13650 postinstall_cmds | postuninstall_cmds | \
13651 old_postinstall_cmds | old_postuninstall_cmds | \
13652 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13653 # Double-quote double-evaled strings.
13654 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13657 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13663 *'\$0 --fallback-echo"')
13664 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13670 cat <<__EOF__ >> "$cfgfile"
13671 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13673 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13675 # Shell to use when invoking shell scripts.
13678 # Whether or not to build shared libraries.
13679 build_libtool_libs=$enable_shared
13681 # Whether or not to build static libraries.
13682 build_old_libs=$enable_static
13684 # Whether or not to add -lc for building shared libraries.
13685 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13687 # Whether or not to disallow shared libs when runtime libs are static
13688 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13690 # Whether or not to optimize for fast installation.
13691 fast_install=$enable_fast_install
13694 host_alias=$host_alias
13698 # The build system.
13699 build_alias=$build_alias
13703 # An echo program that does not interpret backslashes.
13708 AR_FLAGS=$lt_AR_FLAGS
13713 # LTCC compiler flags.
13714 LTCFLAGS=$lt_LTCFLAGS
13716 # A language-specific compiler.
13717 CC=$lt_compiler_CXX
13719 # Is the compiler the GNU C compiler?
13725 # The linker used to build libraries.
13728 # Whether we need hard or soft links.
13731 # A BSD-compatible nm program.
13734 # A symbol stripping program
13737 # Used to examine libraries when file_magic_cmd begins "file"
13738 MAGIC_CMD=$MAGIC_CMD
13740 # Used on cygwin: DLL creation program.
13743 # Used on cygwin: object dumper.
13746 # Used on cygwin: assembler.
13749 # The name of the directory that contains temporary libtool files.
13752 # How to create reloadable object files.
13753 reload_flag=$lt_reload_flag
13754 reload_cmds=$lt_reload_cmds
13756 # How to pass a linker flag through the compiler.
13757 wl=$lt_lt_prog_compiler_wl_CXX
13759 # Object file suffix (normally "o").
13760 objext="$ac_objext"
13762 # Old archive suffix (normally "a").
13765 # Shared library suffix (normally ".so").
13766 shrext_cmds='$shrext_cmds'
13768 # Executable file suffix (normally "").
13771 # Additional compiler flags for building library objects.
13772 pic_flag=$lt_lt_prog_compiler_pic_CXX
13775 # What is the maximum length of a command?
13776 max_cmd_len=$lt_cv_sys_max_cmd_len
13778 # Does compiler simultaneously support -c and -o options?
13779 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13781 # Must we lock files when doing compilation?
13782 need_locks=$lt_need_locks
13784 # Do we need the lib prefix for modules?
13785 need_lib_prefix=$need_lib_prefix
13787 # Do we need a version for libraries?
13788 need_version=$need_version
13790 # Whether dlopen is supported.
13791 dlopen_support=$enable_dlopen
13793 # Whether dlopen of programs is supported.
13794 dlopen_self=$enable_dlopen_self
13796 # Whether dlopen of statically linked programs is supported.
13797 dlopen_self_static=$enable_dlopen_self_static
13799 # Compiler flag to prevent dynamic linking.
13800 link_static_flag=$lt_lt_prog_compiler_static_CXX
13802 # Compiler flag to turn off builtin functions.
13803 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13805 # Compiler flag to allow reflexive dlopens.
13806 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13808 # Compiler flag to generate shared objects directly from archives.
13809 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13811 # Compiler flag to generate thread-safe objects.
13812 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13814 # Library versioning type.
13815 version_type=$version_type
13817 # Format of library name prefix.
13818 libname_spec=$lt_libname_spec
13820 # List of archive names. First name is the real one, the rest are links.
13821 # The last name is the one that the linker finds with -lNAME.
13822 library_names_spec=$lt_library_names_spec
13824 # The coded name of the library, if different from the real name.
13825 soname_spec=$lt_soname_spec
13827 # Commands used to build and install an old-style archive.
13829 old_archive_cmds=$lt_old_archive_cmds_CXX
13830 old_postinstall_cmds=$lt_old_postinstall_cmds
13831 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13833 # Create an old-style archive from a shared archive.
13834 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13836 # Create a temporary old-style archive to link instead of a shared archive.
13837 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13839 # Commands used to build and install a shared archive.
13840 archive_cmds=$lt_archive_cmds_CXX
13841 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13842 postinstall_cmds=$lt_postinstall_cmds
13843 postuninstall_cmds=$lt_postuninstall_cmds
13845 # Commands used to build a loadable module (assumed same as above if empty)
13846 module_cmds=$lt_module_cmds_CXX
13847 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13849 # Commands to strip libraries.
13850 old_striplib=$lt_old_striplib
13851 striplib=$lt_striplib
13853 # Dependencies to place before the objects being linked to create a
13855 predep_objects=$lt_predep_objects_CXX
13857 # Dependencies to place after the objects being linked to create a
13859 postdep_objects=$lt_postdep_objects_CXX
13861 # Dependencies to place before the objects being linked to create a
13863 predeps=$lt_predeps_CXX
13865 # Dependencies to place after the objects being linked to create a
13867 postdeps=$lt_postdeps_CXX
13869 # The directories searched by this compiler when creating a shared
13871 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13873 # The library search path used internally by the compiler when linking
13874 # a shared library.
13875 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13877 # Method to check whether dependent libraries are shared objects.
13878 deplibs_check_method=$lt_deplibs_check_method
13880 # Command to use when deplibs_check_method == file_magic.
13881 file_magic_cmd=$lt_file_magic_cmd
13883 # Flag that allows shared libraries with undefined symbols to be built.
13884 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13886 # Flag that forces no undefined symbols.
13887 no_undefined_flag=$lt_no_undefined_flag_CXX
13889 # Commands used to finish a libtool library installation in a directory.
13890 finish_cmds=$lt_finish_cmds
13892 # Same as above, but a single script fragment to be evaled but not shown.
13893 finish_eval=$lt_finish_eval
13895 # Take the output of nm and produce a listing of raw symbols and C names.
13896 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13898 # Transform the output of nm in a proper C declaration
13899 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13901 # Transform the output of nm in a C name address pair
13902 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13904 # This is the shared library runtime path variable.
13905 runpath_var=$runpath_var
13907 # This is the shared library path variable.
13908 shlibpath_var=$shlibpath_var
13910 # Is shlibpath searched before the hard-coded library search path?
13911 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13913 # How to hardcode a shared library path into an executable.
13914 hardcode_action=$hardcode_action_CXX
13916 # Whether we should hardcode library paths into libraries.
13917 hardcode_into_libs=$hardcode_into_libs
13919 # Flag to hardcode \$libdir into a binary during linking.
13920 # This must work even if \$libdir does not exist.
13921 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13923 # If ld is used when linking, flag to hardcode \$libdir into
13924 # a binary during linking. This must work even if \$libdir does
13926 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13928 # Whether we need a single -rpath flag with a separated argument.
13929 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13931 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13932 # resulting binary.
13933 hardcode_direct=$hardcode_direct_CXX
13935 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13936 # resulting binary.
13937 hardcode_minus_L=$hardcode_minus_L_CXX
13939 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13940 # the resulting binary.
13941 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13943 # Set to yes if building a shared library automatically hardcodes DIR into the library
13944 # and all subsequent libraries and executables linked against it.
13945 hardcode_automatic=$hardcode_automatic_CXX
13947 # Variables whose values should be saved in libtool wrapper scripts and
13948 # restored at relink time.
13949 variables_saved_for_relink="$variables_saved_for_relink"
13951 # Whether libtool must link a program against all its dependency libraries.
13952 link_all_deplibs=$link_all_deplibs_CXX
13954 # Compile-time system search path for libraries
13955 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13957 # Run-time system search path for libraries
13958 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13960 # Fix the shell variable \$srcfile for the compiler.
13961 fix_srcfile_path=$lt_fix_srcfile_path
13963 # Set to yes if exported symbols are required.
13964 always_export_symbols=$always_export_symbols_CXX
13966 # The commands to list exported symbols.
13967 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13969 # The commands to extract the exported symbol list from a shared archive.
13970 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13972 # Symbols that should not be listed in the preloaded symbols.
13973 exclude_expsyms=$lt_exclude_expsyms_CXX
13975 # Symbols that must always be exported.
13976 include_expsyms=$lt_include_expsyms_CXX
13978 # ### END LIBTOOL TAG CONFIG: $tagname
13984 # If there is no Makefile yet, we rely on a make rule to execute
13985 # `config.status --recheck' to rerun these tests and create the
13986 # libtool script then.
13987 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13988 if test -f "$ltmain_in"; then
13989 test -f Makefile && make "$ltmain"
13995 ac_cpp='$CPP $CPPFLAGS'
13996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14004 with_gnu_ldcxx=$with_gnu_ld
14005 with_gnu_ld=$lt_save_with_gnu_ld
14006 lt_cv_path_LDCXX=$lt_cv_path_LD
14007 lt_cv_path_LD=$lt_save_path_LD
14008 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14009 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14017 if test -n "$F77" && test "X$F77" != "Xno"; then
14020 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14021 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14022 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14025 archive_cmds_need_lc_F77=no
14026 allow_undefined_flag_F77=
14027 always_export_symbols_F77=no
14028 archive_expsym_cmds_F77=
14029 export_dynamic_flag_spec_F77=
14030 hardcode_direct_F77=no
14031 hardcode_libdir_flag_spec_F77=
14032 hardcode_libdir_flag_spec_ld_F77=
14033 hardcode_libdir_separator_F77=
14034 hardcode_minus_L_F77=no
14035 hardcode_automatic_F77=no
14037 module_expsym_cmds_F77=
14038 link_all_deplibs_F77=unknown
14039 old_archive_cmds_F77=$old_archive_cmds
14040 no_undefined_flag_F77=
14041 whole_archive_flag_spec_F77=
14042 enable_shared_with_static_runtimes_F77=no
14044 # Source file extension for f77 test sources.
14047 # Object file extension for compiled f77 test sources.
14051 # Code to be used in simple compile tests
14052 lt_simple_compile_test_code="\
14058 # Code to be used in simple link tests
14059 lt_simple_link_test_code="\
14064 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14066 # If no C compiler was specified, use CC.
14069 # If no C compiler flags were specified, use CFLAGS.
14070 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14072 # Allow CC to be a program name with arguments.
14076 # save warnings/boilerplate of simple test code
14077 ac_outfile=conftest.$ac_objext
14078 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14079 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14080 _lt_compiler_boilerplate=`cat conftest.err`
14083 ac_outfile=conftest.$ac_objext
14084 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14085 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14086 _lt_linker_boilerplate=`cat conftest.err`
14090 # Allow CC to be a program name with arguments.
14095 for cc_temp in $compiler""; do
14097 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14098 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14103 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14106 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14107 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14108 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14109 echo "${ECHO_T}$can_build_shared" >&6; }
14111 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14112 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14113 test "$can_build_shared" = "no" && enable_shared=no
14115 # On AIX, shared libraries and static libraries use the same namespace, and
14116 # are all built from PIC.
14119 test "$enable_shared" = yes && enable_static=no
14120 if test -n "$RANLIB"; then
14121 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14122 postinstall_cmds='$RANLIB $lib'
14126 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14127 test "$enable_shared" = yes && enable_static=no
14131 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14132 echo "${ECHO_T}$enable_shared" >&6; }
14134 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14135 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14136 # Make sure either enable_shared or enable_static is yes.
14137 test "$enable_shared" = yes || enable_static=yes
14138 { echo "$as_me:$LINENO: result: $enable_static" >&5
14139 echo "${ECHO_T}$enable_static" >&6; }
14144 lt_prog_compiler_wl_F77=
14145 lt_prog_compiler_pic_F77=
14146 lt_prog_compiler_static_F77=
14148 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14149 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14151 if test "$GCC" = yes; then
14152 lt_prog_compiler_wl_F77='-Wl,'
14153 lt_prog_compiler_static_F77='-static'
14157 # All AIX code is PIC.
14158 if test "$host_cpu" = ia64; then
14159 # AIX 5 now supports IA64 processor
14160 lt_prog_compiler_static_F77='-Bstatic'
14165 # FIXME: we need at least 68020 code to build shared libraries, but
14166 # adding the `-m68020' flag to GCC prevents building anything better,
14168 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14171 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14172 # PIC is the default for these OSes.
14175 mingw* | cygwin* | pw32* | os2*)
14176 # This hack is so that the source file can tell whether it is being
14177 # built for inclusion in a dll (and should export symbols for example).
14178 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14179 # (--disable-auto-import) libraries
14180 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14183 darwin* | rhapsody*)
14184 # PIC is the default on this platform
14185 # Common symbols not allowed in MH_DYLIB files
14186 lt_prog_compiler_pic_F77='-fno-common'
14190 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14191 # Instead, we relocate shared libraries at runtime.
14195 # Just because we use GCC doesn't mean we suddenly get shared libraries
14196 # on systems that don't support them.
14197 lt_prog_compiler_can_build_shared_F77=no
14202 if test -d /usr/nec; then
14203 lt_prog_compiler_pic_F77=-Kconform_pic
14208 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14209 # not for PA HP-UX.
14215 lt_prog_compiler_pic_F77='-fPIC'
14221 lt_prog_compiler_pic_F77='-fPIC'
14225 # PORTME Check for flag to pass linker flags through the system compiler.
14228 lt_prog_compiler_wl_F77='-Wl,'
14229 if test "$host_cpu" = ia64; then
14230 # AIX 5 now supports IA64 processor
14231 lt_prog_compiler_static_F77='-Bstatic'
14233 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14237 # PIC is the default on this platform
14238 # Common symbols not allowed in MH_DYLIB files
14239 case $cc_basename in
14241 lt_prog_compiler_pic_F77='-qnocommon'
14242 lt_prog_compiler_wl_F77='-Wl,'
14247 mingw* | cygwin* | pw32* | os2*)
14248 # This hack is so that the source file can tell whether it is being
14249 # built for inclusion in a dll (and should export symbols for example).
14250 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14253 hpux9* | hpux10* | hpux11*)
14254 lt_prog_compiler_wl_F77='-Wl,'
14255 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14256 # not for PA HP-UX.
14262 lt_prog_compiler_pic_F77='+Z'
14265 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14266 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14269 irix5* | irix6* | nonstopux*)
14270 lt_prog_compiler_wl_F77='-Wl,'
14271 # PIC (with -KPIC) is the default.
14272 lt_prog_compiler_static_F77='-non_shared'
14276 lt_prog_compiler_pic_F77='-KPIC'
14277 lt_prog_compiler_static_F77='-Bstatic'
14280 linux* | k*bsd*-gnu)
14281 case $cc_basename in
14283 lt_prog_compiler_wl_F77='-Wl,'
14284 lt_prog_compiler_pic_F77='-KPIC'
14285 lt_prog_compiler_static_F77='-static'
14287 pgcc* | pgf77* | pgf90* | pgf95*)
14288 # Portland Group compilers (*not* the Pentium gcc compiler,
14289 # which looks to be a dead project)
14290 lt_prog_compiler_wl_F77='-Wl,'
14291 lt_prog_compiler_pic_F77='-fpic'
14292 lt_prog_compiler_static_F77='-Bstatic'
14295 lt_prog_compiler_wl_F77='-Wl,'
14296 # All Alpha code is PIC.
14297 lt_prog_compiler_static_F77='-non_shared'
14300 case `$CC -V 2>&1 | sed 5q` in
14303 lt_prog_compiler_pic_F77='-KPIC'
14304 lt_prog_compiler_static_F77='-Bstatic'
14305 lt_prog_compiler_wl_F77='-Wl,'
14308 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14309 lt_prog_compiler_pic_F77='-KPIC'
14310 lt_prog_compiler_static_F77='-Bstatic'
14311 lt_prog_compiler_wl_F77=''
14318 osf3* | osf4* | osf5*)
14319 lt_prog_compiler_wl_F77='-Wl,'
14320 # All OSF/1 code is PIC.
14321 lt_prog_compiler_static_F77='-non_shared'
14325 lt_prog_compiler_static_F77='-non_shared'
14329 lt_prog_compiler_pic_F77='-KPIC'
14330 lt_prog_compiler_static_F77='-Bstatic'
14331 case $cc_basename in
14332 f77* | f90* | f95*)
14333 lt_prog_compiler_wl_F77='-Qoption ld ';;
14335 lt_prog_compiler_wl_F77='-Wl,';;
14340 lt_prog_compiler_wl_F77='-Qoption ld '
14341 lt_prog_compiler_pic_F77='-PIC'
14342 lt_prog_compiler_static_F77='-Bstatic'
14345 sysv4 | sysv4.2uw2* | sysv4.3*)
14346 lt_prog_compiler_wl_F77='-Wl,'
14347 lt_prog_compiler_pic_F77='-KPIC'
14348 lt_prog_compiler_static_F77='-Bstatic'
14352 if test -d /usr/nec ;then
14353 lt_prog_compiler_pic_F77='-Kconform_pic'
14354 lt_prog_compiler_static_F77='-Bstatic'
14358 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14359 lt_prog_compiler_wl_F77='-Wl,'
14360 lt_prog_compiler_pic_F77='-KPIC'
14361 lt_prog_compiler_static_F77='-Bstatic'
14365 lt_prog_compiler_wl_F77='-Wl,'
14366 lt_prog_compiler_can_build_shared_F77=no
14370 lt_prog_compiler_pic_F77='-pic'
14371 lt_prog_compiler_static_F77='-Bstatic'
14375 lt_prog_compiler_can_build_shared_F77=no
14380 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14381 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14384 # Check to make sure the PIC flag actually works.
14386 if test -n "$lt_prog_compiler_pic_F77"; then
14388 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14389 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14390 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14391 echo $ECHO_N "(cached) $ECHO_C" >&6
14393 lt_cv_prog_compiler_pic_works_F77=no
14394 ac_outfile=conftest.$ac_objext
14395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14396 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14397 # Insert the option either (1) after the last *FLAGS variable, or
14398 # (2) before a word containing "conftest.", or (3) at the end.
14399 # Note that $ac_compile itself does not contain backslashes and begins
14400 # with a dollar sign (not a hyphen), so the echo should work correctly.
14401 # The option is referenced via a variable to avoid confusing sed.
14402 lt_compile=`echo "$ac_compile" | $SED \
14403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14405 -e 's:$: $lt_compiler_flag:'`
14406 (eval echo "\"\$as_me:14406: $lt_compile\"" >&5)
14407 (eval "$lt_compile" 2>conftest.err)
14409 cat conftest.err >&5
14410 echo "$as_me:14410: \$? = $ac_status" >&5
14411 if (exit $ac_status) && test -s "$ac_outfile"; then
14412 # The compiler can only warn and ignore the option if not recognized
14413 # So say no if there are warnings other than the usual output.
14414 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14417 lt_cv_prog_compiler_pic_works_F77=yes
14423 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14424 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14426 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14427 case $lt_prog_compiler_pic_F77 in
14429 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14432 lt_prog_compiler_pic_F77=
14433 lt_prog_compiler_can_build_shared_F77=no
14438 # For platforms which do not support PIC, -DPIC is meaningless:
14440 lt_prog_compiler_pic_F77=
14443 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14448 # Check to make sure the static flag actually works.
14450 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14451 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14452 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14453 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14454 echo $ECHO_N "(cached) $ECHO_C" >&6
14456 lt_cv_prog_compiler_static_works_F77=no
14457 save_LDFLAGS="$LDFLAGS"
14458 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14459 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14460 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14461 # The linker can only warn and ignore the option if not recognized
14462 # So say no if there are warnings
14463 if test -s conftest.err; then
14464 # Append any errors to the config.log.
14465 cat conftest.err 1>&5
14466 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14468 if diff conftest.exp conftest.er2 >/dev/null; then
14469 lt_cv_prog_compiler_static_works_F77=yes
14472 lt_cv_prog_compiler_static_works_F77=yes
14476 LDFLAGS="$save_LDFLAGS"
14479 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14480 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14482 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14485 lt_prog_compiler_static_F77=
14489 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14490 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14491 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 lt_cv_prog_compiler_c_o_F77=no
14495 $rm -r conftest 2>/dev/null
14499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14501 lt_compiler_flag="-o out/conftest2.$ac_objext"
14502 # Insert the option either (1) after the last *FLAGS variable, or
14503 # (2) before a word containing "conftest.", or (3) at the end.
14504 # Note that $ac_compile itself does not contain backslashes and begins
14505 # with a dollar sign (not a hyphen), so the echo should work correctly.
14506 lt_compile=`echo "$ac_compile" | $SED \
14507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14509 -e 's:$: $lt_compiler_flag:'`
14510 (eval echo "\"\$as_me:14510: $lt_compile\"" >&5)
14511 (eval "$lt_compile" 2>out/conftest.err)
14513 cat out/conftest.err >&5
14514 echo "$as_me:14514: \$? = $ac_status" >&5
14515 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14517 # The compiler can only warn and ignore the option if not recognized
14518 # So say no if there are warnings
14519 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14520 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14521 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14522 lt_cv_prog_compiler_c_o_F77=yes
14527 # SGI C++ compiler will create directory out/ii_files/ for
14528 # template instantiation
14529 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14530 $rm out/* && rmdir out
14536 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14537 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14540 hard_links="nottested"
14541 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14542 # do not overwrite the value of need_locks provided by the user
14543 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14544 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14549 ln conftest.a conftest.b 2>&5 || hard_links=no
14550 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14551 { echo "$as_me:$LINENO: result: $hard_links" >&5
14552 echo "${ECHO_T}$hard_links" >&6; }
14553 if test "$hard_links" = no; then
14554 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14555 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14562 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14563 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14566 allow_undefined_flag_F77=
14567 enable_shared_with_static_runtimes_F77=no
14569 archive_expsym_cmds_F77=
14570 old_archive_From_new_cmds_F77=
14571 old_archive_from_expsyms_cmds_F77=
14572 export_dynamic_flag_spec_F77=
14573 whole_archive_flag_spec_F77=
14574 thread_safe_flag_spec_F77=
14575 hardcode_libdir_flag_spec_F77=
14576 hardcode_libdir_flag_spec_ld_F77=
14577 hardcode_libdir_separator_F77=
14578 hardcode_direct_F77=no
14579 hardcode_minus_L_F77=no
14580 hardcode_shlibpath_var_F77=unsupported
14581 link_all_deplibs_F77=unknown
14582 hardcode_automatic_F77=no
14584 module_expsym_cmds_F77=
14585 always_export_symbols_F77=no
14586 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14587 # include_expsyms should be a list of space-separated symbols to be *always*
14588 # included in the symbol list
14589 include_expsyms_F77=
14590 # exclude_expsyms can be an extended regexp of symbols to exclude
14591 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14592 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14593 # as well as any symbol that contains `d'.
14594 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14595 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14596 # platforms (ab)use it in PIC code, but their linkers get confused if
14597 # the symbol is explicitly referenced. Since portable code cannot
14598 # rely on this symbol name, it's probably fine to never include it in
14599 # preloaded symbol tables.
14600 # Exclude shared library initialization/finalization symbols.
14601 extract_expsyms_cmds=
14602 # Just being paranoid about ensuring that cc_basename is set.
14603 for cc_temp in $compiler""; do
14605 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14606 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14611 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14614 cygwin* | mingw* | pw32*)
14615 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14616 # When not using gcc, we currently assume that we are using
14617 # Microsoft Visual C++.
14618 if test "$GCC" != yes; then
14623 # we just hope/assume this is gcc and not c89 (= MSVC++)
14632 if test "$with_gnu_ld" = yes; then
14633 # If archive_cmds runs LD, not CC, wlarc should be empty
14636 # Set some defaults for GNU ld with shared library support. These
14637 # are reset later if shared libraries are not supported. Putting them
14638 # here allows them to be overridden if necessary.
14639 runpath_var=LD_RUN_PATH
14640 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14641 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14642 # ancient GNU ld didn't support --whole-archive et. al.
14643 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14644 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14646 whole_archive_flag_spec_F77=
14648 supports_anon_versioning=no
14649 case `$LD -v 2>/dev/null` in
14650 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14651 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14652 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14653 *\ 2.11.*) ;; # other 2.11 versions
14654 *) supports_anon_versioning=yes ;;
14657 # See if GNU ld supports shared libraries.
14660 # On AIX/PPC, the GNU linker is very broken
14661 if test "$host_cpu" != ia64; then
14665 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14666 *** to be unable to reliably create shared libraries on AIX.
14667 *** Therefore, libtool is disabling shared libraries support. If you
14668 *** really care for shared libraries, you may want to modify your PATH
14669 *** so that a non-GNU linker is found, and then restart.
14676 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)'
14677 hardcode_libdir_flag_spec_F77='-L$libdir'
14678 hardcode_minus_L_F77=yes
14680 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14681 # that the semantics of dynamic libraries on AmigaOS, at least up
14682 # to version 4, is to share data among multiple programs linked
14683 # with the same dynamic library. Since this doesn't match the
14684 # behavior of shared libraries on other platforms, we can't use
14690 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14691 allow_undefined_flag_F77=unsupported
14692 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14693 # support --undefined. This deserves some investigation. FIXME
14694 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14700 cygwin* | mingw* | pw32*)
14701 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14702 # as there is no search path for DLLs.
14703 hardcode_libdir_flag_spec_F77='-L$libdir'
14704 allow_undefined_flag_F77=unsupported
14705 always_export_symbols_F77=no
14706 enable_shared_with_static_runtimes_F77=yes
14707 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14709 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14710 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14711 # If the export-symbols file already is a .def file (1st line
14712 # is EXPORTS), use it as is; otherwise, prepend...
14713 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14714 cp $export_symbols $output_objdir/$soname.def;
14716 echo EXPORTS > $output_objdir/$soname.def;
14717 cat $export_symbols >> $output_objdir/$soname.def;
14719 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14726 hardcode_direct_F77=no
14727 hardcode_shlibpath_var_F77=no
14728 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14729 export_dynamic_flag_spec_F77='${wl}-E'
14730 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14731 # Instead, shared libraries are loaded at an image base (0x10000000 by
14732 # default) and relocated if they conflict, which is a slow very memory
14733 # consuming and fragmenting process. To avoid this, we pick a random,
14734 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14735 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14736 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'
14737 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'
14740 gnu* | linux* | k*bsd*-gnu)
14741 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14743 case $cc_basename,$host_cpu in
14744 pgcc*) # Portland Group C compiler
14745 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'
14746 tmp_addflag=' $pic_flag'
14748 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14749 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'
14750 tmp_addflag=' $pic_flag -Mnomain' ;;
14751 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14752 tmp_addflag=' -i_dynamic' ;;
14753 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14754 tmp_addflag=' -i_dynamic -nofor_main' ;;
14755 ifc* | ifort*) # Intel Fortran compiler
14756 tmp_addflag=' -nofor_main' ;;
14758 case `$CC -V 2>&1 | sed 5q` in
14759 *Sun\ C*) # Sun C 5.9
14760 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14761 tmp_sharedflag='-G' ;;
14762 *Sun\ F*) # Sun Fortran 8.3
14763 tmp_sharedflag='-G' ;;
14765 tmp_sharedflag='-shared' ;;
14767 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14769 if test $supports_anon_versioning = yes; then
14770 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14771 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14772 $echo "local: *; };" >> $output_objdir/$libname.ver~
14773 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14775 link_all_deplibs_F77=no
14781 netbsd* | netbsdelf*-gnu)
14782 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14783 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14786 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14787 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14792 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14796 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14797 *** create shared libraries on Solaris systems. Therefore, libtool
14798 *** is disabling shared libraries support. We urge you to upgrade GNU
14799 *** binutils to release 2.9.1 or newer. Another option is to modify
14800 *** your PATH or compiler configuration so that the native linker is
14801 *** used, and then restart.
14804 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14805 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14806 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14812 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14813 case `$LD -v 2>&1` in
14814 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14818 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14819 *** reliably create shared libraries on SCO systems. Therefore, libtool
14820 *** is disabling shared libraries support. We urge you to upgrade GNU
14821 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14822 *** your PATH or compiler configuration so that the native linker is
14823 *** used, and then restart.
14828 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14829 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14830 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14831 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14840 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14842 hardcode_direct_F77=yes
14843 hardcode_shlibpath_var_F77=no
14847 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14848 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14849 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14856 if test "$ld_shlibs_F77" = no; then
14858 hardcode_libdir_flag_spec_F77=
14859 export_dynamic_flag_spec_F77=
14860 whole_archive_flag_spec_F77=
14863 # PORTME fill in a description of your system's linker (not GNU ld)
14866 allow_undefined_flag_F77=unsupported
14867 always_export_symbols_F77=yes
14868 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'
14869 # Note: this linker hardcodes the directories in LIBPATH if there
14870 # are no directories specified by -L.
14871 hardcode_minus_L_F77=yes
14872 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14873 # Neither direct hardcoding nor static linking is supported with a
14875 hardcode_direct_F77=unsupported
14880 if test "$host_cpu" = ia64; then
14881 # On IA64, the linker does run time linking by default, so we don't
14882 # have to do anything special.
14883 aix_use_runtimelinking=no
14884 exp_sym_flag='-Bexport'
14887 # If we're using GNU nm, then we don't want the "-C" option.
14888 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14889 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14890 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'
14892 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'
14894 aix_use_runtimelinking=no
14896 # Test if we are trying to use run time linking or normal
14897 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14898 # need to do runtime linking.
14899 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14900 for ld_flag in $LDFLAGS; do
14901 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14902 aix_use_runtimelinking=yes
14909 exp_sym_flag='-bexport'
14910 no_entry_flag='-bnoentry'
14913 # When large executables or shared objects are built, AIX ld can
14914 # have problems creating the table of contents. If linking a library
14915 # or program results in "error TOC overflow" add -mminimal-toc to
14916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14919 archive_cmds_F77=''
14920 hardcode_direct_F77=yes
14921 hardcode_libdir_separator_F77=':'
14922 link_all_deplibs_F77=yes
14924 if test "$GCC" = yes; then
14925 case $host_os in aix4.[012]|aix4.[012].*)
14926 # We only want to do this on AIX 4.2 and lower, the check
14927 # below for broken collect2 doesn't work under 4.3+
14928 collect2name=`${CC} -print-prog-name=collect2`
14929 if test -f "$collect2name" && \
14930 strings "$collect2name" | grep resolve_lib_name >/dev/null
14932 # We have reworked collect2
14935 # We have old collect2
14936 hardcode_direct_F77=unsupported
14937 # It fails to find uninstalled libraries when the uninstalled
14938 # path is not listed in the libpath. Setting hardcode_minus_L
14939 # to unsupported forces relinking
14940 hardcode_minus_L_F77=yes
14941 hardcode_libdir_flag_spec_F77='-L$libdir'
14942 hardcode_libdir_separator_F77=
14946 shared_flag='-shared'
14947 if test "$aix_use_runtimelinking" = yes; then
14948 shared_flag="$shared_flag "'${wl}-G'
14952 if test "$host_cpu" = ia64; then
14953 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14954 # chokes on -Wl,-G. The following line is correct:
14957 if test "$aix_use_runtimelinking" = yes; then
14958 shared_flag='${wl}-G'
14960 shared_flag='${wl}-bM:SRE'
14965 # It seems that -bexpall does not export symbols beginning with
14966 # underscore (_), so it is better to generate a list of symbols to export.
14967 always_export_symbols_F77=yes
14968 if test "$aix_use_runtimelinking" = yes; then
14969 # Warning - without using the other runtime loading flags (-brtl),
14970 # -berok will link without error, but may produce a broken library.
14971 allow_undefined_flag_F77='-berok'
14972 # Determine the default libpath from the value encoded in an empty executable.
14973 cat >conftest.$ac_ext <<_ACEOF
14978 rm -f conftest.$ac_objext conftest$ac_exeext
14979 if { (ac_try="$ac_link"
14980 case "(($ac_try" in
14981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982 *) ac_try_echo=$ac_try;;
14984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14985 (eval "$ac_link") 2>conftest.er1
14987 grep -v '^ *+' conftest.er1 >conftest.err
14989 cat conftest.err >&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } && {
14992 test -z "$ac_f77_werror_flag" ||
14993 test ! -s conftest.err
14994 } && test -s conftest$ac_exeext &&
14995 $as_test_x conftest$ac_exeext; then
14997 lt_aix_libpath_sed='
14998 /Import File Strings/,/^$/ {
15004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15005 # Check for a 64-bit object if we didn't find anything.
15006 if test -z "$aix_libpath"; then
15007 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15017 conftest$ac_exeext conftest.$ac_ext
15018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15020 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15021 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"
15023 if test "$host_cpu" = ia64; then
15024 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15025 allow_undefined_flag_F77="-z nodefs"
15026 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"
15028 # Determine the default libpath from the value encoded in an empty executable.
15029 cat >conftest.$ac_ext <<_ACEOF
15034 rm -f conftest.$ac_objext conftest$ac_exeext
15035 if { (ac_try="$ac_link"
15036 case "(($ac_try" in
15037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038 *) ac_try_echo=$ac_try;;
15040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15041 (eval "$ac_link") 2>conftest.er1
15043 grep -v '^ *+' conftest.er1 >conftest.err
15045 cat conftest.err >&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } && {
15048 test -z "$ac_f77_werror_flag" ||
15049 test ! -s conftest.err
15050 } && test -s conftest$ac_exeext &&
15051 $as_test_x conftest$ac_exeext; then
15053 lt_aix_libpath_sed='
15054 /Import File Strings/,/^$/ {
15060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15061 # Check for a 64-bit object if we didn't find anything.
15062 if test -z "$aix_libpath"; then
15063 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15066 echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15073 conftest$ac_exeext conftest.$ac_ext
15074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15076 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15077 # Warning - without using the other run time loading flags,
15078 # -berok will link without error, but may produce a broken library.
15079 no_undefined_flag_F77=' ${wl}-bernotok'
15080 allow_undefined_flag_F77=' ${wl}-berok'
15081 # Exported symbols can be pulled into shared objects from archives
15082 whole_archive_flag_spec_F77='$convenience'
15083 archive_cmds_need_lc_F77=yes
15084 # This is similar to how AIX traditionally builds its shared libraries.
15085 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'
15091 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)'
15092 hardcode_libdir_flag_spec_F77='-L$libdir'
15093 hardcode_minus_L_F77=yes
15094 # see comment about different semantics on the GNU ld section
15099 export_dynamic_flag_spec_F77=-rdynamic
15102 cygwin* | mingw* | pw32*)
15103 # When not using gcc, we currently assume that we are using
15104 # Microsoft Visual C++.
15105 # hardcode_libdir_flag_spec is actually meaningless, as there is
15106 # no search path for DLLs.
15107 hardcode_libdir_flag_spec_F77=' '
15108 allow_undefined_flag_F77=unsupported
15109 # Tell ltmain to make .lib files, not .a files.
15111 # Tell ltmain to make .dll files, not .so files.
15113 # FIXME: Setting linknames here is a bad hack.
15114 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15115 # The linker will automatically build a .lib file if we build a DLL.
15116 old_archive_From_new_cmds_F77='true'
15117 # FIXME: Should let the user specify the lib program.
15118 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15119 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15120 enable_shared_with_static_runtimes_F77=yes
15123 darwin* | rhapsody*)
15125 rhapsody* | darwin1.[012])
15126 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15129 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15130 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15132 case ${MACOSX_DEPLOYMENT_TARGET} in
15134 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15137 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15143 archive_cmds_need_lc_F77=no
15144 hardcode_direct_F77=no
15145 hardcode_automatic_F77=yes
15146 hardcode_shlibpath_var_F77=unsupported
15147 whole_archive_flag_spec_F77=''
15148 link_all_deplibs_F77=yes
15149 if test "$GCC" = yes ; then
15150 output_verbose_link_cmd='echo'
15151 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15152 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15153 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15154 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15156 case $cc_basename in
15158 output_verbose_link_cmd='echo'
15159 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15160 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15161 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15162 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15163 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}'
15173 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15174 hardcode_libdir_flag_spec_F77='-L$libdir'
15175 hardcode_shlibpath_var_F77=no
15182 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15183 # support. Future versions do this automatically, but an explicit c++rt0.o
15184 # does not break anything, and helps significantly (at the cost of a little
15187 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15188 hardcode_libdir_flag_spec_F77='-R$libdir'
15189 hardcode_direct_F77=yes
15190 hardcode_shlibpath_var_F77=no
15193 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15195 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15196 hardcode_direct_F77=yes
15197 hardcode_minus_L_F77=yes
15198 hardcode_shlibpath_var_F77=no
15201 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15202 freebsd* | dragonfly*)
15203 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15204 hardcode_libdir_flag_spec_F77='-R$libdir'
15205 hardcode_direct_F77=yes
15206 hardcode_shlibpath_var_F77=no
15210 if test "$GCC" = yes; then
15211 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'
15213 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'
15215 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15216 hardcode_libdir_separator_F77=:
15217 hardcode_direct_F77=yes
15219 # hardcode_minus_L: Not really in the search PATH,
15220 # but as the default location of the library.
15221 hardcode_minus_L_F77=yes
15222 export_dynamic_flag_spec_F77='${wl}-E'
15226 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15227 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15229 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15231 if test "$with_gnu_ld" = no; then
15232 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15233 hardcode_libdir_separator_F77=:
15235 hardcode_direct_F77=yes
15236 export_dynamic_flag_spec_F77='${wl}-E'
15238 # hardcode_minus_L: Not really in the search PATH,
15239 # but as the default location of the library.
15240 hardcode_minus_L_F77=yes
15245 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15248 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15251 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15254 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15260 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15263 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15266 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15270 if test "$with_gnu_ld" = no; then
15271 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15272 hardcode_libdir_separator_F77=:
15276 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15277 hardcode_direct_F77=no
15278 hardcode_shlibpath_var_F77=no
15281 hardcode_direct_F77=yes
15282 export_dynamic_flag_spec_F77='${wl}-E'
15284 # hardcode_minus_L: Not really in the search PATH,
15285 # but as the default location of the library.
15286 hardcode_minus_L_F77=yes
15292 irix5* | irix6* | nonstopux*)
15293 if test "$GCC" = yes; then
15294 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'
15296 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'
15297 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15299 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15300 hardcode_libdir_separator_F77=:
15301 link_all_deplibs_F77=yes
15304 netbsd* | netbsdelf*-gnu)
15305 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15306 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15308 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15310 hardcode_libdir_flag_spec_F77='-R$libdir'
15311 hardcode_direct_F77=yes
15312 hardcode_shlibpath_var_F77=no
15316 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15317 hardcode_direct_F77=yes
15318 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15319 hardcode_libdir_separator_F77=:
15320 hardcode_shlibpath_var_F77=no
15324 if test -f /usr/libexec/ld.so; then
15325 hardcode_direct_F77=yes
15326 hardcode_shlibpath_var_F77=no
15327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15328 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15329 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15330 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15331 export_dynamic_flag_spec_F77='${wl}-E'
15334 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15335 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15336 hardcode_libdir_flag_spec_F77='-R$libdir'
15339 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15340 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15350 hardcode_libdir_flag_spec_F77='-L$libdir'
15351 hardcode_minus_L_F77=yes
15352 allow_undefined_flag_F77=unsupported
15353 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'
15354 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15358 if test "$GCC" = yes; then
15359 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15360 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'
15362 allow_undefined_flag_F77=' -expect_unresolved \*'
15363 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'
15365 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15366 hardcode_libdir_separator_F77=:
15369 osf4* | osf5*) # as osf3* with the addition of -msym flag
15370 if test "$GCC" = yes; then
15371 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15372 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'
15373 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15375 allow_undefined_flag_F77=' -expect_unresolved \*'
15376 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'
15377 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~
15378 $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'
15380 # Both c and cxx compiler support -rpath directly
15381 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15383 hardcode_libdir_separator_F77=:
15387 no_undefined_flag_F77=' -z text'
15388 if test "$GCC" = yes; then
15390 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15391 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15392 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15395 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15396 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15397 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15399 hardcode_libdir_flag_spec_F77='-R$libdir'
15400 hardcode_shlibpath_var_F77=no
15402 solaris2.[0-5] | solaris2.[0-5].*) ;;
15404 # The compiler driver will combine and reorder linker options,
15405 # but understands `-z linker_flag'. GCC discards it without `$wl',
15406 # but is careful enough not to reorder.
15407 # Supported since Solaris 2.6 (maybe 2.5.1?)
15408 if test "$GCC" = yes; then
15409 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15411 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15415 link_all_deplibs_F77=yes
15419 if test "x$host_vendor" = xsequent; then
15420 # Use $CC to link under sequent, because it throws in some extra .o
15421 # files that make .init and .fini sections work.
15422 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15424 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15426 hardcode_libdir_flag_spec_F77='-L$libdir'
15427 hardcode_direct_F77=yes
15428 hardcode_minus_L_F77=yes
15429 hardcode_shlibpath_var_F77=no
15433 case $host_vendor in
15435 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15436 hardcode_direct_F77=yes # is this really true???
15439 ## LD is ld it makes a PLAMLIB
15440 ## CC just makes a GrossModule.
15441 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15442 reload_cmds_F77='$CC -r -o $output$reload_objs'
15443 hardcode_direct_F77=no
15446 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15447 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15450 runpath_var='LD_RUN_PATH'
15451 hardcode_shlibpath_var_F77=no
15455 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15456 hardcode_shlibpath_var_F77=no
15457 export_dynamic_flag_spec_F77='-Bexport'
15461 if test -d /usr/nec; then
15462 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15463 hardcode_shlibpath_var_F77=no
15464 runpath_var=LD_RUN_PATH
15465 hardcode_runpath_var=yes
15470 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15471 no_undefined_flag_F77='${wl}-z,text'
15472 archive_cmds_need_lc_F77=no
15473 hardcode_shlibpath_var_F77=no
15474 runpath_var='LD_RUN_PATH'
15476 if test "$GCC" = yes; then
15477 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15478 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15480 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15481 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15485 sysv5* | sco3.2v5* | sco5v6*)
15486 # Note: We can NOT use -z defs as we might desire, because we do not
15487 # link with -lc, and that would cause any symbols used from libc to
15488 # always be unresolved, which means just about no library would
15489 # ever link correctly. If we're not using GNU ld we use -z text
15490 # though, which does catch some bad symbols but isn't as heavy-handed
15492 no_undefined_flag_F77='${wl}-z,text'
15493 allow_undefined_flag_F77='${wl}-z,nodefs'
15494 archive_cmds_need_lc_F77=no
15495 hardcode_shlibpath_var_F77=no
15496 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15497 hardcode_libdir_separator_F77=':'
15498 link_all_deplibs_F77=yes
15499 export_dynamic_flag_spec_F77='${wl}-Bexport'
15500 runpath_var='LD_RUN_PATH'
15502 if test "$GCC" = yes; then
15503 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15504 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15506 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15507 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15512 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15513 hardcode_libdir_flag_spec_F77='-L$libdir'
15514 hardcode_shlibpath_var_F77=no
15523 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15524 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15525 test "$ld_shlibs_F77" = no && can_build_shared=no
15528 # Do we need to explicitly link libc?
15530 case "x$archive_cmds_need_lc_F77" in
15532 # Assume -lc should be added
15533 archive_cmds_need_lc_F77=yes
15535 if test "$enable_shared" = yes && test "$GCC" = yes; then
15536 case $archive_cmds_F77 in
15538 # FIXME: we may have to deal with multi-command sequences.
15541 # Test whether the compiler implicitly links with -lc since on some
15542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15543 # to ld, don't add -lc before -lgcc.
15544 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15545 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15550 (eval $ac_compile) 2>&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } 2>conftest.err; then
15556 libobjs=conftest.$ac_objext
15558 wl=$lt_prog_compiler_wl_F77
15559 pic_flag=$lt_prog_compiler_pic_F77
15565 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15566 allow_undefined_flag_F77=
15567 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15568 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }
15573 archive_cmds_need_lc_F77=no
15575 archive_cmds_need_lc_F77=yes
15577 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15579 cat conftest.err 1>&5
15582 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15583 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15590 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15591 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15592 library_names_spec=
15593 libname_spec='lib$name'
15597 postuninstall_cmds=
15601 shlibpath_overrides_runpath=unknown
15603 dynamic_linker="$host_os ld.so"
15604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15606 need_lib_prefix=unknown
15607 hardcode_into_libs=no
15609 # when you set need_version to no, make sure it does not cause -set_version
15610 # flags to be left without arguments
15611 need_version=unknown
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15617 shlibpath_var=LIBPATH
15619 # AIX 3 has no versioning support, so we append a major version to the name.
15620 soname_spec='${libname}${release}${shared_ext}$major'
15627 hardcode_into_libs=yes
15628 if test "$host_cpu" = ia64; then
15629 # AIX 5 supports IA64
15630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15631 shlibpath_var=LD_LIBRARY_PATH
15633 # With GCC up to 2.95.x, collect2 would create an import file
15634 # for dependence libraries. The import file would start with
15635 # the line `#! .'. This would cause the generated library to
15636 # depend on `.', always an invalid library. This was fixed in
15637 # development snapshots of GCC prior to 3.0.
15639 aix4 | aix4.[01] | aix4.[01].*)
15640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15642 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15645 can_build_shared=no
15649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15650 # soname into executable. Probably we can add versioning support to
15651 # collect2, so additional links can be useful in future.
15652 if test "$aix_use_runtimelinking" = yes; then
15653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15654 # instead of lib<name>.a to let people know that these are not
15655 # typical AIX shared libraries.
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658 # We preserve .a as extension for shared libraries through AIX4.2
15659 # and later when we are not doing run time linking.
15660 library_names_spec='${libname}${release}.a $libname.a'
15661 soname_spec='${libname}${release}${shared_ext}$major'
15663 shlibpath_var=LIBPATH
15668 library_names_spec='$libname.ixlibrary $libname.a'
15669 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15670 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'
15674 library_names_spec='${libname}${shared_ext}'
15675 dynamic_linker="$host_os ld.so"
15676 shlibpath_var=LIBRARY_PATH
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15684 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15685 shlibpath_var=LD_LIBRARY_PATH
15686 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15687 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15688 # the default ld.so.conf also contains /usr/contrib/lib and
15689 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15690 # libtool to hard-code these into programs
15693 cygwin* | mingw* | pw32*)
15694 version_type=windows
15699 case $GCC,$host_os in
15700 yes,cygwin* | yes,mingw* | yes,pw32*)
15701 library_names_spec='$libname.dll.a'
15702 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15703 postinstall_cmds='base_file=`basename \${file}`~
15704 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15705 dldir=$destdir/`dirname \$dlpath`~
15706 test -d \$dldir || mkdir -p \$dldir~
15707 $install_prog $dir/$dlname \$dldir/$dlname~
15708 chmod a+x \$dldir/$dlname'
15709 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15710 dlpath=$dir/\$dldll~
15712 shlibpath_overrides_runpath=yes
15716 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15717 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15718 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15721 # MinGW DLLs use traditional 'lib' prefix
15722 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15723 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15724 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15725 # It is most probably a Windows format PATH printed by
15726 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15727 # path with ; separators, and with drive letters. We can handle the
15728 # drive letters (cygwin fileutils understands them), so leave them,
15729 # especially as we might pass files found there to a mingw objdump,
15730 # which wouldn't understand a cygwinified path. Ahh.
15731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15737 # pw32 DLLs use 'pw' prefix rather than 'lib'
15738 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15744 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15747 dynamic_linker='Win32 ld.exe'
15748 # FIXME: first we should search . and the directory the executable is in
15752 darwin* | rhapsody*)
15753 dynamic_linker="$host_os dyld"
15754 version_type=darwin
15757 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15758 soname_spec='${libname}${release}${major}$shared_ext'
15759 shlibpath_overrides_runpath=yes
15760 shlibpath_var=DYLD_LIBRARY_PATH
15761 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15763 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15771 soname_spec='${libname}${release}${shared_ext}$major'
15772 shlibpath_var=LD_LIBRARY_PATH
15779 freebsd* | dragonfly*)
15780 # DragonFly does not have aout. When/if they implement a new
15781 # versioning mechanism, adjust this.
15782 if test -x /usr/bin/objformat; then
15783 objformat=`/usr/bin/objformat`
15786 freebsd[123]*) objformat=aout ;;
15787 *) objformat=elf ;;
15790 version_type=freebsd-$objformat
15791 case $version_type in
15793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15802 shlibpath_var=LD_LIBRARY_PATH
15805 shlibpath_overrides_runpath=yes
15807 freebsd3.[01]* | freebsdelf3.[01]*)
15808 shlibpath_overrides_runpath=yes
15809 hardcode_into_libs=yes
15811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15813 shlibpath_overrides_runpath=no
15814 hardcode_into_libs=yes
15816 *) # from 4.6 on, and DragonFly
15817 shlibpath_overrides_runpath=yes
15818 hardcode_into_libs=yes
15827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15828 soname_spec='${libname}${release}${shared_ext}$major'
15829 shlibpath_var=LD_LIBRARY_PATH
15830 hardcode_into_libs=yes
15833 hpux9* | hpux10* | hpux11*)
15834 # Give a soname corresponding to the major version so that dld.sl refuses to
15835 # link against other versions.
15842 hardcode_into_libs=yes
15843 dynamic_linker="$host_os dld.so"
15844 shlibpath_var=LD_LIBRARY_PATH
15845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847 soname_spec='${libname}${release}${shared_ext}$major'
15848 if test "X$HPUX_IA64_MODE" = X32; then
15849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15857 hardcode_into_libs=yes
15858 dynamic_linker="$host_os dld.sl"
15859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15862 soname_spec='${libname}${release}${shared_ext}$major'
15863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15868 dynamic_linker="$host_os dld.sl"
15869 shlibpath_var=SHLIB_PATH
15870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15872 soname_spec='${libname}${release}${shared_ext}$major'
15875 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15876 postinstall_cmds='chmod 555 $lib'
15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15884 soname_spec='${libname}${release}${shared_ext}$major'
15885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15886 shlibpath_var=LD_LIBRARY_PATH
15887 shlibpath_overrides_runpath=no
15888 hardcode_into_libs=yes
15891 irix5* | irix6* | nonstopux*)
15893 nonstopux*) version_type=nonstopux ;;
15895 if test "$lt_cv_prog_gnu_ld" = yes; then
15903 soname_spec='${libname}${release}${shared_ext}$major'
15904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15906 irix5* | nonstopux*)
15907 libsuff= shlibsuff=
15910 case $LD in # libtool.m4 will add one of these switches to LD
15911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15912 libsuff= shlibsuff= libmagic=32-bit;;
15913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15914 libsuff=32 shlibsuff=N32 libmagic=N32;;
15915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15917 *) libsuff= shlibsuff= libmagic=never-match;;
15921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15922 shlibpath_overrides_runpath=no
15923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15925 hardcode_into_libs=yes
15928 # No shared lib support for Linux oldld, aout, or coff.
15929 linux*oldld* | linux*aout* | linux*coff*)
15933 # This must be Linux ELF.
15934 linux* | k*bsd*-gnu)
15938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15939 soname_spec='${libname}${release}${shared_ext}$major'
15940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15941 shlibpath_var=LD_LIBRARY_PATH
15942 shlibpath_overrides_runpath=no
15943 # This implies no fast_install, which is unacceptable.
15944 # Some rework will be needed to allow for fast_install
15945 # before this can be enabled.
15946 hardcode_into_libs=yes
15948 # Append ld.so.conf contents to the search path
15949 if test -f /etc/ld.so.conf; then
15950 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15951 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15954 # We used to test for /lib/ld.so.1 and disable shared libraries on
15955 # powerpc, because MkLinux only supported shared libraries with the
15956 # GNU dynamic linker. Since this was broken with cross compilers,
15957 # most powerpc-linux boxes support dynamic linking these days and
15958 # people can always --disable-shared, the test was removed, and we
15959 # assume the GNU/Linux dynamic linker is in use.
15960 dynamic_linker='GNU/Linux ld.so'
15967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15968 soname_spec='${libname}${release}${shared_ext}$major'
15969 shlibpath_var=LD_LIBRARY_PATH
15970 shlibpath_overrides_runpath=no
15971 hardcode_into_libs=yes
15972 dynamic_linker='NetBSD ld.elf_so'
15979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15982 dynamic_linker='NetBSD (a.out) ld.so'
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15985 soname_spec='${libname}${release}${shared_ext}$major'
15986 dynamic_linker='NetBSD ld.elf_so'
15988 shlibpath_var=LD_LIBRARY_PATH
15989 shlibpath_overrides_runpath=yes
15990 hardcode_into_libs=yes
15995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996 shlibpath_var=LD_LIBRARY_PATH
15997 shlibpath_overrides_runpath=yes
16004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16005 soname_spec='${libname}${release}${shared_ext}$major'
16006 shlibpath_var=LD_LIBRARY_PATH
16007 shlibpath_overrides_runpath=yes
16012 sys_lib_dlsearch_path_spec="/usr/lib"
16014 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16016 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16017 *) need_version=no ;;
16019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16021 shlibpath_var=LD_LIBRARY_PATH
16022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16024 openbsd2.[89] | openbsd2.[89].*)
16025 shlibpath_overrides_runpath=no
16028 shlibpath_overrides_runpath=yes
16032 shlibpath_overrides_runpath=yes
16037 libname_spec='$name'
16040 library_names_spec='$libname${shared_ext} $libname.a'
16041 dynamic_linker='OS/2 ld.exe'
16042 shlibpath_var=LIBPATH
16045 osf3* | osf4* | osf5*)
16049 soname_spec='${libname}${release}${shared_ext}$major'
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051 shlibpath_var=LD_LIBRARY_PATH
16052 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16053 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16065 soname_spec='${libname}${release}${shared_ext}$major'
16066 shlibpath_var=LD_LIBRARY_PATH
16067 shlibpath_overrides_runpath=yes
16068 hardcode_into_libs=yes
16069 # ldd complains unless libraries are executable
16070 postinstall_cmds='chmod +x $lib'
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16076 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16077 shlibpath_var=LD_LIBRARY_PATH
16078 shlibpath_overrides_runpath=yes
16079 if test "$with_gnu_ld" = yes; then
16087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16088 soname_spec='${libname}${release}${shared_ext}$major'
16089 shlibpath_var=LD_LIBRARY_PATH
16090 case $host_vendor in
16092 shlibpath_overrides_runpath=no
16094 export_dynamic_flag_spec='${wl}-Blargedynsym'
16095 runpath_var=LD_RUN_PATH
16103 shlibpath_overrides_runpath=no
16104 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16110 if test -d /usr/nec ;then
16112 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16113 soname_spec='$libname${shared_ext}.$major'
16114 shlibpath_var=LD_LIBRARY_PATH
16118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16119 version_type=freebsd-elf
16122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16123 soname_spec='${libname}${release}${shared_ext}$major'
16124 shlibpath_var=LD_LIBRARY_PATH
16125 hardcode_into_libs=yes
16126 if test "$with_gnu_ld" = yes; then
16127 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16128 shlibpath_overrides_runpath=no
16130 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16131 shlibpath_overrides_runpath=yes
16134 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16138 sys_lib_dlsearch_path_spec='/usr/lib'
16143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16144 soname_spec='${libname}${release}${shared_ext}$major'
16145 shlibpath_var=LD_LIBRARY_PATH
16152 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16153 echo "${ECHO_T}$dynamic_linker" >&6; }
16154 test "$dynamic_linker" = no && can_build_shared=no
16156 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16159 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16162 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16163 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16164 echo $ECHO_N "(cached) $ECHO_C" >&6
16166 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16169 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16171 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16172 if test "$GCC" = yes; then
16173 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16176 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16177 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16178 hardcode_action_F77=
16179 if test -n "$hardcode_libdir_flag_spec_F77" || \
16180 test -n "$runpath_var_F77" || \
16181 test "X$hardcode_automatic_F77" = "Xyes" ; then
16183 # We can hardcode non-existant directories.
16184 if test "$hardcode_direct_F77" != no &&
16185 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16186 # have to relink, otherwise we might link with an installed library
16187 # when we should be linking with a yet-to-be-installed one
16188 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16189 test "$hardcode_minus_L_F77" != no; then
16190 # Linking always hardcodes the temporary library directory.
16191 hardcode_action_F77=relink
16193 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16194 hardcode_action_F77=immediate
16197 # We cannot hardcode anything, or else we can only hardcode existing
16199 hardcode_action_F77=unsupported
16201 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16202 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16204 if test "$hardcode_action_F77" = relink; then
16205 # Fast installation is not supported
16206 enable_fast_install=no
16207 elif test "$shlibpath_overrides_runpath" = yes ||
16208 test "$enable_shared" = no; then
16209 # Fast installation is not necessary
16210 enable_fast_install=needless
16214 # The else clause should only fire when bootstrapping the
16215 # libtool distribution, otherwise you forgot to ship ltmain.sh
16216 # with your package, and you will get complaints that there are
16217 # no rules to generate ltmain.sh.
16218 if test -f "$ltmain"; then
16219 # See if we are running on zsh, and set the options which allow our commands through
16220 # without removal of \ escapes.
16221 if test -n "${ZSH_VERSION+set}" ; then
16222 setopt NO_GLOB_SUBST
16224 # Now quote all the things that may contain metacharacters while being
16225 # careful not to overquote the AC_SUBSTed values. We take copies of the
16226 # variables and quote the copies for generation of the libtool script.
16227 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16229 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16230 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16231 deplibs_check_method reload_flag reload_cmds need_locks \
16232 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16233 lt_cv_sys_global_symbol_to_c_name_address \
16234 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16235 old_postinstall_cmds old_postuninstall_cmds \
16239 lt_prog_compiler_wl_F77 \
16240 lt_prog_compiler_pic_F77 \
16241 lt_prog_compiler_static_F77 \
16242 lt_prog_compiler_no_builtin_flag_F77 \
16243 export_dynamic_flag_spec_F77 \
16244 thread_safe_flag_spec_F77 \
16245 whole_archive_flag_spec_F77 \
16246 enable_shared_with_static_runtimes_F77 \
16247 old_archive_cmds_F77 \
16248 old_archive_from_new_cmds_F77 \
16249 predep_objects_F77 \
16250 postdep_objects_F77 \
16253 compiler_lib_search_path_F77 \
16254 compiler_lib_search_dirs_F77 \
16256 archive_expsym_cmds_F77 \
16257 postinstall_cmds_F77 \
16258 postuninstall_cmds_F77 \
16259 old_archive_from_expsyms_cmds_F77 \
16260 allow_undefined_flag_F77 \
16261 no_undefined_flag_F77 \
16262 export_symbols_cmds_F77 \
16263 hardcode_libdir_flag_spec_F77 \
16264 hardcode_libdir_flag_spec_ld_F77 \
16265 hardcode_libdir_separator_F77 \
16266 hardcode_automatic_F77 \
16268 module_expsym_cmds_F77 \
16269 lt_cv_prog_compiler_c_o_F77 \
16270 fix_srcfile_path_F77 \
16271 exclude_expsyms_F77 \
16272 include_expsyms_F77; do
16275 old_archive_cmds_F77 | \
16276 old_archive_from_new_cmds_F77 | \
16277 archive_cmds_F77 | \
16278 archive_expsym_cmds_F77 | \
16279 module_cmds_F77 | \
16280 module_expsym_cmds_F77 | \
16281 old_archive_from_expsyms_cmds_F77 | \
16282 export_symbols_cmds_F77 | \
16283 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16284 postinstall_cmds | postuninstall_cmds | \
16285 old_postinstall_cmds | old_postuninstall_cmds | \
16286 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16287 # Double-quote double-evaled strings.
16288 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16291 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16297 *'\$0 --fallback-echo"')
16298 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16304 cat <<__EOF__ >> "$cfgfile"
16305 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16307 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16309 # Shell to use when invoking shell scripts.
16312 # Whether or not to build shared libraries.
16313 build_libtool_libs=$enable_shared
16315 # Whether or not to build static libraries.
16316 build_old_libs=$enable_static
16318 # Whether or not to add -lc for building shared libraries.
16319 build_libtool_need_lc=$archive_cmds_need_lc_F77
16321 # Whether or not to disallow shared libs when runtime libs are static
16322 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16324 # Whether or not to optimize for fast installation.
16325 fast_install=$enable_fast_install
16328 host_alias=$host_alias
16332 # The build system.
16333 build_alias=$build_alias
16337 # An echo program that does not interpret backslashes.
16342 AR_FLAGS=$lt_AR_FLAGS
16347 # LTCC compiler flags.
16348 LTCFLAGS=$lt_LTCFLAGS
16350 # A language-specific compiler.
16351 CC=$lt_compiler_F77
16353 # Is the compiler the GNU C compiler?
16359 # The linker used to build libraries.
16362 # Whether we need hard or soft links.
16365 # A BSD-compatible nm program.
16368 # A symbol stripping program
16371 # Used to examine libraries when file_magic_cmd begins "file"
16372 MAGIC_CMD=$MAGIC_CMD
16374 # Used on cygwin: DLL creation program.
16377 # Used on cygwin: object dumper.
16380 # Used on cygwin: assembler.
16383 # The name of the directory that contains temporary libtool files.
16386 # How to create reloadable object files.
16387 reload_flag=$lt_reload_flag
16388 reload_cmds=$lt_reload_cmds
16390 # How to pass a linker flag through the compiler.
16391 wl=$lt_lt_prog_compiler_wl_F77
16393 # Object file suffix (normally "o").
16394 objext="$ac_objext"
16396 # Old archive suffix (normally "a").
16399 # Shared library suffix (normally ".so").
16400 shrext_cmds='$shrext_cmds'
16402 # Executable file suffix (normally "").
16405 # Additional compiler flags for building library objects.
16406 pic_flag=$lt_lt_prog_compiler_pic_F77
16409 # What is the maximum length of a command?
16410 max_cmd_len=$lt_cv_sys_max_cmd_len
16412 # Does compiler simultaneously support -c and -o options?
16413 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16415 # Must we lock files when doing compilation?
16416 need_locks=$lt_need_locks
16418 # Do we need the lib prefix for modules?
16419 need_lib_prefix=$need_lib_prefix
16421 # Do we need a version for libraries?
16422 need_version=$need_version
16424 # Whether dlopen is supported.
16425 dlopen_support=$enable_dlopen
16427 # Whether dlopen of programs is supported.
16428 dlopen_self=$enable_dlopen_self
16430 # Whether dlopen of statically linked programs is supported.
16431 dlopen_self_static=$enable_dlopen_self_static
16433 # Compiler flag to prevent dynamic linking.
16434 link_static_flag=$lt_lt_prog_compiler_static_F77
16436 # Compiler flag to turn off builtin functions.
16437 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16439 # Compiler flag to allow reflexive dlopens.
16440 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16442 # Compiler flag to generate shared objects directly from archives.
16443 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16445 # Compiler flag to generate thread-safe objects.
16446 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16448 # Library versioning type.
16449 version_type=$version_type
16451 # Format of library name prefix.
16452 libname_spec=$lt_libname_spec
16454 # List of archive names. First name is the real one, the rest are links.
16455 # The last name is the one that the linker finds with -lNAME.
16456 library_names_spec=$lt_library_names_spec
16458 # The coded name of the library, if different from the real name.
16459 soname_spec=$lt_soname_spec
16461 # Commands used to build and install an old-style archive.
16463 old_archive_cmds=$lt_old_archive_cmds_F77
16464 old_postinstall_cmds=$lt_old_postinstall_cmds
16465 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16467 # Create an old-style archive from a shared archive.
16468 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16470 # Create a temporary old-style archive to link instead of a shared archive.
16471 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16473 # Commands used to build and install a shared archive.
16474 archive_cmds=$lt_archive_cmds_F77
16475 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16476 postinstall_cmds=$lt_postinstall_cmds
16477 postuninstall_cmds=$lt_postuninstall_cmds
16479 # Commands used to build a loadable module (assumed same as above if empty)
16480 module_cmds=$lt_module_cmds_F77
16481 module_expsym_cmds=$lt_module_expsym_cmds_F77
16483 # Commands to strip libraries.
16484 old_striplib=$lt_old_striplib
16485 striplib=$lt_striplib
16487 # Dependencies to place before the objects being linked to create a
16489 predep_objects=$lt_predep_objects_F77
16491 # Dependencies to place after the objects being linked to create a
16493 postdep_objects=$lt_postdep_objects_F77
16495 # Dependencies to place before the objects being linked to create a
16497 predeps=$lt_predeps_F77
16499 # Dependencies to place after the objects being linked to create a
16501 postdeps=$lt_postdeps_F77
16503 # The directories searched by this compiler when creating a shared
16505 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16507 # The library search path used internally by the compiler when linking
16508 # a shared library.
16509 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16511 # Method to check whether dependent libraries are shared objects.
16512 deplibs_check_method=$lt_deplibs_check_method
16514 # Command to use when deplibs_check_method == file_magic.
16515 file_magic_cmd=$lt_file_magic_cmd
16517 # Flag that allows shared libraries with undefined symbols to be built.
16518 allow_undefined_flag=$lt_allow_undefined_flag_F77
16520 # Flag that forces no undefined symbols.
16521 no_undefined_flag=$lt_no_undefined_flag_F77
16523 # Commands used to finish a libtool library installation in a directory.
16524 finish_cmds=$lt_finish_cmds
16526 # Same as above, but a single script fragment to be evaled but not shown.
16527 finish_eval=$lt_finish_eval
16529 # Take the output of nm and produce a listing of raw symbols and C names.
16530 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16532 # Transform the output of nm in a proper C declaration
16533 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16535 # Transform the output of nm in a C name address pair
16536 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16538 # This is the shared library runtime path variable.
16539 runpath_var=$runpath_var
16541 # This is the shared library path variable.
16542 shlibpath_var=$shlibpath_var
16544 # Is shlibpath searched before the hard-coded library search path?
16545 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16547 # How to hardcode a shared library path into an executable.
16548 hardcode_action=$hardcode_action_F77
16550 # Whether we should hardcode library paths into libraries.
16551 hardcode_into_libs=$hardcode_into_libs
16553 # Flag to hardcode \$libdir into a binary during linking.
16554 # This must work even if \$libdir does not exist.
16555 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16557 # If ld is used when linking, flag to hardcode \$libdir into
16558 # a binary during linking. This must work even if \$libdir does
16560 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16562 # Whether we need a single -rpath flag with a separated argument.
16563 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16565 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16566 # resulting binary.
16567 hardcode_direct=$hardcode_direct_F77
16569 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16570 # resulting binary.
16571 hardcode_minus_L=$hardcode_minus_L_F77
16573 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16574 # the resulting binary.
16575 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16577 # Set to yes if building a shared library automatically hardcodes DIR into the library
16578 # and all subsequent libraries and executables linked against it.
16579 hardcode_automatic=$hardcode_automatic_F77
16581 # Variables whose values should be saved in libtool wrapper scripts and
16582 # restored at relink time.
16583 variables_saved_for_relink="$variables_saved_for_relink"
16585 # Whether libtool must link a program against all its dependency libraries.
16586 link_all_deplibs=$link_all_deplibs_F77
16588 # Compile-time system search path for libraries
16589 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16591 # Run-time system search path for libraries
16592 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16594 # Fix the shell variable \$srcfile for the compiler.
16595 fix_srcfile_path=$lt_fix_srcfile_path
16597 # Set to yes if exported symbols are required.
16598 always_export_symbols=$always_export_symbols_F77
16600 # The commands to list exported symbols.
16601 export_symbols_cmds=$lt_export_symbols_cmds_F77
16603 # The commands to extract the exported symbol list from a shared archive.
16604 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16606 # Symbols that should not be listed in the preloaded symbols.
16607 exclude_expsyms=$lt_exclude_expsyms_F77
16609 # Symbols that must always be exported.
16610 include_expsyms=$lt_include_expsyms_F77
16612 # ### END LIBTOOL TAG CONFIG: $tagname
16618 # If there is no Makefile yet, we rely on a make rule to execute
16619 # `config.status --recheck' to rerun these tests and create the
16620 # libtool script then.
16621 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16622 if test -f "$ltmain_in"; then
16623 test -f Makefile && make "$ltmain"
16629 ac_cpp='$CPP $CPPFLAGS'
16630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16642 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16645 # Source file extension for Java test sources.
16648 # Object file extension for compiled Java test sources.
16652 # Code to be used in simple compile tests
16653 lt_simple_compile_test_code="class foo {}"
16655 # Code to be used in simple link tests
16656 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16658 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16660 # If no C compiler was specified, use CC.
16663 # If no C compiler flags were specified, use CFLAGS.
16664 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16666 # Allow CC to be a program name with arguments.
16670 # save warnings/boilerplate of simple test code
16671 ac_outfile=conftest.$ac_objext
16672 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16673 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16674 _lt_compiler_boilerplate=`cat conftest.err`
16677 ac_outfile=conftest.$ac_objext
16678 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16679 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16680 _lt_linker_boilerplate=`cat conftest.err`
16684 # Allow CC to be a program name with arguments.
16689 for cc_temp in $compiler""; do
16691 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16692 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16697 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16700 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16701 archive_cmds_need_lc_GCJ=no
16703 old_archive_cmds_GCJ=$old_archive_cmds
16706 lt_prog_compiler_no_builtin_flag_GCJ=
16708 if test "$GCC" = yes; then
16709 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16712 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16713 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16714 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16717 lt_cv_prog_compiler_rtti_exceptions=no
16718 ac_outfile=conftest.$ac_objext
16719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16720 lt_compiler_flag="-fno-rtti -fno-exceptions"
16721 # Insert the option either (1) after the last *FLAGS variable, or
16722 # (2) before a word containing "conftest.", or (3) at the end.
16723 # Note that $ac_compile itself does not contain backslashes and begins
16724 # with a dollar sign (not a hyphen), so the echo should work correctly.
16725 # The option is referenced via a variable to avoid confusing sed.
16726 lt_compile=`echo "$ac_compile" | $SED \
16727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16729 -e 's:$: $lt_compiler_flag:'`
16730 (eval echo "\"\$as_me:16730: $lt_compile\"" >&5)
16731 (eval "$lt_compile" 2>conftest.err)
16733 cat conftest.err >&5
16734 echo "$as_me:16734: \$? = $ac_status" >&5
16735 if (exit $ac_status) && test -s "$ac_outfile"; then
16736 # The compiler can only warn and ignore the option if not recognized
16737 # So say no if there are warnings other than the usual output.
16738 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16741 lt_cv_prog_compiler_rtti_exceptions=yes
16747 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16748 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16750 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16751 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16758 lt_prog_compiler_wl_GCJ=
16759 lt_prog_compiler_pic_GCJ=
16760 lt_prog_compiler_static_GCJ=
16762 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16763 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16765 if test "$GCC" = yes; then
16766 lt_prog_compiler_wl_GCJ='-Wl,'
16767 lt_prog_compiler_static_GCJ='-static'
16771 # All AIX code is PIC.
16772 if test "$host_cpu" = ia64; then
16773 # AIX 5 now supports IA64 processor
16774 lt_prog_compiler_static_GCJ='-Bstatic'
16779 # FIXME: we need at least 68020 code to build shared libraries, but
16780 # adding the `-m68020' flag to GCC prevents building anything better,
16782 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16785 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16786 # PIC is the default for these OSes.
16789 mingw* | cygwin* | pw32* | os2*)
16790 # This hack is so that the source file can tell whether it is being
16791 # built for inclusion in a dll (and should export symbols for example).
16792 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16793 # (--disable-auto-import) libraries
16797 darwin* | rhapsody*)
16798 # PIC is the default on this platform
16799 # Common symbols not allowed in MH_DYLIB files
16800 lt_prog_compiler_pic_GCJ='-fno-common'
16804 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16805 # Instead, we relocate shared libraries at runtime.
16809 # Just because we use GCC doesn't mean we suddenly get shared libraries
16810 # on systems that don't support them.
16811 lt_prog_compiler_can_build_shared_GCJ=no
16816 if test -d /usr/nec; then
16817 lt_prog_compiler_pic_GCJ=-Kconform_pic
16822 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16823 # not for PA HP-UX.
16829 lt_prog_compiler_pic_GCJ='-fPIC'
16835 lt_prog_compiler_pic_GCJ='-fPIC'
16839 # PORTME Check for flag to pass linker flags through the system compiler.
16842 lt_prog_compiler_wl_GCJ='-Wl,'
16843 if test "$host_cpu" = ia64; then
16844 # AIX 5 now supports IA64 processor
16845 lt_prog_compiler_static_GCJ='-Bstatic'
16847 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16851 # PIC is the default on this platform
16852 # Common symbols not allowed in MH_DYLIB files
16853 case $cc_basename in
16855 lt_prog_compiler_pic_GCJ='-qnocommon'
16856 lt_prog_compiler_wl_GCJ='-Wl,'
16861 mingw* | cygwin* | pw32* | os2*)
16862 # This hack is so that the source file can tell whether it is being
16863 # built for inclusion in a dll (and should export symbols for example).
16867 hpux9* | hpux10* | hpux11*)
16868 lt_prog_compiler_wl_GCJ='-Wl,'
16869 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16870 # not for PA HP-UX.
16876 lt_prog_compiler_pic_GCJ='+Z'
16879 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16880 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16883 irix5* | irix6* | nonstopux*)
16884 lt_prog_compiler_wl_GCJ='-Wl,'
16885 # PIC (with -KPIC) is the default.
16886 lt_prog_compiler_static_GCJ='-non_shared'
16890 lt_prog_compiler_pic_GCJ='-KPIC'
16891 lt_prog_compiler_static_GCJ='-Bstatic'
16894 linux* | k*bsd*-gnu)
16895 case $cc_basename in
16897 lt_prog_compiler_wl_GCJ='-Wl,'
16898 lt_prog_compiler_pic_GCJ='-KPIC'
16899 lt_prog_compiler_static_GCJ='-static'
16901 pgcc* | pgf77* | pgf90* | pgf95*)
16902 # Portland Group compilers (*not* the Pentium gcc compiler,
16903 # which looks to be a dead project)
16904 lt_prog_compiler_wl_GCJ='-Wl,'
16905 lt_prog_compiler_pic_GCJ='-fpic'
16906 lt_prog_compiler_static_GCJ='-Bstatic'
16909 lt_prog_compiler_wl_GCJ='-Wl,'
16910 # All Alpha code is PIC.
16911 lt_prog_compiler_static_GCJ='-non_shared'
16914 case `$CC -V 2>&1 | sed 5q` in
16917 lt_prog_compiler_pic_GCJ='-KPIC'
16918 lt_prog_compiler_static_GCJ='-Bstatic'
16919 lt_prog_compiler_wl_GCJ='-Wl,'
16922 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16923 lt_prog_compiler_pic_GCJ='-KPIC'
16924 lt_prog_compiler_static_GCJ='-Bstatic'
16925 lt_prog_compiler_wl_GCJ=''
16932 osf3* | osf4* | osf5*)
16933 lt_prog_compiler_wl_GCJ='-Wl,'
16934 # All OSF/1 code is PIC.
16935 lt_prog_compiler_static_GCJ='-non_shared'
16939 lt_prog_compiler_static_GCJ='-non_shared'
16943 lt_prog_compiler_pic_GCJ='-KPIC'
16944 lt_prog_compiler_static_GCJ='-Bstatic'
16945 case $cc_basename in
16946 f77* | f90* | f95*)
16947 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16949 lt_prog_compiler_wl_GCJ='-Wl,';;
16954 lt_prog_compiler_wl_GCJ='-Qoption ld '
16955 lt_prog_compiler_pic_GCJ='-PIC'
16956 lt_prog_compiler_static_GCJ='-Bstatic'
16959 sysv4 | sysv4.2uw2* | sysv4.3*)
16960 lt_prog_compiler_wl_GCJ='-Wl,'
16961 lt_prog_compiler_pic_GCJ='-KPIC'
16962 lt_prog_compiler_static_GCJ='-Bstatic'
16966 if test -d /usr/nec ;then
16967 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16968 lt_prog_compiler_static_GCJ='-Bstatic'
16972 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16973 lt_prog_compiler_wl_GCJ='-Wl,'
16974 lt_prog_compiler_pic_GCJ='-KPIC'
16975 lt_prog_compiler_static_GCJ='-Bstatic'
16979 lt_prog_compiler_wl_GCJ='-Wl,'
16980 lt_prog_compiler_can_build_shared_GCJ=no
16984 lt_prog_compiler_pic_GCJ='-pic'
16985 lt_prog_compiler_static_GCJ='-Bstatic'
16989 lt_prog_compiler_can_build_shared_GCJ=no
16994 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16995 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16998 # Check to make sure the PIC flag actually works.
17000 if test -n "$lt_prog_compiler_pic_GCJ"; then
17002 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17003 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17004 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17007 lt_cv_prog_compiler_pic_works_GCJ=no
17008 ac_outfile=conftest.$ac_objext
17009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17010 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17011 # Insert the option either (1) after the last *FLAGS variable, or
17012 # (2) before a word containing "conftest.", or (3) at the end.
17013 # Note that $ac_compile itself does not contain backslashes and begins
17014 # with a dollar sign (not a hyphen), so the echo should work correctly.
17015 # The option is referenced via a variable to avoid confusing sed.
17016 lt_compile=`echo "$ac_compile" | $SED \
17017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17019 -e 's:$: $lt_compiler_flag:'`
17020 (eval echo "\"\$as_me:17020: $lt_compile\"" >&5)
17021 (eval "$lt_compile" 2>conftest.err)
17023 cat conftest.err >&5
17024 echo "$as_me:17024: \$? = $ac_status" >&5
17025 if (exit $ac_status) && test -s "$ac_outfile"; then
17026 # The compiler can only warn and ignore the option if not recognized
17027 # So say no if there are warnings other than the usual output.
17028 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17030 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17031 lt_cv_prog_compiler_pic_works_GCJ=yes
17037 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17038 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17040 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17041 case $lt_prog_compiler_pic_GCJ in
17043 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17046 lt_prog_compiler_pic_GCJ=
17047 lt_prog_compiler_can_build_shared_GCJ=no
17052 # For platforms which do not support PIC, -DPIC is meaningless:
17054 lt_prog_compiler_pic_GCJ=
17057 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17062 # Check to make sure the static flag actually works.
17064 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17065 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17066 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17067 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17068 echo $ECHO_N "(cached) $ECHO_C" >&6
17070 lt_cv_prog_compiler_static_works_GCJ=no
17071 save_LDFLAGS="$LDFLAGS"
17072 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17073 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17074 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17075 # The linker can only warn and ignore the option if not recognized
17076 # So say no if there are warnings
17077 if test -s conftest.err; then
17078 # Append any errors to the config.log.
17079 cat conftest.err 1>&5
17080 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17082 if diff conftest.exp conftest.er2 >/dev/null; then
17083 lt_cv_prog_compiler_static_works_GCJ=yes
17086 lt_cv_prog_compiler_static_works_GCJ=yes
17090 LDFLAGS="$save_LDFLAGS"
17093 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17094 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17096 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17099 lt_prog_compiler_static_GCJ=
17103 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17104 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17105 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 lt_cv_prog_compiler_c_o_GCJ=no
17109 $rm -r conftest 2>/dev/null
17113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17115 lt_compiler_flag="-o out/conftest2.$ac_objext"
17116 # Insert the option either (1) after the last *FLAGS variable, or
17117 # (2) before a word containing "conftest.", or (3) at the end.
17118 # Note that $ac_compile itself does not contain backslashes and begins
17119 # with a dollar sign (not a hyphen), so the echo should work correctly.
17120 lt_compile=`echo "$ac_compile" | $SED \
17121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17123 -e 's:$: $lt_compiler_flag:'`
17124 (eval echo "\"\$as_me:17124: $lt_compile\"" >&5)
17125 (eval "$lt_compile" 2>out/conftest.err)
17127 cat out/conftest.err >&5
17128 echo "$as_me:17128: \$? = $ac_status" >&5
17129 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17131 # The compiler can only warn and ignore the option if not recognized
17132 # So say no if there are warnings
17133 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17134 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17135 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17136 lt_cv_prog_compiler_c_o_GCJ=yes
17141 # SGI C++ compiler will create directory out/ii_files/ for
17142 # template instantiation
17143 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17144 $rm out/* && rmdir out
17150 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17151 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17154 hard_links="nottested"
17155 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17156 # do not overwrite the value of need_locks provided by the user
17157 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17158 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17161 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17163 ln conftest.a conftest.b 2>&5 || hard_links=no
17164 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17165 { echo "$as_me:$LINENO: result: $hard_links" >&5
17166 echo "${ECHO_T}$hard_links" >&6; }
17167 if test "$hard_links" = no; then
17168 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17169 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17176 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17177 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17180 allow_undefined_flag_GCJ=
17181 enable_shared_with_static_runtimes_GCJ=no
17183 archive_expsym_cmds_GCJ=
17184 old_archive_From_new_cmds_GCJ=
17185 old_archive_from_expsyms_cmds_GCJ=
17186 export_dynamic_flag_spec_GCJ=
17187 whole_archive_flag_spec_GCJ=
17188 thread_safe_flag_spec_GCJ=
17189 hardcode_libdir_flag_spec_GCJ=
17190 hardcode_libdir_flag_spec_ld_GCJ=
17191 hardcode_libdir_separator_GCJ=
17192 hardcode_direct_GCJ=no
17193 hardcode_minus_L_GCJ=no
17194 hardcode_shlibpath_var_GCJ=unsupported
17195 link_all_deplibs_GCJ=unknown
17196 hardcode_automatic_GCJ=no
17198 module_expsym_cmds_GCJ=
17199 always_export_symbols_GCJ=no
17200 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17201 # include_expsyms should be a list of space-separated symbols to be *always*
17202 # included in the symbol list
17203 include_expsyms_GCJ=
17204 # exclude_expsyms can be an extended regexp of symbols to exclude
17205 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17206 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17207 # as well as any symbol that contains `d'.
17208 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17209 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17210 # platforms (ab)use it in PIC code, but their linkers get confused if
17211 # the symbol is explicitly referenced. Since portable code cannot
17212 # rely on this symbol name, it's probably fine to never include it in
17213 # preloaded symbol tables.
17214 # Exclude shared library initialization/finalization symbols.
17215 extract_expsyms_cmds=
17216 # Just being paranoid about ensuring that cc_basename is set.
17217 for cc_temp in $compiler""; do
17219 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17220 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17225 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17228 cygwin* | mingw* | pw32*)
17229 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17230 # When not using gcc, we currently assume that we are using
17231 # Microsoft Visual C++.
17232 if test "$GCC" != yes; then
17237 # we just hope/assume this is gcc and not c89 (= MSVC++)
17246 if test "$with_gnu_ld" = yes; then
17247 # If archive_cmds runs LD, not CC, wlarc should be empty
17250 # Set some defaults for GNU ld with shared library support. These
17251 # are reset later if shared libraries are not supported. Putting them
17252 # here allows them to be overridden if necessary.
17253 runpath_var=LD_RUN_PATH
17254 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17255 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17256 # ancient GNU ld didn't support --whole-archive et. al.
17257 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17258 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17260 whole_archive_flag_spec_GCJ=
17262 supports_anon_versioning=no
17263 case `$LD -v 2>/dev/null` in
17264 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17265 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17266 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17267 *\ 2.11.*) ;; # other 2.11 versions
17268 *) supports_anon_versioning=yes ;;
17271 # See if GNU ld supports shared libraries.
17274 # On AIX/PPC, the GNU linker is very broken
17275 if test "$host_cpu" != ia64; then
17279 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17280 *** to be unable to reliably create shared libraries on AIX.
17281 *** Therefore, libtool is disabling shared libraries support. If you
17282 *** really care for shared libraries, you may want to modify your PATH
17283 *** so that a non-GNU linker is found, and then restart.
17290 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)'
17291 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17292 hardcode_minus_L_GCJ=yes
17294 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17295 # that the semantics of dynamic libraries on AmigaOS, at least up
17296 # to version 4, is to share data among multiple programs linked
17297 # with the same dynamic library. Since this doesn't match the
17298 # behavior of shared libraries on other platforms, we can't use
17304 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17305 allow_undefined_flag_GCJ=unsupported
17306 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17307 # support --undefined. This deserves some investigation. FIXME
17308 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17314 cygwin* | mingw* | pw32*)
17315 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17316 # as there is no search path for DLLs.
17317 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17318 allow_undefined_flag_GCJ=unsupported
17319 always_export_symbols_GCJ=no
17320 enable_shared_with_static_runtimes_GCJ=yes
17321 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17323 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17324 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17325 # If the export-symbols file already is a .def file (1st line
17326 # is EXPORTS), use it as is; otherwise, prepend...
17327 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17328 cp $export_symbols $output_objdir/$soname.def;
17330 echo EXPORTS > $output_objdir/$soname.def;
17331 cat $export_symbols >> $output_objdir/$soname.def;
17333 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17340 hardcode_direct_GCJ=no
17341 hardcode_shlibpath_var_GCJ=no
17342 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17343 export_dynamic_flag_spec_GCJ='${wl}-E'
17344 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17345 # Instead, shared libraries are loaded at an image base (0x10000000 by
17346 # default) and relocated if they conflict, which is a slow very memory
17347 # consuming and fragmenting process. To avoid this, we pick a random,
17348 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17349 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17350 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'
17351 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'
17354 gnu* | linux* | k*bsd*-gnu)
17355 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17357 case $cc_basename,$host_cpu in
17358 pgcc*) # Portland Group C compiler
17359 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'
17360 tmp_addflag=' $pic_flag'
17362 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17363 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'
17364 tmp_addflag=' $pic_flag -Mnomain' ;;
17365 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17366 tmp_addflag=' -i_dynamic' ;;
17367 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17368 tmp_addflag=' -i_dynamic -nofor_main' ;;
17369 ifc* | ifort*) # Intel Fortran compiler
17370 tmp_addflag=' -nofor_main' ;;
17372 case `$CC -V 2>&1 | sed 5q` in
17373 *Sun\ C*) # Sun C 5.9
17374 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17375 tmp_sharedflag='-G' ;;
17376 *Sun\ F*) # Sun Fortran 8.3
17377 tmp_sharedflag='-G' ;;
17379 tmp_sharedflag='-shared' ;;
17381 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17383 if test $supports_anon_versioning = yes; then
17384 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17385 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17386 $echo "local: *; };" >> $output_objdir/$libname.ver~
17387 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17389 link_all_deplibs_GCJ=no
17395 netbsd* | netbsdelf*-gnu)
17396 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17397 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17400 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17401 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17406 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17410 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17411 *** create shared libraries on Solaris systems. Therefore, libtool
17412 *** is disabling shared libraries support. We urge you to upgrade GNU
17413 *** binutils to release 2.9.1 or newer. Another option is to modify
17414 *** your PATH or compiler configuration so that the native linker is
17415 *** used, and then restart.
17418 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17419 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17420 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17427 case `$LD -v 2>&1` in
17428 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17432 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17433 *** reliably create shared libraries on SCO systems. Therefore, libtool
17434 *** is disabling shared libraries support. We urge you to upgrade GNU
17435 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17436 *** your PATH or compiler configuration so that the native linker is
17437 *** used, and then restart.
17442 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17443 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17444 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17445 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17454 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17456 hardcode_direct_GCJ=yes
17457 hardcode_shlibpath_var_GCJ=no
17461 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17462 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17463 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17470 if test "$ld_shlibs_GCJ" = no; then
17472 hardcode_libdir_flag_spec_GCJ=
17473 export_dynamic_flag_spec_GCJ=
17474 whole_archive_flag_spec_GCJ=
17477 # PORTME fill in a description of your system's linker (not GNU ld)
17480 allow_undefined_flag_GCJ=unsupported
17481 always_export_symbols_GCJ=yes
17482 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'
17483 # Note: this linker hardcodes the directories in LIBPATH if there
17484 # are no directories specified by -L.
17485 hardcode_minus_L_GCJ=yes
17486 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17487 # Neither direct hardcoding nor static linking is supported with a
17489 hardcode_direct_GCJ=unsupported
17494 if test "$host_cpu" = ia64; then
17495 # On IA64, the linker does run time linking by default, so we don't
17496 # have to do anything special.
17497 aix_use_runtimelinking=no
17498 exp_sym_flag='-Bexport'
17501 # If we're using GNU nm, then we don't want the "-C" option.
17502 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17503 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17504 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'
17506 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'
17508 aix_use_runtimelinking=no
17510 # Test if we are trying to use run time linking or normal
17511 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17512 # need to do runtime linking.
17513 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17514 for ld_flag in $LDFLAGS; do
17515 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17516 aix_use_runtimelinking=yes
17523 exp_sym_flag='-bexport'
17524 no_entry_flag='-bnoentry'
17527 # When large executables or shared objects are built, AIX ld can
17528 # have problems creating the table of contents. If linking a library
17529 # or program results in "error TOC overflow" add -mminimal-toc to
17530 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17531 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17533 archive_cmds_GCJ=''
17534 hardcode_direct_GCJ=yes
17535 hardcode_libdir_separator_GCJ=':'
17536 link_all_deplibs_GCJ=yes
17538 if test "$GCC" = yes; then
17539 case $host_os in aix4.[012]|aix4.[012].*)
17540 # We only want to do this on AIX 4.2 and lower, the check
17541 # below for broken collect2 doesn't work under 4.3+
17542 collect2name=`${CC} -print-prog-name=collect2`
17543 if test -f "$collect2name" && \
17544 strings "$collect2name" | grep resolve_lib_name >/dev/null
17546 # We have reworked collect2
17549 # We have old collect2
17550 hardcode_direct_GCJ=unsupported
17551 # It fails to find uninstalled libraries when the uninstalled
17552 # path is not listed in the libpath. Setting hardcode_minus_L
17553 # to unsupported forces relinking
17554 hardcode_minus_L_GCJ=yes
17555 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17556 hardcode_libdir_separator_GCJ=
17560 shared_flag='-shared'
17561 if test "$aix_use_runtimelinking" = yes; then
17562 shared_flag="$shared_flag "'${wl}-G'
17566 if test "$host_cpu" = ia64; then
17567 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17568 # chokes on -Wl,-G. The following line is correct:
17571 if test "$aix_use_runtimelinking" = yes; then
17572 shared_flag='${wl}-G'
17574 shared_flag='${wl}-bM:SRE'
17579 # It seems that -bexpall does not export symbols beginning with
17580 # underscore (_), so it is better to generate a list of symbols to export.
17581 always_export_symbols_GCJ=yes
17582 if test "$aix_use_runtimelinking" = yes; then
17583 # Warning - without using the other runtime loading flags (-brtl),
17584 # -berok will link without error, but may produce a broken library.
17585 allow_undefined_flag_GCJ='-berok'
17586 # Determine the default libpath from the value encoded in an empty executable.
17587 cat >conftest.$ac_ext <<_ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17602 rm -f conftest.$ac_objext conftest$ac_exeext
17603 if { (ac_try="$ac_link"
17604 case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_link") 2>conftest.er1
17611 grep -v '^ *+' conftest.er1 >conftest.err
17613 cat conftest.err >&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } && {
17616 test -z "$ac_c_werror_flag" ||
17617 test ! -s conftest.err
17618 } && test -s conftest$ac_exeext &&
17619 $as_test_x conftest$ac_exeext; then
17621 lt_aix_libpath_sed='
17622 /Import File Strings/,/^$/ {
17628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17629 # Check for a 64-bit object if we didn't find anything.
17630 if test -z "$aix_libpath"; then
17631 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17634 echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17641 conftest$ac_exeext conftest.$ac_ext
17642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17644 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17645 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"
17647 if test "$host_cpu" = ia64; then
17648 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17649 allow_undefined_flag_GCJ="-z nodefs"
17650 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"
17652 # Determine the default libpath from the value encoded in an empty executable.
17653 cat >conftest.$ac_ext <<_ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h. */
17668 rm -f conftest.$ac_objext conftest$ac_exeext
17669 if { (ac_try="$ac_link"
17670 case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_link") 2>conftest.er1
17677 grep -v '^ *+' conftest.er1 >conftest.err
17679 cat conftest.err >&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } && {
17682 test -z "$ac_c_werror_flag" ||
17683 test ! -s conftest.err
17684 } && test -s conftest$ac_exeext &&
17685 $as_test_x conftest$ac_exeext; then
17687 lt_aix_libpath_sed='
17688 /Import File Strings/,/^$/ {
17694 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17695 # Check for a 64-bit object if we didn't find anything.
17696 if test -z "$aix_libpath"; then
17697 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17700 echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17707 conftest$ac_exeext conftest.$ac_ext
17708 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17710 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17711 # Warning - without using the other run time loading flags,
17712 # -berok will link without error, but may produce a broken library.
17713 no_undefined_flag_GCJ=' ${wl}-bernotok'
17714 allow_undefined_flag_GCJ=' ${wl}-berok'
17715 # Exported symbols can be pulled into shared objects from archives
17716 whole_archive_flag_spec_GCJ='$convenience'
17717 archive_cmds_need_lc_GCJ=yes
17718 # This is similar to how AIX traditionally builds its shared libraries.
17719 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'
17725 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)'
17726 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17727 hardcode_minus_L_GCJ=yes
17728 # see comment about different semantics on the GNU ld section
17733 export_dynamic_flag_spec_GCJ=-rdynamic
17736 cygwin* | mingw* | pw32*)
17737 # When not using gcc, we currently assume that we are using
17738 # Microsoft Visual C++.
17739 # hardcode_libdir_flag_spec is actually meaningless, as there is
17740 # no search path for DLLs.
17741 hardcode_libdir_flag_spec_GCJ=' '
17742 allow_undefined_flag_GCJ=unsupported
17743 # Tell ltmain to make .lib files, not .a files.
17745 # Tell ltmain to make .dll files, not .so files.
17747 # FIXME: Setting linknames here is a bad hack.
17748 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17749 # The linker will automatically build a .lib file if we build a DLL.
17750 old_archive_From_new_cmds_GCJ='true'
17751 # FIXME: Should let the user specify the lib program.
17752 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17753 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17754 enable_shared_with_static_runtimes_GCJ=yes
17757 darwin* | rhapsody*)
17759 rhapsody* | darwin1.[012])
17760 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17763 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17764 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17766 case ${MACOSX_DEPLOYMENT_TARGET} in
17768 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17771 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17777 archive_cmds_need_lc_GCJ=no
17778 hardcode_direct_GCJ=no
17779 hardcode_automatic_GCJ=yes
17780 hardcode_shlibpath_var_GCJ=unsupported
17781 whole_archive_flag_spec_GCJ=''
17782 link_all_deplibs_GCJ=yes
17783 if test "$GCC" = yes ; then
17784 output_verbose_link_cmd='echo'
17785 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17786 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17787 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17788 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17790 case $cc_basename in
17792 output_verbose_link_cmd='echo'
17793 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17794 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17795 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17796 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17797 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}'
17807 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17808 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17809 hardcode_shlibpath_var_GCJ=no
17816 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17817 # support. Future versions do this automatically, but an explicit c++rt0.o
17818 # does not break anything, and helps significantly (at the cost of a little
17821 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17822 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17823 hardcode_direct_GCJ=yes
17824 hardcode_shlibpath_var_GCJ=no
17827 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17829 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17830 hardcode_direct_GCJ=yes
17831 hardcode_minus_L_GCJ=yes
17832 hardcode_shlibpath_var_GCJ=no
17835 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17836 freebsd* | dragonfly*)
17837 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17838 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17839 hardcode_direct_GCJ=yes
17840 hardcode_shlibpath_var_GCJ=no
17844 if test "$GCC" = yes; then
17845 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'
17847 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'
17849 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17850 hardcode_libdir_separator_GCJ=:
17851 hardcode_direct_GCJ=yes
17853 # hardcode_minus_L: Not really in the search PATH,
17854 # but as the default location of the library.
17855 hardcode_minus_L_GCJ=yes
17856 export_dynamic_flag_spec_GCJ='${wl}-E'
17860 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17861 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17863 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17865 if test "$with_gnu_ld" = no; then
17866 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17867 hardcode_libdir_separator_GCJ=:
17869 hardcode_direct_GCJ=yes
17870 export_dynamic_flag_spec_GCJ='${wl}-E'
17872 # hardcode_minus_L: Not really in the search PATH,
17873 # but as the default location of the library.
17874 hardcode_minus_L_GCJ=yes
17879 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17882 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17885 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17888 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17894 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17897 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17900 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17904 if test "$with_gnu_ld" = no; then
17905 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17906 hardcode_libdir_separator_GCJ=:
17910 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17911 hardcode_direct_GCJ=no
17912 hardcode_shlibpath_var_GCJ=no
17915 hardcode_direct_GCJ=yes
17916 export_dynamic_flag_spec_GCJ='${wl}-E'
17918 # hardcode_minus_L: Not really in the search PATH,
17919 # but as the default location of the library.
17920 hardcode_minus_L_GCJ=yes
17926 irix5* | irix6* | nonstopux*)
17927 if test "$GCC" = yes; then
17928 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'
17930 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'
17931 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17933 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17934 hardcode_libdir_separator_GCJ=:
17935 link_all_deplibs_GCJ=yes
17938 netbsd* | netbsdelf*-gnu)
17939 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17940 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17942 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17944 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17945 hardcode_direct_GCJ=yes
17946 hardcode_shlibpath_var_GCJ=no
17950 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17951 hardcode_direct_GCJ=yes
17952 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17953 hardcode_libdir_separator_GCJ=:
17954 hardcode_shlibpath_var_GCJ=no
17958 if test -f /usr/libexec/ld.so; then
17959 hardcode_direct_GCJ=yes
17960 hardcode_shlibpath_var_GCJ=no
17961 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17962 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17963 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17964 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17965 export_dynamic_flag_spec_GCJ='${wl}-E'
17968 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17969 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17970 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17973 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17974 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17984 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17985 hardcode_minus_L_GCJ=yes
17986 allow_undefined_flag_GCJ=unsupported
17987 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'
17988 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17992 if test "$GCC" = yes; then
17993 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17994 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'
17996 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17997 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'
17999 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18000 hardcode_libdir_separator_GCJ=:
18003 osf4* | osf5*) # as osf3* with the addition of -msym flag
18004 if test "$GCC" = yes; then
18005 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18006 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'
18007 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18009 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18010 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'
18011 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~
18012 $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'
18014 # Both c and cxx compiler support -rpath directly
18015 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18017 hardcode_libdir_separator_GCJ=:
18021 no_undefined_flag_GCJ=' -z text'
18022 if test "$GCC" = yes; then
18024 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18025 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18026 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18029 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18030 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18031 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18033 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18034 hardcode_shlibpath_var_GCJ=no
18036 solaris2.[0-5] | solaris2.[0-5].*) ;;
18038 # The compiler driver will combine and reorder linker options,
18039 # but understands `-z linker_flag'. GCC discards it without `$wl',
18040 # but is careful enough not to reorder.
18041 # Supported since Solaris 2.6 (maybe 2.5.1?)
18042 if test "$GCC" = yes; then
18043 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18045 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18049 link_all_deplibs_GCJ=yes
18053 if test "x$host_vendor" = xsequent; then
18054 # Use $CC to link under sequent, because it throws in some extra .o
18055 # files that make .init and .fini sections work.
18056 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18058 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18060 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18061 hardcode_direct_GCJ=yes
18062 hardcode_minus_L_GCJ=yes
18063 hardcode_shlibpath_var_GCJ=no
18067 case $host_vendor in
18069 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18070 hardcode_direct_GCJ=yes # is this really true???
18073 ## LD is ld it makes a PLAMLIB
18074 ## CC just makes a GrossModule.
18075 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18076 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18077 hardcode_direct_GCJ=no
18080 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18081 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18084 runpath_var='LD_RUN_PATH'
18085 hardcode_shlibpath_var_GCJ=no
18089 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18090 hardcode_shlibpath_var_GCJ=no
18091 export_dynamic_flag_spec_GCJ='-Bexport'
18095 if test -d /usr/nec; then
18096 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18097 hardcode_shlibpath_var_GCJ=no
18098 runpath_var=LD_RUN_PATH
18099 hardcode_runpath_var=yes
18104 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18105 no_undefined_flag_GCJ='${wl}-z,text'
18106 archive_cmds_need_lc_GCJ=no
18107 hardcode_shlibpath_var_GCJ=no
18108 runpath_var='LD_RUN_PATH'
18110 if test "$GCC" = yes; then
18111 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18112 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18114 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18115 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18119 sysv5* | sco3.2v5* | sco5v6*)
18120 # Note: We can NOT use -z defs as we might desire, because we do not
18121 # link with -lc, and that would cause any symbols used from libc to
18122 # always be unresolved, which means just about no library would
18123 # ever link correctly. If we're not using GNU ld we use -z text
18124 # though, which does catch some bad symbols but isn't as heavy-handed
18126 no_undefined_flag_GCJ='${wl}-z,text'
18127 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18128 archive_cmds_need_lc_GCJ=no
18129 hardcode_shlibpath_var_GCJ=no
18130 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18131 hardcode_libdir_separator_GCJ=':'
18132 link_all_deplibs_GCJ=yes
18133 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18134 runpath_var='LD_RUN_PATH'
18136 if test "$GCC" = yes; then
18137 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18138 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18140 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18141 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18146 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18147 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18148 hardcode_shlibpath_var_GCJ=no
18157 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18158 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18159 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18162 # Do we need to explicitly link libc?
18164 case "x$archive_cmds_need_lc_GCJ" in
18166 # Assume -lc should be added
18167 archive_cmds_need_lc_GCJ=yes
18169 if test "$enable_shared" = yes && test "$GCC" = yes; then
18170 case $archive_cmds_GCJ in
18172 # FIXME: we may have to deal with multi-command sequences.
18175 # Test whether the compiler implicitly links with -lc since on some
18176 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18177 # to ld, don't add -lc before -lgcc.
18178 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18179 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18184 (eval $ac_compile) 2>&5
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); } 2>conftest.err; then
18190 libobjs=conftest.$ac_objext
18192 wl=$lt_prog_compiler_wl_GCJ
18193 pic_flag=$lt_prog_compiler_pic_GCJ
18199 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18200 allow_undefined_flag_GCJ=
18201 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18202 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }
18207 archive_cmds_need_lc_GCJ=no
18209 archive_cmds_need_lc_GCJ=yes
18211 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18213 cat conftest.err 1>&5
18216 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18217 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18224 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18225 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18226 library_names_spec=
18227 libname_spec='lib$name'
18231 postuninstall_cmds=
18235 shlibpath_overrides_runpath=unknown
18237 dynamic_linker="$host_os ld.so"
18238 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18240 need_lib_prefix=unknown
18241 hardcode_into_libs=no
18243 # when you set need_version to no, make sure it does not cause -set_version
18244 # flags to be left without arguments
18245 need_version=unknown
18250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18251 shlibpath_var=LIBPATH
18253 # AIX 3 has no versioning support, so we append a major version to the name.
18254 soname_spec='${libname}${release}${shared_ext}$major'
18261 hardcode_into_libs=yes
18262 if test "$host_cpu" = ia64; then
18263 # AIX 5 supports IA64
18264 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18265 shlibpath_var=LD_LIBRARY_PATH
18267 # With GCC up to 2.95.x, collect2 would create an import file
18268 # for dependence libraries. The import file would start with
18269 # the line `#! .'. This would cause the generated library to
18270 # depend on `.', always an invalid library. This was fixed in
18271 # development snapshots of GCC prior to 3.0.
18273 aix4 | aix4.[01] | aix4.[01].*)
18274 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18276 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18279 can_build_shared=no
18283 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18284 # soname into executable. Probably we can add versioning support to
18285 # collect2, so additional links can be useful in future.
18286 if test "$aix_use_runtimelinking" = yes; then
18287 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18288 # instead of lib<name>.a to let people know that these are not
18289 # typical AIX shared libraries.
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18292 # We preserve .a as extension for shared libraries through AIX4.2
18293 # and later when we are not doing run time linking.
18294 library_names_spec='${libname}${release}.a $libname.a'
18295 soname_spec='${libname}${release}${shared_ext}$major'
18297 shlibpath_var=LIBPATH
18302 library_names_spec='$libname.ixlibrary $libname.a'
18303 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18304 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'
18308 library_names_spec='${libname}${shared_ext}'
18309 dynamic_linker="$host_os ld.so"
18310 shlibpath_var=LIBRARY_PATH
18316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18317 soname_spec='${libname}${release}${shared_ext}$major'
18318 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18319 shlibpath_var=LD_LIBRARY_PATH
18320 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18321 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18322 # the default ld.so.conf also contains /usr/contrib/lib and
18323 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18324 # libtool to hard-code these into programs
18327 cygwin* | mingw* | pw32*)
18328 version_type=windows
18333 case $GCC,$host_os in
18334 yes,cygwin* | yes,mingw* | yes,pw32*)
18335 library_names_spec='$libname.dll.a'
18336 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18337 postinstall_cmds='base_file=`basename \${file}`~
18338 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18339 dldir=$destdir/`dirname \$dlpath`~
18340 test -d \$dldir || mkdir -p \$dldir~
18341 $install_prog $dir/$dlname \$dldir/$dlname~
18342 chmod a+x \$dldir/$dlname'
18343 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18344 dlpath=$dir/\$dldll~
18346 shlibpath_overrides_runpath=yes
18350 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18351 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18352 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18355 # MinGW DLLs use traditional 'lib' prefix
18356 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18357 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18358 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18359 # It is most probably a Windows format PATH printed by
18360 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18361 # path with ; separators, and with drive letters. We can handle the
18362 # drive letters (cygwin fileutils understands them), so leave them,
18363 # especially as we might pass files found there to a mingw objdump,
18364 # which wouldn't understand a cygwinified path. Ahh.
18365 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18367 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18371 # pw32 DLLs use 'pw' prefix rather than 'lib'
18372 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18378 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18381 dynamic_linker='Win32 ld.exe'
18382 # FIXME: first we should search . and the directory the executable is in
18386 darwin* | rhapsody*)
18387 dynamic_linker="$host_os dyld"
18388 version_type=darwin
18391 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18392 soname_spec='${libname}${release}${major}$shared_ext'
18393 shlibpath_overrides_runpath=yes
18394 shlibpath_var=DYLD_LIBRARY_PATH
18395 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18397 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18405 soname_spec='${libname}${release}${shared_ext}$major'
18406 shlibpath_var=LD_LIBRARY_PATH
18413 freebsd* | dragonfly*)
18414 # DragonFly does not have aout. When/if they implement a new
18415 # versioning mechanism, adjust this.
18416 if test -x /usr/bin/objformat; then
18417 objformat=`/usr/bin/objformat`
18420 freebsd[123]*) objformat=aout ;;
18421 *) objformat=elf ;;
18424 version_type=freebsd-$objformat
18425 case $version_type in
18427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18432 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18436 shlibpath_var=LD_LIBRARY_PATH
18439 shlibpath_overrides_runpath=yes
18441 freebsd3.[01]* | freebsdelf3.[01]*)
18442 shlibpath_overrides_runpath=yes
18443 hardcode_into_libs=yes
18445 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18446 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18447 shlibpath_overrides_runpath=no
18448 hardcode_into_libs=yes
18450 *) # from 4.6 on, and DragonFly
18451 shlibpath_overrides_runpath=yes
18452 hardcode_into_libs=yes
18461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18462 soname_spec='${libname}${release}${shared_ext}$major'
18463 shlibpath_var=LD_LIBRARY_PATH
18464 hardcode_into_libs=yes
18467 hpux9* | hpux10* | hpux11*)
18468 # Give a soname corresponding to the major version so that dld.sl refuses to
18469 # link against other versions.
18476 hardcode_into_libs=yes
18477 dynamic_linker="$host_os dld.so"
18478 shlibpath_var=LD_LIBRARY_PATH
18479 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18481 soname_spec='${libname}${release}${shared_ext}$major'
18482 if test "X$HPUX_IA64_MODE" = X32; then
18483 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18485 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18487 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18491 hardcode_into_libs=yes
18492 dynamic_linker="$host_os dld.sl"
18493 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18494 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18496 soname_spec='${libname}${release}${shared_ext}$major'
18497 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18498 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18502 dynamic_linker="$host_os dld.sl"
18503 shlibpath_var=SHLIB_PATH
18504 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18506 soname_spec='${libname}${release}${shared_ext}$major'
18509 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18510 postinstall_cmds='chmod 555 $lib'
18517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18518 soname_spec='${libname}${release}${shared_ext}$major'
18519 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18520 shlibpath_var=LD_LIBRARY_PATH
18521 shlibpath_overrides_runpath=no
18522 hardcode_into_libs=yes
18525 irix5* | irix6* | nonstopux*)
18527 nonstopux*) version_type=nonstopux ;;
18529 if test "$lt_cv_prog_gnu_ld" = yes; then
18537 soname_spec='${libname}${release}${shared_ext}$major'
18538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18540 irix5* | nonstopux*)
18541 libsuff= shlibsuff=
18544 case $LD in # libtool.m4 will add one of these switches to LD
18545 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18546 libsuff= shlibsuff= libmagic=32-bit;;
18547 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18548 libsuff=32 shlibsuff=N32 libmagic=N32;;
18549 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18550 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18551 *) libsuff= shlibsuff= libmagic=never-match;;
18555 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18556 shlibpath_overrides_runpath=no
18557 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18558 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18559 hardcode_into_libs=yes
18562 # No shared lib support for Linux oldld, aout, or coff.
18563 linux*oldld* | linux*aout* | linux*coff*)
18567 # This must be Linux ELF.
18568 linux* | k*bsd*-gnu)
18572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18573 soname_spec='${libname}${release}${shared_ext}$major'
18574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18575 shlibpath_var=LD_LIBRARY_PATH
18576 shlibpath_overrides_runpath=no
18577 # This implies no fast_install, which is unacceptable.
18578 # Some rework will be needed to allow for fast_install
18579 # before this can be enabled.
18580 hardcode_into_libs=yes
18582 # Append ld.so.conf contents to the search path
18583 if test -f /etc/ld.so.conf; then
18584 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18585 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18588 # We used to test for /lib/ld.so.1 and disable shared libraries on
18589 # powerpc, because MkLinux only supported shared libraries with the
18590 # GNU dynamic linker. Since this was broken with cross compilers,
18591 # most powerpc-linux boxes support dynamic linking these days and
18592 # people can always --disable-shared, the test was removed, and we
18593 # assume the GNU/Linux dynamic linker is in use.
18594 dynamic_linker='GNU/Linux ld.so'
18601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18602 soname_spec='${libname}${release}${shared_ext}$major'
18603 shlibpath_var=LD_LIBRARY_PATH
18604 shlibpath_overrides_runpath=no
18605 hardcode_into_libs=yes
18606 dynamic_linker='NetBSD ld.elf_so'
18613 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18616 dynamic_linker='NetBSD (a.out) ld.so'
18618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18619 soname_spec='${libname}${release}${shared_ext}$major'
18620 dynamic_linker='NetBSD ld.elf_so'
18622 shlibpath_var=LD_LIBRARY_PATH
18623 shlibpath_overrides_runpath=yes
18624 hardcode_into_libs=yes
18629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18630 shlibpath_var=LD_LIBRARY_PATH
18631 shlibpath_overrides_runpath=yes
18638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18639 soname_spec='${libname}${release}${shared_ext}$major'
18640 shlibpath_var=LD_LIBRARY_PATH
18641 shlibpath_overrides_runpath=yes
18646 sys_lib_dlsearch_path_spec="/usr/lib"
18648 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18650 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18651 *) need_version=no ;;
18653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18655 shlibpath_var=LD_LIBRARY_PATH
18656 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18658 openbsd2.[89] | openbsd2.[89].*)
18659 shlibpath_overrides_runpath=no
18662 shlibpath_overrides_runpath=yes
18666 shlibpath_overrides_runpath=yes
18671 libname_spec='$name'
18674 library_names_spec='$libname${shared_ext} $libname.a'
18675 dynamic_linker='OS/2 ld.exe'
18676 shlibpath_var=LIBPATH
18679 osf3* | osf4* | osf5*)
18683 soname_spec='${libname}${release}${shared_ext}$major'
18684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18685 shlibpath_var=LD_LIBRARY_PATH
18686 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18687 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18699 soname_spec='${libname}${release}${shared_ext}$major'
18700 shlibpath_var=LD_LIBRARY_PATH
18701 shlibpath_overrides_runpath=yes
18702 hardcode_into_libs=yes
18703 # ldd complains unless libraries are executable
18704 postinstall_cmds='chmod +x $lib'
18709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18710 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18711 shlibpath_var=LD_LIBRARY_PATH
18712 shlibpath_overrides_runpath=yes
18713 if test "$with_gnu_ld" = yes; then
18721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18722 soname_spec='${libname}${release}${shared_ext}$major'
18723 shlibpath_var=LD_LIBRARY_PATH
18724 case $host_vendor in
18726 shlibpath_overrides_runpath=no
18728 export_dynamic_flag_spec='${wl}-Blargedynsym'
18729 runpath_var=LD_RUN_PATH
18737 shlibpath_overrides_runpath=no
18738 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18744 if test -d /usr/nec ;then
18746 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18747 soname_spec='$libname${shared_ext}.$major'
18748 shlibpath_var=LD_LIBRARY_PATH
18752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18753 version_type=freebsd-elf
18756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18757 soname_spec='${libname}${release}${shared_ext}$major'
18758 shlibpath_var=LD_LIBRARY_PATH
18759 hardcode_into_libs=yes
18760 if test "$with_gnu_ld" = yes; then
18761 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18762 shlibpath_overrides_runpath=no
18764 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18765 shlibpath_overrides_runpath=yes
18768 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18772 sys_lib_dlsearch_path_spec='/usr/lib'
18777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18778 soname_spec='${libname}${release}${shared_ext}$major'
18779 shlibpath_var=LD_LIBRARY_PATH
18786 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18787 echo "${ECHO_T}$dynamic_linker" >&6; }
18788 test "$dynamic_linker" = no && can_build_shared=no
18790 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18793 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18796 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18797 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18798 echo $ECHO_N "(cached) $ECHO_C" >&6
18800 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18803 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18805 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18806 if test "$GCC" = yes; then
18807 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18810 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18811 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18812 hardcode_action_GCJ=
18813 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18814 test -n "$runpath_var_GCJ" || \
18815 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18817 # We can hardcode non-existant directories.
18818 if test "$hardcode_direct_GCJ" != no &&
18819 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18820 # have to relink, otherwise we might link with an installed library
18821 # when we should be linking with a yet-to-be-installed one
18822 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18823 test "$hardcode_minus_L_GCJ" != no; then
18824 # Linking always hardcodes the temporary library directory.
18825 hardcode_action_GCJ=relink
18827 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18828 hardcode_action_GCJ=immediate
18831 # We cannot hardcode anything, or else we can only hardcode existing
18833 hardcode_action_GCJ=unsupported
18835 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18836 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18838 if test "$hardcode_action_GCJ" = relink; then
18839 # Fast installation is not supported
18840 enable_fast_install=no
18841 elif test "$shlibpath_overrides_runpath" = yes ||
18842 test "$enable_shared" = no; then
18843 # Fast installation is not necessary
18844 enable_fast_install=needless
18848 # The else clause should only fire when bootstrapping the
18849 # libtool distribution, otherwise you forgot to ship ltmain.sh
18850 # with your package, and you will get complaints that there are
18851 # no rules to generate ltmain.sh.
18852 if test -f "$ltmain"; then
18853 # See if we are running on zsh, and set the options which allow our commands through
18854 # without removal of \ escapes.
18855 if test -n "${ZSH_VERSION+set}" ; then
18856 setopt NO_GLOB_SUBST
18858 # Now quote all the things that may contain metacharacters while being
18859 # careful not to overquote the AC_SUBSTed values. We take copies of the
18860 # variables and quote the copies for generation of the libtool script.
18861 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18863 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18864 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18865 deplibs_check_method reload_flag reload_cmds need_locks \
18866 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18867 lt_cv_sys_global_symbol_to_c_name_address \
18868 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18869 old_postinstall_cmds old_postuninstall_cmds \
18873 lt_prog_compiler_wl_GCJ \
18874 lt_prog_compiler_pic_GCJ \
18875 lt_prog_compiler_static_GCJ \
18876 lt_prog_compiler_no_builtin_flag_GCJ \
18877 export_dynamic_flag_spec_GCJ \
18878 thread_safe_flag_spec_GCJ \
18879 whole_archive_flag_spec_GCJ \
18880 enable_shared_with_static_runtimes_GCJ \
18881 old_archive_cmds_GCJ \
18882 old_archive_from_new_cmds_GCJ \
18883 predep_objects_GCJ \
18884 postdep_objects_GCJ \
18887 compiler_lib_search_path_GCJ \
18888 compiler_lib_search_dirs_GCJ \
18890 archive_expsym_cmds_GCJ \
18891 postinstall_cmds_GCJ \
18892 postuninstall_cmds_GCJ \
18893 old_archive_from_expsyms_cmds_GCJ \
18894 allow_undefined_flag_GCJ \
18895 no_undefined_flag_GCJ \
18896 export_symbols_cmds_GCJ \
18897 hardcode_libdir_flag_spec_GCJ \
18898 hardcode_libdir_flag_spec_ld_GCJ \
18899 hardcode_libdir_separator_GCJ \
18900 hardcode_automatic_GCJ \
18902 module_expsym_cmds_GCJ \
18903 lt_cv_prog_compiler_c_o_GCJ \
18904 fix_srcfile_path_GCJ \
18905 exclude_expsyms_GCJ \
18906 include_expsyms_GCJ; do
18909 old_archive_cmds_GCJ | \
18910 old_archive_from_new_cmds_GCJ | \
18911 archive_cmds_GCJ | \
18912 archive_expsym_cmds_GCJ | \
18913 module_cmds_GCJ | \
18914 module_expsym_cmds_GCJ | \
18915 old_archive_from_expsyms_cmds_GCJ | \
18916 export_symbols_cmds_GCJ | \
18917 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18918 postinstall_cmds | postuninstall_cmds | \
18919 old_postinstall_cmds | old_postuninstall_cmds | \
18920 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18921 # Double-quote double-evaled strings.
18922 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18925 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18931 *'\$0 --fallback-echo"')
18932 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18938 cat <<__EOF__ >> "$cfgfile"
18939 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18941 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18943 # Shell to use when invoking shell scripts.
18946 # Whether or not to build shared libraries.
18947 build_libtool_libs=$enable_shared
18949 # Whether or not to build static libraries.
18950 build_old_libs=$enable_static
18952 # Whether or not to add -lc for building shared libraries.
18953 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18955 # Whether or not to disallow shared libs when runtime libs are static
18956 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18958 # Whether or not to optimize for fast installation.
18959 fast_install=$enable_fast_install
18962 host_alias=$host_alias
18966 # The build system.
18967 build_alias=$build_alias
18971 # An echo program that does not interpret backslashes.
18976 AR_FLAGS=$lt_AR_FLAGS
18981 # LTCC compiler flags.
18982 LTCFLAGS=$lt_LTCFLAGS
18984 # A language-specific compiler.
18985 CC=$lt_compiler_GCJ
18987 # Is the compiler the GNU C compiler?
18993 # The linker used to build libraries.
18996 # Whether we need hard or soft links.
18999 # A BSD-compatible nm program.
19002 # A symbol stripping program
19005 # Used to examine libraries when file_magic_cmd begins "file"
19006 MAGIC_CMD=$MAGIC_CMD
19008 # Used on cygwin: DLL creation program.
19011 # Used on cygwin: object dumper.
19014 # Used on cygwin: assembler.
19017 # The name of the directory that contains temporary libtool files.
19020 # How to create reloadable object files.
19021 reload_flag=$lt_reload_flag
19022 reload_cmds=$lt_reload_cmds
19024 # How to pass a linker flag through the compiler.
19025 wl=$lt_lt_prog_compiler_wl_GCJ
19027 # Object file suffix (normally "o").
19028 objext="$ac_objext"
19030 # Old archive suffix (normally "a").
19033 # Shared library suffix (normally ".so").
19034 shrext_cmds='$shrext_cmds'
19036 # Executable file suffix (normally "").
19039 # Additional compiler flags for building library objects.
19040 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19043 # What is the maximum length of a command?
19044 max_cmd_len=$lt_cv_sys_max_cmd_len
19046 # Does compiler simultaneously support -c and -o options?
19047 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19049 # Must we lock files when doing compilation?
19050 need_locks=$lt_need_locks
19052 # Do we need the lib prefix for modules?
19053 need_lib_prefix=$need_lib_prefix
19055 # Do we need a version for libraries?
19056 need_version=$need_version
19058 # Whether dlopen is supported.
19059 dlopen_support=$enable_dlopen
19061 # Whether dlopen of programs is supported.
19062 dlopen_self=$enable_dlopen_self
19064 # Whether dlopen of statically linked programs is supported.
19065 dlopen_self_static=$enable_dlopen_self_static
19067 # Compiler flag to prevent dynamic linking.
19068 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19070 # Compiler flag to turn off builtin functions.
19071 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19073 # Compiler flag to allow reflexive dlopens.
19074 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19076 # Compiler flag to generate shared objects directly from archives.
19077 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19079 # Compiler flag to generate thread-safe objects.
19080 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19082 # Library versioning type.
19083 version_type=$version_type
19085 # Format of library name prefix.
19086 libname_spec=$lt_libname_spec
19088 # List of archive names. First name is the real one, the rest are links.
19089 # The last name is the one that the linker finds with -lNAME.
19090 library_names_spec=$lt_library_names_spec
19092 # The coded name of the library, if different from the real name.
19093 soname_spec=$lt_soname_spec
19095 # Commands used to build and install an old-style archive.
19097 old_archive_cmds=$lt_old_archive_cmds_GCJ
19098 old_postinstall_cmds=$lt_old_postinstall_cmds
19099 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19101 # Create an old-style archive from a shared archive.
19102 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19104 # Create a temporary old-style archive to link instead of a shared archive.
19105 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19107 # Commands used to build and install a shared archive.
19108 archive_cmds=$lt_archive_cmds_GCJ
19109 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19110 postinstall_cmds=$lt_postinstall_cmds
19111 postuninstall_cmds=$lt_postuninstall_cmds
19113 # Commands used to build a loadable module (assumed same as above if empty)
19114 module_cmds=$lt_module_cmds_GCJ
19115 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19117 # Commands to strip libraries.
19118 old_striplib=$lt_old_striplib
19119 striplib=$lt_striplib
19121 # Dependencies to place before the objects being linked to create a
19123 predep_objects=$lt_predep_objects_GCJ
19125 # Dependencies to place after the objects being linked to create a
19127 postdep_objects=$lt_postdep_objects_GCJ
19129 # Dependencies to place before the objects being linked to create a
19131 predeps=$lt_predeps_GCJ
19133 # Dependencies to place after the objects being linked to create a
19135 postdeps=$lt_postdeps_GCJ
19137 # The directories searched by this compiler when creating a shared
19139 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19141 # The library search path used internally by the compiler when linking
19142 # a shared library.
19143 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19145 # Method to check whether dependent libraries are shared objects.
19146 deplibs_check_method=$lt_deplibs_check_method
19148 # Command to use when deplibs_check_method == file_magic.
19149 file_magic_cmd=$lt_file_magic_cmd
19151 # Flag that allows shared libraries with undefined symbols to be built.
19152 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19154 # Flag that forces no undefined symbols.
19155 no_undefined_flag=$lt_no_undefined_flag_GCJ
19157 # Commands used to finish a libtool library installation in a directory.
19158 finish_cmds=$lt_finish_cmds
19160 # Same as above, but a single script fragment to be evaled but not shown.
19161 finish_eval=$lt_finish_eval
19163 # Take the output of nm and produce a listing of raw symbols and C names.
19164 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19166 # Transform the output of nm in a proper C declaration
19167 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19169 # Transform the output of nm in a C name address pair
19170 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19172 # This is the shared library runtime path variable.
19173 runpath_var=$runpath_var
19175 # This is the shared library path variable.
19176 shlibpath_var=$shlibpath_var
19178 # Is shlibpath searched before the hard-coded library search path?
19179 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19181 # How to hardcode a shared library path into an executable.
19182 hardcode_action=$hardcode_action_GCJ
19184 # Whether we should hardcode library paths into libraries.
19185 hardcode_into_libs=$hardcode_into_libs
19187 # Flag to hardcode \$libdir into a binary during linking.
19188 # This must work even if \$libdir does not exist.
19189 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19191 # If ld is used when linking, flag to hardcode \$libdir into
19192 # a binary during linking. This must work even if \$libdir does
19194 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19196 # Whether we need a single -rpath flag with a separated argument.
19197 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19199 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19200 # resulting binary.
19201 hardcode_direct=$hardcode_direct_GCJ
19203 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19204 # resulting binary.
19205 hardcode_minus_L=$hardcode_minus_L_GCJ
19207 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19208 # the resulting binary.
19209 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19211 # Set to yes if building a shared library automatically hardcodes DIR into the library
19212 # and all subsequent libraries and executables linked against it.
19213 hardcode_automatic=$hardcode_automatic_GCJ
19215 # Variables whose values should be saved in libtool wrapper scripts and
19216 # restored at relink time.
19217 variables_saved_for_relink="$variables_saved_for_relink"
19219 # Whether libtool must link a program against all its dependency libraries.
19220 link_all_deplibs=$link_all_deplibs_GCJ
19222 # Compile-time system search path for libraries
19223 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19225 # Run-time system search path for libraries
19226 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19228 # Fix the shell variable \$srcfile for the compiler.
19229 fix_srcfile_path=$lt_fix_srcfile_path
19231 # Set to yes if exported symbols are required.
19232 always_export_symbols=$always_export_symbols_GCJ
19234 # The commands to list exported symbols.
19235 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19237 # The commands to extract the exported symbol list from a shared archive.
19238 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19240 # Symbols that should not be listed in the preloaded symbols.
19241 exclude_expsyms=$lt_exclude_expsyms_GCJ
19243 # Symbols that must always be exported.
19244 include_expsyms=$lt_include_expsyms_GCJ
19246 # ### END LIBTOOL TAG CONFIG: $tagname
19252 # If there is no Makefile yet, we rely on a make rule to execute
19253 # `config.status --recheck' to rerun these tests and create the
19254 # libtool script then.
19255 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19256 if test -f "$ltmain_in"; then
19257 test -f Makefile && make "$ltmain"
19263 ac_cpp='$CPP $CPPFLAGS'
19264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19278 # Source file extension for RC test sources.
19281 # Object file extension for compiled RC test sources.
19285 # Code to be used in simple compile tests
19286 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19288 # Code to be used in simple link tests
19289 lt_simple_link_test_code="$lt_simple_compile_test_code"
19291 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19293 # If no C compiler was specified, use CC.
19296 # If no C compiler flags were specified, use CFLAGS.
19297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19299 # Allow CC to be a program name with arguments.
19303 # save warnings/boilerplate of simple test code
19304 ac_outfile=conftest.$ac_objext
19305 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19306 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19307 _lt_compiler_boilerplate=`cat conftest.err`
19310 ac_outfile=conftest.$ac_objext
19311 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19312 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19313 _lt_linker_boilerplate=`cat conftest.err`
19317 # Allow CC to be a program name with arguments.
19322 for cc_temp in $compiler""; do
19324 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19325 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19330 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19332 lt_cv_prog_compiler_c_o_RC=yes
19334 # The else clause should only fire when bootstrapping the
19335 # libtool distribution, otherwise you forgot to ship ltmain.sh
19336 # with your package, and you will get complaints that there are
19337 # no rules to generate ltmain.sh.
19338 if test -f "$ltmain"; then
19339 # See if we are running on zsh, and set the options which allow our commands through
19340 # without removal of \ escapes.
19341 if test -n "${ZSH_VERSION+set}" ; then
19342 setopt NO_GLOB_SUBST
19344 # Now quote all the things that may contain metacharacters while being
19345 # careful not to overquote the AC_SUBSTed values. We take copies of the
19346 # variables and quote the copies for generation of the libtool script.
19347 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19349 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19350 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19351 deplibs_check_method reload_flag reload_cmds need_locks \
19352 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19353 lt_cv_sys_global_symbol_to_c_name_address \
19354 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19355 old_postinstall_cmds old_postuninstall_cmds \
19359 lt_prog_compiler_wl_RC \
19360 lt_prog_compiler_pic_RC \
19361 lt_prog_compiler_static_RC \
19362 lt_prog_compiler_no_builtin_flag_RC \
19363 export_dynamic_flag_spec_RC \
19364 thread_safe_flag_spec_RC \
19365 whole_archive_flag_spec_RC \
19366 enable_shared_with_static_runtimes_RC \
19367 old_archive_cmds_RC \
19368 old_archive_from_new_cmds_RC \
19369 predep_objects_RC \
19370 postdep_objects_RC \
19373 compiler_lib_search_path_RC \
19374 compiler_lib_search_dirs_RC \
19376 archive_expsym_cmds_RC \
19377 postinstall_cmds_RC \
19378 postuninstall_cmds_RC \
19379 old_archive_from_expsyms_cmds_RC \
19380 allow_undefined_flag_RC \
19381 no_undefined_flag_RC \
19382 export_symbols_cmds_RC \
19383 hardcode_libdir_flag_spec_RC \
19384 hardcode_libdir_flag_spec_ld_RC \
19385 hardcode_libdir_separator_RC \
19386 hardcode_automatic_RC \
19388 module_expsym_cmds_RC \
19389 lt_cv_prog_compiler_c_o_RC \
19390 fix_srcfile_path_RC \
19391 exclude_expsyms_RC \
19392 include_expsyms_RC; do
19395 old_archive_cmds_RC | \
19396 old_archive_from_new_cmds_RC | \
19397 archive_cmds_RC | \
19398 archive_expsym_cmds_RC | \
19400 module_expsym_cmds_RC | \
19401 old_archive_from_expsyms_cmds_RC | \
19402 export_symbols_cmds_RC | \
19403 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19404 postinstall_cmds | postuninstall_cmds | \
19405 old_postinstall_cmds | old_postuninstall_cmds | \
19406 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19407 # Double-quote double-evaled strings.
19408 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19411 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19417 *'\$0 --fallback-echo"')
19418 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19424 cat <<__EOF__ >> "$cfgfile"
19425 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19427 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19429 # Shell to use when invoking shell scripts.
19432 # Whether or not to build shared libraries.
19433 build_libtool_libs=$enable_shared
19435 # Whether or not to build static libraries.
19436 build_old_libs=$enable_static
19438 # Whether or not to add -lc for building shared libraries.
19439 build_libtool_need_lc=$archive_cmds_need_lc_RC
19441 # Whether or not to disallow shared libs when runtime libs are static
19442 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19444 # Whether or not to optimize for fast installation.
19445 fast_install=$enable_fast_install
19448 host_alias=$host_alias
19452 # The build system.
19453 build_alias=$build_alias
19457 # An echo program that does not interpret backslashes.
19462 AR_FLAGS=$lt_AR_FLAGS
19467 # LTCC compiler flags.
19468 LTCFLAGS=$lt_LTCFLAGS
19470 # A language-specific compiler.
19473 # Is the compiler the GNU C compiler?
19479 # The linker used to build libraries.
19482 # Whether we need hard or soft links.
19485 # A BSD-compatible nm program.
19488 # A symbol stripping program
19491 # Used to examine libraries when file_magic_cmd begins "file"
19492 MAGIC_CMD=$MAGIC_CMD
19494 # Used on cygwin: DLL creation program.
19497 # Used on cygwin: object dumper.
19500 # Used on cygwin: assembler.
19503 # The name of the directory that contains temporary libtool files.
19506 # How to create reloadable object files.
19507 reload_flag=$lt_reload_flag
19508 reload_cmds=$lt_reload_cmds
19510 # How to pass a linker flag through the compiler.
19511 wl=$lt_lt_prog_compiler_wl_RC
19513 # Object file suffix (normally "o").
19514 objext="$ac_objext"
19516 # Old archive suffix (normally "a").
19519 # Shared library suffix (normally ".so").
19520 shrext_cmds='$shrext_cmds'
19522 # Executable file suffix (normally "").
19525 # Additional compiler flags for building library objects.
19526 pic_flag=$lt_lt_prog_compiler_pic_RC
19529 # What is the maximum length of a command?
19530 max_cmd_len=$lt_cv_sys_max_cmd_len
19532 # Does compiler simultaneously support -c and -o options?
19533 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19535 # Must we lock files when doing compilation?
19536 need_locks=$lt_need_locks
19538 # Do we need the lib prefix for modules?
19539 need_lib_prefix=$need_lib_prefix
19541 # Do we need a version for libraries?
19542 need_version=$need_version
19544 # Whether dlopen is supported.
19545 dlopen_support=$enable_dlopen
19547 # Whether dlopen of programs is supported.
19548 dlopen_self=$enable_dlopen_self
19550 # Whether dlopen of statically linked programs is supported.
19551 dlopen_self_static=$enable_dlopen_self_static
19553 # Compiler flag to prevent dynamic linking.
19554 link_static_flag=$lt_lt_prog_compiler_static_RC
19556 # Compiler flag to turn off builtin functions.
19557 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19559 # Compiler flag to allow reflexive dlopens.
19560 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19562 # Compiler flag to generate shared objects directly from archives.
19563 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19565 # Compiler flag to generate thread-safe objects.
19566 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19568 # Library versioning type.
19569 version_type=$version_type
19571 # Format of library name prefix.
19572 libname_spec=$lt_libname_spec
19574 # List of archive names. First name is the real one, the rest are links.
19575 # The last name is the one that the linker finds with -lNAME.
19576 library_names_spec=$lt_library_names_spec
19578 # The coded name of the library, if different from the real name.
19579 soname_spec=$lt_soname_spec
19581 # Commands used to build and install an old-style archive.
19583 old_archive_cmds=$lt_old_archive_cmds_RC
19584 old_postinstall_cmds=$lt_old_postinstall_cmds
19585 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19587 # Create an old-style archive from a shared archive.
19588 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19590 # Create a temporary old-style archive to link instead of a shared archive.
19591 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19593 # Commands used to build and install a shared archive.
19594 archive_cmds=$lt_archive_cmds_RC
19595 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19596 postinstall_cmds=$lt_postinstall_cmds
19597 postuninstall_cmds=$lt_postuninstall_cmds
19599 # Commands used to build a loadable module (assumed same as above if empty)
19600 module_cmds=$lt_module_cmds_RC
19601 module_expsym_cmds=$lt_module_expsym_cmds_RC
19603 # Commands to strip libraries.
19604 old_striplib=$lt_old_striplib
19605 striplib=$lt_striplib
19607 # Dependencies to place before the objects being linked to create a
19609 predep_objects=$lt_predep_objects_RC
19611 # Dependencies to place after the objects being linked to create a
19613 postdep_objects=$lt_postdep_objects_RC
19615 # Dependencies to place before the objects being linked to create a
19617 predeps=$lt_predeps_RC
19619 # Dependencies to place after the objects being linked to create a
19621 postdeps=$lt_postdeps_RC
19623 # The directories searched by this compiler when creating a shared
19625 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19627 # The library search path used internally by the compiler when linking
19628 # a shared library.
19629 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19631 # Method to check whether dependent libraries are shared objects.
19632 deplibs_check_method=$lt_deplibs_check_method
19634 # Command to use when deplibs_check_method == file_magic.
19635 file_magic_cmd=$lt_file_magic_cmd
19637 # Flag that allows shared libraries with undefined symbols to be built.
19638 allow_undefined_flag=$lt_allow_undefined_flag_RC
19640 # Flag that forces no undefined symbols.
19641 no_undefined_flag=$lt_no_undefined_flag_RC
19643 # Commands used to finish a libtool library installation in a directory.
19644 finish_cmds=$lt_finish_cmds
19646 # Same as above, but a single script fragment to be evaled but not shown.
19647 finish_eval=$lt_finish_eval
19649 # Take the output of nm and produce a listing of raw symbols and C names.
19650 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19652 # Transform the output of nm in a proper C declaration
19653 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19655 # Transform the output of nm in a C name address pair
19656 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19658 # This is the shared library runtime path variable.
19659 runpath_var=$runpath_var
19661 # This is the shared library path variable.
19662 shlibpath_var=$shlibpath_var
19664 # Is shlibpath searched before the hard-coded library search path?
19665 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19667 # How to hardcode a shared library path into an executable.
19668 hardcode_action=$hardcode_action_RC
19670 # Whether we should hardcode library paths into libraries.
19671 hardcode_into_libs=$hardcode_into_libs
19673 # Flag to hardcode \$libdir into a binary during linking.
19674 # This must work even if \$libdir does not exist.
19675 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19677 # If ld is used when linking, flag to hardcode \$libdir into
19678 # a binary during linking. This must work even if \$libdir does
19680 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19682 # Whether we need a single -rpath flag with a separated argument.
19683 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19685 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19686 # resulting binary.
19687 hardcode_direct=$hardcode_direct_RC
19689 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19690 # resulting binary.
19691 hardcode_minus_L=$hardcode_minus_L_RC
19693 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19694 # the resulting binary.
19695 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19697 # Set to yes if building a shared library automatically hardcodes DIR into the library
19698 # and all subsequent libraries and executables linked against it.
19699 hardcode_automatic=$hardcode_automatic_RC
19701 # Variables whose values should be saved in libtool wrapper scripts and
19702 # restored at relink time.
19703 variables_saved_for_relink="$variables_saved_for_relink"
19705 # Whether libtool must link a program against all its dependency libraries.
19706 link_all_deplibs=$link_all_deplibs_RC
19708 # Compile-time system search path for libraries
19709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19711 # Run-time system search path for libraries
19712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19714 # Fix the shell variable \$srcfile for the compiler.
19715 fix_srcfile_path=$lt_fix_srcfile_path
19717 # Set to yes if exported symbols are required.
19718 always_export_symbols=$always_export_symbols_RC
19720 # The commands to list exported symbols.
19721 export_symbols_cmds=$lt_export_symbols_cmds_RC
19723 # The commands to extract the exported symbol list from a shared archive.
19724 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19726 # Symbols that should not be listed in the preloaded symbols.
19727 exclude_expsyms=$lt_exclude_expsyms_RC
19729 # Symbols that must always be exported.
19730 include_expsyms=$lt_include_expsyms_RC
19732 # ### END LIBTOOL TAG CONFIG: $tagname
19738 # If there is no Makefile yet, we rely on a make rule to execute
19739 # `config.status --recheck' to rerun these tests and create the
19740 # libtool script then.
19741 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19742 if test -f "$ltmain_in"; then
19743 test -f Makefile && make "$ltmain"
19749 ac_cpp='$CPP $CPPFLAGS'
19750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19759 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19760 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19761 { (exit 1); exit 1; }; }
19765 # Append the new tag name to the list of available tags.
19766 if test -n "$tagname" ; then
19767 available_tags="$available_tags $tagname"
19773 # Now substitute the updated list of available tags.
19774 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19775 mv "${ofile}T" "$ofile"
19779 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19780 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19781 { (exit 1); exit 1; }; }
19787 # This can be used to rebuild libtool when needed
19788 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19790 # Always use our own libtool.
19791 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19793 # Prevent multiple expansion
19816 ac_cpp='$CPP $CPPFLAGS'
19817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19820 if test -n "$ac_tool_prefix"; then
19821 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19822 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19825 if test "${ac_cv_prog_CC+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19828 if test -n "$CC"; then
19829 ac_cv_prog_CC="$CC" # Let the user override the test.
19831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19832 for as_dir in $PATH
19835 test -z "$as_dir" && as_dir=.
19836 for ac_exec_ext in '' $ac_executable_extensions; do
19837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19838 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19849 if test -n "$CC"; then
19850 { echo "$as_me:$LINENO: result: $CC" >&5
19851 echo "${ECHO_T}$CC" >&6; }
19853 { echo "$as_me:$LINENO: result: no" >&5
19854 echo "${ECHO_T}no" >&6; }
19859 if test -z "$ac_cv_prog_CC"; then
19861 # Extract the first word of "gcc", so it can be a program name with args.
19862 set dummy gcc; ac_word=$2
19863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
19868 if test -n "$ac_ct_CC"; then
19869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19872 for as_dir in $PATH
19875 test -z "$as_dir" && as_dir=.
19876 for ac_exec_ext in '' $ac_executable_extensions; do
19877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19878 ac_cv_prog_ac_ct_CC="gcc"
19879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19889 if test -n "$ac_ct_CC"; then
19890 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19891 echo "${ECHO_T}$ac_ct_CC" >&6; }
19893 { echo "$as_me:$LINENO: result: no" >&5
19894 echo "${ECHO_T}no" >&6; }
19897 if test "x$ac_ct_CC" = x; then
19900 case $cross_compiling:$ac_tool_warned in
19902 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19903 whose name does not start with the host triplet. If you think this
19904 configuration is useful to you, please write to autoconf@gnu.org." >&5
19905 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19906 whose name does not start with the host triplet. If you think this
19907 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19908 ac_tool_warned=yes ;;
19913 CC="$ac_cv_prog_CC"
19916 if test -z "$CC"; then
19917 if test -n "$ac_tool_prefix"; then
19918 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19919 set dummy ${ac_tool_prefix}cc; ac_word=$2
19920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19922 if test "${ac_cv_prog_CC+set}" = set; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
19925 if test -n "$CC"; then
19926 ac_cv_prog_CC="$CC" # Let the user override the test.
19928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19929 for as_dir in $PATH
19932 test -z "$as_dir" && as_dir=.
19933 for ac_exec_ext in '' $ac_executable_extensions; do
19934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19935 ac_cv_prog_CC="${ac_tool_prefix}cc"
19936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19946 if test -n "$CC"; then
19947 { echo "$as_me:$LINENO: result: $CC" >&5
19948 echo "${ECHO_T}$CC" >&6; }
19950 { echo "$as_me:$LINENO: result: no" >&5
19951 echo "${ECHO_T}no" >&6; }
19957 if test -z "$CC"; then
19958 # Extract the first word of "cc", so it can be a program name with args.
19959 set dummy cc; ac_word=$2
19960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19962 if test "${ac_cv_prog_CC+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19965 if test -n "$CC"; then
19966 ac_cv_prog_CC="$CC" # Let the user override the test.
19968 ac_prog_rejected=no
19969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19970 for as_dir in $PATH
19973 test -z "$as_dir" && as_dir=.
19974 for ac_exec_ext in '' $ac_executable_extensions; do
19975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19976 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19977 ac_prog_rejected=yes
19981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19988 if test $ac_prog_rejected = yes; then
19989 # We found a bogon in the path, so make sure we never use it.
19990 set dummy $ac_cv_prog_CC
19992 if test $# != 0; then
19993 # We chose a different compiler from the bogus one.
19994 # However, it has the same basename, so the bogon will be chosen
19995 # first if we set CC to just the basename; use the full file name.
19997 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20003 if test -n "$CC"; then
20004 { echo "$as_me:$LINENO: result: $CC" >&5
20005 echo "${ECHO_T}$CC" >&6; }
20007 { echo "$as_me:$LINENO: result: no" >&5
20008 echo "${ECHO_T}no" >&6; }
20013 if test -z "$CC"; then
20014 if test -n "$ac_tool_prefix"; then
20015 for ac_prog in cl.exe
20017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20018 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20021 if test "${ac_cv_prog_CC+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20024 if test -n "$CC"; then
20025 ac_cv_prog_CC="$CC" # Let the user override the test.
20027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20028 for as_dir in $PATH
20031 test -z "$as_dir" && as_dir=.
20032 for ac_exec_ext in '' $ac_executable_extensions; do
20033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20034 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20045 if test -n "$CC"; then
20046 { echo "$as_me:$LINENO: result: $CC" >&5
20047 echo "${ECHO_T}$CC" >&6; }
20049 { echo "$as_me:$LINENO: result: no" >&5
20050 echo "${ECHO_T}no" >&6; }
20054 test -n "$CC" && break
20057 if test -z "$CC"; then
20059 for ac_prog in cl.exe
20061 # Extract the first word of "$ac_prog", so it can be a program name with args.
20062 set dummy $ac_prog; ac_word=$2
20063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20066 echo $ECHO_N "(cached) $ECHO_C" >&6
20068 if test -n "$ac_ct_CC"; then
20069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20072 for as_dir in $PATH
20075 test -z "$as_dir" && as_dir=.
20076 for ac_exec_ext in '' $ac_executable_extensions; do
20077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20078 ac_cv_prog_ac_ct_CC="$ac_prog"
20079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20089 if test -n "$ac_ct_CC"; then
20090 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20091 echo "${ECHO_T}$ac_ct_CC" >&6; }
20093 { echo "$as_me:$LINENO: result: no" >&5
20094 echo "${ECHO_T}no" >&6; }
20098 test -n "$ac_ct_CC" && break
20101 if test "x$ac_ct_CC" = x; then
20104 case $cross_compiling:$ac_tool_warned in
20106 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20107 whose name does not start with the host triplet. If you think this
20108 configuration is useful to you, please write to autoconf@gnu.org." >&5
20109 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20110 whose name does not start with the host triplet. If you think this
20111 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20112 ac_tool_warned=yes ;;
20121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20122 See \`config.log' for more details." >&5
20123 echo "$as_me: error: no acceptable C compiler found in \$PATH
20124 See \`config.log' for more details." >&2;}
20125 { (exit 1); exit 1; }; }
20127 # Provide some information about the compiler.
20128 echo "$as_me:$LINENO: checking for C compiler version" >&5
20129 ac_compiler=`set X $ac_compile; echo $2`
20130 { (ac_try="$ac_compiler --version >&5"
20131 case "(($ac_try" in
20132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20133 *) ac_try_echo=$ac_try;;
20135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20136 (eval "$ac_compiler --version >&5") 2>&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); }
20140 { (ac_try="$ac_compiler -v >&5"
20141 case "(($ac_try" in
20142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143 *) ac_try_echo=$ac_try;;
20145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146 (eval "$ac_compiler -v >&5") 2>&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); }
20150 { (ac_try="$ac_compiler -V >&5"
20151 case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156 (eval "$ac_compiler -V >&5") 2>&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }
20161 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20162 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20163 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
20166 cat >conftest.$ac_ext <<_ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h. */
20184 rm -f conftest.$ac_objext
20185 if { (ac_try="$ac_compile"
20186 case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191 (eval "$ac_compile") 2>conftest.er1
20193 grep -v '^ *+' conftest.er1 >conftest.err
20195 cat conftest.err >&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } && {
20198 test -z "$ac_c_werror_flag" ||
20199 test ! -s conftest.err
20200 } && test -s conftest.$ac_objext; then
20201 ac_compiler_gnu=yes
20203 echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20213 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20214 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20215 GCC=`test $ac_compiler_gnu = yes && echo yes`
20216 ac_test_CFLAGS=${CFLAGS+set}
20217 ac_save_CFLAGS=$CFLAGS
20218 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20219 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20220 if test "${ac_cv_prog_cc_g+set}" = set; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20223 ac_save_c_werror_flag=$ac_c_werror_flag
20224 ac_c_werror_flag=yes
20227 cat >conftest.$ac_ext <<_ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
20242 rm -f conftest.$ac_objext
20243 if { (ac_try="$ac_compile"
20244 case "(($ac_try" in
20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246 *) ac_try_echo=$ac_try;;
20248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249 (eval "$ac_compile") 2>conftest.er1
20251 grep -v '^ *+' conftest.er1 >conftest.err
20253 cat conftest.err >&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); } && {
20256 test -z "$ac_c_werror_flag" ||
20257 test ! -s conftest.err
20258 } && test -s conftest.$ac_objext; then
20259 ac_cv_prog_cc_g=yes
20261 echo "$as_me: failed program was:" >&5
20262 sed 's/^/| /' conftest.$ac_ext >&5
20265 cat >conftest.$ac_ext <<_ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20280 rm -f conftest.$ac_objext
20281 if { (ac_try="$ac_compile"
20282 case "(($ac_try" in
20283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284 *) ac_try_echo=$ac_try;;
20286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287 (eval "$ac_compile") 2>conftest.er1
20289 grep -v '^ *+' conftest.er1 >conftest.err
20291 cat conftest.err >&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } && {
20294 test -z "$ac_c_werror_flag" ||
20295 test ! -s conftest.err
20296 } && test -s conftest.$ac_objext; then
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20302 ac_c_werror_flag=$ac_save_c_werror_flag
20304 cat >conftest.$ac_ext <<_ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20319 rm -f conftest.$ac_objext
20320 if { (ac_try="$ac_compile"
20321 case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_compile") 2>conftest.er1
20328 grep -v '^ *+' conftest.er1 >conftest.err
20330 cat conftest.err >&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); } && {
20333 test -z "$ac_c_werror_flag" ||
20334 test ! -s conftest.err
20335 } && test -s conftest.$ac_objext; then
20336 ac_cv_prog_cc_g=yes
20338 echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20351 ac_c_werror_flag=$ac_save_c_werror_flag
20353 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20354 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20355 if test "$ac_test_CFLAGS" = set; then
20356 CFLAGS=$ac_save_CFLAGS
20357 elif test $ac_cv_prog_cc_g = yes; then
20358 if test "$GCC" = yes; then
20364 if test "$GCC" = yes; then
20370 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20371 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20372 if test "${ac_cv_prog_cc_c89+set}" = set; then
20373 echo $ECHO_N "(cached) $ECHO_C" >&6
20375 ac_cv_prog_cc_c89=no
20377 cat >conftest.$ac_ext <<_ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h. */
20383 #include <stdarg.h>
20385 #include <sys/types.h>
20386 #include <sys/stat.h>
20387 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20388 struct buf { int x; };
20389 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20390 static char *e (p, i)
20396 static char *f (char * (*g) (char **, int), char **p, ...)
20401 s = g (p, va_arg (v,int));
20406 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20407 function prototypes and stuff, but not '\xHH' hex character constants.
20408 These don't provoke an error unfortunately, instead are silently treated
20409 as 'x'. The following induces an error, until -std is added to get
20410 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20411 array size at least. It's necessary to write '\x00'==0 to get something
20412 that's true only with -std. */
20413 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20415 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20416 inside strings and character constants. */
20418 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20420 int test (int i, double x);
20421 struct s1 {int (*f) (int a);};
20422 struct s2 {int (*f) (double a);};
20423 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20429 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20434 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20435 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20437 CC="$ac_save_CC $ac_arg"
20438 rm -f conftest.$ac_objext
20439 if { (ac_try="$ac_compile"
20440 case "(($ac_try" in
20441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442 *) ac_try_echo=$ac_try;;
20444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445 (eval "$ac_compile") 2>conftest.er1
20447 grep -v '^ *+' conftest.er1 >conftest.err
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } && {
20452 test -z "$ac_c_werror_flag" ||
20453 test ! -s conftest.err
20454 } && test -s conftest.$ac_objext; then
20455 ac_cv_prog_cc_c89=$ac_arg
20457 echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20463 rm -f core conftest.err conftest.$ac_objext
20464 test "x$ac_cv_prog_cc_c89" != "xno" && break
20466 rm -f conftest.$ac_ext
20471 case "x$ac_cv_prog_cc_c89" in
20473 { echo "$as_me:$LINENO: result: none needed" >&5
20474 echo "${ECHO_T}none needed" >&6; } ;;
20476 { echo "$as_me:$LINENO: result: unsupported" >&5
20477 echo "${ECHO_T}unsupported" >&6; } ;;
20479 CC="$CC $ac_cv_prog_cc_c89"
20480 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20481 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20486 ac_cpp='$CPP $CPPFLAGS'
20487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20491 depcc="$CC" am_compiler_list=
20493 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20494 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20495 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20498 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20499 # We make a subdir and do the tests there. Otherwise we can end up
20500 # making bogus files that we don't know about and never remove. For
20501 # instance it was reported that on HP-UX the gcc test will end up
20502 # making a dummy file named `D' -- because `-MD' means `put the output
20505 # Copy depcomp to subdir because otherwise we won't find it if we're
20506 # using a relative directory.
20507 cp "$am_depcomp" conftest.dir
20509 # We will build objects and dependencies in a subdirectory because
20510 # it helps to detect inapplicable dependency modes. For instance
20511 # both Tru64's cc and ICC support -MD to output dependencies as a
20512 # side effect of compilation, but ICC will put the dependencies in
20513 # the current directory while Tru64 will put them in the object
20517 am_cv_CC_dependencies_compiler_type=none
20518 if test "$am_compiler_list" = ""; then
20519 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20521 for depmode in $am_compiler_list; do
20522 # Setup a source with many dependencies, because some compilers
20523 # like to wrap large dependency lists on column 80 (with \), and
20524 # we should not choose a depcomp mode which is confused by this.
20526 # We need to recreate these files for each test, as the compiler may
20527 # overwrite some of them when testing with obscure command lines.
20528 # This happens at least with the AIX C compiler.
20530 for i in 1 2 3 4 5 6; do
20531 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20532 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20533 # Solaris 8's {/usr,}/bin/sh.
20534 touch sub/conftst$i.h
20536 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20540 # after this tag, mechanisms are not by side-effect, so they'll
20541 # only be used when explicitly requested
20542 if test "x$enable_dependency_tracking" = xyes; then
20550 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20551 # mode. It turns out that the SunPro C++ compiler does not properly
20552 # handle `-M -o', and we need to detect this.
20553 if depmode=$depmode \
20554 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20556 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20557 >/dev/null 2>conftest.err &&
20558 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20559 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20560 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20561 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20562 # icc doesn't choke on unknown options, it will just issue warnings
20563 # or remarks (even with -Werror). So we grep stderr for any message
20564 # that says an option was ignored or not supported.
20565 # When given -MP, icc 7.0 and 7.1 complain thusly:
20566 # icc: Command line warning: ignoring option '-M'; no argument required
20567 # The diagnosis changed in icc 8.0:
20568 # icc: Command line remark: option '-MP' not supported
20569 if (grep 'ignoring option' conftest.err ||
20570 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20571 am_cv_CC_dependencies_compiler_type=$depmode
20578 rm -rf conftest.dir
20580 am_cv_CC_dependencies_compiler_type=none
20584 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20585 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20586 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20589 test "x$enable_dependency_tracking" != xno \
20590 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20591 am__fastdepCC_TRUE=
20592 am__fastdepCC_FALSE='#'
20594 am__fastdepCC_TRUE='#'
20595 am__fastdepCC_FALSE=
20600 # Checks for libraries.
20602 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
20603 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
20604 if test "${ac_cv_lib_apr_1_main+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20607 ac_check_lib_save_LIBS=$LIBS
20608 LIBS="-lapr-1 $LIBS"
20609 cat >conftest.$ac_ext <<_ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20625 rm -f conftest.$ac_objext conftest$ac_exeext
20626 if { (ac_try="$ac_link"
20627 case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_link") 2>conftest.er1
20634 grep -v '^ *+' conftest.er1 >conftest.err
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } && {
20639 test -z "$ac_c_werror_flag" ||
20640 test ! -s conftest.err
20641 } && test -s conftest$ac_exeext &&
20642 $as_test_x conftest$ac_exeext; then
20643 ac_cv_lib_apr_1_main=yes
20645 echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20648 ac_cv_lib_apr_1_main=no
20651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20652 conftest$ac_exeext conftest.$ac_ext
20653 LIBS=$ac_check_lib_save_LIBS
20655 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
20656 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
20657 if test $ac_cv_lib_apr_1_main = yes; then
20658 cat >>confdefs.h <<_ACEOF
20659 #define HAVE_LIBAPR_1 1
20662 LIBS="-lapr-1 $LIBS"
20667 # Checks for header files.
20668 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20669 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20670 if test "${ac_cv_header_stdc+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20673 cat >conftest.$ac_ext <<_ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20679 #include <stdlib.h>
20680 #include <stdarg.h>
20681 #include <string.h>
20692 rm -f conftest.$ac_objext
20693 if { (ac_try="$ac_compile"
20694 case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_compile") 2>conftest.er1
20701 grep -v '^ *+' conftest.er1 >conftest.err
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } && {
20706 test -z "$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20708 } && test -s conftest.$ac_objext; then
20709 ac_cv_header_stdc=yes
20711 echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20714 ac_cv_header_stdc=no
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20719 if test $ac_cv_header_stdc = yes; then
20720 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20721 cat >conftest.$ac_ext <<_ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20727 #include <string.h>
20730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20731 $EGREP "memchr" >/dev/null 2>&1; then
20734 ac_cv_header_stdc=no
20740 if test $ac_cv_header_stdc = yes; then
20741 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20742 cat >conftest.$ac_ext <<_ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h. */
20748 #include <stdlib.h>
20751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20752 $EGREP "free" >/dev/null 2>&1; then
20755 ac_cv_header_stdc=no
20761 if test $ac_cv_header_stdc = yes; then
20762 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20763 if test "$cross_compiling" = yes; then
20766 cat >conftest.$ac_ext <<_ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20773 #include <stdlib.h>
20774 #if ((' ' & 0x0FF) == 0x020)
20775 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20776 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20778 # define ISLOWER(c) \
20779 (('a' <= (c) && (c) <= 'i') \
20780 || ('j' <= (c) && (c) <= 'r') \
20781 || ('s' <= (c) && (c) <= 'z'))
20782 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20785 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20790 for (i = 0; i < 256; i++)
20791 if (XOR (islower (i), ISLOWER (i))
20792 || toupper (i) != TOUPPER (i))
20797 rm -f conftest$ac_exeext
20798 if { (ac_try="$ac_link"
20799 case "(($ac_try" in
20800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801 *) ac_try_echo=$ac_try;;
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804 (eval "$ac_link") 2>&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20808 { (case "(($ac_try" in
20809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810 *) ac_try_echo=$ac_try;;
20812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20813 (eval "$ac_try") 2>&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); }; }; then
20819 echo "$as_me: program exited with status $ac_status" >&5
20820 echo "$as_me: failed program was:" >&5
20821 sed 's/^/| /' conftest.$ac_ext >&5
20823 ( exit $ac_status )
20824 ac_cv_header_stdc=no
20826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20832 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20833 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20834 if test $ac_cv_header_stdc = yes; then
20836 cat >>confdefs.h <<\_ACEOF
20837 #define STDC_HEADERS 1
20843 for ac_header in string.h
20845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20850 echo $ECHO_N "(cached) $ECHO_C" >&6
20852 ac_res=`eval echo '${'$as_ac_Header'}'`
20853 { echo "$as_me:$LINENO: result: $ac_res" >&5
20854 echo "${ECHO_T}$ac_res" >&6; }
20856 # Is the header compilable?
20857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20859 cat >conftest.$ac_ext <<_ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20865 $ac_includes_default
20866 #include <$ac_header>
20868 rm -f conftest.$ac_objext
20869 if { (ac_try="$ac_compile"
20870 case "(($ac_try" in
20871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872 *) ac_try_echo=$ac_try;;
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875 (eval "$ac_compile") 2>conftest.er1
20877 grep -v '^ *+' conftest.er1 >conftest.err
20879 cat conftest.err >&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } && {
20882 test -z "$ac_c_werror_flag" ||
20883 test ! -s conftest.err
20884 } && test -s conftest.$ac_objext; then
20885 ac_header_compiler=yes
20887 echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20890 ac_header_compiler=no
20893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20895 echo "${ECHO_T}$ac_header_compiler" >&6; }
20897 # Is the header present?
20898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20900 cat >conftest.$ac_ext <<_ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h. */
20906 #include <$ac_header>
20908 if { (ac_try="$ac_cpp conftest.$ac_ext"
20909 case "(($ac_try" in
20910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911 *) ac_try_echo=$ac_try;;
20913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20916 grep -v '^ *+' conftest.er1 >conftest.err
20918 cat conftest.err >&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); } >/dev/null && {
20921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20922 test ! -s conftest.err
20924 ac_header_preproc=yes
20926 echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20929 ac_header_preproc=no
20932 rm -f conftest.err conftest.$ac_ext
20933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20934 echo "${ECHO_T}$ac_header_preproc" >&6; }
20936 # So? What about this header?
20937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20943 ac_header_preproc=yes
20946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20959 ## ---------------------------------------- ##
20960 ## Report this to konn@users.sourceforge.jp ##
20961 ## ---------------------------------------- ##
20963 ) | sed "s/^/$as_me: WARNING: /" >&2
20966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20969 echo $ECHO_N "(cached) $ECHO_C" >&6
20971 eval "$as_ac_Header=\$ac_header_preproc"
20973 ac_res=`eval echo '${'$as_ac_Header'}'`
20974 { echo "$as_me:$LINENO: result: $ac_res" >&5
20975 echo "${ECHO_T}$ac_res" >&6; }
20978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20979 cat >>confdefs.h <<_ACEOF
20980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20989 # Check whether --with-apr-config was given.
20990 if test "${with_apr_config+set}" = set; then
20991 withval=$with_apr_config;
20994 if test "x$with_apr_config" = "xyes" ; then
20995 { { echo "$as_me:$LINENO: error:
20996 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
20998 echo "$as_me: error:
20999 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
21001 { (exit 1); exit 1; }; }
21005 # Check whether --with-apu-config was given.
21006 if test "${with_apu_config+set}" = set; then
21007 withval=$with_apu_config;
21010 if test "x$with_apu_config" = "xyes" ; then
21011 { { echo "$as_me:$LINENO: error:
21012 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
21014 echo "$as_me: error:
21015 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
21017 { (exit 1); exit 1; }; }
21020 # Extract the first word of "libtool", so it can be a program name with args.
21021 set dummy libtool; ac_word=$2
21022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21024 if test "${ac_cv_path_LIBTOOL+set}" = set; then
21025 echo $ECHO_N "(cached) $ECHO_C" >&6
21029 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
21032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21033 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21034 for as_dir in $as_dummy
21037 test -z "$as_dir" && as_dir=.
21038 for ac_exec_ext in '' $ac_executable_extensions; do
21039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21040 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
21041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21048 test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
21052 LIBTOOL=$ac_cv_path_LIBTOOL
21053 if test -n "$LIBTOOL"; then
21054 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
21055 echo "${ECHO_T}$LIBTOOL" >&6; }
21057 { echo "$as_me:$LINENO: result: no" >&5
21058 echo "${ECHO_T}no" >&6; }
21062 if test "x$LIBTOOL" = "xno"; then
21063 { { echo "$as_me:$LINENO: error: libtool not found." >&5
21064 echo "$as_me: error: libtool not found." >&2;}
21065 { (exit 1); exit 1; }; }
21069 if test "x$with_apr_config" = "x" ; then
21070 # Extract the first word of "apr-config", so it can be a program name with args.
21071 set dummy apr-config; ac_word=$2
21072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21074 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
21075 echo $ECHO_N "(cached) $ECHO_C" >&6
21077 case $APR_CONFIG in
21079 ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
21082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21083 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21084 for as_dir in $as_dummy
21087 test -z "$as_dir" && as_dir=.
21088 for ac_exec_ext in '' $ac_executable_extensions; do
21089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21090 ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21098 test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
21102 APR_CONFIG=$ac_cv_path_APR_CONFIG
21103 if test -n "$APR_CONFIG"; then
21104 { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
21105 echo "${ECHO_T}$APR_CONFIG" >&6; }
21107 { echo "$as_me:$LINENO: result: no" >&5
21108 echo "${ECHO_T}no" >&6; }
21112 if test "x$APR_CONFIG" = "xno" ; then
21113 # Extract the first word of "apr-1-config", so it can be a program name with args.
21114 set dummy apr-1-config; ac_word=$2
21115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21117 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
21118 echo $ECHO_N "(cached) $ECHO_C" >&6
21120 case $APR_1_CONFIG in
21122 ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
21125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21126 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21127 for as_dir in $as_dummy
21130 test -z "$as_dir" && as_dir=.
21131 for ac_exec_ext in '' $ac_executable_extensions; do
21132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21133 ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21141 test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
21145 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
21146 if test -n "$APR_1_CONFIG"; then
21147 { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
21148 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
21150 { echo "$as_me:$LINENO: result: no" >&5
21151 echo "${ECHO_T}no" >&6; }
21155 if test "x$APR_1_CONFIG" = "xno" ; then
21156 { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
21157 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
21158 { (exit 1); exit 1; }; }
21160 APR_CONFIG="$APR_1_CONFIG"
21164 if test "x$with_apr_config" != "x" ; then
21165 APR_CONFIG=$with_apr_config
21167 if test "x$with_apu_config" = "x" ; then
21168 # Extract the first word of "apu-config", so it can be a program name with args.
21169 set dummy apu-config; ac_word=$2
21170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21172 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
21173 echo $ECHO_N "(cached) $ECHO_C" >&6
21175 case $APU_CONFIG in
21177 ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
21180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21181 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21182 for as_dir in $as_dummy
21185 test -z "$as_dir" && as_dir=.
21186 for ac_exec_ext in '' $ac_executable_extensions; do
21187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21188 ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21196 test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
21200 APU_CONFIG=$ac_cv_path_APU_CONFIG
21201 if test -n "$APU_CONFIG"; then
21202 { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
21203 echo "${ECHO_T}$APU_CONFIG" >&6; }
21205 { echo "$as_me:$LINENO: result: no" >&5
21206 echo "${ECHO_T}no" >&6; }
21210 if test "x$APU_CONFIG" = "xno" ; then
21211 # Extract the first word of "apu-1-config", so it can be a program name with args.
21212 set dummy apu-1-config; ac_word=$2
21213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21215 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21218 case $APU_1_CONFIG in
21220 ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
21223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21224 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21225 for as_dir in $as_dummy
21228 test -z "$as_dir" && as_dir=.
21229 for ac_exec_ext in '' $ac_executable_extensions; do
21230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21231 ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21239 test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
21243 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
21244 if test -n "$APU_1_CONFIG"; then
21245 { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
21246 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
21248 { echo "$as_me:$LINENO: result: no" >&5
21249 echo "${ECHO_T}no" >&6; }
21253 if test "x$APU_1_CONFIG" = "xno" ; then
21254 { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
21255 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
21256 { (exit 1); exit 1; }; }
21258 APU_CONFIG="$APU_1_CONFIG"
21262 if test "x$with_apu_config" != "x" ; then
21263 APU_CONFIG=$with_apu_config
21267 if test "x$with_apu_config" != "x" ; then
21268 APU_CONFIG=$with_apu_config
21271 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
21272 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
21273 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
21274 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
21277 # Checks for typedefs, structures, and compiler characteristics.
21278 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21279 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21280 if test "${ac_cv_c_const+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21283 cat >conftest.$ac_ext <<_ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21293 /* FIXME: Include the comments suggested by Paul. */
21294 #ifndef __cplusplus
21295 /* Ultrix mips cc rejects this. */
21296 typedef int charset[2];
21298 /* SunOS 4.1.1 cc rejects this. */
21299 char const *const *pcpcc;
21301 /* NEC SVR4.0.2 mips cc rejects this. */
21302 struct point {int x, y;};
21303 static struct point const zero = {0,0};
21304 /* AIX XL C 1.02.0.0 rejects this.
21305 It does not let you subtract one const X* pointer from another in
21306 an arm of an if-expression whose if-part is not a constant
21308 const char *g = "string";
21309 pcpcc = &g + (g ? g-g : 0);
21310 /* HPUX 7.0 cc rejects these. */
21312 ppc = (char**) pcpcc;
21313 pcpcc = (char const *const *) ppc;
21314 { /* SCO 3.2v4 cc rejects this. */
21316 char const *s = 0 ? (char *) 0 : (char const *) 0;
21321 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21322 int x[] = {25, 17};
21323 const int *foo = &x[0];
21326 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21327 typedef const int *iptr;
21331 { /* AIX XL C 1.02.0.0 rejects this saying
21332 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21333 struct s { int j; const int *ap[3]; };
21334 struct s *b; b->j = 5;
21336 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21337 const int foo = 10;
21338 if (!foo) return 0;
21340 return !cs[0] && !zero.x;
21347 rm -f conftest.$ac_objext
21348 if { (ac_try="$ac_compile"
21349 case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354 (eval "$ac_compile") 2>conftest.er1
21356 grep -v '^ *+' conftest.er1 >conftest.err
21358 cat conftest.err >&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } && {
21361 test -z "$ac_c_werror_flag" ||
21362 test ! -s conftest.err
21363 } && test -s conftest.$ac_objext; then
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21374 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21375 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21376 if test $ac_cv_c_const = no; then
21378 cat >>confdefs.h <<\_ACEOF
21385 # Checks for library functions.
21389 for ac_func in memset strcasecmp strncasecmp
21391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21392 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21395 echo $ECHO_N "(cached) $ECHO_C" >&6
21397 cat >conftest.$ac_ext <<_ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21405 #define $ac_func innocuous_$ac_func
21407 /* System header to define __stub macros and hopefully few prototypes,
21408 which can conflict with char $ac_func (); below.
21409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21410 <limits.h> exists even on freestanding compilers. */
21413 # include <limits.h>
21415 # include <assert.h>
21420 /* Override any GCC internal prototype to avoid an error.
21421 Use char because int might match the return type of a GCC
21422 builtin and then its argument prototype would still apply. */
21427 /* The GNU C library defines this for functions which it implements
21428 to always fail with ENOSYS. Some functions are actually named
21429 something starting with __ and the normal name is an alias. */
21430 #if defined __stub_$ac_func || defined __stub___$ac_func
21437 return $ac_func ();
21442 rm -f conftest.$ac_objext conftest$ac_exeext
21443 if { (ac_try="$ac_link"
21444 case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449 (eval "$ac_link") 2>conftest.er1
21451 grep -v '^ *+' conftest.er1 >conftest.err
21453 cat conftest.err >&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } && {
21456 test -z "$ac_c_werror_flag" ||
21457 test ! -s conftest.err
21458 } && test -s conftest$ac_exeext &&
21459 $as_test_x conftest$ac_exeext; then
21460 eval "$as_ac_var=yes"
21462 echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21465 eval "$as_ac_var=no"
21468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21469 conftest$ac_exeext conftest.$ac_ext
21471 ac_res=`eval echo '${'$as_ac_var'}'`
21472 { echo "$as_me:$LINENO: result: $ac_res" >&5
21473 echo "${ECHO_T}$ac_res" >&6; }
21474 if test `eval echo '${'$as_ac_var'}'` = yes; then
21475 cat >>confdefs.h <<_ACEOF
21476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21487 ac_config_files="$ac_config_files Makefile src/Makefile"
21489 cat >confcache <<\_ACEOF
21490 # This file is a shell script that caches the results of configure
21491 # tests run on this system so they can be shared between configure
21492 # scripts and configure runs, see configure's option --config-cache.
21493 # It is not useful on other systems. If it contains results you don't
21494 # want to keep, you may remove or edit it.
21496 # config.status only pays attention to the cache file if you give it
21497 # the --recheck option to rerun configure.
21499 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21500 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21501 # following values.
21505 # The following way of writing the cache mishandles newlines in values,
21506 # but we know of no workaround that is simple, portable, and efficient.
21507 # So, we kill variables containing newlines.
21508 # Ultrix sh set writes to stderr and can't be redirected directly,
21509 # and sets the high bit in the cache file unless we assign to the vars.
21511 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21512 eval ac_val=\$$ac_var
21516 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21517 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21520 _ | IFS | as_nl) ;; #(
21521 *) $as_unset $ac_var ;;
21527 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21528 *${as_nl}ac_space=\ *)
21529 # `set' does not quote correctly, so add quotes (double-quote
21530 # substitution turns \\\\ into \\, and sed turns \\ into \).
21533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21536 # `set' quotes correctly as required by POSIX, so do not add quotes.
21537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21546 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21548 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21550 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21551 if test -w "$cache_file"; then
21552 test "x$cache_file" != "x/dev/null" &&
21553 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21554 echo "$as_me: updating cache $cache_file" >&6;}
21555 cat confcache >$cache_file
21557 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21558 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21563 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21564 # Let make expand exec_prefix.
21565 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21567 DEFS=-DHAVE_CONFIG_H
21571 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21572 # 1. Remove the extension, and $U if already installed.
21573 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21574 ac_i=`echo "$ac_i" | sed "$ac_script"`
21575 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21576 # will be set to the directory where LIBOBJS objects are built.
21577 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21578 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21580 LIBOBJS=$ac_libobjs
21582 LTLIBOBJS=$ac_ltlibobjs
21585 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21586 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21587 Usually this means the macro was only invoked conditionally." >&5
21588 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21589 Usually this means the macro was only invoked conditionally." >&2;}
21590 { (exit 1); exit 1; }; }
21592 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21593 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21594 Usually this means the macro was only invoked conditionally." >&5
21595 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21596 Usually this means the macro was only invoked conditionally." >&2;}
21597 { (exit 1); exit 1; }; }
21599 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21600 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21601 Usually this means the macro was only invoked conditionally." >&5
21602 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21603 Usually this means the macro was only invoked conditionally." >&2;}
21604 { (exit 1); exit 1; }; }
21606 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21607 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21608 Usually this means the macro was only invoked conditionally." >&5
21609 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21610 Usually this means the macro was only invoked conditionally." >&2;}
21611 { (exit 1); exit 1; }; }
21614 : ${CONFIG_STATUS=./config.status}
21615 ac_clean_files_save=$ac_clean_files
21616 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21617 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21618 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21619 cat >$CONFIG_STATUS <<_ACEOF
21621 # Generated by $as_me.
21622 # Run this file to recreate the current configuration.
21623 # Compiler output produced by configure, useful for debugging
21624 # configure, is in config.log if it exists.
21627 ac_cs_recheck=false
21629 SHELL=\${CONFIG_SHELL-$SHELL}
21632 cat >>$CONFIG_STATUS <<\_ACEOF
21633 ## --------------------- ##
21634 ## M4sh Initialization. ##
21635 ## --------------------- ##
21637 # Be more Bourne compatible
21638 DUALCASE=1; export DUALCASE # for MKS sh
21639 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21642 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21643 # is contrary to our usage. Disable this feature.
21644 alias -g '${1+"$@"}'='"$@"'
21645 setopt NO_GLOB_SUBST
21647 case `(set -o) 2>/dev/null` in
21648 *posix*) set -o posix ;;
21657 # Avoid depending upon Character Ranges.
21658 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21659 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21660 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21661 as_cr_digits='0123456789'
21662 as_cr_alnum=$as_cr_Letters$as_cr_digits
21664 # The user is always right.
21665 if test "${PATH_SEPARATOR+set}" != set; then
21666 echo "#! /bin/sh" >conf$$.sh
21667 echo "exit 0" >>conf$$.sh
21669 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21677 # Support unset when possible.
21678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21686 # We need space, tab and new line, in precisely that order. Quoting is
21687 # there to prevent editors from complaining about space-tab.
21688 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21689 # splitting by setting IFS to empty value.)
21694 # Find who we are. Look in the path if we contain no directory separator.
21696 *[\\/]* ) as_myself=$0 ;;
21697 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21698 for as_dir in $PATH
21701 test -z "$as_dir" && as_dir=.
21702 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21708 # We did not find ourselves, most probably we were run as `sh COMMAND'
21709 # in which case we are not to be found in the path.
21710 if test "x$as_myself" = x; then
21713 if test ! -f "$as_myself"; then
21714 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21715 { (exit 1); exit 1; }
21718 # Work around bugs in pre-3.0 UWIN ksh.
21719 for as_var in ENV MAIL MAILPATH
21720 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21728 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21729 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21730 LC_TELEPHONE LC_TIME
21732 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21733 eval $as_var=C; export $as_var
21735 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21739 # Required to use basename.
21740 if expr a : '\(a\)' >/dev/null 2>&1 &&
21741 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21747 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21748 as_basename=basename
21754 # Name of the executable.
21755 as_me=`$as_basename -- "$0" ||
21756 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21757 X"$0" : 'X\(//\)$' \| \
21758 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21760 sed '/^.*\/\([^/][^/]*\)\/*$/{
21779 as_lineno_1=$LINENO
21780 as_lineno_2=$LINENO
21781 test "x$as_lineno_1" != "x$as_lineno_2" &&
21782 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21784 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21785 # uniformly replaced by the line number. The first 'sed' inserts a
21786 # line-number line after each line using $LINENO; the second 'sed'
21787 # does the real work. The second script uses 'N' to pair each
21788 # line-number line with the line containing $LINENO, and appends
21789 # trailing '-' during substitution so that $LINENO is not a special
21790 # case at line end.
21791 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21792 # scripts with optimization help from Paolo Bonzini. Blame Lee
21793 # E. McMahon (1931-1989) for sed's syntax. :-)
21805 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21808 ' >$as_me.lineno &&
21809 chmod +x "$as_me.lineno" ||
21810 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21811 { (exit 1); exit 1; }; }
21813 # Don't try to exec as it changes $[0], causing all sort of problems
21814 # (the dirname of $[0] is not the place where we might find the
21815 # original and so on. Autoconf is especially sensitive to this).
21816 . "./$as_me.lineno"
21817 # Exit status is that of the last command.
21822 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21828 ECHO_C= ECHO_N= ECHO_T=
21829 case `echo -n x` in
21831 case `echo 'x\c'` in
21832 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21839 if expr a : '\(a\)' >/dev/null 2>&1 &&
21840 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21846 rm -f conf$$ conf$$.exe conf$$.file
21847 if test -d conf$$.dir; then
21848 rm -f conf$$.dir/conf$$.file
21854 if ln -s conf$$.file conf$$ 2>/dev/null; then
21856 # ... but there are two gotchas:
21857 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21858 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21859 # In both cases, we have to default to `cp -p'.
21860 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21862 elif ln conf$$.file conf$$ 2>/dev/null; then
21867 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21868 rmdir conf$$.dir 2>/dev/null
21870 if mkdir -p . 2>/dev/null; then
21873 test -d ./-p && rmdir ./-p
21877 if test -x / >/dev/null 2>&1; then
21878 as_test_x='test -x'
21880 if ls -dL / >/dev/null 2>&1; then
21887 if test -d "$1"; then
21893 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21894 ???[sx]*):;;*)false;;esac;fi
21898 as_executable_p=$as_test_x
21900 # Sed expression to map a string onto a valid CPP name.
21901 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21903 # Sed expression to map a string onto a valid variable name.
21904 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21909 # Save the log message, to keep $[0] and so on meaningful, and to
21910 # report actual input values of CONFIG_FILES etc. instead of their
21911 # values after options handling.
21913 This file was extended by scss $as_me 1.0.0, which was
21914 generated by GNU Autoconf 2.61. Invocation command line was
21916 CONFIG_FILES = $CONFIG_FILES
21917 CONFIG_HEADERS = $CONFIG_HEADERS
21918 CONFIG_LINKS = $CONFIG_LINKS
21919 CONFIG_COMMANDS = $CONFIG_COMMANDS
21922 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21927 cat >>$CONFIG_STATUS <<_ACEOF
21928 # Files that config.status was made for.
21929 config_files="$ac_config_files"
21930 config_headers="$ac_config_headers"
21931 config_commands="$ac_config_commands"
21935 cat >>$CONFIG_STATUS <<\_ACEOF
21937 \`$as_me' instantiates files from templates according to the
21938 current configuration.
21940 Usage: $0 [OPTIONS] [FILE]...
21942 -h, --help print this help, then exit
21943 -V, --version print version number and configuration settings, then exit
21944 -q, --quiet do not print progress messages
21945 -d, --debug don't remove temporary files
21946 --recheck update $as_me by reconfiguring in the same conditions
21947 --file=FILE[:TEMPLATE]
21948 instantiate the configuration file FILE
21949 --header=FILE[:TEMPLATE]
21950 instantiate the configuration header FILE
21952 Configuration files:
21955 Configuration headers:
21958 Configuration commands:
21961 Report bugs to <bug-autoconf@gnu.org>."
21964 cat >>$CONFIG_STATUS <<_ACEOF
21966 scss config.status 1.0.0
21967 configured by $0, generated by GNU Autoconf 2.61,
21968 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21970 Copyright (C) 2006 Free Software Foundation, Inc.
21971 This config.status script is free software; the Free Software Foundation
21972 gives unlimited permission to copy, distribute and modify it."
21980 cat >>$CONFIG_STATUS <<\_ACEOF
21981 # If no file are specified by the user, then we need to provide default
21982 # value. By we need to know if files were specified by the user.
21988 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21989 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22000 # Handling of the options.
22001 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22003 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22004 echo "$ac_cs_version"; exit ;;
22005 --debug | --debu | --deb | --de | --d | -d )
22007 --file | --fil | --fi | --f )
22009 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22010 ac_need_defaults=false;;
22011 --header | --heade | --head | --hea )
22013 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22014 ac_need_defaults=false;;
22016 # Conflict between --help and --header
22017 { echo "$as_me: error: ambiguous option: $1
22018 Try \`$0 --help' for more information." >&2
22019 { (exit 1); exit 1; }; };;
22020 --help | --hel | -h )
22021 echo "$ac_cs_usage"; exit ;;
22022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22023 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22026 # This is an error.
22027 -*) { echo "$as_me: error: unrecognized option: $1
22028 Try \`$0 --help' for more information." >&2
22029 { (exit 1); exit 1; }; } ;;
22031 *) ac_config_targets="$ac_config_targets $1"
22032 ac_need_defaults=false ;;
22038 ac_configure_extra_args=
22040 if $ac_cs_silent; then
22042 ac_configure_extra_args="$ac_configure_extra_args --silent"
22046 cat >>$CONFIG_STATUS <<_ACEOF
22047 if \$ac_cs_recheck; then
22048 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22049 CONFIG_SHELL=$SHELL
22050 export CONFIG_SHELL
22051 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22055 cat >>$CONFIG_STATUS <<\_ACEOF
22059 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22060 ## Running $as_me. ##
22066 cat >>$CONFIG_STATUS <<_ACEOF
22070 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22074 cat >>$CONFIG_STATUS <<\_ACEOF
22076 # Handling of arguments.
22077 for ac_config_target in $ac_config_targets
22079 case $ac_config_target in
22080 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22081 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22082 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22083 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22085 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22086 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22087 { (exit 1); exit 1; }; };;
22092 # If the user did not use the arguments to specify the items to instantiate,
22093 # then the envvar interface is used. Set only those that are not.
22094 # We use the long form for the default assignment because of an extremely
22095 # bizarre bug on SunOS 4.1.3.
22096 if $ac_need_defaults; then
22097 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22098 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22099 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22102 # Have a temporary directory for convenience. Make it in the build tree
22103 # simply because there is no reason against having it here, and in addition,
22104 # creating and moving files from /tmp can sometimes cause problems.
22105 # Hook for its removal unless debugging.
22106 # Note that there is a small window in which the directory will not be cleaned:
22107 # after its creation but before its name has been assigned to `$tmp'.
22111 trap 'exit_status=$?
22112 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22114 trap '{ (exit 1); exit 1; }' 1 2 13 15
22116 # Create a (secure) tmp directory for tmp files.
22119 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22120 test -n "$tmp" && test -d "$tmp"
22123 tmp=./conf$$-$RANDOM
22124 (umask 077 && mkdir "$tmp")
22127 echo "$me: cannot create a temporary directory in ." >&2
22128 { (exit 1); exit 1; }
22132 # Set up the sed scripts for CONFIG_FILES section.
22135 # No need to generate the scripts if there are no CONFIG_FILES.
22136 # This happens for instance when ./config.status config.h
22137 if test -n "$CONFIG_FILES"; then
22144 for ac_last_try in false false false false false :; do
22145 cat >conf$$subs.sed <<_ACEOF
22146 SHELL!$SHELL$ac_delim
22147 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22148 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22149 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22150 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22151 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22152 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22153 exec_prefix!$exec_prefix$ac_delim
22154 prefix!$prefix$ac_delim
22155 program_transform_name!$program_transform_name$ac_delim
22156 bindir!$bindir$ac_delim
22157 sbindir!$sbindir$ac_delim
22158 libexecdir!$libexecdir$ac_delim
22159 datarootdir!$datarootdir$ac_delim
22160 datadir!$datadir$ac_delim
22161 sysconfdir!$sysconfdir$ac_delim
22162 sharedstatedir!$sharedstatedir$ac_delim
22163 localstatedir!$localstatedir$ac_delim
22164 includedir!$includedir$ac_delim
22165 oldincludedir!$oldincludedir$ac_delim
22166 docdir!$docdir$ac_delim
22167 infodir!$infodir$ac_delim
22168 htmldir!$htmldir$ac_delim
22169 dvidir!$dvidir$ac_delim
22170 pdfdir!$pdfdir$ac_delim
22171 psdir!$psdir$ac_delim
22172 libdir!$libdir$ac_delim
22173 localedir!$localedir$ac_delim
22174 mandir!$mandir$ac_delim
22175 DEFS!$DEFS$ac_delim
22176 ECHO_C!$ECHO_C$ac_delim
22177 ECHO_N!$ECHO_N$ac_delim
22178 ECHO_T!$ECHO_T$ac_delim
22179 LIBS!$LIBS$ac_delim
22180 build_alias!$build_alias$ac_delim
22181 host_alias!$host_alias$ac_delim
22182 target_alias!$target_alias$ac_delim
22183 build!$build$ac_delim
22184 build_cpu!$build_cpu$ac_delim
22185 build_vendor!$build_vendor$ac_delim
22186 build_os!$build_os$ac_delim
22187 host!$host$ac_delim
22188 host_cpu!$host_cpu$ac_delim
22189 host_vendor!$host_vendor$ac_delim
22190 host_os!$host_os$ac_delim
22191 target!$target$ac_delim
22192 target_cpu!$target_cpu$ac_delim
22193 target_vendor!$target_vendor$ac_delim
22194 target_os!$target_os$ac_delim
22195 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22196 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22197 INSTALL_DATA!$INSTALL_DATA$ac_delim
22198 am__isrc!$am__isrc$ac_delim
22199 CYGPATH_W!$CYGPATH_W$ac_delim
22200 PACKAGE!$PACKAGE$ac_delim
22201 VERSION!$VERSION$ac_delim
22202 ACLOCAL!$ACLOCAL$ac_delim
22203 AUTOCONF!$AUTOCONF$ac_delim
22204 AUTOMAKE!$AUTOMAKE$ac_delim
22205 AUTOHEADER!$AUTOHEADER$ac_delim
22206 MAKEINFO!$MAKEINFO$ac_delim
22207 install_sh!$install_sh$ac_delim
22208 STRIP!$STRIP$ac_delim
22209 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22210 mkdir_p!$mkdir_p$ac_delim
22212 SET_MAKE!$SET_MAKE$ac_delim
22213 am__leading_dot!$am__leading_dot$ac_delim
22214 AMTAR!$AMTAR$ac_delim
22215 am__tar!$am__tar$ac_delim
22216 am__untar!$am__untar$ac_delim
22218 CFLAGS!$CFLAGS$ac_delim
22219 LDFLAGS!$LDFLAGS$ac_delim
22220 CPPFLAGS!$CPPFLAGS$ac_delim
22221 ac_ct_CC!$ac_ct_CC$ac_delim
22222 EXEEXT!$EXEEXT$ac_delim
22223 OBJEXT!$OBJEXT$ac_delim
22224 DEPDIR!$DEPDIR$ac_delim
22225 am__include!$am__include$ac_delim
22226 am__quote!$am__quote$ac_delim
22227 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22228 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22229 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22230 CCDEPMODE!$CCDEPMODE$ac_delim
22231 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22232 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22234 GREP!$GREP$ac_delim
22235 EGREP!$EGREP$ac_delim
22236 LN_S!$LN_S$ac_delim
22237 ECHO!$ECHO$ac_delim
22239 RANLIB!$RANLIB$ac_delim
22240 DSYMUTIL!$DSYMUTIL$ac_delim
22241 NMEDIT!$NMEDIT$ac_delim
22245 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22247 elif $ac_last_try; then
22248 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22249 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22250 { (exit 1); exit 1; }; }
22252 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22256 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22257 if test -n "$ac_eof"; then
22258 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22259 ac_eof=`expr $ac_eof + 1`
22262 cat >>$CONFIG_STATUS <<_ACEOF
22263 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22264 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22267 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22268 s/^/s,@/; s/!/@,|#_!!_#|/
22271 s/'"$ac_delim"'$/,g/; t
22273 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22274 ' >>$CONFIG_STATUS <conf$$subs.sed
22275 rm -f conf$$subs.sed
22276 cat >>$CONFIG_STATUS <<_ACEOF
22282 for ac_last_try in false false false false false :; do
22283 cat >conf$$subs.sed <<_ACEOF
22285 CXXFLAGS!$CXXFLAGS$ac_delim
22286 ac_ct_CXX!$ac_ct_CXX$ac_delim
22287 CXXDEPMODE!$CXXDEPMODE$ac_delim
22288 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22289 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22290 CXXCPP!$CXXCPP$ac_delim
22292 FFLAGS!$FFLAGS$ac_delim
22293 ac_ct_F77!$ac_ct_F77$ac_delim
22294 LIBTOOL!$LIBTOOL$ac_delim
22295 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22296 APR_CONFIG!$APR_CONFIG$ac_delim
22297 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
22298 APU_CONFIG!$APU_CONFIG$ac_delim
22299 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
22300 LIBOBJS!$LIBOBJS$ac_delim
22301 LTLIBOBJS!$LTLIBOBJS$ac_delim
22304 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
22306 elif $ac_last_try; then
22307 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22308 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22309 { (exit 1); exit 1; }; }
22311 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22315 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22316 if test -n "$ac_eof"; then
22317 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22318 ac_eof=`expr $ac_eof + 1`
22321 cat >>$CONFIG_STATUS <<_ACEOF
22322 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22326 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22327 s/^/s,@/; s/!/@,|#_!!_#|/
22330 s/'"$ac_delim"'$/,g/; t
22332 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22333 ' >>$CONFIG_STATUS <conf$$subs.sed
22334 rm -f conf$$subs.sed
22335 cat >>$CONFIG_STATUS <<_ACEOF
22342 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22343 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22344 # trailing colons and then remove the whole line if VPATH becomes empty
22345 # (actually we leave an empty line to preserve line numbers).
22346 if test "x$srcdir" = x.; then
22347 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22348 s/:*\$(srcdir):*/:/
22349 s/:*\${srcdir}:*/:/
22351 s/^\([^=]*=[ ]*\):*/\1/
22357 cat >>$CONFIG_STATUS <<\_ACEOF
22358 fi # test -n "$CONFIG_FILES"
22361 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22364 :[FHLC]) ac_mode=$ac_tag; continue;;
22366 case $ac_mode$ac_tag in
22368 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22369 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22370 { (exit 1); exit 1; }; };;
22371 :[FH]-) ac_tag=-:-;;
22372 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22389 -) ac_f="$tmp/stdin";;
22390 *) # Look for the file first in the build tree, then in the source tree
22391 # (if the path is not absolute). The absolute path cannot be DOS-style,
22392 # because $ac_f cannot contain `:'.
22396 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22398 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22399 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22400 { (exit 1); exit 1; }; };;
22402 ac_file_inputs="$ac_file_inputs $ac_f"
22405 # Let's still pretend it is `configure' which instantiates (i.e., don't
22406 # use $as_me), people would be surprised to read:
22407 # /* config.h. Generated by config.status. */
22408 configure_input="Generated from "`IFS=:
22409 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22410 if test x"$ac_file" != x-; then
22411 configure_input="$ac_file. $configure_input"
22412 { echo "$as_me:$LINENO: creating $ac_file" >&5
22413 echo "$as_me: creating $ac_file" >&6;}
22417 *:-:* | *:-) cat >"$tmp/stdin";;
22422 ac_dir=`$as_dirname -- "$ac_file" ||
22423 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22424 X"$ac_file" : 'X\(//\)[^/]' \| \
22425 X"$ac_file" : 'X\(//\)$' \| \
22426 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22432 /^X\(\/\/\)[^/].*/{
22447 -*) as_dir=./$as_dir;;
22449 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22453 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22454 *) as_qdir=$as_dir;;
22456 as_dirs="'$as_qdir' $as_dirs"
22457 as_dir=`$as_dirname -- "$as_dir" ||
22458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22459 X"$as_dir" : 'X\(//\)[^/]' \| \
22460 X"$as_dir" : 'X\(//\)$' \| \
22461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22467 /^X\(\/\/\)[^/].*/{
22480 test -d "$as_dir" && break
22482 test -z "$as_dirs" || eval "mkdir $as_dirs"
22483 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22484 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22485 { (exit 1); exit 1; }; }; }
22489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22491 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22492 # A ".." for each directory in $ac_dir_suffix.
22493 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22494 case $ac_top_builddir_sub in
22495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22499 ac_abs_top_builddir=$ac_pwd
22500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22501 # for backward compatibility:
22502 ac_top_builddir=$ac_top_build_prefix
22505 .) # We are building in place.
22507 ac_top_srcdir=$ac_top_builddir_sub
22508 ac_abs_top_srcdir=$ac_pwd ;;
22509 [\\/]* | ?:[\\/]* ) # Absolute name.
22510 ac_srcdir=$srcdir$ac_dir_suffix;
22511 ac_top_srcdir=$srcdir
22512 ac_abs_top_srcdir=$srcdir ;;
22513 *) # Relative name.
22514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22515 ac_top_srcdir=$ac_top_build_prefix$srcdir
22516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22528 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22529 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22531 ac_MKDIR_P=$MKDIR_P
22533 [\\/$]* | ?:[\\/]* ) ;;
22534 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22538 cat >>$CONFIG_STATUS <<\_ACEOF
22539 # If the template does not know about datarootdir, expand it.
22540 # FIXME: This hack should be removed a few years after 2.60.
22541 ac_datarootdir_hack=; ac_datarootdir_seen=
22543 case `sed -n '/datarootdir/ {
22552 ' $ac_file_inputs` in
22553 *datarootdir*) ac_datarootdir_seen=yes;;
22554 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22555 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22556 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22558 cat >>$CONFIG_STATUS <<_ACEOF
22559 ac_datarootdir_hack='
22560 s&@datadir@&$datadir&g
22561 s&@docdir@&$docdir&g
22562 s&@infodir@&$infodir&g
22563 s&@localedir@&$localedir&g
22564 s&@mandir@&$mandir&g
22565 s&\\\${datarootdir}&$datarootdir&g' ;;
22569 # Neutralize VPATH when `$srcdir' = `.'.
22570 # Shell code in configure.ac might set extrasub.
22571 # FIXME: do we really want to maintain this feature?
22572 cat >>$CONFIG_STATUS <<_ACEOF
22576 cat >>$CONFIG_STATUS <<\_ACEOF
22578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22579 s&@configure_input@&$configure_input&;t t
22580 s&@top_builddir@&$ac_top_builddir_sub&;t t
22581 s&@srcdir@&$ac_srcdir&;t t
22582 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22583 s&@top_srcdir@&$ac_top_srcdir&;t t
22584 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22585 s&@builddir@&$ac_builddir&;t t
22586 s&@abs_builddir@&$ac_abs_builddir&;t t
22587 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22588 s&@INSTALL@&$ac_INSTALL&;t t
22589 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22590 $ac_datarootdir_hack
22591 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22593 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22594 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22595 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22596 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22597 which seems to be undefined. Please make sure it is defined." >&5
22598 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22599 which seems to be undefined. Please make sure it is defined." >&2;}
22603 -) cat "$tmp/out"; rm -f "$tmp/out";;
22604 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22613 # Transform confdefs.h into a sed script `conftest.defines', that
22614 # substitutes the proper values into config.h.in to produce config.h.
22615 rm -f conftest.defines conftest.tail
22616 # First, append a space to every undef/define line, to ease matching.
22617 echo 's/$/ /' >conftest.defines
22618 # Then, protect against being on the right side of a sed subst, or in
22619 # an unquoted here document, in config.status. If some macros were
22620 # called several times there might be several #defines for the same
22621 # symbol, which is useless. But do not sort them, since the last
22622 # AC_DEFINE must be honored.
22623 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22624 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22625 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22626 # PARAMS is the parameter list in the macro definition--in most cases, it's
22627 # just an empty string.
22628 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22629 ac_dB='\\)[ (].*,\\1define\\2'
22637 s/^[ ]*#[ ]*define[ ][ ]*//
22642 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22643 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22644 ' >>conftest.defines
22646 # Remove the space that was appended to ease matching.
22647 # Then replace #undef with comments. This is necessary, for
22648 # example, in the case of _POSIX_SOURCE, which is predefined and required
22649 # on some systems where configure will not decide to define it.
22650 # (The regexp can be short, since the line contains either #define or #undef.)
22652 s,^[ #]*u.*,/* & */,' >>conftest.defines
22654 # Break up conftest.defines:
22655 ac_max_sed_lines=50
22657 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22658 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22659 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22661 ac_in='$ac_file_inputs'
22662 ac_out='"$tmp/out1"'
22663 ac_nxt='"$tmp/out2"'
22667 # Write a here document:
22668 cat >>$CONFIG_STATUS <<_ACEOF
22669 # First, check the format of the line:
22670 cat >"\$tmp/defines.sed" <<\\CEOF
22671 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22672 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22676 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22678 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22679 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22680 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22681 grep . conftest.tail >/dev/null || break
22682 rm -f conftest.defines
22683 mv conftest.tail conftest.defines
22685 rm -f conftest.defines conftest.tail
22687 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22688 cat >>$CONFIG_STATUS <<\_ACEOF
22689 if test x"$ac_file" != x-; then
22690 echo "/* $configure_input */" >"$tmp/config.h"
22691 cat "$ac_result" >>"$tmp/config.h"
22692 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22693 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22694 echo "$as_me: $ac_file is unchanged" >&6;}
22697 mv "$tmp/config.h" $ac_file
22700 echo "/* $configure_input */"
22704 # Compute $ac_file's index in $config_headers.
22707 for _am_header in $config_headers :; do
22708 case $_am_header in
22709 $_am_arg | $_am_arg:* )
22712 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22715 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22716 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22717 X"$_am_arg" : 'X\(//\)[^/]' \| \
22718 X"$_am_arg" : 'X\(//\)$' \| \
22719 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22725 /^X\(\/\/\)[^/].*/{
22737 s/.*/./; q'`/stamp-h$_am_stamp_count
22740 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22741 echo "$as_me: executing $ac_file commands" >&6;}
22746 case $ac_file$ac_mode in
22747 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22748 # Strip MF so we end up with the name of the file.
22749 mf=`echo "$mf" | sed -e 's/:.*$//'`
22750 # Check whether this is an Automake generated Makefile or not.
22751 # We used to match only the files named `Makefile.in', but
22752 # some people rename them; so instead we look at the file content.
22753 # Grep'ing the first line is not enough: some people post-process
22754 # each Makefile.in and add a new line on top of each file to say so.
22755 # Grep'ing the whole file is not good either: AIX grep has a line
22756 # limit of 2048, but all sed's we know have understand at least 4000.
22757 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22758 dirpart=`$as_dirname -- "$mf" ||
22759 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22760 X"$mf" : 'X\(//\)[^/]' \| \
22761 X"$mf" : 'X\(//\)$' \| \
22762 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22768 /^X\(\/\/\)[^/].*/{
22784 # Extract the definition of DEPDIR, am__include, and am__quote
22785 # from the Makefile without running `make'.
22786 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22787 test -z "$DEPDIR" && continue
22788 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22789 test -z "am__include" && continue
22790 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22791 # When using ansi2knr, U may be empty or an underscore; expand it
22792 U=`sed -n 's/^U = //p' < "$mf"`
22793 # Find all dependency output files, they are included files with
22794 # $(DEPDIR) in their names. We invoke sed twice because it is the
22795 # simplest approach to changing $(DEPDIR) to its actual value in the
22797 for file in `sed -n "
22798 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22799 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22800 # Make sure the directory exists.
22801 test -f "$dirpart/$file" && continue
22802 fdir=`$as_dirname -- "$file" ||
22803 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22804 X"$file" : 'X\(//\)[^/]' \| \
22805 X"$file" : 'X\(//\)$' \| \
22806 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22812 /^X\(\/\/\)[^/].*/{
22825 { as_dir=$dirpart/$fdir
22827 -*) as_dir=./$as_dir;;
22829 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22833 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22834 *) as_qdir=$as_dir;;
22836 as_dirs="'$as_qdir' $as_dirs"
22837 as_dir=`$as_dirname -- "$as_dir" ||
22838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22839 X"$as_dir" : 'X\(//\)[^/]' \| \
22840 X"$as_dir" : 'X\(//\)$' \| \
22841 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22847 /^X\(\/\/\)[^/].*/{
22860 test -d "$as_dir" && break
22862 test -z "$as_dirs" || eval "mkdir $as_dirs"
22863 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22864 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22865 { (exit 1); exit 1; }; }; }
22866 # echo "creating $dirpart/$file"
22867 echo '# dummy' > "$dirpart/$file"
22876 { (exit 0); exit 0; }
22878 chmod +x $CONFIG_STATUS
22879 ac_clean_files=$ac_clean_files_save
22882 # configure is writing to config.log, and then calls config.status.
22883 # config.status does its own redirection, appending to config.log.
22884 # Unfortunately, on DOS this fails, as config.log is still kept open
22885 # by configure, so config.status won't be able to write to it; its
22886 # output is simply discarded. So we exec the FD to /dev/null,
22887 # effectively closing config.log, so it can be properly (re)opened and
22888 # appended to by config.status. When coming back to configure, we
22889 # need to make the FD available again.
22890 if test "$no_create" != yes; then
22892 ac_config_status_args=
22893 test "$silent" = yes &&
22894 ac_config_status_args="$ac_config_status_args --quiet"
22896 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22899 # would make configure fail if this is the last instruction.
22900 $ac_cs_success || { (exit 1); exit 1; }