2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for senna 1.1.2.
5 # Report bugs to <senna@razil.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='senna'
731 PACKAGE_VERSION='1.1.2'
732 PACKAGE_STRING='senna 1.1.2'
733 PACKAGE_BUGREPORT='senna@razil.jp'
735 # Factoring default headers for most tests.
736 ac_includes_default="\
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
748 # ifdef HAVE_STDLIB_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
780 program_transform_name
821 INSTALL_STRIP_PROGRAM
887 ac_precious_vars='build_alias
904 # Initialize some variables set by options.
906 ac_init_version=false
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
916 program_transform_name=s,x,x,
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir='${exec_prefix}/bin'
931 sbindir='${exec_prefix}/sbin'
932 libexecdir='${exec_prefix}/libexec'
933 datarootdir='${prefix}/share'
934 datadir='${datarootdir}'
935 sysconfdir='${prefix}/etc'
936 sharedstatedir='${prefix}/com'
937 localstatedir='${prefix}/var'
938 includedir='${prefix}/include'
939 oldincludedir='/usr/include'
940 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
941 infodir='${datarootdir}/info'
946 libdir='${exec_prefix}/lib'
947 localedir='${datarootdir}/locale'
948 mandir='${datarootdir}/man'
954 # If the previous option needs an argument, assign it.
955 if test -n "$ac_prev"; then
956 eval $ac_prev=\$ac_option
962 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966 # Accept the important Cygnus configure options, so we can diagnose typos.
968 case $ac_dashdash$ac_option in
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977 -build | --build | --buil | --bui | --bu)
978 ac_prev=build_alias ;;
979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980 build_alias=$ac_optarg ;;
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987 cache_file=$ac_optarg ;;
990 cache_file=config.cache ;;
992 -datadir | --datadir | --datadi | --datad)
994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
995 datadir=$ac_optarg ;;
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1004 -disable-* | --disable-*)
1005 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1008 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1009 { (exit 1); exit 1; }; }
1010 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1011 eval enable_$ac_feature=no ;;
1013 -docdir | --docdir | --docdi | --doc | --do)
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
1023 -enable-* | --enable-*)
1024 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1027 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1028 { (exit 1); exit 1; }; }
1029 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1030 eval enable_$ac_feature=\$ac_optarg ;;
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
1039 exec_prefix=$ac_optarg ;;
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
1052 -host | --host | --hos | --ho)
1053 ac_prev=host_alias ;;
1054 -host=* | --host=* | --hos=* | --ho=*)
1055 host_alias=$ac_optarg ;;
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061 htmldir=$ac_optarg ;;
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
1068 includedir=$ac_optarg ;;
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073 infodir=$ac_optarg ;;
1075 -libdir | --libdir | --libdi | --libd)
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078 libdir=$ac_optarg ;;
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
1085 libexecdir=$ac_optarg ;;
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
1093 | --localstate | --localstat | --localsta | --localst | --locals)
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097 localstatedir=$ac_optarg ;;
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102 mandir=$ac_optarg ;;
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109 | --no-cr | --no-c | -n)
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123 oldincludedir=$ac_optarg ;;
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128 prefix=$ac_optarg ;;
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135 program_prefix=$ac_optarg ;;
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142 program_suffix=$ac_optarg ;;
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
1159 program_transform_name=$ac_optarg ;;
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1166 -psdir | --psdir | --psdi | --psd | --ps)
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179 sbindir=$ac_optarg ;;
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190 sharedstatedir=$ac_optarg ;;
1192 -site | --site | --sit)
1194 -site=* | --site=* | --sit=*)
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200 srcdir=$ac_optarg ;;
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207 sysconfdir=$ac_optarg ;;
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1210 ac_prev=target_alias ;;
1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212 target_alias=$ac_optarg ;;
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
1221 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 { echo "$as_me: error: invalid package name: $ac_package" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227 eval with_$ac_package=\$ac_optarg ;;
1229 -without-* | --without-*)
1230 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 { echo "$as_me: error: invalid package name: $ac_package" >&2
1234 { (exit 1); exit 1; }; }
1235 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1236 eval with_$ac_package=no ;;
1239 # Obsolete; use --with-x.
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1256 -*) { echo "$as_me: error: unrecognized option: $ac_option
1257 Try \`$0 --help' for more information." >&2
1258 { (exit 1); exit 1; }; }
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1265 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1266 { (exit 1); exit 1; }; }
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1271 # FIXME: should be removed in autoconf 3.0.
1272 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 { echo "$as_me: error: missing argument to $ac_option" >&2
1284 { (exit 1); exit 1; }; }
1287 # Be sure to have absolute directory names.
1288 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
1293 eval ac_val=\$$ac_var
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1299 { (exit 1); exit 1; }; }
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1307 target=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1314 If a cross compiler is detected then cross compile mode will be used." >&2
1315 elif test "x$build_alias" != "x$host_alias"; then
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323 test "$silent" = yes && exec 6>/dev/null
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 { echo "$as_me: error: Working directory cannot be determined" >&2
1330 { (exit 1); exit 1; }; }
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 { echo "$as_me: error: pwd does not report name of working directory" >&2
1333 { (exit 1); exit 1; }; }
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$0" ||
1341 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$0" : 'X\(//\)[^/]' \| \
1343 X"$0" : 'X\(//\)$' \| \
1344 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1368 ac_srcdir_defaulted=no
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1373 { (exit 1); exit 1; }; }
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1378 { (exit 1); exit 1; }; }
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398 # Report the --help message.
1400 if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1404 \`configure' configures senna 1.1.2 to adapt to many kinds of systems.
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE. See below for descriptions of some of the useful variables.
1411 Defaults for the options are specified in brackets.
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424 Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1435 For better control, use the options below.
1437 Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/senna]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1472 if test -n "$ac_init_help"; then
1473 case $ac_init_help in
1474 short | recursive ) echo "Configuration of senna 1.1.2:";;
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481 --disable-dependency-tracking speeds up one-time build
1482 --enable-dependency-tracking do not reject slow dependency extractors
1483 --enable-shared[=PKGS] build shared libraries [default=yes]
1484 --enable-static[=PKGS] build static libraries [default=yes]
1485 --enable-fast-install[=PKGS]
1486 optimize for fast installation [default=yes]
1487 --disable-libtool-lock avoid locking (might break parallel builds)
1488 --disable-largefile omit support for large files
1489 --enable-aio use aio/dio based cache. [default=no]
1490 --enable-nfkc use nfkc based utf8 normalization. [default=yes]
1491 --enable-gcov use gcov for coverage analysis. [default=no]
1492 --enable-fmalloc make memory allocation failed in specified condition
1493 for debug. [default=no]
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1499 --with-pic try to use only PIC/non-PIC objects [default=use
1501 --with-tags[=TAGS] include additional configurations [automatic]
1502 --with-sennahome=DIR specify Senna home directory(will deprecated)
1503 --with-log=PATH specify Senna log path.
1504 --with-encoding=ENCODING
1505 specify Senna default
1506 encoding(euc/sjis/utf8/latin1/koi8r/none)
1507 --with-initial-n-segments=NUMBER
1508 specify Senna default initial_n_segments
1509 --with-query-escalation-threshold=NUMBER
1510 specify Senna default query escalation threshold
1511 --with-mysqlsrc=DIR specify MySQL source dictionary.
1512 --with-mecab use mecab for morphological analysis. [default=yes]
1513 --with-mecab-config=PATH
1514 set mecab-config location. [search], [path]
1516 Some influential environment variables:
1517 CC C compiler command
1518 CFLAGS C compiler flags
1519 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1520 nonstandard directory <lib dir>
1521 LIBS libraries to pass to the linker, e.g. -l<library>
1522 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1523 you have headers in a nonstandard directory <include dir>
1525 CXX C++ compiler command
1526 CXXFLAGS C++ compiler flags
1527 CXXCPP C++ preprocessor
1528 F77 Fortran 77 compiler command
1529 FFLAGS Fortran 77 compiler flags
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1534 Report bugs to <senna@razil.jp>.
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" || continue
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1562 .) # We are building in place.
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
1567 ac_srcdir=$srcdir$ac_dir_suffix;
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for guested configure.
1579 if test -f "$ac_srcdir/configure.gnu"; then
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582 elif test -f "$ac_srcdir/configure"; then
1584 $SHELL "$ac_srcdir/configure" --help=recursive
1586 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 cd "$ac_pwd" || { ac_status=$?; break; }
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1595 senna configure 1.1.2
1596 generated by GNU Autoconf 2.61
1598 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1599 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1605 cat >config.log <<_ACEOF
1606 This file contains any messages produced by compilers while
1607 running configure, to aid debugging if configure makes a mistake.
1609 It was created by senna $as_me 1.1.2, which was
1610 generated by GNU Autoconf 2.61. Invocation command line was
1622 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1623 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1624 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1625 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1626 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1628 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1629 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1631 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1632 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1633 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1634 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1635 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1636 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1637 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 test -z "$as_dir" && as_dir=.
1646 echo "PATH: $as_dir"
1662 # Keep a trace of the command line.
1663 # Strip out --no-create and --no-recursion so they do not pile up.
1664 # Strip out --silent because we don't want to record it for future runs.
1665 # Also quote any args containing shell meta-characters.
1666 # Make two passes to allow for proper duplicate-argument suppression.
1670 ac_must_keep_next=false
1676 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1678 | -silent | --silent | --silen | --sile | --sil)
1681 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1684 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1686 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1687 if test $ac_must_keep_next = true; then
1688 ac_must_keep_next=false # Got value, back to normal.
1691 *=* | --config-cache | -C | -disable-* | --disable-* \
1692 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1693 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1694 | -with-* | --with-* | -without-* | --without-* | --x)
1695 case "$ac_configure_args0 " in
1696 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1699 -* ) ac_must_keep_next=true ;;
1702 ac_configure_args="$ac_configure_args '$ac_arg'"
1707 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1708 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1710 # When interrupted or exit'd, cleanup temporary files, and complete
1711 # config.log. We remove comments because anyway the quotes in there
1712 # would cause problems or look ugly.
1713 # WARNING: Use '\'' to represent an apostrophe within the trap.
1714 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1715 trap 'exit_status=$?
1716 # Save into config.log some information that might help in debugging.
1721 ## ---------------- ##
1722 ## Cache variables. ##
1723 ## ---------------- ##
1726 # The following way of writing the cache mishandles newlines in values,
1728 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1729 eval ac_val=\$$ac_var
1733 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1734 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1737 _ | IFS | as_nl) ;; #(
1738 *) $as_unset $ac_var ;;
1743 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1744 *${as_nl}ac_space=\ *)
1746 "s/'\''/'\''\\\\'\'''\''/g;
1747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1750 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1758 ## ----------------- ##
1759 ## Output variables. ##
1760 ## ----------------- ##
1763 for ac_var in $ac_subst_vars
1765 eval ac_val=\$$ac_var
1767 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 echo "$ac_var='\''$ac_val'\''"
1773 if test -n "$ac_subst_files"; then
1775 ## ------------------- ##
1776 ## File substitutions. ##
1777 ## ------------------- ##
1780 for ac_var in $ac_subst_files
1782 eval ac_val=\$$ac_var
1784 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1786 echo "$ac_var='\''$ac_val'\''"
1791 if test -s confdefs.h; then
1801 test "$ac_signal" != 0 &&
1802 echo "$as_me: caught signal $ac_signal"
1803 echo "$as_me: exit $exit_status"
1805 rm -f core *.core core.conftest.* &&
1806 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1809 for ac_signal in 1 2 13 15; do
1810 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1814 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1815 rm -f -r conftest* confdefs.h
1817 # Predefined preprocessor variables.
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_NAME "$PACKAGE_NAME"
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_STRING "$PACKAGE_STRING"
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1844 # Let the site file select an alternate cache file if it wants to.
1845 # Prefer explicitly selected file to automatically selected ones.
1846 if test -n "$CONFIG_SITE"; then
1847 set x "$CONFIG_SITE"
1848 elif test "x$prefix" != xNONE; then
1849 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1851 set x "$ac_default_prefix/share/config.site" \
1852 "$ac_default_prefix/etc/config.site"
1857 if test -r "$ac_site_file"; then
1858 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859 echo "$as_me: loading site script $ac_site_file" >&6;}
1860 sed 's/^/| /' "$ac_site_file" >&5
1865 if test -r "$cache_file"; then
1866 # Some versions of bash will fail to source /dev/null (special
1867 # files actually), so we avoid doing that.
1868 if test -f "$cache_file"; then
1869 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870 echo "$as_me: loading cache $cache_file" >&6;}
1872 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873 *) . "./$cache_file";;
1877 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878 echo "$as_me: creating cache $cache_file" >&6;}
1882 # Check that the precious variables saved in the cache have kept the same
1884 ac_cache_corrupted=false
1885 for ac_var in $ac_precious_vars; do
1886 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1887 eval ac_new_set=\$ac_env_${ac_var}_set
1888 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1889 eval ac_new_val=\$ac_env_${ac_var}_value
1890 case $ac_old_set,$ac_new_set in
1892 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1893 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1894 ac_cache_corrupted=: ;;
1896 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1897 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1898 ac_cache_corrupted=: ;;
1901 if test "x$ac_old_val" != "x$ac_new_val"; then
1902 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1903 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1904 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1905 echo "$as_me: former value: $ac_old_val" >&2;}
1906 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1907 echo "$as_me: current value: $ac_new_val" >&2;}
1908 ac_cache_corrupted=:
1911 # Pass precious variables to config.status.
1912 if test "$ac_new_set" = set; then
1914 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1915 *) ac_arg=$ac_var=$ac_new_val ;;
1917 case " $ac_configure_args " in
1918 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1919 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1923 if $ac_cache_corrupted; then
1924 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1925 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1926 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1927 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1928 { (exit 1); exit 1; }; }
1956 ac_cpp='$CPP $CPPFLAGS'
1957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962 ac_config_headers="$ac_config_headers config.h"
1965 am__api_version="1.9"
1967 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1968 if test -f "$ac_dir/install-sh"; then
1970 ac_install_sh="$ac_aux_dir/install-sh -c"
1972 elif test -f "$ac_dir/install.sh"; then
1974 ac_install_sh="$ac_aux_dir/install.sh -c"
1976 elif test -f "$ac_dir/shtool"; then
1978 ac_install_sh="$ac_aux_dir/shtool install -c"
1982 if test -z "$ac_aux_dir"; then
1983 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1984 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1985 { (exit 1); exit 1; }; }
1988 # These three variables are undocumented and unsupported,
1989 # and are intended to be withdrawn in a future Autoconf release.
1990 # They can cause serious problems if a builder's source tree is in a directory
1991 # whose full name contains unusual characters.
1992 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1993 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1994 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1997 # Find a good install program. We prefer a C program (faster),
1998 # so one script is as good as another. But avoid the broken or
1999 # incompatible versions:
2000 # SysV /etc/install, /usr/sbin/install
2001 # SunOS /usr/etc/install
2002 # IRIX /sbin/install
2004 # AmigaOS /C/install, which installs bootblocks on floppy discs
2005 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2006 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2007 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2008 # OS/2's system install, which has a completely different semantic
2009 # ./install, which can be erroneously created by make from ./install.sh.
2010 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2011 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2012 if test -z "$INSTALL"; then
2013 if test "${ac_cv_path_install+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 # Account for people who put trailing slashes in PATH elements.
2023 ./ | .// | /cC/* | \
2024 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2025 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2028 # OSF1 and SCO ODT 3.0 have their own names for install.
2029 # Don't use installbsd from OSF since it installs stuff as root
2031 for ac_prog in ginstall scoinst install; do
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2034 if test $ac_prog = install &&
2035 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2036 # AIX install. It has an incompatible calling convention.
2038 elif test $ac_prog = install &&
2039 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2040 # program-specific install script used by HP pwplus--don't use.
2043 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2056 if test "${ac_cv_path_install+set}" = set; then
2057 INSTALL=$ac_cv_path_install
2059 # As a last resort, use the slow shell script. Don't cache a
2060 # value for INSTALL within a source directory, because that will
2061 # break other packages using the cache if that directory is
2062 # removed, or if the value is a relative name.
2063 INSTALL=$ac_install_sh
2066 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2067 echo "${ECHO_T}$INSTALL" >&6; }
2069 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2070 # It thinks the first close brace ends the variable substitution.
2071 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2073 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2075 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2077 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2078 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2081 echo timestamp > conftest.file
2082 # Do `set' in a subshell so we don't clobber the current shell's
2083 # arguments. Must try -L first in case configure is actually a
2084 # symlink; some systems play weird games with the mod time of symlinks
2085 # (eg FreeBSD returns the mod time of the symlink's containing
2088 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2089 if test "$*" = "X"; then
2091 set X `ls -t $srcdir/configure conftest.file`
2094 if test "$*" != "X $srcdir/configure conftest.file" \
2095 && test "$*" != "X conftest.file $srcdir/configure"; then
2097 # If neither matched, then we have a broken ls. This can happen
2098 # if, for instance, CONFIG_SHELL is bash and it inherits a
2099 # broken ls alias from the environment. This has actually
2100 # happened. Such a system could not be considered "sane".
2101 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2102 alias in your environment" >&5
2103 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2104 alias in your environment" >&2;}
2105 { (exit 1); exit 1; }; }
2108 test "$2" = conftest.file
2114 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2115 Check your system clock" >&5
2116 echo "$as_me: error: newly created file is older than distributed files!
2117 Check your system clock" >&2;}
2118 { (exit 1); exit 1; }; }
2120 { echo "$as_me:$LINENO: result: yes" >&5
2121 echo "${ECHO_T}yes" >&6; }
2122 test "$program_prefix" != NONE &&
2123 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2124 # Use a double $ so make ignores it.
2125 test "$program_suffix" != NONE &&
2126 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2127 # Double any \ or $. echo might interpret backslashes.
2128 # By default was `s,x,x', remove it if useless.
2129 cat <<\_ACEOF >conftest.sed
2130 s/[\\$]/&&/g;s/;s,x,x,$//
2132 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2135 # expand $ac_aux_dir to an absolute path
2136 am_aux_dir=`cd $ac_aux_dir && pwd`
2138 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2139 # Use eval to expand $SHELL
2140 if eval "$MISSING --run true"; then
2141 am_missing_run="$MISSING --run "
2144 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2145 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2148 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2149 # We used to keeping the `.' as first argument, in order to
2150 # allow $(mkdir_p) to be used without argument. As in
2151 # $(mkdir_p) $(somedir)
2152 # where $(somedir) is conditionally defined. However this is wrong
2154 # 1. if the package is installed by a user who cannot write `.'
2155 # make install will fail,
2156 # 2. the above comment should most certainly read
2157 # $(mkdir_p) $(DESTDIR)$(somedir)
2158 # so it does not work when $(somedir) is undefined and
2159 # $(DESTDIR) is not.
2160 # To support the latter case, we have to write
2161 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2162 # so the `.' trick is pointless.
2163 mkdir_p='mkdir -p --'
2165 # On NextStep and OpenStep, the `mkdir' command does not
2166 # recognize any option. It will interpret all options as
2167 # directories to create, and then abort because `.' already
2169 for d in ./-p ./--version;
2171 test -d $d && rmdir $d
2173 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2174 if test -f "$ac_aux_dir/mkinstalldirs"; then
2175 mkdir_p='$(mkinstalldirs)'
2177 mkdir_p='$(install_sh) -d'
2181 for ac_prog in gawk mawk nawk awk
2183 # Extract the first word of "$ac_prog", so it can be a program name with args.
2184 set dummy $ac_prog; ac_word=$2
2185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2187 if test "${ac_cv_prog_AWK+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 if test -n "$AWK"; then
2191 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 test -z "$as_dir" && as_dir=.
2198 for ac_exec_ext in '' $ac_executable_extensions; do
2199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2200 ac_cv_prog_AWK="$ac_prog"
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 if test -n "$AWK"; then
2212 { echo "$as_me:$LINENO: result: $AWK" >&5
2213 echo "${ECHO_T}$AWK" >&6; }
2215 { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2220 test -n "$AWK" && break
2223 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2224 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2225 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2226 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 cat >conftest.make <<\_ACEOF
2232 @echo '@@@%%%=$(MAKE)=@@@%%%'
2234 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2235 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2237 eval ac_cv_prog_make_${ac_make}_set=yes;;
2239 eval ac_cv_prog_make_${ac_make}_set=no;;
2243 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2244 { echo "$as_me:$LINENO: result: yes" >&5
2245 echo "${ECHO_T}yes" >&6; }
2248 { echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6; }
2250 SET_MAKE="MAKE=${MAKE-make}"
2253 rm -rf .tst 2>/dev/null
2254 mkdir .tst 2>/dev/null
2255 if test -d .tst; then
2260 rmdir .tst 2>/dev/null
2262 # test to see if srcdir already configured
2263 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2264 test -f $srcdir/config.status; then
2265 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2266 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2267 { (exit 1); exit 1; }; }
2270 # test whether we have cygpath
2271 if test -z "$CYGPATH_W"; then
2272 if (cygpath --version) >/dev/null 2>/dev/null; then
2273 CYGPATH_W='cygpath -w'
2280 # Define the identity of the package.
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE "$PACKAGE"
2290 cat >>confdefs.h <<_ACEOF
2291 #define VERSION "$VERSION"
2294 # Some tools Automake needs.
2296 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2299 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2302 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2305 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2308 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2310 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2312 # Installed binaries are usually stripped using `strip' when the user
2313 # run `make install-strip'. However `strip' might not be the right
2314 # tool to use in cross-compilation environments, therefore Automake
2315 # will honor the `STRIP' environment variable to overrule this program.
2316 if test "$cross_compiling" != no; then
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}strip; ac_word=$2
2320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2322 if test "${ac_cv_prog_STRIP+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 if test -n "$STRIP"; then
2326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 STRIP=$ac_cv_prog_STRIP
2346 if test -n "$STRIP"; then
2347 { echo "$as_me:$LINENO: result: $STRIP" >&5
2348 echo "${ECHO_T}$STRIP" >&6; }
2350 { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2356 if test -z "$ac_cv_prog_STRIP"; then
2358 # Extract the first word of "strip", so it can be a program name with args.
2359 set dummy strip; ac_word=$2
2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 if test -n "$ac_ct_STRIP"; then
2366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375 ac_cv_prog_ac_ct_STRIP="strip"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2386 if test -n "$ac_ct_STRIP"; then
2387 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2388 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2390 { echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6; }
2394 if test "x$ac_ct_STRIP" = x; then
2397 case $cross_compiling:$ac_tool_warned in
2399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet. If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&5
2402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2403 whose name does not start with the host triplet. If you think this
2404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2405 ac_tool_warned=yes ;;
2410 STRIP="$ac_cv_prog_STRIP"
2414 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2416 # We need awk for the "check" target. The system "awk" is bad on
2418 # Always define AMTAR for backward compatibility.
2420 AMTAR=${AMTAR-"${am_missing_run}tar"}
2422 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434 if test -n "$ac_tool_prefix"; then
2435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 if test -n "$CC"; then
2464 { echo "$as_me:$LINENO: result: $CC" >&5
2465 echo "${ECHO_T}$CC" >&6; }
2467 { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2473 if test -z "$ac_cv_prog_CC"; then
2475 # Extract the first word of "gcc", so it can be a program name with args.
2476 set dummy gcc; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 if test -n "$ac_ct_CC"; then
2483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_ac_ct_CC="gcc"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503 if test -n "$ac_ct_CC"; then
2504 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505 echo "${ECHO_T}$ac_ct_CC" >&6; }
2507 { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2511 if test "x$ac_ct_CC" = x; then
2514 case $cross_compiling:$ac_tool_warned in
2516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet. If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&5
2519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet. If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522 ac_tool_warned=yes ;;
2530 if test -z "$CC"; then
2531 if test -n "$ac_tool_prefix"; then
2532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2533 set dummy ${ac_tool_prefix}cc; ac_word=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549 ac_cv_prog_CC="${ac_tool_prefix}cc"
2550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 if test -n "$CC"; then
2561 { echo "$as_me:$LINENO: result: $CC" >&5
2562 echo "${ECHO_T}$CC" >&6; }
2564 { echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6; }
2571 if test -z "$CC"; then
2572 # Extract the first word of "cc", so it can be a program name with args.
2573 set dummy cc; ac_word=$2
2574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576 if test "${ac_cv_prog_CC+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2591 ac_prog_rejected=yes
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 if test $ac_prog_rejected = yes; then
2603 # We found a bogon in the path, so make sure we never use it.
2604 set dummy $ac_cv_prog_CC
2606 if test $# != 0; then
2607 # We chose a different compiler from the bogus one.
2608 # However, it has the same basename, so the bogon will be chosen
2609 # first if we set CC to just the basename; use the full file name.
2611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2617 if test -n "$CC"; then
2618 { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2621 { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2627 if test -z "$CC"; then
2628 if test -n "$ac_tool_prefix"; then
2629 for ac_prog in cl.exe
2631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 if test -n "$CC"; then
2660 { echo "$as_me:$LINENO: result: $CC" >&5
2661 echo "${ECHO_T}$CC" >&6; }
2663 { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2668 test -n "$CC" && break
2671 if test -z "$CC"; then
2673 for ac_prog in cl.exe
2675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 if test -n "$ac_ct_CC"; then
2683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692 ac_cv_prog_ac_ct_CC="$ac_prog"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2705 echo "${ECHO_T}$ac_ct_CC" >&6; }
2707 { echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6; }
2712 test -n "$ac_ct_CC" && break
2715 if test "x$ac_ct_CC" = x; then
2718 case $cross_compiling:$ac_tool_warned in
2720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2721 whose name does not start with the host triplet. If you think this
2722 configuration is useful to you, please write to autoconf@gnu.org." >&5
2723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2724 whose name does not start with the host triplet. If you think this
2725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2726 ac_tool_warned=yes ;;
2735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2736 See \`config.log' for more details." >&5
2737 echo "$as_me: error: no acceptable C compiler found in \$PATH
2738 See \`config.log' for more details." >&2;}
2739 { (exit 1); exit 1; }; }
2741 # Provide some information about the compiler.
2742 echo "$as_me:$LINENO: checking for C compiler version" >&5
2743 ac_compiler=`set X $ac_compile; echo $2`
2744 { (ac_try="$ac_compiler --version >&5"
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_compiler --version >&5") 2>&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }
2754 { (ac_try="$ac_compiler -v >&5"
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760 (eval "$ac_compiler -v >&5") 2>&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }
2764 { (ac_try="$ac_compiler -V >&5"
2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767 *) ac_try_echo=$ac_try;;
2769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770 (eval "$ac_compiler -V >&5") 2>&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }
2775 cat >conftest.$ac_ext <<_ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2790 ac_clean_files_save=$ac_clean_files
2791 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2792 # Try to create an executable without -o first, disregard a.out.
2793 # It will help us diagnose broken compilers, and finding out an intuition
2795 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2796 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2797 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2799 # List of possible output files, starting from the most likely.
2800 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2801 # only as a last resort. b.out is created by i960 compilers.
2802 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2804 # The IRIX 6 linker writes into existing files which may not be
2805 # executable, retaining their permissions. Remove them first so a
2806 # subsequent execution test works.
2808 for ac_file in $ac_files
2811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2812 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2817 if { (ac_try="$ac_link_default"
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_link_default") 2>&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; then
2827 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2828 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2829 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2830 # so that the user can short-circuit this test for compilers unknown to
2832 for ac_file in $ac_files ''
2834 test -f "$ac_file" || continue
2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2839 # We found the default executable, but exeext='' is most
2843 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2845 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2847 # We set ac_cv_exeext here because the later test for it is not
2848 # safe: cross compilers may not add the suffix if given an `-o'
2849 # argument, so we may need to know it at that point already.
2850 # Even if this section looks crufty: it has the advantage of
2857 test "$ac_cv_exeext" = no && ac_cv_exeext=
2863 { echo "$as_me:$LINENO: result: $ac_file" >&5
2864 echo "${ECHO_T}$ac_file" >&6; }
2865 if test -z "$ac_file"; then
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2869 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: C compiler cannot create executables
2872 See \`config.log' for more details." >&2;}
2873 { (exit 77); exit 77; }; }
2876 ac_exeext=$ac_cv_exeext
2878 # Check that the compiler produces executables we can run. If not, either
2879 # the compiler is broken, or we cross compile.
2880 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2881 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2882 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2883 # If not cross compiling, check that we can run a simple program.
2884 if test "$cross_compiling" != yes; then
2885 if { ac_try='./$ac_file'
2886 { (case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891 (eval "$ac_try") 2>&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2897 if test "$cross_compiling" = maybe; then
2900 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2901 If you meant to cross compile, use \`--host'.
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot run C compiled programs.
2904 If you meant to cross compile, use \`--host'.
2905 See \`config.log' for more details." >&2;}
2906 { (exit 1); exit 1; }; }
2910 { echo "$as_me:$LINENO: result: yes" >&5
2911 echo "${ECHO_T}yes" >&6; }
2913 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2914 ac_clean_files=$ac_clean_files_save
2915 # Check that the compiler produces executables we can run. If not, either
2916 # the compiler is broken, or we cross compile.
2917 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2918 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2919 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2920 echo "${ECHO_T}$cross_compiling" >&6; }
2922 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2923 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2924 if { (ac_try="$ac_link"
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_link") 2>&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; then
2934 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2935 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2936 # work properly (i.e., refer to `conftest.exe'), while it won't with
2938 for ac_file in conftest.exe conftest conftest.*; do
2939 test -f "$ac_file" || continue
2941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2942 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2948 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2949 See \`config.log' for more details." >&5
2950 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2951 See \`config.log' for more details." >&2;}
2952 { (exit 1); exit 1; }; }
2955 rm -f conftest$ac_cv_exeext
2956 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2957 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2959 rm -f conftest.$ac_ext
2960 EXEEXT=$ac_cv_exeext
2962 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2963 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2964 if test "${ac_cv_objext+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 cat >conftest.$ac_ext <<_ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2982 rm -f conftest.o conftest.obj
2983 if { (ac_try="$ac_compile"
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compile") 2>&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; then
2993 for ac_file in conftest.o conftest.obj conftest.*; do
2994 test -f "$ac_file" || continue;
2996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2997 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3002 echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3005 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3006 See \`config.log' for more details." >&5
3007 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3008 See \`config.log' for more details." >&2;}
3009 { (exit 1); exit 1; }; }
3012 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3014 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3015 echo "${ECHO_T}$ac_cv_objext" >&6; }
3016 OBJEXT=$ac_cv_objext
3018 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3019 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3020 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 cat >conftest.$ac_ext <<_ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compile") 2>conftest.er1
3050 grep -v '^ *+' conftest.er1 >conftest.err
3052 cat conftest.err >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } && {
3055 test -z "$ac_c_werror_flag" ||
3056 test ! -s conftest.err
3057 } && test -s conftest.$ac_objext; then
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3070 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3071 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3072 GCC=`test $ac_compiler_gnu = yes && echo yes`
3073 ac_test_CFLAGS=${CFLAGS+set}
3074 ac_save_CFLAGS=$CFLAGS
3075 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3076 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_cc_g+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 ac_save_c_werror_flag=$ac_c_werror_flag
3081 ac_c_werror_flag=yes
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3108 grep -v '^ *+' conftest.er1 >conftest.err
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } && {
3113 test -z "$ac_c_werror_flag" ||
3114 test ! -s conftest.err
3115 } && test -s conftest.$ac_objext; then
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_compile") 2>conftest.er1
3146 grep -v '^ *+' conftest.er1 >conftest.err
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } && {
3151 test -z "$ac_c_werror_flag" ||
3152 test ! -s conftest.err
3153 } && test -s conftest.$ac_objext; then
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 ac_c_werror_flag=$ac_save_c_werror_flag
3161 cat >conftest.$ac_ext <<_ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && {
3190 test -z "$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.$ac_objext; then
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 ac_c_werror_flag=$ac_save_c_werror_flag
3210 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3211 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3212 if test "$ac_test_CFLAGS" = set; then
3213 CFLAGS=$ac_save_CFLAGS
3214 elif test $ac_cv_prog_cc_g = yes; then
3215 if test "$GCC" = yes; then
3221 if test "$GCC" = yes; then
3227 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3228 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3229 if test "${ac_cv_prog_cc_c89+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 ac_cv_prog_cc_c89=no
3234 cat >conftest.$ac_ext <<_ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h. */
3242 #include <sys/types.h>
3243 #include <sys/stat.h>
3244 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3245 struct buf { int x; };
3246 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3247 static char *e (p, i)
3253 static char *f (char * (*g) (char **, int), char **p, ...)
3258 s = g (p, va_arg (v,int));
3263 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3264 function prototypes and stuff, but not '\xHH' hex character constants.
3265 These don't provoke an error unfortunately, instead are silently treated
3266 as 'x'. The following induces an error, until -std is added to get
3267 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3268 array size at least. It's necessary to write '\x00'==0 to get something
3269 that's true only with -std. */
3270 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3272 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3273 inside strings and character constants. */
3275 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3277 int test (int i, double x);
3278 struct s1 {int (*f) (int a);};
3279 struct s2 {int (*f) (double a);};
3280 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3286 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3291 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3292 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3294 CC="$ac_save_CC $ac_arg"
3295 rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_compile") 2>conftest.er1
3304 grep -v '^ *+' conftest.er1 >conftest.err
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } && {
3309 test -z "$ac_c_werror_flag" ||
3310 test ! -s conftest.err
3311 } && test -s conftest.$ac_objext; then
3312 ac_cv_prog_cc_c89=$ac_arg
3314 echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3320 rm -f core conftest.err conftest.$ac_objext
3321 test "x$ac_cv_prog_cc_c89" != "xno" && break
3323 rm -f conftest.$ac_ext
3328 case "x$ac_cv_prog_cc_c89" in
3330 { echo "$as_me:$LINENO: result: none needed" >&5
3331 echo "${ECHO_T}none needed" >&6; } ;;
3333 { echo "$as_me:$LINENO: result: unsupported" >&5
3334 echo "${ECHO_T}unsupported" >&6; } ;;
3336 CC="$CC $ac_cv_prog_cc_c89"
3337 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3338 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 DEPDIR="${am__leading_dot}deps"
3349 ac_config_commands="$ac_config_commands depfiles"
3352 am_make=${MAKE-make}
3353 cat > confinc << 'END'
3358 # If we don't find an include directive, just comment out the code.
3359 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3360 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3364 # First try GNU make style include.
3365 echo "include confinc" > confmf
3366 # We grep out `Entering directory' and `Leaving directory'
3367 # messages which can occur if `w' ends up in MAKEFLAGS.
3368 # In particular we don't look at `^make:' because GNU make might
3369 # be invoked under some other name (usually "gmake"), in which
3370 # case it prints its new name instead of `make'.
3371 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3376 # Now try BSD make style include.
3377 if test "$am__include" = "#"; then
3378 echo '.include "confinc"' > confmf
3379 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3380 am__include=.include
3387 { echo "$as_me:$LINENO: result: $_am_result" >&5
3388 echo "${ECHO_T}$_am_result" >&6; }
3389 rm -f confinc confmf
3391 # Check whether --enable-dependency-tracking was given.
3392 if test "${enable_dependency_tracking+set}" = set; then
3393 enableval=$enable_dependency_tracking;
3396 if test "x$enable_dependency_tracking" != xno; then
3397 am_depcomp="$ac_aux_dir/depcomp"
3402 if test "x$enable_dependency_tracking" != xno; then
3413 depcc="$CC" am_compiler_list=
3415 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3416 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3417 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3421 # We make a subdir and do the tests there. Otherwise we can end up
3422 # making bogus files that we don't know about and never remove. For
3423 # instance it was reported that on HP-UX the gcc test will end up
3424 # making a dummy file named `D' -- because `-MD' means `put the output
3427 # Copy depcomp to subdir because otherwise we won't find it if we're
3428 # using a relative directory.
3429 cp "$am_depcomp" conftest.dir
3431 # We will build objects and dependencies in a subdirectory because
3432 # it helps to detect inapplicable dependency modes. For instance
3433 # both Tru64's cc and ICC support -MD to output dependencies as a
3434 # side effect of compilation, but ICC will put the dependencies in
3435 # the current directory while Tru64 will put them in the object
3439 am_cv_CC_dependencies_compiler_type=none
3440 if test "$am_compiler_list" = ""; then
3441 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3443 for depmode in $am_compiler_list; do
3444 # Setup a source with many dependencies, because some compilers
3445 # like to wrap large dependency lists on column 80 (with \), and
3446 # we should not choose a depcomp mode which is confused by this.
3448 # We need to recreate these files for each test, as the compiler may
3449 # overwrite some of them when testing with obscure command lines.
3450 # This happens at least with the AIX C compiler.
3452 for i in 1 2 3 4 5 6; do
3453 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3454 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3455 # Solaris 8's {/usr,}/bin/sh.
3456 touch sub/conftst$i.h
3458 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3462 # after this tag, mechanisms are not by side-effect, so they'll
3463 # only be used when explicitly requested
3464 if test "x$enable_dependency_tracking" = xyes; then
3472 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3473 # mode. It turns out that the SunPro C++ compiler does not properly
3474 # handle `-M -o', and we need to detect this.
3475 if depmode=$depmode \
3476 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3477 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3478 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3479 >/dev/null 2>conftest.err &&
3480 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3481 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3482 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3483 # icc doesn't choke on unknown options, it will just issue warnings
3484 # or remarks (even with -Werror). So we grep stderr for any message
3485 # that says an option was ignored or not supported.
3486 # When given -MP, icc 7.0 and 7.1 complain thusly:
3487 # icc: Command line warning: ignoring option '-M'; no argument required
3488 # The diagnosis changed in icc 8.0:
3489 # icc: Command line remark: option '-MP' not supported
3490 if (grep 'ignoring option' conftest.err ||
3491 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3492 am_cv_CC_dependencies_compiler_type=$depmode
3501 am_cv_CC_dependencies_compiler_type=none
3505 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3506 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3507 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3512 test "x$enable_dependency_tracking" != xno \
3513 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3515 am__fastdepCC_FALSE='#'
3517 am__fastdepCC_TRUE='#'
3518 am__fastdepCC_FALSE=
3523 if test "$GCC" = "yes"; then
3527 CFLAGS="$CFLAGS -Wall -Werror"
3528 cat >conftest.$ac_ext <<_ACEOF
3531 int main(int argc, char **argv)
3533 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3538 rm -f conftest.$ac_objext
3539 if { (ac_try="$ac_compile"
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545 (eval "$ac_compile") 2>conftest.er1
3547 grep -v '^ *+' conftest.er1 >conftest.err
3549 cat conftest.err >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } && {
3552 test -z "$ac_c_werror_flag" ||
3553 test ! -s conftest.err
3554 } && test -s conftest.$ac_objext; then
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 CFLAGS="$old_CFLAGS"
3565 if test "x$check_cflag" = "xyes"; then
3566 CFLAGS="$CFLAGS -Wall"
3571 CFLAGS="$CFLAGS -Wextra -Werror"
3572 cat >conftest.$ac_ext <<_ACEOF
3575 int main(int argc, char **argv)
3577 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3582 rm -f conftest.$ac_objext
3583 if { (ac_try="$ac_compile"
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589 (eval "$ac_compile") 2>conftest.er1
3591 grep -v '^ *+' conftest.er1 >conftest.err
3593 cat conftest.err >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } && {
3596 test -z "$ac_c_werror_flag" ||
3597 test ! -s conftest.err
3598 } && test -s conftest.$ac_objext; then
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 CFLAGS="$old_CFLAGS"
3609 if test "x$check_cflag" = "xyes"; then
3610 CFLAGS="$CFLAGS -Wextra"
3613 if test "x$check_cflag" = "xno"; then
3616 CFLAGS="$CFLAGS -W -Werror"
3617 cat >conftest.$ac_ext <<_ACEOF
3620 int main(int argc, char **argv)
3622 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3627 rm -f conftest.$ac_objext
3628 if { (ac_try="$ac_compile"
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3634 (eval "$ac_compile") 2>conftest.er1
3636 grep -v '^ *+' conftest.er1 >conftest.err
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } && {
3641 test -z "$ac_c_werror_flag" ||
3642 test ! -s conftest.err
3643 } && test -s conftest.$ac_objext; then
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 CFLAGS="$old_CFLAGS"
3654 if test "x$check_cflag" = "xyes"; then
3661 CFLAGS="$CFLAGS -Wno-unused-parameter -Werror"
3662 cat >conftest.$ac_ext <<_ACEOF
3665 int main(int argc, char **argv)
3667 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3672 rm -f conftest.$ac_objext
3673 if { (ac_try="$ac_compile"
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_compile") 2>conftest.er1
3681 grep -v '^ *+' conftest.er1 >conftest.err
3683 cat conftest.err >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); } && {
3686 test -z "$ac_c_werror_flag" ||
3687 test ! -s conftest.err
3688 } && test -s conftest.$ac_objext; then
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698 CFLAGS="$old_CFLAGS"
3699 if test "x$check_cflag" = "xyes"; then
3700 CFLAGS="$CFLAGS -Wno-unused-parameter"
3705 CFLAGS="$CFLAGS -Wno-sign-compare -Werror"
3706 cat >conftest.$ac_ext <<_ACEOF
3709 int main(int argc, char **argv)
3711 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3716 rm -f conftest.$ac_objext
3717 if { (ac_try="$ac_compile"
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_compile") 2>conftest.er1
3725 grep -v '^ *+' conftest.er1 >conftest.err
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } && {
3730 test -z "$ac_c_werror_flag" ||
3731 test ! -s conftest.err
3732 } && test -s conftest.$ac_objext; then
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 CFLAGS="$old_CFLAGS"
3743 if test "x$check_cflag" = "xyes"; then
3744 CFLAGS="$CFLAGS -Wno-sign-compare"
3749 CFLAGS="$CFLAGS -Wno-pointer-sign -Werror"
3750 cat >conftest.$ac_ext <<_ACEOF
3753 int main(int argc, char **argv)
3755 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3760 rm -f conftest.$ac_objext
3761 if { (ac_try="$ac_compile"
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3767 (eval "$ac_compile") 2>conftest.er1
3769 grep -v '^ *+' conftest.er1 >conftest.err
3771 cat conftest.err >&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } && {
3774 test -z "$ac_c_werror_flag" ||
3775 test ! -s conftest.err
3776 } && test -s conftest.$ac_objext; then
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 CFLAGS="$old_CFLAGS"
3787 if test "x$check_cflag" = "xyes"; then
3788 CFLAGS="$CFLAGS -Wno-pointer-sign"
3793 CFLAGS="$CFLAGS -Wno-missing-field-initializers -Werror"
3794 cat >conftest.$ac_ext <<_ACEOF
3797 int main(int argc, char **argv)
3799 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3804 rm -f conftest.$ac_objext
3805 if { (ac_try="$ac_compile"
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811 (eval "$ac_compile") 2>conftest.er1
3813 grep -v '^ *+' conftest.er1 >conftest.err
3815 cat conftest.err >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } && {
3818 test -z "$ac_c_werror_flag" ||
3819 test ! -s conftest.err
3820 } && test -s conftest.$ac_objext; then
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830 CFLAGS="$old_CFLAGS"
3831 if test "x$check_cflag" = "xyes"; then
3832 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
3838 CFLAGS="$CFLAGS -Wformat=2 -Werror"
3839 cat >conftest.$ac_ext <<_ACEOF
3842 int main(int argc, char **argv)
3844 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3849 rm -f conftest.$ac_objext
3850 if { (ac_try="$ac_compile"
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_compile") 2>conftest.er1
3858 grep -v '^ *+' conftest.er1 >conftest.err
3860 cat conftest.err >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } && {
3863 test -z "$ac_c_werror_flag" ||
3864 test ! -s conftest.err
3865 } && test -s conftest.$ac_objext; then
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 CFLAGS="$old_CFLAGS"
3876 if test "x$check_cflag" = "xyes"; then
3877 CFLAGS="$CFLAGS -Wformat=2"
3882 CFLAGS="$CFLAGS -Wstrict-aliasing=2 -Werror"
3883 cat >conftest.$ac_ext <<_ACEOF
3886 int main(int argc, char **argv)
3888 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3893 rm -f conftest.$ac_objext
3894 if { (ac_try="$ac_compile"
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_compile") 2>conftest.er1
3902 grep -v '^ *+' conftest.er1 >conftest.err
3904 cat conftest.err >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } && {
3907 test -z "$ac_c_werror_flag" ||
3908 test ! -s conftest.err
3909 } && test -s conftest.$ac_objext; then
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 CFLAGS="$old_CFLAGS"
3920 if test "x$check_cflag" = "xyes"; then
3921 CFLAGS="$CFLAGS -Wstrict-aliasing=2"
3926 CFLAGS="$CFLAGS -Wdisabled-optimization -Werror"
3927 cat >conftest.$ac_ext <<_ACEOF
3930 int main(int argc, char **argv)
3932 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3937 rm -f conftest.$ac_objext
3938 if { (ac_try="$ac_compile"
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944 (eval "$ac_compile") 2>conftest.er1
3946 grep -v '^ *+' conftest.er1 >conftest.err
3948 cat conftest.err >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } && {
3951 test -z "$ac_c_werror_flag" ||
3952 test ! -s conftest.err
3953 } && test -s conftest.$ac_objext; then
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 CFLAGS="$old_CFLAGS"
3964 if test "x$check_cflag" = "xyes"; then
3965 CFLAGS="$CFLAGS -Wdisabled-optimization"
3970 CFLAGS="$CFLAGS -Wfloat-equal -Werror"
3971 cat >conftest.$ac_ext <<_ACEOF
3974 int main(int argc, char **argv)
3976 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3981 rm -f conftest.$ac_objext
3982 if { (ac_try="$ac_compile"
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_compile") 2>conftest.er1
3990 grep -v '^ *+' conftest.er1 >conftest.err
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && {
3995 test -z "$ac_c_werror_flag" ||
3996 test ! -s conftest.err
3997 } && test -s conftest.$ac_objext; then
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 CFLAGS="$old_CFLAGS"
4008 if test "x$check_cflag" = "xyes"; then
4009 CFLAGS="$CFLAGS -Wfloat-equal"
4014 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
4015 cat >conftest.$ac_ext <<_ACEOF
4018 int main(int argc, char **argv)
4020 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
4025 rm -f conftest.$ac_objext
4026 if { (ac_try="$ac_compile"
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032 (eval "$ac_compile") 2>conftest.er1
4034 grep -v '^ *+' conftest.er1 >conftest.err
4036 cat conftest.err >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } && {
4039 test -z "$ac_c_werror_flag" ||
4040 test ! -s conftest.err
4041 } && test -s conftest.$ac_objext; then
4044 echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051 CFLAGS="$old_CFLAGS"
4052 if test "x$check_cflag" = "xyes"; then
4053 CFLAGS="$CFLAGS -Wpointer-arith"
4058 CFLAGS="$CFLAGS -Wdeclaration-after-statement -Werror"
4059 cat >conftest.$ac_ext <<_ACEOF
4062 int main(int argc, char **argv)
4064 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
4069 rm -f conftest.$ac_objext
4070 if { (ac_try="$ac_compile"
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_compile") 2>conftest.er1
4078 grep -v '^ *+' conftest.er1 >conftest.err
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } && {
4083 test -z "$ac_c_werror_flag" ||
4084 test ! -s conftest.err
4085 } && test -s conftest.$ac_objext; then
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 CFLAGS="$old_CFLAGS"
4096 if test "x$check_cflag" = "xyes"; then
4097 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4102 CFLAGS="$CFLAGS -Wbad-function-cast -Werror"
4103 cat >conftest.$ac_ext <<_ACEOF
4106 int main(int argc, char **argv)
4108 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
4113 rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4122 grep -v '^ *+' conftest.er1 >conftest.err
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } && {
4127 test -z "$ac_c_werror_flag" ||
4128 test ! -s conftest.err
4129 } && test -s conftest.$ac_objext; then
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 CFLAGS="$old_CFLAGS"
4140 if test "x$check_cflag" = "xyes"; then
4141 CFLAGS="$CFLAGS -Wbad-function-cast"
4146 CFLAGS="$CFLAGS -Wcast-align -Werror"
4147 cat >conftest.$ac_ext <<_ACEOF
4150 int main(int argc, char **argv)
4152 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
4157 rm -f conftest.$ac_objext
4158 if { (ac_try="$ac_compile"
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_compile") 2>conftest.er1
4166 grep -v '^ *+' conftest.er1 >conftest.err
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } && {
4171 test -z "$ac_c_werror_flag" ||
4172 test ! -s conftest.err
4173 } && test -s conftest.$ac_objext; then
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 CFLAGS="$old_CFLAGS"
4184 if test "x$check_cflag" = "xyes"; then
4185 CFLAGS="$CFLAGS -Wcast-align"
4190 CFLAGS="$CFLAGS -Wredundant-decls -Werror"
4191 cat >conftest.$ac_ext <<_ACEOF
4194 int main(int argc, char **argv)
4196 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
4201 rm -f conftest.$ac_objext
4202 if { (ac_try="$ac_compile"
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208 (eval "$ac_compile") 2>conftest.er1
4210 grep -v '^ *+' conftest.er1 >conftest.err
4212 cat conftest.err >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } && {
4215 test -z "$ac_c_werror_flag" ||
4216 test ! -s conftest.err
4217 } && test -s conftest.$ac_objext; then
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 CFLAGS="$old_CFLAGS"
4228 if test "x$check_cflag" = "xyes"; then
4229 CFLAGS="$CFLAGS -Wredundant-decls"
4232 # CHECK_CFLAG([-Wunsafe-loop-optimizations])
4233 # CHECK_CFLAG([-Wunreachable-code])
4234 # CHECK_CFLAG([-Wswitch-enum])
4235 # CHECK_CFLAG([-Wshadow])
4236 # CHECK_CFLAG([-Wconversion])
4237 # CHECK_CFLAG([-Wwrite-strings])
4240 CFLAGS="$CFLAGS -Winline -Werror"
4241 cat >conftest.$ac_ext <<_ACEOF
4244 int main(int argc, char **argv)
4246 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
4251 rm -f conftest.$ac_objext
4252 if { (ac_try="$ac_compile"
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_compile") 2>conftest.er1
4260 grep -v '^ *+' conftest.er1 >conftest.err
4262 cat conftest.err >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } && {
4265 test -z "$ac_c_werror_flag" ||
4266 test ! -s conftest.err
4267 } && test -s conftest.$ac_objext; then
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4277 CFLAGS="$old_CFLAGS"
4278 if test "x$check_cflag" = "xyes"; then
4279 CFLAGS="$CFLAGS -Winline"
4284 CFLAGS="$CFLAGS --param max-inline-insns-single=12000 -Werror"
4285 cat >conftest.$ac_ext <<_ACEOF
4288 int main(int argc, char **argv)
4290 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
4295 rm -f conftest.$ac_objext
4296 if { (ac_try="$ac_compile"
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_compile") 2>conftest.er1
4304 grep -v '^ *+' conftest.er1 >conftest.err
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } && {
4309 test -z "$ac_c_werror_flag" ||
4310 test ! -s conftest.err
4311 } && test -s conftest.$ac_objext; then
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321 CFLAGS="$old_CFLAGS"
4322 if test "x$check_cflag" = "xyes"; then
4323 CFLAGS="$CFLAGS --param max-inline-insns-single=12000"
4328 CFLAGS="$CFLAGS --param large-function-growth=28000 -Werror"
4329 cat >conftest.$ac_ext <<_ACEOF
4332 int main(int argc, char **argv)
4334 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
4339 rm -f conftest.$ac_objext
4340 if { (ac_try="$ac_compile"
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_compile") 2>conftest.er1
4348 grep -v '^ *+' conftest.er1 >conftest.err
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } && {
4353 test -z "$ac_c_werror_flag" ||
4354 test ! -s conftest.err
4355 } && test -s conftest.$ac_objext; then
4358 echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 CFLAGS="$old_CFLAGS"
4366 if test "x$check_cflag" = "xyes"; then
4367 CFLAGS="$CFLAGS --param large-function-growth=28000"
4372 CFLAGS="$CFLAGS --param inline-unit-growth=400 -Werror"
4373 cat >conftest.$ac_ext <<_ACEOF
4376 int main(int argc, char **argv)
4378 printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
4383 rm -f conftest.$ac_objext
4384 if { (ac_try="$ac_compile"
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390 (eval "$ac_compile") 2>conftest.er1
4392 grep -v '^ *+' conftest.er1 >conftest.err
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } && {
4397 test -z "$ac_c_werror_flag" ||
4398 test ! -s conftest.err
4399 } && test -s conftest.$ac_objext; then
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 CFLAGS="$old_CFLAGS"
4410 if test "x$check_cflag" = "xyes"; then
4411 CFLAGS="$CFLAGS --param inline-unit-growth=400"
4415 # Check whether --enable-shared was given.
4416 if test "${enable_shared+set}" = set; then
4417 enableval=$enable_shared; p=${PACKAGE-default}
4419 yes) enable_shared=yes ;;
4420 no) enable_shared=no ;;
4423 # Look at the argument we got. We use all the common list separators.
4424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4425 for pkg in $enableval; do
4427 if test "X$pkg" = "X$p"; then
4439 # Check whether --enable-static was given.
4440 if test "${enable_static+set}" = set; then
4441 enableval=$enable_static; p=${PACKAGE-default}
4443 yes) enable_static=yes ;;
4444 no) enable_static=no ;;
4447 # Look at the argument we got. We use all the common list separators.
4448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4449 for pkg in $enableval; do
4451 if test "X$pkg" = "X$p"; then
4463 # Check whether --enable-fast-install was given.
4464 if test "${enable_fast_install+set}" = set; then
4465 enableval=$enable_fast_install; p=${PACKAGE-default}
4467 yes) enable_fast_install=yes ;;
4468 no) enable_fast_install=no ;;
4470 enable_fast_install=no
4471 # Look at the argument we got. We use all the common list separators.
4472 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4473 for pkg in $enableval; do
4475 if test "X$pkg" = "X$p"; then
4476 enable_fast_install=yes
4483 enable_fast_install=yes
4487 # Make sure we can run config.sub.
4488 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4489 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4490 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4491 { (exit 1); exit 1; }; }
4493 { echo "$as_me:$LINENO: checking build system type" >&5
4494 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4495 if test "${ac_cv_build+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 ac_build_alias=$build_alias
4499 test "x$ac_build_alias" = x &&
4500 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4501 test "x$ac_build_alias" = x &&
4502 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4503 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4504 { (exit 1); exit 1; }; }
4505 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4506 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4507 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4508 { (exit 1); exit 1; }; }
4511 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4512 echo "${ECHO_T}$ac_cv_build" >&6; }
4513 case $ac_cv_build in
4515 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4516 echo "$as_me: error: invalid value of canonical build" >&2;}
4517 { (exit 1); exit 1; }; };;
4520 ac_save_IFS=$IFS; IFS='-'
4526 # Remember, the first character of IFS is used to create $*,
4527 # except with old shells:
4530 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4533 { echo "$as_me:$LINENO: checking host system type" >&5
4534 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4535 if test "${ac_cv_host+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 if test "x$host_alias" = x; then
4539 ac_cv_host=$ac_cv_build
4541 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4542 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4543 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4544 { (exit 1); exit 1; }; }
4548 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4549 echo "${ECHO_T}$ac_cv_host" >&6; }
4552 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4553 echo "$as_me: error: invalid value of canonical host" >&2;}
4554 { (exit 1); exit 1; }; };;
4557 ac_save_IFS=$IFS; IFS='-'
4563 # Remember, the first character of IFS is used to create $*,
4564 # except with old shells:
4567 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4570 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4571 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4572 if test "${lt_cv_path_SED+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 # Loop through the user's path and test for sed and gsed.
4576 # Then use that list of sed's as ones to test for truncation.
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 test -z "$as_dir" && as_dir=.
4582 for lt_ac_prog in sed gsed; do
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4585 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4593 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4594 # along with /bin/sed that truncates output.
4595 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4596 test ! -f $lt_ac_sed && continue
4597 cat /dev/null > conftest.in
4599 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4600 # Check for GNU sed and select it if it is found.
4601 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4602 lt_cv_path_SED=$lt_ac_sed
4606 cat conftest.in conftest.in >conftest.tmp
4607 mv conftest.tmp conftest.in
4608 cp conftest.in conftest.nl
4610 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4611 cmp -s conftest.out conftest.nl || break
4612 # 10000 chars as input seems more than enough
4613 test $lt_ac_count -gt 10 && break
4614 lt_ac_count=`expr $lt_ac_count + 1`
4615 if test $lt_ac_count -gt $lt_ac_max; then
4616 lt_ac_max=$lt_ac_count
4617 lt_cv_path_SED=$lt_ac_sed
4626 { echo "$as_me:$LINENO: result: $SED" >&5
4627 echo "${ECHO_T}$SED" >&6; }
4629 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4630 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4631 if test "${ac_cv_path_GREP+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 # Extract the first word of "grep ggrep" to use in msg output
4635 if test -z "$GREP"; then
4636 set dummy grep ggrep; ac_prog_name=$2
4637 if test "${ac_cv_path_GREP+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 ac_path_GREP_found=false
4641 # Loop through the user's path and test for each of PROGNAME-LIST
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4646 test -z "$as_dir" && as_dir=.
4647 for ac_prog in grep ggrep; do
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4650 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4651 # Check for GNU ac_path_GREP and select it if it is found.
4652 # Check for GNU $ac_path_GREP
4653 case `"$ac_path_GREP" --version 2>&1` in
4655 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4658 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4661 cat "conftest.in" "conftest.in" >"conftest.tmp"
4662 mv "conftest.tmp" "conftest.in"
4663 cp "conftest.in" "conftest.nl"
4664 echo 'GREP' >> "conftest.nl"
4665 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4667 ac_count=`expr $ac_count + 1`
4668 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4669 # Best one so far, save it but keep looking for a better one
4670 ac_cv_path_GREP="$ac_path_GREP"
4671 ac_path_GREP_max=$ac_count
4673 # 10*(2^10) chars as input seems more than enough
4674 test $ac_count -gt 10 && break
4676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4680 $ac_path_GREP_found && break 3
4690 GREP="$ac_cv_path_GREP"
4691 if test -z "$GREP"; then
4692 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4693 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4694 { (exit 1); exit 1; }; }
4698 ac_cv_path_GREP=$GREP
4703 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4704 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4705 GREP="$ac_cv_path_GREP"
4708 { echo "$as_me:$LINENO: checking for egrep" >&5
4709 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4710 if test "${ac_cv_path_EGREP+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4714 then ac_cv_path_EGREP="$GREP -E"
4716 # Extract the first word of "egrep" to use in msg output
4717 if test -z "$EGREP"; then
4718 set dummy egrep; ac_prog_name=$2
4719 if test "${ac_cv_path_EGREP+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 ac_path_EGREP_found=false
4723 # Loop through the user's path and test for each of PROGNAME-LIST
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4728 test -z "$as_dir" && as_dir=.
4729 for ac_prog in egrep; do
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4732 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4733 # Check for GNU ac_path_EGREP and select it if it is found.
4734 # Check for GNU $ac_path_EGREP
4735 case `"$ac_path_EGREP" --version 2>&1` in
4737 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4740 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4743 cat "conftest.in" "conftest.in" >"conftest.tmp"
4744 mv "conftest.tmp" "conftest.in"
4745 cp "conftest.in" "conftest.nl"
4746 echo 'EGREP' >> "conftest.nl"
4747 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4749 ac_count=`expr $ac_count + 1`
4750 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4751 # Best one so far, save it but keep looking for a better one
4752 ac_cv_path_EGREP="$ac_path_EGREP"
4753 ac_path_EGREP_max=$ac_count
4755 # 10*(2^10) chars as input seems more than enough
4756 test $ac_count -gt 10 && break
4758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4762 $ac_path_EGREP_found && break 3
4772 EGREP="$ac_cv_path_EGREP"
4773 if test -z "$EGREP"; then
4774 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4775 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4776 { (exit 1); exit 1; }; }
4780 ac_cv_path_EGREP=$EGREP
4786 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4787 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4788 EGREP="$ac_cv_path_EGREP"
4792 # Check whether --with-gnu-ld was given.
4793 if test "${with_gnu_ld+set}" = set; then
4794 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4800 if test "$GCC" = yes; then
4801 # Check if gcc -print-prog-name=ld gives a path.
4802 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4803 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4806 # gcc leaves a trailing carriage return which upsets mingw
4807 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4809 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4812 # Accept absolute paths.
4814 re_direlt='/[^/][^/]*/\.\./'
4815 # Canonicalize the pathname of ld
4816 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4817 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4818 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4820 test -z "$LD" && LD="$ac_prog"
4823 # If it fails, then pretend we aren't using GCC.
4827 # If it is relative, then search for the first ld in PATH.
4831 elif test "$with_gnu_ld" = yes; then
4832 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4833 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4835 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4836 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4838 if test "${lt_cv_path_LD+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 if test -z "$LD"; then
4842 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4843 for ac_dir in $PATH; do
4845 test -z "$ac_dir" && ac_dir=.
4846 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4847 lt_cv_path_LD="$ac_dir/$ac_prog"
4848 # Check to see if the program is GNU ld. I'd rather use --version,
4849 # but apparently some variants of GNU ld only accept -v.
4850 # Break only if it was the GNU/non-GNU ld that we prefer.
4851 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4852 *GNU* | *'with BFD'*)
4853 test "$with_gnu_ld" != no && break
4856 test "$with_gnu_ld" != yes && break
4863 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4868 if test -n "$LD"; then
4869 { echo "$as_me:$LINENO: result: $LD" >&5
4870 echo "${ECHO_T}$LD" >&6; }
4872 { echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6; }
4875 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4876 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4877 { (exit 1); exit 1; }; }
4878 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4879 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4880 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4884 case `$LD -v 2>&1 </dev/null` in
4885 *GNU* | *'with BFD'*)
4886 lt_cv_prog_gnu_ld=yes
4889 lt_cv_prog_gnu_ld=no
4893 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4894 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4895 with_gnu_ld=$lt_cv_prog_gnu_ld
4898 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4899 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4900 if test "${lt_cv_ld_reload_flag+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 lt_cv_ld_reload_flag='-r'
4905 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4906 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4907 reload_flag=$lt_cv_ld_reload_flag
4908 case $reload_flag in
4910 *) reload_flag=" $reload_flag" ;;
4912 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4915 if test "$GCC" = yes; then
4916 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4918 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4923 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4924 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4925 if test "${lt_cv_path_NM+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 if test -n "$NM"; then
4929 # Let the user override the test.
4932 lt_nm_to_check="${ac_tool_prefix}nm"
4933 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4934 lt_nm_to_check="$lt_nm_to_check nm"
4936 for lt_tmp_nm in $lt_nm_to_check; do
4937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4938 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4940 test -z "$ac_dir" && ac_dir=.
4941 tmp_nm="$ac_dir/$lt_tmp_nm"
4942 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4943 # Check to see if the nm accepts a BSD-compat flag.
4944 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4945 # nm: unknown option "B" ignored
4946 # Tru64's nm complains that /dev/null is an invalid object file
4947 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4948 */dev/null* | *'Invalid file or object type'*)
4949 lt_cv_path_NM="$tmp_nm -B"
4953 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4955 lt_cv_path_NM="$tmp_nm -p"
4959 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4960 continue # so that we can try to find one that supports BSD flags
4969 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4972 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4973 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4976 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4977 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4979 if test "$LN_S" = "ln -s"; then
4980 { echo "$as_me:$LINENO: result: yes" >&5
4981 echo "${ECHO_T}yes" >&6; }
4983 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4984 echo "${ECHO_T}no, using $LN_S" >&6; }
4987 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4988 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4989 if test "${lt_cv_deplibs_check_method+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 lt_cv_file_magic_cmd='$MAGIC_CMD'
4993 lt_cv_file_magic_test_file=
4994 lt_cv_deplibs_check_method='unknown'
4995 # Need to set the preceding variable on all platforms that support
4996 # interlibrary dependencies.
4997 # 'none' -- dependencies not supported.
4998 # `unknown' -- same as none, but documents that we really don't know.
4999 # 'pass_all' -- all dependencies passed with no checks.
5000 # 'test_compile' -- check by making test program.
5001 # 'file_magic [[regex]]' -- check by looking for files in library path
5002 # which responds to the $file_magic_cmd with a given extended regex.
5003 # If you have `file' or equivalent on your system and you're not sure
5004 # whether `pass_all' will *always* work, you probably want this one.
5008 lt_cv_deplibs_check_method=pass_all
5012 lt_cv_deplibs_check_method=pass_all
5016 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5017 lt_cv_file_magic_cmd='/usr/bin/file -L'
5018 lt_cv_file_magic_test_file=/shlib/libc.so
5022 # func_win32_libid is a shell function defined in ltmain.sh
5023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5024 lt_cv_file_magic_cmd='func_win32_libid'
5028 # Base MSYS/MinGW do not provide the 'file' command needed by
5029 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5030 # unless we find 'file', for example because we are cross-compiling.
5031 if ( file / ) >/dev/null 2>&1; then
5032 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5033 lt_cv_file_magic_cmd='func_win32_libid'
5035 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5036 lt_cv_file_magic_cmd='$OBJDUMP -f'
5040 darwin* | rhapsody*)
5041 lt_cv_deplibs_check_method=pass_all
5044 freebsd* | dragonfly*)
5045 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5048 # Not sure whether the presence of OpenBSD here was a mistake.
5049 # Let's accept both of them until this is cleared up.
5050 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5051 lt_cv_file_magic_cmd=/usr/bin/file
5052 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5056 lt_cv_deplibs_check_method=pass_all
5061 lt_cv_deplibs_check_method=pass_all
5064 hpux10.20* | hpux11*)
5065 lt_cv_file_magic_cmd=/usr/bin/file
5068 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5069 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5072 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]'
5073 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5076 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5077 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5083 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5087 irix5* | irix6* | nonstopux*)
5089 *-32|*"-32 ") libmagic=32-bit;;
5090 *-n32|*"-n32 ") libmagic=N32;;
5091 *-64|*"-64 ") libmagic=64-bit;;
5092 *) libmagic=never-match;;
5094 lt_cv_deplibs_check_method=pass_all
5097 # This must be Linux ELF.
5098 linux* | k*bsd*-gnu)
5099 lt_cv_deplibs_check_method=pass_all
5102 netbsd* | netbsdelf*-gnu)
5103 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5111 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5112 lt_cv_file_magic_cmd=/usr/bin/file
5113 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5117 lt_cv_deplibs_check_method=unknown
5121 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5128 osf3* | osf4* | osf5*)
5129 lt_cv_deplibs_check_method=pass_all
5133 lt_cv_deplibs_check_method=pass_all
5137 lt_cv_deplibs_check_method=pass_all
5141 case $host_vendor in
5143 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]'
5144 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5147 lt_cv_deplibs_check_method=pass_all
5150 lt_cv_file_magic_cmd='/bin/file'
5151 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5154 lt_cv_file_magic_cmd='/bin/file'
5155 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5156 lt_cv_file_magic_test_file=/lib/libc.so
5159 lt_cv_deplibs_check_method=pass_all
5162 lt_cv_deplibs_check_method=pass_all
5167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5168 lt_cv_deplibs_check_method=pass_all
5173 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5174 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5175 file_magic_cmd=$lt_cv_file_magic_cmd
5176 deplibs_check_method=$lt_cv_deplibs_check_method
5177 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5182 # If no C compiler was specified, use CC.
5185 # If no C compiler flags were specified, use CFLAGS.
5186 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5188 # Allow CC to be a program name with arguments.
5191 # Check whether --enable-libtool-lock was given.
5192 if test "${enable_libtool_lock+set}" = set; then
5193 enableval=$enable_libtool_lock;
5196 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5198 # Some flags need to be propagated to the compiler or linker for good
5202 # Find out which ABI we are using.
5203 echo 'int i;' > conftest.$ac_ext
5204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5205 (eval $ac_compile) 2>&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; then
5209 case `/usr/bin/file conftest.$ac_objext` in
5221 # Find out which ABI we are using.
5222 echo '#line 5222 "configure"' > conftest.$ac_ext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5224 (eval $ac_compile) 2>&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; then
5228 if test "$lt_cv_prog_gnu_ld" = yes; then
5229 case `/usr/bin/file conftest.$ac_objext` in
5231 LD="${LD-ld} -melf32bsmip"
5234 LD="${LD-ld} -melf32bmipn32"
5237 LD="${LD-ld} -melf64bmip"
5241 case `/usr/bin/file conftest.$ac_objext` in
5257 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5258 s390*-*linux*|sparc*-*linux*)
5259 # Find out which ABI we are using.
5260 echo 'int i;' > conftest.$ac_ext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262 (eval $ac_compile) 2>&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; then
5266 case `/usr/bin/file conftest.o` in
5269 x86_64-*kfreebsd*-gnu)
5270 LD="${LD-ld} -m elf_i386_fbsd"
5273 LD="${LD-ld} -m elf_i386"
5275 ppc64-*linux*|powerpc64-*linux*)
5276 LD="${LD-ld} -m elf32ppclinux"
5279 LD="${LD-ld} -m elf_s390"
5282 LD="${LD-ld} -m elf32_sparc"
5288 x86_64-*kfreebsd*-gnu)
5289 LD="${LD-ld} -m elf_x86_64_fbsd"
5292 LD="${LD-ld} -m elf_x86_64"
5294 ppc*-*linux*|powerpc*-*linux*)
5295 LD="${LD-ld} -m elf64ppc"
5298 LD="${LD-ld} -m elf64_s390"
5301 LD="${LD-ld} -m elf64_sparc"
5311 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5312 SAVE_CFLAGS="$CFLAGS"
5313 CFLAGS="$CFLAGS -belf"
5314 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5315 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5316 if test "${lt_cv_cc_needs_belf+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 ac_cpp='$CPP $CPPFLAGS'
5321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5325 cat >conftest.$ac_ext <<_ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5340 rm -f conftest.$ac_objext conftest$ac_exeext
5341 if { (ac_try="$ac_link"
5343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344 *) ac_try_echo=$ac_try;;
5346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347 (eval "$ac_link") 2>conftest.er1
5349 grep -v '^ *+' conftest.er1 >conftest.err
5351 cat conftest.err >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } && {
5354 test -z "$ac_c_werror_flag" ||
5355 test ! -s conftest.err
5356 } && test -s conftest$ac_exeext &&
5357 $as_test_x conftest$ac_exeext; then
5358 lt_cv_cc_needs_belf=yes
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5363 lt_cv_cc_needs_belf=no
5366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5367 conftest$ac_exeext conftest.$ac_ext
5369 ac_cpp='$CPP $CPPFLAGS'
5370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5375 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5376 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5377 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5378 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5379 CFLAGS="$SAVE_CFLAGS"
5383 # Find out which ABI we are using.
5384 echo 'int i;' > conftest.$ac_ext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386 (eval $ac_compile) 2>&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; then
5390 case `/usr/bin/file conftest.o` in
5392 case $lt_cv_prog_gnu_ld in
5393 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5394 *) LD="${LD-ld} -64" ;;
5405 need_locks="$enable_libtool_lock"
5409 ac_cpp='$CPP $CPPFLAGS'
5410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5413 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5414 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5415 # On Suns, sometimes $CPP names a directory.
5416 if test -n "$CPP" && test -d "$CPP"; then
5419 if test -z "$CPP"; then
5420 if test "${ac_cv_prog_CPP+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 # Double quotes because CPP needs to be expanded
5424 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5427 for ac_c_preproc_warn_flag in '' yes
5429 # Use a header file that comes with gcc, so configuring glibc
5430 # with a fresh cross-compiler works.
5431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5432 # <limits.h> exists even on freestanding compilers.
5433 # On the NeXT, cc -E runs the code through the compiler's parser,
5434 # not just through cpp. "Syntax error" is here to catch this case.
5435 cat >conftest.$ac_ext <<_ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5442 # include <limits.h>
5444 # include <assert.h>
5448 if { (ac_try="$ac_cpp conftest.$ac_ext"
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5456 grep -v '^ *+' conftest.er1 >conftest.err
5458 cat conftest.err >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } >/dev/null && {
5461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5462 test ! -s conftest.err
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5469 # Broken: fails on valid input.
5473 rm -f conftest.err conftest.$ac_ext
5475 # OK, works on sane cases. Now check whether nonexistent headers
5476 # can be detected and how.
5477 cat >conftest.$ac_ext <<_ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h. */
5483 #include <ac_nonexistent.h>
5485 if { (ac_try="$ac_cpp conftest.$ac_ext"
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5493 grep -v '^ *+' conftest.er1 >conftest.err
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } >/dev/null && {
5498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5499 test ! -s conftest.err
5501 # Broken: success on invalid input.
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5507 # Passes both tests.
5512 rm -f conftest.err conftest.$ac_ext
5515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5516 rm -f conftest.err conftest.$ac_ext
5517 if $ac_preproc_ok; then
5529 { echo "$as_me:$LINENO: result: $CPP" >&5
5530 echo "${ECHO_T}$CPP" >&6; }
5532 for ac_c_preproc_warn_flag in '' yes
5534 # Use a header file that comes with gcc, so configuring glibc
5535 # with a fresh cross-compiler works.
5536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5537 # <limits.h> exists even on freestanding compilers.
5538 # On the NeXT, cc -E runs the code through the compiler's parser,
5539 # not just through cpp. "Syntax error" is here to catch this case.
5540 cat >conftest.$ac_ext <<_ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5547 # include <limits.h>
5549 # include <assert.h>
5553 if { (ac_try="$ac_cpp conftest.$ac_ext"
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5561 grep -v '^ *+' conftest.er1 >conftest.err
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } >/dev/null && {
5566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5567 test ! -s conftest.err
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5574 # Broken: fails on valid input.
5578 rm -f conftest.err conftest.$ac_ext
5580 # OK, works on sane cases. Now check whether nonexistent headers
5581 # can be detected and how.
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 #include <ac_nonexistent.h>
5590 if { (ac_try="$ac_cpp conftest.$ac_ext"
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5598 grep -v '^ *+' conftest.er1 >conftest.err
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } >/dev/null && {
5603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5604 test ! -s conftest.err
5606 # Broken: success on invalid input.
5609 echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5612 # Passes both tests.
5617 rm -f conftest.err conftest.$ac_ext
5620 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5621 rm -f conftest.err conftest.$ac_ext
5622 if $ac_preproc_ok; then
5625 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5626 See \`config.log' for more details." >&5
5627 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5628 See \`config.log' for more details." >&2;}
5629 { (exit 1); exit 1; }; }
5633 ac_cpp='$CPP $CPPFLAGS'
5634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5640 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5641 if test "${ac_cv_header_stdc+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 cat >conftest.$ac_ext <<_ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5663 rm -f conftest.$ac_objext
5664 if { (ac_try="$ac_compile"
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_compile") 2>conftest.er1
5672 grep -v '^ *+' conftest.er1 >conftest.err
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } && {
5677 test -z "$ac_c_werror_flag" ||
5678 test ! -s conftest.err
5679 } && test -s conftest.$ac_objext; then
5680 ac_cv_header_stdc=yes
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5685 ac_cv_header_stdc=no
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690 if test $ac_cv_header_stdc = yes; then
5691 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5692 cat >conftest.$ac_ext <<_ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5702 $EGREP "memchr" >/dev/null 2>&1; then
5705 ac_cv_header_stdc=no
5711 if test $ac_cv_header_stdc = yes; then
5712 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5713 cat >conftest.$ac_ext <<_ACEOF
5716 cat confdefs.h >>conftest.$ac_ext
5717 cat >>conftest.$ac_ext <<_ACEOF
5718 /* end confdefs.h. */
5722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5723 $EGREP "free" >/dev/null 2>&1; then
5726 ac_cv_header_stdc=no
5732 if test $ac_cv_header_stdc = yes; then
5733 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5734 if test "$cross_compiling" = yes; then
5737 cat >conftest.$ac_ext <<_ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5745 #if ((' ' & 0x0FF) == 0x020)
5746 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5747 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5749 # define ISLOWER(c) \
5750 (('a' <= (c) && (c) <= 'i') \
5751 || ('j' <= (c) && (c) <= 'r') \
5752 || ('s' <= (c) && (c) <= 'z'))
5753 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5756 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5761 for (i = 0; i < 256; i++)
5762 if (XOR (islower (i), ISLOWER (i))
5763 || toupper (i) != TOUPPER (i))
5768 rm -f conftest$ac_exeext
5769 if { (ac_try="$ac_link"
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_link") 2>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5779 { (case "(($ac_try" in
5780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_try") 2>&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5790 echo "$as_me: program exited with status $ac_status" >&5
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5795 ac_cv_header_stdc=no
5797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5803 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5804 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5805 if test $ac_cv_header_stdc = yes; then
5807 cat >>confdefs.h <<\_ACEOF
5808 #define STDC_HEADERS 1
5813 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5823 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5824 inttypes.h stdint.h unistd.h
5826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 cat >conftest.$ac_ext <<_ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838 $ac_includes_default
5840 #include <$ac_header>
5842 rm -f conftest.$ac_objext
5843 if { (ac_try="$ac_compile"
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_compile") 2>conftest.er1
5851 grep -v '^ *+' conftest.er1 >conftest.err
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } && {
5856 test -z "$ac_c_werror_flag" ||
5857 test ! -s conftest.err
5858 } && test -s conftest.$ac_objext; then
5859 eval "$as_ac_Header=yes"
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5864 eval "$as_ac_Header=no"
5867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5869 ac_res=`eval echo '${'$as_ac_Header'}'`
5870 { echo "$as_me:$LINENO: result: $ac_res" >&5
5871 echo "${ECHO_T}$ac_res" >&6; }
5872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5873 cat >>confdefs.h <<_ACEOF
5874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5883 for ac_header in dlfcn.h
5885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 ac_res=`eval echo '${'$as_ac_Header'}'`
5893 { echo "$as_me:$LINENO: result: $ac_res" >&5
5894 echo "${ECHO_T}$ac_res" >&6; }
5896 # Is the header compilable?
5897 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5899 cat >conftest.$ac_ext <<_ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 $ac_includes_default
5906 #include <$ac_header>
5908 rm -f conftest.$ac_objext
5909 if { (ac_try="$ac_compile"
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_compile") 2>conftest.er1
5917 grep -v '^ *+' conftest.er1 >conftest.err
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } && {
5922 test -z "$ac_c_werror_flag" ||
5923 test ! -s conftest.err
5924 } && test -s conftest.$ac_objext; then
5925 ac_header_compiler=yes
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5930 ac_header_compiler=no
5933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5935 echo "${ECHO_T}$ac_header_compiler" >&6; }
5937 # Is the header present?
5938 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5940 cat >conftest.$ac_ext <<_ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5946 #include <$ac_header>
5948 if { (ac_try="$ac_cpp conftest.$ac_ext"
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5956 grep -v '^ *+' conftest.er1 >conftest.err
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } >/dev/null && {
5961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5962 test ! -s conftest.err
5964 ac_header_preproc=yes
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5969 ac_header_preproc=no
5972 rm -f conftest.err conftest.$ac_ext
5973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5974 echo "${ECHO_T}$ac_header_preproc" >&6; }
5976 # So? What about this header?
5977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5983 ac_header_preproc=yes
5986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5989 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5990 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5992 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5993 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5999 ## ----------------------------- ##
6000 ## Report this to senna@razil.jp ##
6001 ## ----------------------------- ##
6003 ) | sed "s/^/$as_me: WARNING: /" >&2
6006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 eval "$as_ac_Header=\$ac_header_preproc"
6013 ac_res=`eval echo '${'$as_ac_Header'}'`
6014 { echo "$as_me:$LINENO: result: $ac_res" >&5
6015 echo "${ECHO_T}$ac_res" >&6; }
6018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6019 cat >>confdefs.h <<_ACEOF
6020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6028 ac_cpp='$CXXCPP $CPPFLAGS'
6029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6032 if test -z "$CXX"; then
6033 if test -n "$CCC"; then
6036 if test -n "$ac_tool_prefix"; then
6037 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6043 if test "${ac_cv_prog_CXX+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 if test -n "$CXX"; then
6047 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 if test -n "$CXX"; then
6068 { echo "$as_me:$LINENO: result: $CXX" >&5
6069 echo "${ECHO_T}$CXX" >&6; }
6071 { echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6; }
6076 test -n "$CXX" && break
6079 if test -z "$CXX"; then
6081 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6083 # Extract the first word of "$ac_prog", so it can be a program name with args.
6084 set dummy $ac_prog; ac_word=$2
6085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6087 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 if test -n "$ac_ct_CXX"; then
6091 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6100 ac_cv_prog_ac_ct_CXX="$ac_prog"
6101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6111 if test -n "$ac_ct_CXX"; then
6112 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6113 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6115 { echo "$as_me:$LINENO: result: no" >&5
6116 echo "${ECHO_T}no" >&6; }
6120 test -n "$ac_ct_CXX" && break
6123 if test "x$ac_ct_CXX" = x; then
6126 case $cross_compiling:$ac_tool_warned in
6128 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6129 whose name does not start with the host triplet. If you think this
6130 configuration is useful to you, please write to autoconf@gnu.org." >&5
6131 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6132 whose name does not start with the host triplet. If you think this
6133 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6134 ac_tool_warned=yes ;;
6142 # Provide some information about the compiler.
6143 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6144 ac_compiler=`set X $ac_compile; echo $2`
6145 { (ac_try="$ac_compiler --version >&5"
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151 (eval "$ac_compiler --version >&5") 2>&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }
6155 { (ac_try="$ac_compiler -v >&5"
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161 (eval "$ac_compiler -v >&5") 2>&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }
6165 { (ac_try="$ac_compiler -V >&5"
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_compiler -V >&5") 2>&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }
6176 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6177 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6178 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 cat >conftest.$ac_ext <<_ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6199 rm -f conftest.$ac_objext
6200 if { (ac_try="$ac_compile"
6202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203 *) ac_try_echo=$ac_try;;
6205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206 (eval "$ac_compile") 2>conftest.er1
6208 grep -v '^ *+' conftest.er1 >conftest.err
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } && {
6213 test -z "$ac_cxx_werror_flag" ||
6214 test ! -s conftest.err
6215 } && test -s conftest.$ac_objext; then
6218 echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.$ac_ext >&5
6224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6228 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6229 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6230 GXX=`test $ac_compiler_gnu = yes && echo yes`
6231 ac_test_CXXFLAGS=${CXXFLAGS+set}
6232 ac_save_CXXFLAGS=$CXXFLAGS
6233 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6234 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6235 if test "${ac_cv_prog_cxx_g+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6239 ac_cxx_werror_flag=yes
6242 cat >conftest.$ac_ext <<_ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6257 rm -f conftest.$ac_objext
6258 if { (ac_try="$ac_compile"
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_compile") 2>conftest.er1
6266 grep -v '^ *+' conftest.er1 >conftest.err
6268 cat conftest.err >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } && {
6271 test -z "$ac_cxx_werror_flag" ||
6272 test ! -s conftest.err
6273 } && test -s conftest.$ac_objext; then
6274 ac_cv_prog_cxx_g=yes
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6280 cat >conftest.$ac_ext <<_ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h. */
6295 rm -f conftest.$ac_objext
6296 if { (ac_try="$ac_compile"
6298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299 *) ac_try_echo=$ac_try;;
6301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302 (eval "$ac_compile") 2>conftest.er1
6304 grep -v '^ *+' conftest.er1 >conftest.err
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } && {
6309 test -z "$ac_cxx_werror_flag" ||
6310 test ! -s conftest.err
6311 } && test -s conftest.$ac_objext; then
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6317 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6319 cat >conftest.$ac_ext <<_ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6334 rm -f conftest.$ac_objext
6335 if { (ac_try="$ac_compile"
6337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338 *) ac_try_echo=$ac_try;;
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_compile") 2>conftest.er1
6343 grep -v '^ *+' conftest.er1 >conftest.err
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } && {
6348 test -z "$ac_cxx_werror_flag" ||
6349 test ! -s conftest.err
6350 } && test -s conftest.$ac_objext; then
6351 ac_cv_prog_cxx_g=yes
6353 echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6368 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6369 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6370 if test "$ac_test_CXXFLAGS" = set; then
6371 CXXFLAGS=$ac_save_CXXFLAGS
6372 elif test $ac_cv_prog_cxx_g = yes; then
6373 if test "$GXX" = yes; then
6379 if test "$GXX" = yes; then
6386 ac_cpp='$CXXCPP $CPPFLAGS'
6387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6391 depcc="$CXX" am_compiler_list=
6393 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6394 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6395 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6399 # We make a subdir and do the tests there. Otherwise we can end up
6400 # making bogus files that we don't know about and never remove. For
6401 # instance it was reported that on HP-UX the gcc test will end up
6402 # making a dummy file named `D' -- because `-MD' means `put the output
6405 # Copy depcomp to subdir because otherwise we won't find it if we're
6406 # using a relative directory.
6407 cp "$am_depcomp" conftest.dir
6409 # We will build objects and dependencies in a subdirectory because
6410 # it helps to detect inapplicable dependency modes. For instance
6411 # both Tru64's cc and ICC support -MD to output dependencies as a
6412 # side effect of compilation, but ICC will put the dependencies in
6413 # the current directory while Tru64 will put them in the object
6417 am_cv_CXX_dependencies_compiler_type=none
6418 if test "$am_compiler_list" = ""; then
6419 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6421 for depmode in $am_compiler_list; do
6422 # Setup a source with many dependencies, because some compilers
6423 # like to wrap large dependency lists on column 80 (with \), and
6424 # we should not choose a depcomp mode which is confused by this.
6426 # We need to recreate these files for each test, as the compiler may
6427 # overwrite some of them when testing with obscure command lines.
6428 # This happens at least with the AIX C compiler.
6430 for i in 1 2 3 4 5 6; do
6431 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6432 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6433 # Solaris 8's {/usr,}/bin/sh.
6434 touch sub/conftst$i.h
6436 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6440 # after this tag, mechanisms are not by side-effect, so they'll
6441 # only be used when explicitly requested
6442 if test "x$enable_dependency_tracking" = xyes; then
6450 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6451 # mode. It turns out that the SunPro C++ compiler does not properly
6452 # handle `-M -o', and we need to detect this.
6453 if depmode=$depmode \
6454 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6455 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6456 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6457 >/dev/null 2>conftest.err &&
6458 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6459 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6460 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6461 # icc doesn't choke on unknown options, it will just issue warnings
6462 # or remarks (even with -Werror). So we grep stderr for any message
6463 # that says an option was ignored or not supported.
6464 # When given -MP, icc 7.0 and 7.1 complain thusly:
6465 # icc: Command line warning: ignoring option '-M'; no argument required
6466 # The diagnosis changed in icc 8.0:
6467 # icc: Command line remark: option '-MP' not supported
6468 if (grep 'ignoring option' conftest.err ||
6469 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6470 am_cv_CXX_dependencies_compiler_type=$depmode
6479 am_cv_CXX_dependencies_compiler_type=none
6483 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6484 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6485 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6490 test "x$enable_dependency_tracking" != xno \
6491 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6492 am__fastdepCXX_TRUE=
6493 am__fastdepCXX_FALSE='#'
6495 am__fastdepCXX_TRUE='#'
6496 am__fastdepCXX_FALSE=
6502 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6503 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6504 (test "X$CXX" != "Xg++"))) ; then
6506 ac_cpp='$CXXCPP $CPPFLAGS'
6507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6510 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6511 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6512 if test -z "$CXXCPP"; then
6513 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 # Double quotes because CXXCPP needs to be expanded
6517 for CXXCPP in "$CXX -E" "/lib/cpp"
6520 for ac_cxx_preproc_warn_flag in '' yes
6522 # Use a header file that comes with gcc, so configuring glibc
6523 # with a fresh cross-compiler works.
6524 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6525 # <limits.h> exists even on freestanding compilers.
6526 # On the NeXT, cc -E runs the code through the compiler's parser,
6527 # not just through cpp. "Syntax error" is here to catch this case.
6528 cat >conftest.$ac_ext <<_ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6535 # include <limits.h>
6537 # include <assert.h>
6541 if { (ac_try="$ac_cpp conftest.$ac_ext"
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6549 grep -v '^ *+' conftest.er1 >conftest.err
6551 cat conftest.err >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } >/dev/null && {
6554 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6555 test ! -s conftest.err
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6562 # Broken: fails on valid input.
6566 rm -f conftest.err conftest.$ac_ext
6568 # OK, works on sane cases. Now check whether nonexistent headers
6569 # can be detected and how.
6570 cat >conftest.$ac_ext <<_ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 #include <ac_nonexistent.h>
6578 if { (ac_try="$ac_cpp conftest.$ac_ext"
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6586 grep -v '^ *+' conftest.er1 >conftest.err
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } >/dev/null && {
6591 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6592 test ! -s conftest.err
6594 # Broken: success on invalid input.
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6600 # Passes both tests.
6605 rm -f conftest.err conftest.$ac_ext
6608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6609 rm -f conftest.err conftest.$ac_ext
6610 if $ac_preproc_ok; then
6615 ac_cv_prog_CXXCPP=$CXXCPP
6618 CXXCPP=$ac_cv_prog_CXXCPP
6620 ac_cv_prog_CXXCPP=$CXXCPP
6622 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6623 echo "${ECHO_T}$CXXCPP" >&6; }
6625 for ac_cxx_preproc_warn_flag in '' yes
6627 # Use a header file that comes with gcc, so configuring glibc
6628 # with a fresh cross-compiler works.
6629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6630 # <limits.h> exists even on freestanding compilers.
6631 # On the NeXT, cc -E runs the code through the compiler's parser,
6632 # not just through cpp. "Syntax error" is here to catch this case.
6633 cat >conftest.$ac_ext <<_ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6640 # include <limits.h>
6642 # include <assert.h>
6646 if { (ac_try="$ac_cpp conftest.$ac_ext"
6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649 *) ac_try_echo=$ac_try;;
6651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6654 grep -v '^ *+' conftest.er1 >conftest.err
6656 cat conftest.err >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } >/dev/null && {
6659 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6660 test ! -s conftest.err
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6667 # Broken: fails on valid input.
6671 rm -f conftest.err conftest.$ac_ext
6673 # OK, works on sane cases. Now check whether nonexistent headers
6674 # can be detected and how.
6675 cat >conftest.$ac_ext <<_ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 #include <ac_nonexistent.h>
6683 if { (ac_try="$ac_cpp conftest.$ac_ext"
6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686 *) ac_try_echo=$ac_try;;
6688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6691 grep -v '^ *+' conftest.er1 >conftest.err
6693 cat conftest.err >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } >/dev/null && {
6696 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6697 test ! -s conftest.err
6699 # Broken: success on invalid input.
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6705 # Passes both tests.
6710 rm -f conftest.err conftest.$ac_ext
6713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6714 rm -f conftest.err conftest.$ac_ext
6715 if $ac_preproc_ok; then
6718 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6719 See \`config.log' for more details." >&5
6720 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6721 See \`config.log' for more details." >&2;}
6722 { (exit 1); exit 1; }; }
6726 ac_cpp='$CXXCPP $CPPFLAGS'
6727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6735 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6736 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6737 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6738 if test -n "$ac_tool_prefix"; then
6739 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
6741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_prog_F77+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 if test -n "$F77"; then
6749 ac_cv_prog_F77="$F77" # Let the user override the test.
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 if test -n "$F77"; then
6770 { echo "$as_me:$LINENO: result: $F77" >&5
6771 echo "${ECHO_T}$F77" >&6; }
6773 { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6778 test -n "$F77" && break
6781 if test -z "$F77"; then
6783 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
6785 # Extract the first word of "$ac_prog", so it can be a program name with args.
6786 set dummy $ac_prog; ac_word=$2
6787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 if test -n "$ac_ct_F77"; then
6793 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_prog_ac_ct_F77="$ac_prog"
6803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6813 if test -n "$ac_ct_F77"; then
6814 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6815 echo "${ECHO_T}$ac_ct_F77" >&6; }
6817 { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6822 test -n "$ac_ct_F77" && break
6825 if test "x$ac_ct_F77" = x; then
6828 case $cross_compiling:$ac_tool_warned in
6830 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6831 whose name does not start with the host triplet. If you think this
6832 configuration is useful to you, please write to autoconf@gnu.org." >&5
6833 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6834 whose name does not start with the host triplet. If you think this
6835 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6836 ac_tool_warned=yes ;;
6843 # Provide some information about the compiler.
6844 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6845 ac_compiler=`set X $ac_compile; echo $2`
6846 { (ac_try="$ac_compiler --version >&5"
6848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6852 (eval "$ac_compiler --version >&5") 2>&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); }
6856 { (ac_try="$ac_compiler -v >&5"
6858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6859 *) ac_try_echo=$ac_try;;
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_compiler -v >&5") 2>&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }
6866 { (ac_try="$ac_compiler -V >&5"
6868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869 *) ac_try_echo=$ac_try;;
6871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6872 (eval "$ac_compiler -V >&5") 2>&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }
6878 # If we don't use `.F' as extension, the preprocessor is not run on the
6879 # input file. (Note that this only needs to work for GNU compilers.)
6882 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6883 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6884 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 cat >conftest.$ac_ext <<_ACEOF
6895 rm -f conftest.$ac_objext
6896 if { (ac_try="$ac_compile"
6898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902 (eval "$ac_compile") 2>conftest.er1
6904 grep -v '^ *+' conftest.er1 >conftest.err
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } && {
6909 test -z "$ac_f77_werror_flag" ||
6910 test ! -s conftest.err
6911 } && test -s conftest.$ac_objext; then
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6924 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6925 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6927 ac_test_FFLAGS=${FFLAGS+set}
6928 ac_save_FFLAGS=$FFLAGS
6930 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6931 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6932 if test "${ac_cv_prog_f77_g+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 cat >conftest.$ac_ext <<_ACEOF
6941 rm -f conftest.$ac_objext
6942 if { (ac_try="$ac_compile"
6944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6945 *) ac_try_echo=$ac_try;;
6947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6948 (eval "$ac_compile") 2>conftest.er1
6950 grep -v '^ *+' conftest.er1 >conftest.err
6952 cat conftest.err >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } && {
6955 test -z "$ac_f77_werror_flag" ||
6956 test ! -s conftest.err
6957 } && test -s conftest.$ac_objext; then
6958 ac_cv_prog_f77_g=yes
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6969 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6970 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6971 if test "$ac_test_FFLAGS" = set; then
6972 FFLAGS=$ac_save_FFLAGS
6973 elif test $ac_cv_prog_f77_g = yes; then
6974 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6980 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6987 G77=`test $ac_compiler_gnu = yes && echo yes`
6989 ac_cpp='$CPP $CPPFLAGS'
6990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6996 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6998 # find the maximum length of command line arguments
6999 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7000 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7001 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 # On DJGPP, this test can blow up pretty badly due to problems in libc
7010 # (any single argument exceeding 2000 bytes causes a buffer overrun
7011 # during glob expansion). Even if it were fixed, the result of this
7012 # check would be larger than it should be.
7013 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7017 # Under GNU Hurd, this test is not required because there is
7018 # no limit to the length of command line arguments.
7019 # Libtool will interpret -1 as no limit whatsoever
7020 lt_cv_sys_max_cmd_len=-1;
7024 # On Win9x/ME, this test blows up -- it succeeds, but takes
7025 # about 5 minutes as the teststring grows exponentially.
7026 # Worse, since 9x/ME are not pre-emptively multitasking,
7027 # you end up with a "frozen" computer, even though with patience
7028 # the test eventually succeeds (with a max line length of 256k).
7029 # Instead, let's just punt: use the minimum linelength reported by
7030 # all of the supported platforms: 8192 (on NT/2K/XP).
7031 lt_cv_sys_max_cmd_len=8192;
7035 # On AmigaOS with pdksh, this test takes hours, literally.
7036 # So we just punt and use a minimum line length of 8192.
7037 lt_cv_sys_max_cmd_len=8192;
7040 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7041 # This has been around since 386BSD, at least. Likely further.
7042 if test -x /sbin/sysctl; then
7043 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7044 elif test -x /usr/sbin/sysctl; then
7045 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7047 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7049 # And add a safety zone
7050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7055 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7056 lt_cv_sys_max_cmd_len=196608
7060 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7061 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7062 # nice to cause kernel panics so lets avoid the loop below.
7063 # First set a reasonable default.
7064 lt_cv_sys_max_cmd_len=16384
7066 if test -x /sbin/sysconfig; then
7067 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7068 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7073 lt_cv_sys_max_cmd_len=102400
7075 sysv5* | sco5v6* | sysv4.2uw2*)
7076 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7077 if test -n "$kargmax"; then
7078 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7080 lt_cv_sys_max_cmd_len=32768
7084 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7085 if test -n "$lt_cv_sys_max_cmd_len"; then
7086 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7087 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7089 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7090 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7091 = "XX$teststring") >/dev/null 2>&1 &&
7092 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7093 lt_cv_sys_max_cmd_len=$new_result &&
7094 test $i != 17 # 1/2 MB should be enough
7097 teststring=$teststring$teststring
7100 # Add a significant safety factor because C++ compilers can tack on massive
7101 # amounts of additional arguments before passing them to the linker.
7102 # It appears as though 1/2 is a usable value.
7103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7110 if test -n $lt_cv_sys_max_cmd_len ; then
7111 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7112 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7114 { echo "$as_me:$LINENO: result: none" >&5
7115 echo "${ECHO_T}none" >&6; }
7122 # Check for command to grab the raw symbol name followed by C symbol from nm.
7123 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7124 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7125 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 # These are sane defaults that work on at least a few old systems.
7130 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7132 # Character class describing NM global symbol codes.
7133 symcode='[BCDEGRST]'
7135 # Regexp to match symbols that can be accessed directly from C.
7136 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7138 # Transform an extracted symbol line into a proper C declaration
7139 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7141 # Transform an extracted symbol line into symbol name and symbol address
7142 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'"
7144 # Define system-specific variables.
7149 cygwin* | mingw* | pw32*)
7150 symcode='[ABCDGISTW]'
7152 hpux*) # Its linker distinguishes data from code symbols
7153 if test "$host_cpu" = ia64; then
7154 symcode='[ABCDEGRST]'
7156 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7157 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'"
7159 linux* | k*bsd*-gnu)
7160 if test "$host_cpu" = ia64; then
7161 symcode='[ABCDGIRSTW]'
7162 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7163 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'"
7167 symcode='[BCDEGRST]'
7170 symcode='[BCDEGQRST]'
7181 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7189 # Handle CRLF in mingw tool chain
7193 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7197 # If we're using GNU nm, then use its standard symbol codes.
7198 case `$NM -V 2>&1` in
7199 *GNU* | *'with BFD'*)
7200 symcode='[ABCDGIRSTW]' ;;
7203 # Try without a prefix undercore, then with it.
7204 for ac_symprfx in "" "_"; do
7206 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7207 symxfrm="\\1 $ac_symprfx\\2 \\2"
7209 # Write the raw and C identifiers.
7210 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7212 # Check to see that the pipe works correctly.
7216 cat > conftest.$ac_ext <<EOF
7221 void nm_test_func(){}
7225 int main(){nm_test_var='a';nm_test_func();return(0);}
7228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7229 (eval $ac_compile) 2>&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; then
7233 # Now try to grab the symbols.
7235 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7236 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && test -s "$nlist"; then
7240 # Try sorting and uniquifying the output.
7241 if sort "$nlist" | uniq > "$nlist"T; then
7242 mv -f "$nlist"T "$nlist"
7247 # Make sure that we snagged all the symbols we need.
7248 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7249 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7250 cat <<EOF > conftest.$ac_ext
7256 # Now generate the symbol file.
7257 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7259 cat <<EOF >> conftest.$ac_ext
7260 #if defined (__STDC__) && __STDC__
7261 # define lt_ptr_t void *
7263 # define lt_ptr_t char *
7267 /* The mapping between symbol names and symbols. */
7272 lt_preloaded_symbols[] =
7275 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7276 cat <<\EOF >> conftest.$ac_ext
7284 # Now try linking the two files.
7285 mv conftest.$ac_objext conftstm.$ac_objext
7286 lt_save_LIBS="$LIBS"
7287 lt_save_CFLAGS="$CFLAGS"
7288 LIBS="conftstm.$ac_objext"
7289 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7291 (eval $ac_link) 2>&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7297 LIBS="$lt_save_LIBS"
7298 CFLAGS="$lt_save_CFLAGS"
7300 echo "cannot find nm_test_func in $nlist" >&5
7303 echo "cannot find nm_test_var in $nlist" >&5
7306 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7309 echo "$progname: failed program was:" >&5
7310 cat conftest.$ac_ext >&5
7312 rm -f conftest* conftst*
7314 # Do not use the global_symbol_pipe unless it works.
7315 if test "$pipe_works" = yes; then
7318 lt_cv_sys_global_symbol_pipe=
7324 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7325 lt_cv_sys_global_symbol_to_cdecl=
7327 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7328 { echo "$as_me:$LINENO: result: failed" >&5
7329 echo "${ECHO_T}failed" >&6; }
7331 { echo "$as_me:$LINENO: result: ok" >&5
7332 echo "${ECHO_T}ok" >&6; }
7335 { echo "$as_me:$LINENO: checking for objdir" >&5
7336 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7337 if test "${lt_cv_objdir+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 rm -f .libs 2>/dev/null
7341 mkdir .libs 2>/dev/null
7342 if test -d .libs; then
7345 # MS-DOS does not allow filenames that begin with a dot.
7348 rmdir .libs 2>/dev/null
7350 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7351 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7352 objdir=$lt_cv_objdir
7360 # AIX sometimes has problems with the GCC collect2 program. For some
7361 # reason, if we set the COLLECT_NAMES environment variable, the problems
7362 # vanish in a puff of smoke.
7363 if test "X${COLLECT_NAMES+set}" != Xset; then
7365 export COLLECT_NAMES
7370 # Sed substitution that helps us do robust quoting. It backslashifies
7371 # metacharacters that are still active within double-quoted strings.
7372 Xsed='sed -e 1s/^X//'
7373 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7375 # Same as above, but do not quote variable references.
7376 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7378 # Sed substitution to delay expansion of an escaped shell variable in a
7379 # double_quote_subst'ed string.
7380 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7382 # Sed substitution to avoid accidental globbing in evaled expressions
7383 no_glob_subst='s/\*/\\\*/g'
7389 default_ofile=libtool
7390 can_build_shared=yes
7392 # All known linkers require a `.a' archive for static linking (except MSVC,
7393 # which needs '.lib').
7395 ltmain="$ac_aux_dir/ltmain.sh"
7396 ofile="$default_ofile"
7397 with_gnu_ld="$lt_cv_prog_gnu_ld"
7399 if test -n "$ac_tool_prefix"; then
7400 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7401 set dummy ${ac_tool_prefix}ar; ac_word=$2
7402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404 if test "${ac_cv_prog_AR+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 if test -n "$AR"; then
7408 ac_cv_prog_AR="$AR" # Let the user override the test.
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417 ac_cv_prog_AR="${ac_tool_prefix}ar"
7418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 if test -n "$AR"; then
7429 { echo "$as_me:$LINENO: result: $AR" >&5
7430 echo "${ECHO_T}$AR" >&6; }
7432 { echo "$as_me:$LINENO: result: no" >&5
7433 echo "${ECHO_T}no" >&6; }
7438 if test -z "$ac_cv_prog_AR"; then
7440 # Extract the first word of "ar", so it can be a program name with args.
7441 set dummy ar; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 if test -n "$ac_ct_AR"; then
7448 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7457 ac_cv_prog_ac_ct_AR="ar"
7458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7468 if test -n "$ac_ct_AR"; then
7469 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7470 echo "${ECHO_T}$ac_ct_AR" >&6; }
7472 { echo "$as_me:$LINENO: result: no" >&5
7473 echo "${ECHO_T}no" >&6; }
7476 if test "x$ac_ct_AR" = x; then
7479 case $cross_compiling:$ac_tool_warned in
7481 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7482 whose name does not start with the host triplet. If you think this
7483 configuration is useful to you, please write to autoconf@gnu.org." >&5
7484 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7485 whose name does not start with the host triplet. If you think this
7486 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7487 ac_tool_warned=yes ;;
7495 if test -n "$ac_tool_prefix"; then
7496 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7497 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7500 if test "${ac_cv_prog_RANLIB+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 if test -n "$RANLIB"; then
7504 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7513 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 RANLIB=$ac_cv_prog_RANLIB
7524 if test -n "$RANLIB"; then
7525 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7526 echo "${ECHO_T}$RANLIB" >&6; }
7528 { echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6; }
7534 if test -z "$ac_cv_prog_RANLIB"; then
7535 ac_ct_RANLIB=$RANLIB
7536 # Extract the first word of "ranlib", so it can be a program name with args.
7537 set dummy ranlib; ac_word=$2
7538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 if test -n "$ac_ct_RANLIB"; then
7544 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553 ac_cv_prog_ac_ct_RANLIB="ranlib"
7554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7564 if test -n "$ac_ct_RANLIB"; then
7565 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7566 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7568 { echo "$as_me:$LINENO: result: no" >&5
7569 echo "${ECHO_T}no" >&6; }
7572 if test "x$ac_ct_RANLIB" = x; then
7575 case $cross_compiling:$ac_tool_warned in
7577 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7578 whose name does not start with the host triplet. If you think this
7579 configuration is useful to you, please write to autoconf@gnu.org." >&5
7580 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7581 whose name does not start with the host triplet. If you think this
7582 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7583 ac_tool_warned=yes ;;
7585 RANLIB=$ac_ct_RANLIB
7588 RANLIB="$ac_cv_prog_RANLIB"
7591 if test -n "$ac_tool_prefix"; then
7592 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7593 set dummy ${ac_tool_prefix}strip; ac_word=$2
7594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596 if test "${ac_cv_prog_STRIP+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 if test -n "$STRIP"; then
7600 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 test -z "$as_dir" && as_dir=.
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7609 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 STRIP=$ac_cv_prog_STRIP
7620 if test -n "$STRIP"; then
7621 { echo "$as_me:$LINENO: result: $STRIP" >&5
7622 echo "${ECHO_T}$STRIP" >&6; }
7624 { echo "$as_me:$LINENO: result: no" >&5
7625 echo "${ECHO_T}no" >&6; }
7630 if test -z "$ac_cv_prog_STRIP"; then
7632 # Extract the first word of "strip", so it can be a program name with args.
7633 set dummy strip; ac_word=$2
7634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7636 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 if test -n "$ac_ct_STRIP"; then
7640 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_prog_ac_ct_STRIP="strip"
7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7660 if test -n "$ac_ct_STRIP"; then
7661 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7662 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7664 { echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6; }
7668 if test "x$ac_ct_STRIP" = x; then
7671 case $cross_compiling:$ac_tool_warned in
7673 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7674 whose name does not start with the host triplet. If you think this
7675 configuration is useful to you, please write to autoconf@gnu.org." >&5
7676 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7677 whose name does not start with the host triplet. If you think this
7678 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7679 ac_tool_warned=yes ;;
7684 STRIP="$ac_cv_prog_STRIP"
7689 old_CFLAGS="$CFLAGS"
7691 # Set sane defaults for various variables
7692 test -z "$AR" && AR=ar
7693 test -z "$AR_FLAGS" && AR_FLAGS=cru
7694 test -z "$AS" && AS=as
7695 test -z "$CC" && CC=cc
7696 test -z "$LTCC" && LTCC=$CC
7697 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7698 test -z "$DLLTOOL" && DLLTOOL=dlltool
7699 test -z "$LD" && LD=ld
7700 test -z "$LN_S" && LN_S="ln -s"
7701 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7702 test -z "$NM" && NM=nm
7703 test -z "$SED" && SED=sed
7704 test -z "$OBJDUMP" && OBJDUMP=objdump
7705 test -z "$RANLIB" && RANLIB=:
7706 test -z "$STRIP" && STRIP=:
7707 test -z "$ac_objext" && ac_objext=o
7709 # Determine commands to create old-style static archives.
7710 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7711 old_postinstall_cmds='chmod 644 $oldlib'
7712 old_postuninstall_cmds=
7714 if test -n "$RANLIB"; then
7717 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7720 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7723 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7726 for cc_temp in $compiler""; do
7728 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7729 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7734 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7737 # Only perform the check for file, if the check method requires it
7738 case $deplibs_check_method in
7740 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7741 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7742 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7743 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7751 lt_save_MAGIC_CMD="$MAGIC_CMD"
7752 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7753 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7754 for ac_dir in $ac_dummy; do
7756 test -z "$ac_dir" && ac_dir=.
7757 if test -f $ac_dir/${ac_tool_prefix}file; then
7758 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7759 if test -n "$file_magic_test_file"; then
7760 case $deplibs_check_method in
7762 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7763 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7764 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7765 $EGREP "$file_magic_regex" > /dev/null; then
7770 *** Warning: the command libtool uses to detect shared libraries,
7771 *** $file_magic_cmd, produces output that libtool cannot recognize.
7772 *** The result is that libtool may fail to recognize shared libraries
7773 *** as such. This will affect the creation of libtool libraries that
7774 *** depend on shared libraries, but programs linked with such libtool
7775 *** libraries will work regardless of this problem. Nevertheless, you
7776 *** may want to report the problem to your system manager and/or to
7777 *** bug-libtool@gnu.org
7787 MAGIC_CMD="$lt_save_MAGIC_CMD"
7792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7793 if test -n "$MAGIC_CMD"; then
7794 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7795 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7797 { echo "$as_me:$LINENO: result: no" >&5
7798 echo "${ECHO_T}no" >&6; }
7801 if test -z "$lt_cv_path_MAGIC_CMD"; then
7802 if test -n "$ac_tool_prefix"; then
7803 { echo "$as_me:$LINENO: checking for file" >&5
7804 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7805 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7813 lt_save_MAGIC_CMD="$MAGIC_CMD"
7814 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7815 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7816 for ac_dir in $ac_dummy; do
7818 test -z "$ac_dir" && ac_dir=.
7819 if test -f $ac_dir/file; then
7820 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7821 if test -n "$file_magic_test_file"; then
7822 case $deplibs_check_method in
7824 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7825 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7826 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7827 $EGREP "$file_magic_regex" > /dev/null; then
7832 *** Warning: the command libtool uses to detect shared libraries,
7833 *** $file_magic_cmd, produces output that libtool cannot recognize.
7834 *** The result is that libtool may fail to recognize shared libraries
7835 *** as such. This will affect the creation of libtool libraries that
7836 *** depend on shared libraries, but programs linked with such libtool
7837 *** libraries will work regardless of this problem. Nevertheless, you
7838 *** may want to report the problem to your system manager and/or to
7839 *** bug-libtool@gnu.org
7849 MAGIC_CMD="$lt_save_MAGIC_CMD"
7854 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7855 if test -n "$MAGIC_CMD"; then
7856 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7857 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7859 { echo "$as_me:$LINENO: result: no" >&5
7860 echo "${ECHO_T}no" >&6; }
7875 # Check whether --enable-libtool-lock was given.
7876 if test "${enable_libtool_lock+set}" = set; then
7877 enableval=$enable_libtool_lock;
7880 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7883 # Check whether --with-pic was given.
7884 if test "${with_pic+set}" = set; then
7885 withval=$with_pic; pic_mode="$withval"
7890 test -z "$pic_mode" && pic_mode=default
7892 # Use C for the default configuration in the libtool script
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7902 # Source file extension for C test sources.
7905 # Object file extension for compiled C test sources.
7909 # Code to be used in simple compile tests
7910 lt_simple_compile_test_code="int some_variable = 0;"
7912 # Code to be used in simple link tests
7913 lt_simple_link_test_code='int main(){return(0);}'
7916 # If no C compiler was specified, use CC.
7919 # If no C compiler flags were specified, use CFLAGS.
7920 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7922 # Allow CC to be a program name with arguments.
7926 # save warnings/boilerplate of simple test code
7927 ac_outfile=conftest.$ac_objext
7928 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7929 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7930 _lt_compiler_boilerplate=`cat conftest.err`
7933 ac_outfile=conftest.$ac_objext
7934 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7935 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7936 _lt_linker_boilerplate=`cat conftest.err`
7941 lt_prog_compiler_no_builtin_flag=
7943 if test "$GCC" = yes; then
7944 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7947 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7948 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7949 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 lt_cv_prog_compiler_rtti_exceptions=no
7953 ac_outfile=conftest.$ac_objext
7954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7955 lt_compiler_flag="-fno-rtti -fno-exceptions"
7956 # Insert the option either (1) after the last *FLAGS variable, or
7957 # (2) before a word containing "conftest.", or (3) at the end.
7958 # Note that $ac_compile itself does not contain backslashes and begins
7959 # with a dollar sign (not a hyphen), so the echo should work correctly.
7960 # The option is referenced via a variable to avoid confusing sed.
7961 lt_compile=`echo "$ac_compile" | $SED \
7962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7964 -e 's:$: $lt_compiler_flag:'`
7965 (eval echo "\"\$as_me:7965: $lt_compile\"" >&5)
7966 (eval "$lt_compile" 2>conftest.err)
7968 cat conftest.err >&5
7969 echo "$as_me:7969: \$? = $ac_status" >&5
7970 if (exit $ac_status) && test -s "$ac_outfile"; then
7971 # The compiler can only warn and ignore the option if not recognized
7972 # So say no if there are warnings other than the usual output.
7973 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7975 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7976 lt_cv_prog_compiler_rtti_exceptions=yes
7982 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7983 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7985 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7986 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7993 lt_prog_compiler_wl=
7994 lt_prog_compiler_pic=
7995 lt_prog_compiler_static=
7997 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7998 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8000 if test "$GCC" = yes; then
8001 lt_prog_compiler_wl='-Wl,'
8002 lt_prog_compiler_static='-static'
8006 # All AIX code is PIC.
8007 if test "$host_cpu" = ia64; then
8008 # AIX 5 now supports IA64 processor
8009 lt_prog_compiler_static='-Bstatic'
8014 # FIXME: we need at least 68020 code to build shared libraries, but
8015 # adding the `-m68020' flag to GCC prevents building anything better,
8017 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8020 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8021 # PIC is the default for these OSes.
8024 mingw* | cygwin* | pw32* | os2*)
8025 # This hack is so that the source file can tell whether it is being
8026 # built for inclusion in a dll (and should export symbols for example).
8027 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8028 # (--disable-auto-import) libraries
8029 lt_prog_compiler_pic='-DDLL_EXPORT'
8032 darwin* | rhapsody*)
8033 # PIC is the default on this platform
8034 # Common symbols not allowed in MH_DYLIB files
8035 lt_prog_compiler_pic='-fno-common'
8039 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8040 # Instead, we relocate shared libraries at runtime.
8044 # Just because we use GCC doesn't mean we suddenly get shared libraries
8045 # on systems that don't support them.
8046 lt_prog_compiler_can_build_shared=no
8051 if test -d /usr/nec; then
8052 lt_prog_compiler_pic=-Kconform_pic
8057 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8064 lt_prog_compiler_pic='-fPIC'
8070 lt_prog_compiler_pic='-fPIC'
8074 # PORTME Check for flag to pass linker flags through the system compiler.
8077 lt_prog_compiler_wl='-Wl,'
8078 if test "$host_cpu" = ia64; then
8079 # AIX 5 now supports IA64 processor
8080 lt_prog_compiler_static='-Bstatic'
8082 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8086 # PIC is the default on this platform
8087 # Common symbols not allowed in MH_DYLIB files
8088 case $cc_basename in
8090 lt_prog_compiler_pic='-qnocommon'
8091 lt_prog_compiler_wl='-Wl,'
8096 mingw* | cygwin* | pw32* | os2*)
8097 # This hack is so that the source file can tell whether it is being
8098 # built for inclusion in a dll (and should export symbols for example).
8099 lt_prog_compiler_pic='-DDLL_EXPORT'
8102 hpux9* | hpux10* | hpux11*)
8103 lt_prog_compiler_wl='-Wl,'
8104 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8111 lt_prog_compiler_pic='+Z'
8114 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8115 lt_prog_compiler_static='${wl}-a ${wl}archive'
8118 irix5* | irix6* | nonstopux*)
8119 lt_prog_compiler_wl='-Wl,'
8120 # PIC (with -KPIC) is the default.
8121 lt_prog_compiler_static='-non_shared'
8125 lt_prog_compiler_pic='-KPIC'
8126 lt_prog_compiler_static='-Bstatic'
8129 linux* | k*bsd*-gnu)
8130 case $cc_basename in
8132 lt_prog_compiler_wl='-Wl,'
8133 lt_prog_compiler_pic='-KPIC'
8134 lt_prog_compiler_static='-static'
8136 pgcc* | pgf77* | pgf90* | pgf95*)
8137 # Portland Group compilers (*not* the Pentium gcc compiler,
8138 # which looks to be a dead project)
8139 lt_prog_compiler_wl='-Wl,'
8140 lt_prog_compiler_pic='-fpic'
8141 lt_prog_compiler_static='-Bstatic'
8144 lt_prog_compiler_wl='-Wl,'
8145 # All Alpha code is PIC.
8146 lt_prog_compiler_static='-non_shared'
8149 case `$CC -V 2>&1 | sed 5q` in
8152 lt_prog_compiler_pic='-KPIC'
8153 lt_prog_compiler_static='-Bstatic'
8154 lt_prog_compiler_wl='-Wl,'
8157 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8158 lt_prog_compiler_pic='-KPIC'
8159 lt_prog_compiler_static='-Bstatic'
8160 lt_prog_compiler_wl=''
8167 osf3* | osf4* | osf5*)
8168 lt_prog_compiler_wl='-Wl,'
8169 # All OSF/1 code is PIC.
8170 lt_prog_compiler_static='-non_shared'
8174 lt_prog_compiler_static='-non_shared'
8178 lt_prog_compiler_pic='-KPIC'
8179 lt_prog_compiler_static='-Bstatic'
8180 case $cc_basename in
8182 lt_prog_compiler_wl='-Qoption ld ';;
8184 lt_prog_compiler_wl='-Wl,';;
8189 lt_prog_compiler_wl='-Qoption ld '
8190 lt_prog_compiler_pic='-PIC'
8191 lt_prog_compiler_static='-Bstatic'
8194 sysv4 | sysv4.2uw2* | sysv4.3*)
8195 lt_prog_compiler_wl='-Wl,'
8196 lt_prog_compiler_pic='-KPIC'
8197 lt_prog_compiler_static='-Bstatic'
8201 if test -d /usr/nec ;then
8202 lt_prog_compiler_pic='-Kconform_pic'
8203 lt_prog_compiler_static='-Bstatic'
8207 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8208 lt_prog_compiler_wl='-Wl,'
8209 lt_prog_compiler_pic='-KPIC'
8210 lt_prog_compiler_static='-Bstatic'
8214 lt_prog_compiler_wl='-Wl,'
8215 lt_prog_compiler_can_build_shared=no
8219 lt_prog_compiler_pic='-pic'
8220 lt_prog_compiler_static='-Bstatic'
8224 lt_prog_compiler_can_build_shared=no
8229 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8230 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8233 # Check to make sure the PIC flag actually works.
8235 if test -n "$lt_prog_compiler_pic"; then
8237 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8238 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8239 if test "${lt_prog_compiler_pic_works+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 lt_prog_compiler_pic_works=no
8243 ac_outfile=conftest.$ac_objext
8244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8245 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8246 # Insert the option either (1) after the last *FLAGS variable, or
8247 # (2) before a word containing "conftest.", or (3) at the end.
8248 # Note that $ac_compile itself does not contain backslashes and begins
8249 # with a dollar sign (not a hyphen), so the echo should work correctly.
8250 # The option is referenced via a variable to avoid confusing sed.
8251 lt_compile=`echo "$ac_compile" | $SED \
8252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8254 -e 's:$: $lt_compiler_flag:'`
8255 (eval echo "\"\$as_me:8255: $lt_compile\"" >&5)
8256 (eval "$lt_compile" 2>conftest.err)
8258 cat conftest.err >&5
8259 echo "$as_me:8259: \$? = $ac_status" >&5
8260 if (exit $ac_status) && test -s "$ac_outfile"; then
8261 # The compiler can only warn and ignore the option if not recognized
8262 # So say no if there are warnings other than the usual output.
8263 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8265 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8266 lt_prog_compiler_pic_works=yes
8272 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8273 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8275 if test x"$lt_prog_compiler_pic_works" = xyes; then
8276 case $lt_prog_compiler_pic in
8278 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8281 lt_prog_compiler_pic=
8282 lt_prog_compiler_can_build_shared=no
8287 # For platforms which do not support PIC, -DPIC is meaningless:
8289 lt_prog_compiler_pic=
8292 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8297 # Check to make sure the static flag actually works.
8299 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8300 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8301 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8302 if test "${lt_prog_compiler_static_works+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 lt_prog_compiler_static_works=no
8306 save_LDFLAGS="$LDFLAGS"
8307 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8308 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8310 # The linker can only warn and ignore the option if not recognized
8311 # So say no if there are warnings
8312 if test -s conftest.err; then
8313 # Append any errors to the config.log.
8314 cat conftest.err 1>&5
8315 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8317 if diff conftest.exp conftest.er2 >/dev/null; then
8318 lt_prog_compiler_static_works=yes
8321 lt_prog_compiler_static_works=yes
8325 LDFLAGS="$save_LDFLAGS"
8328 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8329 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8331 if test x"$lt_prog_compiler_static_works" = xyes; then
8334 lt_prog_compiler_static=
8338 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8339 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8340 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 lt_cv_prog_compiler_c_o=no
8344 $rm -r conftest 2>/dev/null
8348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8350 lt_compiler_flag="-o out/conftest2.$ac_objext"
8351 # Insert the option either (1) after the last *FLAGS variable, or
8352 # (2) before a word containing "conftest.", or (3) at the end.
8353 # Note that $ac_compile itself does not contain backslashes and begins
8354 # with a dollar sign (not a hyphen), so the echo should work correctly.
8355 lt_compile=`echo "$ac_compile" | $SED \
8356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8358 -e 's:$: $lt_compiler_flag:'`
8359 (eval echo "\"\$as_me:8359: $lt_compile\"" >&5)
8360 (eval "$lt_compile" 2>out/conftest.err)
8362 cat out/conftest.err >&5
8363 echo "$as_me:8363: \$? = $ac_status" >&5
8364 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8366 # The compiler can only warn and ignore the option if not recognized
8367 # So say no if there are warnings
8368 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8369 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8370 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8371 lt_cv_prog_compiler_c_o=yes
8376 # SGI C++ compiler will create directory out/ii_files/ for
8377 # template instantiation
8378 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8379 $rm out/* && rmdir out
8385 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8386 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8389 hard_links="nottested"
8390 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8391 # do not overwrite the value of need_locks provided by the user
8392 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8393 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8398 ln conftest.a conftest.b 2>&5 || hard_links=no
8399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8400 { echo "$as_me:$LINENO: result: $hard_links" >&5
8401 echo "${ECHO_T}$hard_links" >&6; }
8402 if test "$hard_links" = no; then
8403 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8404 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8411 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8412 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8415 allow_undefined_flag=
8416 enable_shared_with_static_runtimes=no
8418 archive_expsym_cmds=
8419 old_archive_From_new_cmds=
8420 old_archive_from_expsyms_cmds=
8421 export_dynamic_flag_spec=
8422 whole_archive_flag_spec=
8423 thread_safe_flag_spec=
8424 hardcode_libdir_flag_spec=
8425 hardcode_libdir_flag_spec_ld=
8426 hardcode_libdir_separator=
8429 hardcode_shlibpath_var=unsupported
8430 link_all_deplibs=unknown
8431 hardcode_automatic=no
8434 always_export_symbols=no
8435 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8436 # include_expsyms should be a list of space-separated symbols to be *always*
8437 # included in the symbol list
8439 # exclude_expsyms can be an extended regexp of symbols to exclude
8440 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8441 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8442 # as well as any symbol that contains `d'.
8443 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8444 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8445 # platforms (ab)use it in PIC code, but their linkers get confused if
8446 # the symbol is explicitly referenced. Since portable code cannot
8447 # rely on this symbol name, it's probably fine to never include it in
8448 # preloaded symbol tables.
8449 extract_expsyms_cmds=
8450 # Just being paranoid about ensuring that cc_basename is set.
8451 for cc_temp in $compiler""; do
8453 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8454 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8459 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8462 cygwin* | mingw* | pw32*)
8463 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8464 # When not using gcc, we currently assume that we are using
8465 # Microsoft Visual C++.
8466 if test "$GCC" != yes; then
8471 # we just hope/assume this is gcc and not c89 (= MSVC++)
8480 if test "$with_gnu_ld" = yes; then
8481 # If archive_cmds runs LD, not CC, wlarc should be empty
8484 # Set some defaults for GNU ld with shared library support. These
8485 # are reset later if shared libraries are not supported. Putting them
8486 # here allows them to be overridden if necessary.
8487 runpath_var=LD_RUN_PATH
8488 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8489 export_dynamic_flag_spec='${wl}--export-dynamic'
8490 # ancient GNU ld didn't support --whole-archive et. al.
8491 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8492 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8494 whole_archive_flag_spec=
8496 supports_anon_versioning=no
8497 case `$LD -v 2>/dev/null` in
8498 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8499 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8500 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8501 *\ 2.11.*) ;; # other 2.11 versions
8502 *) supports_anon_versioning=yes ;;
8505 # See if GNU ld supports shared libraries.
8507 aix3* | aix4* | aix5*)
8508 # On AIX/PPC, the GNU linker is very broken
8509 if test "$host_cpu" != ia64; then
8513 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8514 *** to be unable to reliably create shared libraries on AIX.
8515 *** Therefore, libtool is disabling shared libraries support. If you
8516 *** really care for shared libraries, you may want to modify your PATH
8517 *** so that a non-GNU linker is found, and then restart.
8524 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)'
8525 hardcode_libdir_flag_spec='-L$libdir'
8526 hardcode_minus_L=yes
8528 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8529 # that the semantics of dynamic libraries on AmigaOS, at least up
8530 # to version 4, is to share data among multiple programs linked
8531 # with the same dynamic library. Since this doesn't match the
8532 # behavior of shared libraries on other platforms, we can't use
8538 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8539 allow_undefined_flag=unsupported
8540 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8541 # support --undefined. This deserves some investigation. FIXME
8542 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8548 cygwin* | mingw* | pw32*)
8549 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8550 # as there is no search path for DLLs.
8551 hardcode_libdir_flag_spec='-L$libdir'
8552 allow_undefined_flag=unsupported
8553 always_export_symbols=no
8554 enable_shared_with_static_runtimes=yes
8555 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8557 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8559 # If the export-symbols file already is a .def file (1st line
8560 # is EXPORTS), use it as is; otherwise, prepend...
8561 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8562 cp $export_symbols $output_objdir/$soname.def;
8564 echo EXPORTS > $output_objdir/$soname.def;
8565 cat $export_symbols >> $output_objdir/$soname.def;
8567 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8575 hardcode_shlibpath_var=no
8576 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8577 export_dynamic_flag_spec='${wl}-E'
8578 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8579 # Instead, shared libraries are loaded at an image base (0x10000000 by
8580 # default) and relocated if they conflict, which is a slow very memory
8581 # consuming and fragmenting process. To avoid this, we pick a random,
8582 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8583 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8584 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8585 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'
8588 gnu* | linux* | k*bsd*-gnu)
8589 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8591 case $cc_basename,$host_cpu in
8592 pgcc*) # Portland Group C compiler
8593 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'
8594 tmp_addflag=' $pic_flag'
8596 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8597 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'
8598 tmp_addflag=' $pic_flag -Mnomain' ;;
8599 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8600 tmp_addflag=' -i_dynamic' ;;
8601 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8602 tmp_addflag=' -i_dynamic -nofor_main' ;;
8603 ifc* | ifort*) # Intel Fortran compiler
8604 tmp_addflag=' -nofor_main' ;;
8606 case `$CC -V 2>&1 | sed 5q` in
8607 *Sun\ C*) # Sun C 5.9
8608 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'
8609 tmp_sharedflag='-G' ;;
8610 *Sun\ F*) # Sun Fortran 8.3
8611 tmp_sharedflag='-G' ;;
8613 tmp_sharedflag='-shared' ;;
8615 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8617 if test $supports_anon_versioning = yes; then
8618 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8619 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8620 $echo "local: *; };" >> $output_objdir/$libname.ver~
8621 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8629 netbsd* | netbsdelf*-gnu)
8630 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8631 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8635 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8640 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8644 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8645 *** create shared libraries on Solaris systems. Therefore, libtool
8646 *** is disabling shared libraries support. We urge you to upgrade GNU
8647 *** binutils to release 2.9.1 or newer. Another option is to modify
8648 *** your PATH or compiler configuration so that the native linker is
8649 *** used, and then restart.
8652 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8660 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8661 case `$LD -v 2>&1` in
8662 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8666 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8667 *** reliably create shared libraries on SCO systems. Therefore, libtool
8668 *** is disabling shared libraries support. We urge you to upgrade GNU
8669 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8670 *** your PATH or compiler configuration so that the native linker is
8671 *** used, and then restart.
8676 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8677 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8679 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8688 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8691 hardcode_shlibpath_var=no
8695 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8697 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8704 if test "$ld_shlibs" = no; then
8706 hardcode_libdir_flag_spec=
8707 export_dynamic_flag_spec=
8708 whole_archive_flag_spec=
8711 # PORTME fill in a description of your system's linker (not GNU ld)
8714 allow_undefined_flag=unsupported
8715 always_export_symbols=yes
8716 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'
8717 # Note: this linker hardcodes the directories in LIBPATH if there
8718 # are no directories specified by -L.
8719 hardcode_minus_L=yes
8720 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8721 # Neither direct hardcoding nor static linking is supported with a
8723 hardcode_direct=unsupported
8728 if test "$host_cpu" = ia64; then
8729 # On IA64, the linker does run time linking by default, so we don't
8730 # have to do anything special.
8731 aix_use_runtimelinking=no
8732 exp_sym_flag='-Bexport'
8735 # If we're using GNU nm, then we don't want the "-C" option.
8736 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8737 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8738 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'
8740 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'
8742 aix_use_runtimelinking=no
8744 # Test if we are trying to use run time linking or normal
8745 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8746 # need to do runtime linking.
8747 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8748 for ld_flag in $LDFLAGS; do
8749 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8750 aix_use_runtimelinking=yes
8757 exp_sym_flag='-bexport'
8758 no_entry_flag='-bnoentry'
8761 # When large executables or shared objects are built, AIX ld can
8762 # have problems creating the table of contents. If linking a library
8763 # or program results in "error TOC overflow" add -mminimal-toc to
8764 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8765 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8769 hardcode_libdir_separator=':'
8770 link_all_deplibs=yes
8772 if test "$GCC" = yes; then
8773 case $host_os in aix4.[012]|aix4.[012].*)
8774 # We only want to do this on AIX 4.2 and lower, the check
8775 # below for broken collect2 doesn't work under 4.3+
8776 collect2name=`${CC} -print-prog-name=collect2`
8777 if test -f "$collect2name" && \
8778 strings "$collect2name" | grep resolve_lib_name >/dev/null
8780 # We have reworked collect2
8783 # We have old collect2
8784 hardcode_direct=unsupported
8785 # It fails to find uninstalled libraries when the uninstalled
8786 # path is not listed in the libpath. Setting hardcode_minus_L
8787 # to unsupported forces relinking
8788 hardcode_minus_L=yes
8789 hardcode_libdir_flag_spec='-L$libdir'
8790 hardcode_libdir_separator=
8794 shared_flag='-shared'
8795 if test "$aix_use_runtimelinking" = yes; then
8796 shared_flag="$shared_flag "'${wl}-G'
8800 if test "$host_cpu" = ia64; then
8801 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8802 # chokes on -Wl,-G. The following line is correct:
8805 if test "$aix_use_runtimelinking" = yes; then
8806 shared_flag='${wl}-G'
8808 shared_flag='${wl}-bM:SRE'
8813 # It seems that -bexpall does not export symbols beginning with
8814 # underscore (_), so it is better to generate a list of symbols to export.
8815 always_export_symbols=yes
8816 if test "$aix_use_runtimelinking" = yes; then
8817 # Warning - without using the other runtime loading flags (-brtl),
8818 # -berok will link without error, but may produce a broken library.
8819 allow_undefined_flag='-berok'
8820 # Determine the default libpath from the value encoded in an empty executable.
8821 cat >conftest.$ac_ext <<_ACEOF
8824 cat confdefs.h >>conftest.$ac_ext
8825 cat >>conftest.$ac_ext <<_ACEOF
8826 /* end confdefs.h. */
8836 rm -f conftest.$ac_objext conftest$ac_exeext
8837 if { (ac_try="$ac_link"
8839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8840 *) ac_try_echo=$ac_try;;
8842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8843 (eval "$ac_link") 2>conftest.er1
8845 grep -v '^ *+' conftest.er1 >conftest.err
8847 cat conftest.err >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } && {
8850 test -z "$ac_c_werror_flag" ||
8851 test ! -s conftest.err
8852 } && test -s conftest$ac_exeext &&
8853 $as_test_x conftest$ac_exeext; then
8855 lt_aix_libpath_sed='
8856 /Import File Strings/,/^$/ {
8862 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8863 # Check for a 64-bit object if we didn't find anything.
8864 if test -z "$aix_libpath"; then
8865 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8868 echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8875 conftest$ac_exeext conftest.$ac_ext
8876 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8878 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8879 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"
8881 if test "$host_cpu" = ia64; then
8882 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8883 allow_undefined_flag="-z nodefs"
8884 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"
8886 # Determine the default libpath from the value encoded in an empty executable.
8887 cat >conftest.$ac_ext <<_ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (ac_try="$ac_link"
8905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906 *) ac_try_echo=$ac_try;;
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909 (eval "$ac_link") 2>conftest.er1
8911 grep -v '^ *+' conftest.er1 >conftest.err
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } && {
8916 test -z "$ac_c_werror_flag" ||
8917 test ! -s conftest.err
8918 } && test -s conftest$ac_exeext &&
8919 $as_test_x conftest$ac_exeext; then
8921 lt_aix_libpath_sed='
8922 /Import File Strings/,/^$/ {
8928 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8929 # Check for a 64-bit object if we didn't find anything.
8930 if test -z "$aix_libpath"; then
8931 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8934 echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8941 conftest$ac_exeext conftest.$ac_ext
8942 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8944 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8945 # Warning - without using the other run time loading flags,
8946 # -berok will link without error, but may produce a broken library.
8947 no_undefined_flag=' ${wl}-bernotok'
8948 allow_undefined_flag=' ${wl}-berok'
8949 # Exported symbols can be pulled into shared objects from archives
8950 whole_archive_flag_spec='$convenience'
8951 archive_cmds_need_lc=yes
8952 # This is similar to how AIX traditionally builds its shared libraries.
8953 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'
8959 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)'
8960 hardcode_libdir_flag_spec='-L$libdir'
8961 hardcode_minus_L=yes
8962 # see comment about different semantics on the GNU ld section
8967 export_dynamic_flag_spec=-rdynamic
8970 cygwin* | mingw* | pw32*)
8971 # When not using gcc, we currently assume that we are using
8972 # Microsoft Visual C++.
8973 # hardcode_libdir_flag_spec is actually meaningless, as there is
8974 # no search path for DLLs.
8975 hardcode_libdir_flag_spec=' '
8976 allow_undefined_flag=unsupported
8977 # Tell ltmain to make .lib files, not .a files.
8979 # Tell ltmain to make .dll files, not .so files.
8981 # FIXME: Setting linknames here is a bad hack.
8982 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8983 # The linker will automatically build a .lib file if we build a DLL.
8984 old_archive_From_new_cmds='true'
8985 # FIXME: Should let the user specify the lib program.
8986 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8987 fix_srcfile_path='`cygpath -w "$srcfile"`'
8988 enable_shared_with_static_runtimes=yes
8991 darwin* | rhapsody*)
8993 rhapsody* | darwin1.[012])
8994 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8997 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8998 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9000 case ${MACOSX_DEPLOYMENT_TARGET} in
9002 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9005 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9011 archive_cmds_need_lc=no
9013 hardcode_automatic=yes
9014 hardcode_shlibpath_var=unsupported
9015 whole_archive_flag_spec=''
9016 link_all_deplibs=yes
9017 if test "$GCC" = yes ; then
9018 output_verbose_link_cmd='echo'
9019 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9020 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9021 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9022 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9023 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}'
9025 case $cc_basename in
9027 output_verbose_link_cmd='echo'
9028 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9029 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9030 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9031 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}'
9032 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}'
9042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9043 hardcode_libdir_flag_spec='-L$libdir'
9044 hardcode_shlibpath_var=no
9051 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9052 # support. Future versions do this automatically, but an explicit c++rt0.o
9053 # does not break anything, and helps significantly (at the cost of a little
9056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9057 hardcode_libdir_flag_spec='-R$libdir'
9059 hardcode_shlibpath_var=no
9062 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9066 hardcode_minus_L=yes
9067 hardcode_shlibpath_var=no
9070 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9071 freebsd* | dragonfly*)
9072 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9073 hardcode_libdir_flag_spec='-R$libdir'
9075 hardcode_shlibpath_var=no
9079 if test "$GCC" = yes; then
9080 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'
9082 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'
9084 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9085 hardcode_libdir_separator=:
9088 # hardcode_minus_L: Not really in the search PATH,
9089 # but as the default location of the library.
9090 hardcode_minus_L=yes
9091 export_dynamic_flag_spec='${wl}-E'
9095 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9096 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9098 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9100 if test "$with_gnu_ld" = no; then
9101 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9102 hardcode_libdir_separator=:
9105 export_dynamic_flag_spec='${wl}-E'
9107 # hardcode_minus_L: Not really in the search PATH,
9108 # but as the default location of the library.
9109 hardcode_minus_L=yes
9114 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9117 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9120 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9123 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9129 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9132 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9135 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9139 if test "$with_gnu_ld" = no; then
9140 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9141 hardcode_libdir_separator=:
9145 hardcode_libdir_flag_spec_ld='+b $libdir'
9147 hardcode_shlibpath_var=no
9151 export_dynamic_flag_spec='${wl}-E'
9153 # hardcode_minus_L: Not really in the search PATH,
9154 # but as the default location of the library.
9155 hardcode_minus_L=yes
9161 irix5* | irix6* | nonstopux*)
9162 if test "$GCC" = yes; then
9163 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'
9165 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'
9166 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9169 hardcode_libdir_separator=:
9170 link_all_deplibs=yes
9173 netbsd* | netbsdelf*-gnu)
9174 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9175 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9177 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9179 hardcode_libdir_flag_spec='-R$libdir'
9181 hardcode_shlibpath_var=no
9185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9188 hardcode_libdir_separator=:
9189 hardcode_shlibpath_var=no
9193 if test -f /usr/libexec/ld.so; then
9195 hardcode_shlibpath_var=no
9196 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9197 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9198 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9199 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9200 export_dynamic_flag_spec='${wl}-E'
9203 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9204 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9205 hardcode_libdir_flag_spec='-R$libdir'
9208 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9209 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9219 hardcode_libdir_flag_spec='-L$libdir'
9220 hardcode_minus_L=yes
9221 allow_undefined_flag=unsupported
9222 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'
9223 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9227 if test "$GCC" = yes; then
9228 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9229 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'
9231 allow_undefined_flag=' -expect_unresolved \*'
9232 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'
9234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9235 hardcode_libdir_separator=:
9238 osf4* | osf5*) # as osf3* with the addition of -msym flag
9239 if test "$GCC" = yes; then
9240 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9241 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'
9242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9244 allow_undefined_flag=' -expect_unresolved \*'
9245 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'
9246 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9247 $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'
9249 # Both c and cxx compiler support -rpath directly
9250 hardcode_libdir_flag_spec='-rpath $libdir'
9252 hardcode_libdir_separator=:
9256 no_undefined_flag=' -z text'
9257 if test "$GCC" = yes; then
9259 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9260 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9261 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9264 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9265 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9266 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9268 hardcode_libdir_flag_spec='-R$libdir'
9269 hardcode_shlibpath_var=no
9271 solaris2.[0-5] | solaris2.[0-5].*) ;;
9273 # The compiler driver will combine and reorder linker options,
9274 # but understands `-z linker_flag'. GCC discards it without `$wl',
9275 # but is careful enough not to reorder.
9276 # Supported since Solaris 2.6 (maybe 2.5.1?)
9277 if test "$GCC" = yes; then
9278 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9280 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9284 link_all_deplibs=yes
9288 if test "x$host_vendor" = xsequent; then
9289 # Use $CC to link under sequent, because it throws in some extra .o
9290 # files that make .init and .fini sections work.
9291 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9293 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9295 hardcode_libdir_flag_spec='-L$libdir'
9297 hardcode_minus_L=yes
9298 hardcode_shlibpath_var=no
9302 case $host_vendor in
9304 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9305 hardcode_direct=yes # is this really true???
9308 ## LD is ld it makes a PLAMLIB
9309 ## CC just makes a GrossModule.
9310 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9311 reload_cmds='$CC -r -o $output$reload_objs'
9315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9316 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9319 runpath_var='LD_RUN_PATH'
9320 hardcode_shlibpath_var=no
9324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9325 hardcode_shlibpath_var=no
9326 export_dynamic_flag_spec='-Bexport'
9330 if test -d /usr/nec; then
9331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9332 hardcode_shlibpath_var=no
9333 runpath_var=LD_RUN_PATH
9334 hardcode_runpath_var=yes
9339 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9340 no_undefined_flag='${wl}-z,text'
9341 archive_cmds_need_lc=no
9342 hardcode_shlibpath_var=no
9343 runpath_var='LD_RUN_PATH'
9345 if test "$GCC" = yes; then
9346 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9347 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9349 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9350 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354 sysv5* | sco3.2v5* | sco5v6*)
9355 # Note: We can NOT use -z defs as we might desire, because we do not
9356 # link with -lc, and that would cause any symbols used from libc to
9357 # always be unresolved, which means just about no library would
9358 # ever link correctly. If we're not using GNU ld we use -z text
9359 # though, which does catch some bad symbols but isn't as heavy-handed
9361 no_undefined_flag='${wl}-z,text'
9362 allow_undefined_flag='${wl}-z,nodefs'
9363 archive_cmds_need_lc=no
9364 hardcode_shlibpath_var=no
9365 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9366 hardcode_libdir_separator=':'
9367 link_all_deplibs=yes
9368 export_dynamic_flag_spec='${wl}-Bexport'
9369 runpath_var='LD_RUN_PATH'
9371 if test "$GCC" = yes; then
9372 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9373 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9375 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9376 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9382 hardcode_libdir_flag_spec='-L$libdir'
9383 hardcode_shlibpath_var=no
9392 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9393 echo "${ECHO_T}$ld_shlibs" >&6; }
9394 test "$ld_shlibs" = no && can_build_shared=no
9397 # Do we need to explicitly link libc?
9399 case "x$archive_cmds_need_lc" in
9401 # Assume -lc should be added
9402 archive_cmds_need_lc=yes
9404 if test "$enable_shared" = yes && test "$GCC" = yes; then
9405 case $archive_cmds in
9407 # FIXME: we may have to deal with multi-command sequences.
9410 # Test whether the compiler implicitly links with -lc since on some
9411 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9412 # to ld, don't add -lc before -lgcc.
9413 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9414 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9419 (eval $ac_compile) 2>&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); } 2>conftest.err; then
9425 libobjs=conftest.$ac_objext
9427 wl=$lt_prog_compiler_wl
9428 pic_flag=$lt_prog_compiler_pic
9434 lt_save_allow_undefined_flag=$allow_undefined_flag
9435 allow_undefined_flag=
9436 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9437 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }
9442 archive_cmds_need_lc=no
9444 archive_cmds_need_lc=yes
9446 allow_undefined_flag=$lt_save_allow_undefined_flag
9448 cat conftest.err 1>&5
9451 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9452 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9459 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9460 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9462 libname_spec='lib$name'
9470 shlibpath_overrides_runpath=unknown
9472 dynamic_linker="$host_os ld.so"
9473 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9475 if test "$GCC" = yes; then
9477 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9478 *) lt_awk_arg="/^libraries:/" ;;
9480 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9481 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9482 # if the path contains ";" then we assume it to be the separator
9483 # otherwise default to the standard path separator (i.e. ":") - it is
9484 # assumed that no part of a normal pathname contains ";" but that should
9485 # okay in the real world where ";" in dirpaths is itself problematic.
9486 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9488 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9490 # Ok, now we have the path, separated by spaces, we can step through it
9491 # and add multilib dir if necessary.
9492 lt_tmp_lt_search_path_spec=
9493 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9494 for lt_sys_path in $lt_search_path_spec; do
9495 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9496 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9498 test -d "$lt_sys_path" && \
9499 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9502 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9503 BEGIN {RS=" "; FS="/|\n";} {
9506 for (lt_i = NF; lt_i > 0; lt_i--) {
9507 if ($lt_i != "" && $lt_i != ".") {
9508 if ($lt_i == "..") {
9511 if (lt_count == 0) {
9512 lt_foo="/" $lt_i lt_foo;
9519 if (lt_foo != "") { lt_freq[lt_foo]++; }
9520 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9522 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9524 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9526 need_lib_prefix=unknown
9527 hardcode_into_libs=no
9529 # when you set need_version to no, make sure it does not cause -set_version
9530 # flags to be left without arguments
9531 need_version=unknown
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9537 shlibpath_var=LIBPATH
9539 # AIX 3 has no versioning support, so we append a major version to the name.
9540 soname_spec='${libname}${release}${shared_ext}$major'
9547 hardcode_into_libs=yes
9548 if test "$host_cpu" = ia64; then
9549 # AIX 5 supports IA64
9550 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9551 shlibpath_var=LD_LIBRARY_PATH
9553 # With GCC up to 2.95.x, collect2 would create an import file
9554 # for dependence libraries. The import file would start with
9555 # the line `#! .'. This would cause the generated library to
9556 # depend on `.', always an invalid library. This was fixed in
9557 # development snapshots of GCC prior to 3.0.
9559 aix4 | aix4.[01] | aix4.[01].*)
9560 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9562 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9569 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9570 # soname into executable. Probably we can add versioning support to
9571 # collect2, so additional links can be useful in future.
9572 if test "$aix_use_runtimelinking" = yes; then
9573 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9574 # instead of lib<name>.a to let people know that these are not
9575 # typical AIX shared libraries.
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578 # We preserve .a as extension for shared libraries through AIX4.2
9579 # and later when we are not doing run time linking.
9580 library_names_spec='${libname}${release}.a $libname.a'
9581 soname_spec='${libname}${release}${shared_ext}$major'
9583 shlibpath_var=LIBPATH
9588 library_names_spec='$libname.ixlibrary $libname.a'
9589 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9590 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'
9594 library_names_spec='${libname}${shared_ext}'
9595 dynamic_linker="$host_os ld.so"
9596 shlibpath_var=LIBRARY_PATH
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9603 soname_spec='${libname}${release}${shared_ext}$major'
9604 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9605 shlibpath_var=LD_LIBRARY_PATH
9606 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9607 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9608 # the default ld.so.conf also contains /usr/contrib/lib and
9609 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9610 # libtool to hard-code these into programs
9613 cygwin* | mingw* | pw32*)
9614 version_type=windows
9619 case $GCC,$host_os in
9620 yes,cygwin* | yes,mingw* | yes,pw32*)
9621 library_names_spec='$libname.dll.a'
9622 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9623 postinstall_cmds='base_file=`basename \${file}`~
9624 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9625 dldir=$destdir/`dirname \$dlpath`~
9626 test -d \$dldir || mkdir -p \$dldir~
9627 $install_prog $dir/$dlname \$dldir/$dlname~
9628 chmod a+x \$dldir/$dlname'
9629 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9630 dlpath=$dir/\$dldll~
9632 shlibpath_overrides_runpath=yes
9636 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9637 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9638 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9641 # MinGW DLLs use traditional 'lib' prefix
9642 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9643 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9644 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9645 # It is most probably a Windows format PATH printed by
9646 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9647 # path with ; separators, and with drive letters. We can handle the
9648 # drive letters (cygwin fileutils understands them), so leave them,
9649 # especially as we might pass files found there to a mingw objdump,
9650 # which wouldn't understand a cygwinified path. Ahh.
9651 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9657 # pw32 DLLs use 'pw' prefix rather than 'lib'
9658 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9664 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9667 dynamic_linker='Win32 ld.exe'
9668 # FIXME: first we should search . and the directory the executable is in
9672 darwin* | rhapsody*)
9673 dynamic_linker="$host_os dyld"
9677 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9678 soname_spec='${libname}${release}${major}$shared_ext'
9679 shlibpath_overrides_runpath=yes
9680 shlibpath_var=DYLD_LIBRARY_PATH
9681 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9683 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9684 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9692 soname_spec='${libname}${release}${shared_ext}$major'
9693 shlibpath_var=LD_LIBRARY_PATH
9700 freebsd* | dragonfly*)
9701 # DragonFly does not have aout. When/if they implement a new
9702 # versioning mechanism, adjust this.
9703 if test -x /usr/bin/objformat; then
9704 objformat=`/usr/bin/objformat`
9707 freebsd[123]*) objformat=aout ;;
9711 version_type=freebsd-$objformat
9712 case $version_type in
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9723 shlibpath_var=LD_LIBRARY_PATH
9726 shlibpath_overrides_runpath=yes
9728 freebsd3.[01]* | freebsdelf3.[01]*)
9729 shlibpath_overrides_runpath=yes
9730 hardcode_into_libs=yes
9732 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9733 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9734 shlibpath_overrides_runpath=no
9735 hardcode_into_libs=yes
9737 *) # from 4.6 on, and DragonFly
9738 shlibpath_overrides_runpath=yes
9739 hardcode_into_libs=yes
9748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9749 soname_spec='${libname}${release}${shared_ext}$major'
9750 shlibpath_var=LD_LIBRARY_PATH
9751 hardcode_into_libs=yes
9754 hpux9* | hpux10* | hpux11*)
9755 # Give a soname corresponding to the major version so that dld.sl refuses to
9756 # link against other versions.
9763 hardcode_into_libs=yes
9764 dynamic_linker="$host_os dld.so"
9765 shlibpath_var=LD_LIBRARY_PATH
9766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9768 soname_spec='${libname}${release}${shared_ext}$major'
9769 if test "X$HPUX_IA64_MODE" = X32; then
9770 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9772 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9778 hardcode_into_libs=yes
9779 dynamic_linker="$host_os dld.sl"
9780 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783 soname_spec='${libname}${release}${shared_ext}$major'
9784 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9789 dynamic_linker="$host_os dld.sl"
9790 shlibpath_var=SHLIB_PATH
9791 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793 soname_spec='${libname}${release}${shared_ext}$major'
9796 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9797 postinstall_cmds='chmod 555 $lib'
9804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9805 soname_spec='${libname}${release}${shared_ext}$major'
9806 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9807 shlibpath_var=LD_LIBRARY_PATH
9808 shlibpath_overrides_runpath=no
9809 hardcode_into_libs=yes
9812 irix5* | irix6* | nonstopux*)
9814 nonstopux*) version_type=nonstopux ;;
9816 if test "$lt_cv_prog_gnu_ld" = yes; then
9824 soname_spec='${libname}${release}${shared_ext}$major'
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9827 irix5* | nonstopux*)
9831 case $LD in # libtool.m4 will add one of these switches to LD
9832 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9833 libsuff= shlibsuff= libmagic=32-bit;;
9834 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9835 libsuff=32 shlibsuff=N32 libmagic=N32;;
9836 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9837 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9838 *) libsuff= shlibsuff= libmagic=never-match;;
9842 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9843 shlibpath_overrides_runpath=no
9844 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9845 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9846 hardcode_into_libs=yes
9849 # No shared lib support for Linux oldld, aout, or coff.
9850 linux*oldld* | linux*aout* | linux*coff*)
9854 # This must be Linux ELF.
9855 linux* | k*bsd*-gnu)
9859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9860 soname_spec='${libname}${release}${shared_ext}$major'
9861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9862 shlibpath_var=LD_LIBRARY_PATH
9863 shlibpath_overrides_runpath=no
9864 # This implies no fast_install, which is unacceptable.
9865 # Some rework will be needed to allow for fast_install
9866 # before this can be enabled.
9867 hardcode_into_libs=yes
9869 # Append ld.so.conf contents to the search path
9870 if test -f /etc/ld.so.conf; then
9871 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' ' '`
9872 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9875 # We used to test for /lib/ld.so.1 and disable shared libraries on
9876 # powerpc, because MkLinux only supported shared libraries with the
9877 # GNU dynamic linker. Since this was broken with cross compilers,
9878 # most powerpc-linux boxes support dynamic linking these days and
9879 # people can always --disable-shared, the test was removed, and we
9880 # assume the GNU/Linux dynamic linker is in use.
9881 dynamic_linker='GNU/Linux ld.so'
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 shlibpath_var=LD_LIBRARY_PATH
9891 shlibpath_overrides_runpath=no
9892 hardcode_into_libs=yes
9893 dynamic_linker='NetBSD ld.elf_so'
9900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9903 dynamic_linker='NetBSD (a.out) ld.so'
9905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9906 soname_spec='${libname}${release}${shared_ext}$major'
9907 dynamic_linker='NetBSD ld.elf_so'
9909 shlibpath_var=LD_LIBRARY_PATH
9910 shlibpath_overrides_runpath=yes
9911 hardcode_into_libs=yes
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9917 shlibpath_var=LD_LIBRARY_PATH
9918 shlibpath_overrides_runpath=yes
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 shlibpath_var=LD_LIBRARY_PATH
9928 shlibpath_overrides_runpath=yes
9933 sys_lib_dlsearch_path_spec="/usr/lib"
9935 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9937 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9938 *) need_version=no ;;
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9942 shlibpath_var=LD_LIBRARY_PATH
9943 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9945 openbsd2.[89] | openbsd2.[89].*)
9946 shlibpath_overrides_runpath=no
9949 shlibpath_overrides_runpath=yes
9953 shlibpath_overrides_runpath=yes
9958 libname_spec='$name'
9961 library_names_spec='$libname${shared_ext} $libname.a'
9962 dynamic_linker='OS/2 ld.exe'
9963 shlibpath_var=LIBPATH
9966 osf3* | osf4* | osf5*)
9970 soname_spec='${libname}${release}${shared_ext}$major'
9971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9972 shlibpath_var=LD_LIBRARY_PATH
9973 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9974 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9986 soname_spec='${libname}${release}${shared_ext}$major'
9987 shlibpath_var=LD_LIBRARY_PATH
9988 shlibpath_overrides_runpath=yes
9989 hardcode_into_libs=yes
9990 # ldd complains unless libraries are executable
9991 postinstall_cmds='chmod +x $lib'
9996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9997 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9998 shlibpath_var=LD_LIBRARY_PATH
9999 shlibpath_overrides_runpath=yes
10000 if test "$with_gnu_ld" = yes; then
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009 soname_spec='${libname}${release}${shared_ext}$major'
10010 shlibpath_var=LD_LIBRARY_PATH
10011 case $host_vendor in
10013 shlibpath_overrides_runpath=no
10015 export_dynamic_flag_spec='${wl}-Blargedynsym'
10016 runpath_var=LD_RUN_PATH
10024 shlibpath_overrides_runpath=no
10025 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10031 if test -d /usr/nec ;then
10033 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10034 soname_spec='$libname${shared_ext}.$major'
10035 shlibpath_var=LD_LIBRARY_PATH
10039 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10040 version_type=freebsd-elf
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10045 shlibpath_var=LD_LIBRARY_PATH
10046 hardcode_into_libs=yes
10047 if test "$with_gnu_ld" = yes; then
10048 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10049 shlibpath_overrides_runpath=no
10051 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10052 shlibpath_overrides_runpath=yes
10055 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10059 sys_lib_dlsearch_path_spec='/usr/lib'
10064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10065 soname_spec='${libname}${release}${shared_ext}$major'
10066 shlibpath_var=LD_LIBRARY_PATH
10073 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10074 echo "${ECHO_T}$dynamic_linker" >&6; }
10075 test "$dynamic_linker" = no && can_build_shared=no
10077 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10078 if test "$GCC" = yes; then
10079 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10082 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10083 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10085 if test -n "$hardcode_libdir_flag_spec" || \
10086 test -n "$runpath_var" || \
10087 test "X$hardcode_automatic" = "Xyes" ; then
10089 # We can hardcode non-existant directories.
10090 if test "$hardcode_direct" != no &&
10091 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10092 # have to relink, otherwise we might link with an installed library
10093 # when we should be linking with a yet-to-be-installed one
10094 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10095 test "$hardcode_minus_L" != no; then
10096 # Linking always hardcodes the temporary library directory.
10097 hardcode_action=relink
10099 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10100 hardcode_action=immediate
10103 # We cannot hardcode anything, or else we can only hardcode existing
10105 hardcode_action=unsupported
10107 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10108 echo "${ECHO_T}$hardcode_action" >&6; }
10110 if test "$hardcode_action" = relink; then
10111 # Fast installation is not supported
10112 enable_fast_install=no
10113 elif test "$shlibpath_overrides_runpath" = yes ||
10114 test "$enable_shared" = no; then
10115 # Fast installation is not necessary
10116 enable_fast_install=needless
10121 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10122 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10123 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10124 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10125 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10126 { echo "$as_me:$LINENO: result: yes" >&5
10127 echo "${ECHO_T}yes" >&6; }
10129 # FIXME - insert some real tests, host_os isn't really good enough
10132 if test -n "$STRIP" ; then
10133 striplib="$STRIP -x"
10134 old_striplib="$STRIP -S"
10135 { echo "$as_me:$LINENO: result: yes" >&5
10136 echo "${ECHO_T}yes" >&6; }
10138 { echo "$as_me:$LINENO: result: no" >&5
10139 echo "${ECHO_T}no" >&6; }
10143 { echo "$as_me:$LINENO: result: no" >&5
10144 echo "${ECHO_T}no" >&6; }
10149 if test "x$enable_dlopen" != xyes; then
10150 enable_dlopen=unknown
10151 enable_dlopen_self=unknown
10152 enable_dlopen_self_static=unknown
10159 lt_cv_dlopen="load_add_on"
10161 lt_cv_dlopen_self=yes
10165 lt_cv_dlopen="LoadLibrary"
10170 lt_cv_dlopen="dlopen"
10175 # if libdl is installed we need to link against it
10176 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10177 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10178 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10179 echo $ECHO_N "(cached) $ECHO_C" >&6
10181 ac_check_lib_save_LIBS=$LIBS
10183 cat >conftest.$ac_ext <<_ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10190 /* Override any GCC internal prototype to avoid an error.
10191 Use char because int might match the return type of a GCC
10192 builtin and then its argument prototype would still apply. */
10205 rm -f conftest.$ac_objext conftest$ac_exeext
10206 if { (ac_try="$ac_link"
10207 case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_link") 2>conftest.er1
10214 grep -v '^ *+' conftest.er1 >conftest.err
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } && {
10219 test -z "$ac_c_werror_flag" ||
10220 test ! -s conftest.err
10221 } && test -s conftest$ac_exeext &&
10222 $as_test_x conftest$ac_exeext; then
10223 ac_cv_lib_dl_dlopen=yes
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10228 ac_cv_lib_dl_dlopen=no
10231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10232 conftest$ac_exeext conftest.$ac_ext
10233 LIBS=$ac_check_lib_save_LIBS
10235 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10236 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10237 if test $ac_cv_lib_dl_dlopen = yes; then
10238 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10241 lt_cv_dlopen="dyld"
10243 lt_cv_dlopen_self=yes
10250 { echo "$as_me:$LINENO: checking for shl_load" >&5
10251 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10252 if test "${ac_cv_func_shl_load+set}" = set; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 cat >conftest.$ac_ext <<_ACEOF
10258 cat confdefs.h >>conftest.$ac_ext
10259 cat >>conftest.$ac_ext <<_ACEOF
10260 /* end confdefs.h. */
10261 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10263 #define shl_load innocuous_shl_load
10265 /* System header to define __stub macros and hopefully few prototypes,
10266 which can conflict with char shl_load (); below.
10267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10268 <limits.h> exists even on freestanding compilers. */
10271 # include <limits.h>
10273 # include <assert.h>
10278 /* Override any GCC internal prototype to avoid an error.
10279 Use char because int might match the return type of a GCC
10280 builtin and then its argument prototype would still apply. */
10285 /* The GNU C library defines this for functions which it implements
10286 to always fail with ENOSYS. Some functions are actually named
10287 something starting with __ and the normal name is an alias. */
10288 #if defined __stub_shl_load || defined __stub___shl_load
10295 return shl_load ();
10300 rm -f conftest.$ac_objext conftest$ac_exeext
10301 if { (ac_try="$ac_link"
10302 case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307 (eval "$ac_link") 2>conftest.er1
10309 grep -v '^ *+' conftest.er1 >conftest.err
10311 cat conftest.err >&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } && {
10314 test -z "$ac_c_werror_flag" ||
10315 test ! -s conftest.err
10316 } && test -s conftest$ac_exeext &&
10317 $as_test_x conftest$ac_exeext; then
10318 ac_cv_func_shl_load=yes
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10323 ac_cv_func_shl_load=no
10326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10327 conftest$ac_exeext conftest.$ac_ext
10329 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10330 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10331 if test $ac_cv_func_shl_load = yes; then
10332 lt_cv_dlopen="shl_load"
10334 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10335 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10336 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 ac_check_lib_save_LIBS=$LIBS
10341 cat >conftest.$ac_ext <<_ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10348 /* Override any GCC internal prototype to avoid an error.
10349 Use char because int might match the return type of a GCC
10350 builtin and then its argument prototype would still apply. */
10358 return shl_load ();
10363 rm -f conftest.$ac_objext conftest$ac_exeext
10364 if { (ac_try="$ac_link"
10365 case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_link") 2>conftest.er1
10372 grep -v '^ *+' conftest.er1 >conftest.err
10374 cat conftest.err >&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); } && {
10377 test -z "$ac_c_werror_flag" ||
10378 test ! -s conftest.err
10379 } && test -s conftest$ac_exeext &&
10380 $as_test_x conftest$ac_exeext; then
10381 ac_cv_lib_dld_shl_load=yes
10383 echo "$as_me: failed program was:" >&5
10384 sed 's/^/| /' conftest.$ac_ext >&5
10386 ac_cv_lib_dld_shl_load=no
10389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10390 conftest$ac_exeext conftest.$ac_ext
10391 LIBS=$ac_check_lib_save_LIBS
10393 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10394 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10395 if test $ac_cv_lib_dld_shl_load = yes; then
10396 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10398 { echo "$as_me:$LINENO: checking for dlopen" >&5
10399 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10400 if test "${ac_cv_func_dlopen+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 cat >conftest.$ac_ext <<_ACEOF
10406 cat confdefs.h >>conftest.$ac_ext
10407 cat >>conftest.$ac_ext <<_ACEOF
10408 /* end confdefs.h. */
10409 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10411 #define dlopen innocuous_dlopen
10413 /* System header to define __stub macros and hopefully few prototypes,
10414 which can conflict with char dlopen (); below.
10415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10416 <limits.h> exists even on freestanding compilers. */
10419 # include <limits.h>
10421 # include <assert.h>
10426 /* Override any GCC internal prototype to avoid an error.
10427 Use char because int might match the return type of a GCC
10428 builtin and then its argument prototype would still apply. */
10433 /* The GNU C library defines this for functions which it implements
10434 to always fail with ENOSYS. Some functions are actually named
10435 something starting with __ and the normal name is an alias. */
10436 #if defined __stub_dlopen || defined __stub___dlopen
10448 rm -f conftest.$ac_objext conftest$ac_exeext
10449 if { (ac_try="$ac_link"
10450 case "(($ac_try" in
10451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452 *) ac_try_echo=$ac_try;;
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455 (eval "$ac_link") 2>conftest.er1
10457 grep -v '^ *+' conftest.er1 >conftest.err
10459 cat conftest.err >&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } && {
10462 test -z "$ac_c_werror_flag" ||
10463 test ! -s conftest.err
10464 } && test -s conftest$ac_exeext &&
10465 $as_test_x conftest$ac_exeext; then
10466 ac_cv_func_dlopen=yes
10468 echo "$as_me: failed program was:" >&5
10469 sed 's/^/| /' conftest.$ac_ext >&5
10471 ac_cv_func_dlopen=no
10474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10475 conftest$ac_exeext conftest.$ac_ext
10477 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10478 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10479 if test $ac_cv_func_dlopen = yes; then
10480 lt_cv_dlopen="dlopen"
10482 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10483 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10484 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10485 echo $ECHO_N "(cached) $ECHO_C" >&6
10487 ac_check_lib_save_LIBS=$LIBS
10489 cat >conftest.$ac_ext <<_ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h. */
10496 /* Override any GCC internal prototype to avoid an error.
10497 Use char because int might match the return type of a GCC
10498 builtin and then its argument prototype would still apply. */
10511 rm -f conftest.$ac_objext conftest$ac_exeext
10512 if { (ac_try="$ac_link"
10513 case "(($ac_try" in
10514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515 *) ac_try_echo=$ac_try;;
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_link") 2>conftest.er1
10520 grep -v '^ *+' conftest.er1 >conftest.err
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } && {
10525 test -z "$ac_c_werror_flag" ||
10526 test ! -s conftest.err
10527 } && test -s conftest$ac_exeext &&
10528 $as_test_x conftest$ac_exeext; then
10529 ac_cv_lib_dl_dlopen=yes
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10534 ac_cv_lib_dl_dlopen=no
10537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10538 conftest$ac_exeext conftest.$ac_ext
10539 LIBS=$ac_check_lib_save_LIBS
10541 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10542 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10543 if test $ac_cv_lib_dl_dlopen = yes; then
10544 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10546 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10547 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10548 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 ac_check_lib_save_LIBS=$LIBS
10552 LIBS="-lsvld $LIBS"
10553 cat >conftest.$ac_ext <<_ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10560 /* Override any GCC internal prototype to avoid an error.
10561 Use char because int might match the return type of a GCC
10562 builtin and then its argument prototype would still apply. */
10575 rm -f conftest.$ac_objext conftest$ac_exeext
10576 if { (ac_try="$ac_link"
10577 case "(($ac_try" in
10578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579 *) ac_try_echo=$ac_try;;
10581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582 (eval "$ac_link") 2>conftest.er1
10584 grep -v '^ *+' conftest.er1 >conftest.err
10586 cat conftest.err >&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); } && {
10589 test -z "$ac_c_werror_flag" ||
10590 test ! -s conftest.err
10591 } && test -s conftest$ac_exeext &&
10592 $as_test_x conftest$ac_exeext; then
10593 ac_cv_lib_svld_dlopen=yes
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 ac_cv_lib_svld_dlopen=no
10601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10602 conftest$ac_exeext conftest.$ac_ext
10603 LIBS=$ac_check_lib_save_LIBS
10605 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10606 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10607 if test $ac_cv_lib_svld_dlopen = yes; then
10608 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10610 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10611 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10612 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 ac_check_lib_save_LIBS=$LIBS
10617 cat >conftest.$ac_ext <<_ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h. */
10624 /* Override any GCC internal prototype to avoid an error.
10625 Use char because int might match the return type of a GCC
10626 builtin and then its argument prototype would still apply. */
10634 return dld_link ();
10639 rm -f conftest.$ac_objext conftest$ac_exeext
10640 if { (ac_try="$ac_link"
10641 case "(($ac_try" in
10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646 (eval "$ac_link") 2>conftest.er1
10648 grep -v '^ *+' conftest.er1 >conftest.err
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } && {
10653 test -z "$ac_c_werror_flag" ||
10654 test ! -s conftest.err
10655 } && test -s conftest$ac_exeext &&
10656 $as_test_x conftest$ac_exeext; then
10657 ac_cv_lib_dld_dld_link=yes
10659 echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10662 ac_cv_lib_dld_dld_link=no
10665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10666 conftest$ac_exeext conftest.$ac_ext
10667 LIBS=$ac_check_lib_save_LIBS
10669 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10670 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10671 if test $ac_cv_lib_dld_dld_link = yes; then
10672 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10693 if test "x$lt_cv_dlopen" != xno; then
10699 case $lt_cv_dlopen in
10701 save_CPPFLAGS="$CPPFLAGS"
10702 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10704 save_LDFLAGS="$LDFLAGS"
10705 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10708 LIBS="$lt_cv_dlopen_libs $LIBS"
10710 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10711 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10712 if test "${lt_cv_dlopen_self+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10715 if test "$cross_compiling" = yes; then :
10716 lt_cv_dlopen_self=cross
10718 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10719 lt_status=$lt_dlunknown
10720 cat > conftest.$ac_ext <<EOF
10721 #line 10721 "configure"
10722 #include "confdefs.h"
10731 # define LT_DLGLOBAL RTLD_GLOBAL
10734 # define LT_DLGLOBAL DL_GLOBAL
10736 # define LT_DLGLOBAL 0
10740 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10741 find out it does not work in some platform. */
10742 #ifndef LT_DLLAZY_OR_NOW
10744 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10747 # define LT_DLLAZY_OR_NOW DL_LAZY
10750 # define LT_DLLAZY_OR_NOW RTLD_NOW
10753 # define LT_DLLAZY_OR_NOW DL_NOW
10755 # define LT_DLLAZY_OR_NOW 0
10763 extern "C" void exit (int);
10766 void fnord() { int i=42;}
10769 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10770 int status = $lt_dlunknown;
10774 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10775 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10776 /* dlclose (self); */
10784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10785 (eval $ac_link) 2>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10789 (./conftest; exit; ) >&5 2>/dev/null
10791 case x$lt_status in
10792 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10793 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10794 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10797 # compilation failed
10798 lt_cv_dlopen_self=no
10805 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10806 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10808 if test "x$lt_cv_dlopen_self" = xyes; then
10809 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10810 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10811 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10812 if test "${lt_cv_dlopen_self_static+set}" = set; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 if test "$cross_compiling" = yes; then :
10816 lt_cv_dlopen_self_static=cross
10818 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10819 lt_status=$lt_dlunknown
10820 cat > conftest.$ac_ext <<EOF
10821 #line 10821 "configure"
10822 #include "confdefs.h"
10831 # define LT_DLGLOBAL RTLD_GLOBAL
10834 # define LT_DLGLOBAL DL_GLOBAL
10836 # define LT_DLGLOBAL 0
10840 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10841 find out it does not work in some platform. */
10842 #ifndef LT_DLLAZY_OR_NOW
10844 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10847 # define LT_DLLAZY_OR_NOW DL_LAZY
10850 # define LT_DLLAZY_OR_NOW RTLD_NOW
10853 # define LT_DLLAZY_OR_NOW DL_NOW
10855 # define LT_DLLAZY_OR_NOW 0
10863 extern "C" void exit (int);
10866 void fnord() { int i=42;}
10869 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10870 int status = $lt_dlunknown;
10874 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10875 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10876 /* dlclose (self); */
10884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10885 (eval $ac_link) 2>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10889 (./conftest; exit; ) >&5 2>/dev/null
10891 case x$lt_status in
10892 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10893 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10894 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10897 # compilation failed
10898 lt_cv_dlopen_self_static=no
10905 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10906 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10909 CPPFLAGS="$save_CPPFLAGS"
10910 LDFLAGS="$save_LDFLAGS"
10915 case $lt_cv_dlopen_self in
10916 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10917 *) enable_dlopen_self=unknown ;;
10920 case $lt_cv_dlopen_self_static in
10921 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10922 *) enable_dlopen_self_static=unknown ;;
10927 # Report which library types will actually be built
10928 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10929 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10930 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10931 echo "${ECHO_T}$can_build_shared" >&6; }
10933 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10934 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10935 test "$can_build_shared" = "no" && enable_shared=no
10937 # On AIX, shared libraries and static libraries use the same namespace, and
10938 # are all built from PIC.
10941 test "$enable_shared" = yes && enable_static=no
10942 if test -n "$RANLIB"; then
10943 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10944 postinstall_cmds='$RANLIB $lib'
10949 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10950 test "$enable_shared" = yes && enable_static=no
10954 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10955 echo "${ECHO_T}$enable_shared" >&6; }
10957 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10958 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10959 # Make sure either enable_shared or enable_static is yes.
10960 test "$enable_shared" = yes || enable_static=yes
10961 { echo "$as_me:$LINENO: result: $enable_static" >&5
10962 echo "${ECHO_T}$enable_static" >&6; }
10964 # The else clause should only fire when bootstrapping the
10965 # libtool distribution, otherwise you forgot to ship ltmain.sh
10966 # with your package, and you will get complaints that there are
10967 # no rules to generate ltmain.sh.
10968 if test -f "$ltmain"; then
10969 # See if we are running on zsh, and set the options which allow our commands through
10970 # without removal of \ escapes.
10971 if test -n "${ZSH_VERSION+set}" ; then
10972 setopt NO_GLOB_SUBST
10974 # Now quote all the things that may contain metacharacters while being
10975 # careful not to overquote the AC_SUBSTed values. We take copies of the
10976 # variables and quote the copies for generation of the libtool script.
10977 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10979 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10980 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10981 deplibs_check_method reload_flag reload_cmds need_locks \
10982 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10983 lt_cv_sys_global_symbol_to_c_name_address \
10984 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10985 old_postinstall_cmds old_postuninstall_cmds \
10989 lt_prog_compiler_wl \
10990 lt_prog_compiler_pic \
10991 lt_prog_compiler_static \
10992 lt_prog_compiler_no_builtin_flag \
10993 export_dynamic_flag_spec \
10994 thread_safe_flag_spec \
10995 whole_archive_flag_spec \
10996 enable_shared_with_static_runtimes \
10998 old_archive_from_new_cmds \
11003 compiler_lib_search_path \
11005 archive_expsym_cmds \
11007 postuninstall_cmds \
11008 old_archive_from_expsyms_cmds \
11009 allow_undefined_flag \
11010 no_undefined_flag \
11011 export_symbols_cmds \
11012 hardcode_libdir_flag_spec \
11013 hardcode_libdir_flag_spec_ld \
11014 hardcode_libdir_separator \
11015 hardcode_automatic \
11017 module_expsym_cmds \
11018 lt_cv_prog_compiler_c_o \
11021 include_expsyms; do
11024 old_archive_cmds | \
11025 old_archive_from_new_cmds | \
11027 archive_expsym_cmds | \
11029 module_expsym_cmds | \
11030 old_archive_from_expsyms_cmds | \
11031 export_symbols_cmds | \
11032 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11033 postinstall_cmds | postuninstall_cmds | \
11034 old_postinstall_cmds | old_postuninstall_cmds | \
11035 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11036 # Double-quote double-evaled strings.
11037 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11040 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11046 *'\$0 --fallback-echo"')
11047 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11051 cfgfile="${ofile}T"
11052 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11054 { echo "$as_me:$LINENO: creating $ofile" >&5
11055 echo "$as_me: creating $ofile" >&6;}
11057 cat <<__EOF__ >> "$cfgfile"
11060 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11061 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11062 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11064 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11065 # Free Software Foundation, Inc.
11067 # This file is part of GNU Libtool:
11068 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11070 # This program is free software; you can redistribute it and/or modify
11071 # it under the terms of the GNU General Public License as published by
11072 # the Free Software Foundation; either version 2 of the License, or
11073 # (at your option) any later version.
11075 # This program is distributed in the hope that it will be useful, but
11076 # WITHOUT ANY WARRANTY; without even the implied warranty of
11077 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11078 # General Public License for more details.
11080 # You should have received a copy of the GNU General Public License
11081 # along with this program; if not, write to the Free Software
11082 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11084 # As a special exception to the GNU General Public License, if you
11085 # distribute this file as part of a program that contains a
11086 # configuration script generated by Autoconf, you may include it under
11087 # the same distribution terms that you use for the rest of that program.
11089 # A sed program that does not truncate output.
11092 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11093 Xsed="$SED -e 1s/^X//"
11095 # The HP-UX ksh and POSIX shell print the target directory to stdout
11096 # if CDPATH is set.
11097 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11099 # The names of the tagged configurations supported by this script.
11102 # ### BEGIN LIBTOOL CONFIG
11104 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11106 # Shell to use when invoking shell scripts.
11109 # Whether or not to build shared libraries.
11110 build_libtool_libs=$enable_shared
11112 # Whether or not to build static libraries.
11113 build_old_libs=$enable_static
11115 # Whether or not to add -lc for building shared libraries.
11116 build_libtool_need_lc=$archive_cmds_need_lc
11118 # Whether or not to disallow shared libs when runtime libs are static
11119 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11121 # Whether or not to optimize for fast installation.
11122 fast_install=$enable_fast_install
11125 host_alias=$host_alias
11129 # The build system.
11130 build_alias=$build_alias
11134 # An echo program that does not interpret backslashes.
11139 AR_FLAGS=$lt_AR_FLAGS
11144 # LTCC compiler flags.
11145 LTCFLAGS=$lt_LTCFLAGS
11147 # A language-specific compiler.
11150 # Is the compiler the GNU C compiler?
11156 # The linker used to build libraries.
11159 # Whether we need hard or soft links.
11162 # A BSD-compatible nm program.
11165 # A symbol stripping program
11168 # Used to examine libraries when file_magic_cmd begins "file"
11169 MAGIC_CMD=$MAGIC_CMD
11171 # Used on cygwin: DLL creation program.
11174 # Used on cygwin: object dumper.
11177 # Used on cygwin: assembler.
11180 # The name of the directory that contains temporary libtool files.
11183 # How to create reloadable object files.
11184 reload_flag=$lt_reload_flag
11185 reload_cmds=$lt_reload_cmds
11187 # How to pass a linker flag through the compiler.
11188 wl=$lt_lt_prog_compiler_wl
11190 # Object file suffix (normally "o").
11191 objext="$ac_objext"
11193 # Old archive suffix (normally "a").
11196 # Shared library suffix (normally ".so").
11197 shrext_cmds='$shrext_cmds'
11199 # Executable file suffix (normally "").
11202 # Additional compiler flags for building library objects.
11203 pic_flag=$lt_lt_prog_compiler_pic
11206 # What is the maximum length of a command?
11207 max_cmd_len=$lt_cv_sys_max_cmd_len
11209 # Does compiler simultaneously support -c and -o options?
11210 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11212 # Must we lock files when doing compilation?
11213 need_locks=$lt_need_locks
11215 # Do we need the lib prefix for modules?
11216 need_lib_prefix=$need_lib_prefix
11218 # Do we need a version for libraries?
11219 need_version=$need_version
11221 # Whether dlopen is supported.
11222 dlopen_support=$enable_dlopen
11224 # Whether dlopen of programs is supported.
11225 dlopen_self=$enable_dlopen_self
11227 # Whether dlopen of statically linked programs is supported.
11228 dlopen_self_static=$enable_dlopen_self_static
11230 # Compiler flag to prevent dynamic linking.
11231 link_static_flag=$lt_lt_prog_compiler_static
11233 # Compiler flag to turn off builtin functions.
11234 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11236 # Compiler flag to allow reflexive dlopens.
11237 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11239 # Compiler flag to generate shared objects directly from archives.
11240 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11242 # Compiler flag to generate thread-safe objects.
11243 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11245 # Library versioning type.
11246 version_type=$version_type
11248 # Format of library name prefix.
11249 libname_spec=$lt_libname_spec
11251 # List of archive names. First name is the real one, the rest are links.
11252 # The last name is the one that the linker finds with -lNAME.
11253 library_names_spec=$lt_library_names_spec
11255 # The coded name of the library, if different from the real name.
11256 soname_spec=$lt_soname_spec
11258 # Commands used to build and install an old-style archive.
11260 old_archive_cmds=$lt_old_archive_cmds
11261 old_postinstall_cmds=$lt_old_postinstall_cmds
11262 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11264 # Create an old-style archive from a shared archive.
11265 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11267 # Create a temporary old-style archive to link instead of a shared archive.
11268 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11270 # Commands used to build and install a shared archive.
11271 archive_cmds=$lt_archive_cmds
11272 archive_expsym_cmds=$lt_archive_expsym_cmds
11273 postinstall_cmds=$lt_postinstall_cmds
11274 postuninstall_cmds=$lt_postuninstall_cmds
11276 # Commands used to build a loadable module (assumed same as above if empty)
11277 module_cmds=$lt_module_cmds
11278 module_expsym_cmds=$lt_module_expsym_cmds
11280 # Commands to strip libraries.
11281 old_striplib=$lt_old_striplib
11282 striplib=$lt_striplib
11284 # Dependencies to place before the objects being linked to create a
11286 predep_objects=$lt_predep_objects
11288 # Dependencies to place after the objects being linked to create a
11290 postdep_objects=$lt_postdep_objects
11292 # Dependencies to place before the objects being linked to create a
11294 predeps=$lt_predeps
11296 # Dependencies to place after the objects being linked to create a
11298 postdeps=$lt_postdeps
11300 # The library search path used internally by the compiler when linking
11301 # a shared library.
11302 compiler_lib_search_path=$lt_compiler_lib_search_path
11304 # Method to check whether dependent libraries are shared objects.
11305 deplibs_check_method=$lt_deplibs_check_method
11307 # Command to use when deplibs_check_method == file_magic.
11308 file_magic_cmd=$lt_file_magic_cmd
11310 # Flag that allows shared libraries with undefined symbols to be built.
11311 allow_undefined_flag=$lt_allow_undefined_flag
11313 # Flag that forces no undefined symbols.
11314 no_undefined_flag=$lt_no_undefined_flag
11316 # Commands used to finish a libtool library installation in a directory.
11317 finish_cmds=$lt_finish_cmds
11319 # Same as above, but a single script fragment to be evaled but not shown.
11320 finish_eval=$lt_finish_eval
11322 # Take the output of nm and produce a listing of raw symbols and C names.
11323 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11325 # Transform the output of nm in a proper C declaration
11326 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11328 # Transform the output of nm in a C name address pair
11329 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11331 # This is the shared library runtime path variable.
11332 runpath_var=$runpath_var
11334 # This is the shared library path variable.
11335 shlibpath_var=$shlibpath_var
11337 # Is shlibpath searched before the hard-coded library search path?
11338 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11340 # How to hardcode a shared library path into an executable.
11341 hardcode_action=$hardcode_action
11343 # Whether we should hardcode library paths into libraries.
11344 hardcode_into_libs=$hardcode_into_libs
11346 # Flag to hardcode \$libdir into a binary during linking.
11347 # This must work even if \$libdir does not exist.
11348 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11350 # If ld is used when linking, flag to hardcode \$libdir into
11351 # a binary during linking. This must work even if \$libdir does
11353 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11355 # Whether we need a single -rpath flag with a separated argument.
11356 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11358 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11359 # resulting binary.
11360 hardcode_direct=$hardcode_direct
11362 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11363 # resulting binary.
11364 hardcode_minus_L=$hardcode_minus_L
11366 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11367 # the resulting binary.
11368 hardcode_shlibpath_var=$hardcode_shlibpath_var
11370 # Set to yes if building a shared library automatically hardcodes DIR into the library
11371 # and all subsequent libraries and executables linked against it.
11372 hardcode_automatic=$hardcode_automatic
11374 # Variables whose values should be saved in libtool wrapper scripts and
11375 # restored at relink time.
11376 variables_saved_for_relink="$variables_saved_for_relink"
11378 # Whether libtool must link a program against all its dependency libraries.
11379 link_all_deplibs=$link_all_deplibs
11381 # Compile-time system search path for libraries
11382 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11384 # Run-time system search path for libraries
11385 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11387 # Fix the shell variable \$srcfile for the compiler.
11388 fix_srcfile_path=$lt_fix_srcfile_path
11390 # Set to yes if exported symbols are required.
11391 always_export_symbols=$always_export_symbols
11393 # The commands to list exported symbols.
11394 export_symbols_cmds=$lt_export_symbols_cmds
11396 # The commands to extract the exported symbol list from a shared archive.
11397 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11399 # Symbols that should not be listed in the preloaded symbols.
11400 exclude_expsyms=$lt_exclude_expsyms
11402 # Symbols that must always be exported.
11403 include_expsyms=$lt_include_expsyms
11405 # ### END LIBTOOL CONFIG
11412 cat <<\EOF >> "$cfgfile"
11414 # AIX sometimes has problems with the GCC collect2 program. For some
11415 # reason, if we set the COLLECT_NAMES environment variable, the problems
11416 # vanish in a puff of smoke.
11417 if test "X${COLLECT_NAMES+set}" != Xset; then
11419 export COLLECT_NAMES
11425 # We use sed instead of cat because bash on DJGPP gets confused if
11426 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11427 # text mode, it properly converts lines to CR/LF. This bash problem
11428 # is reportedly fixed, but why not run on old versions too?
11429 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11431 mv -f "$cfgfile" "$ofile" || \
11432 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11436 # If there is no Makefile yet, we rely on a make rule to execute
11437 # `config.status --recheck' to rerun these tests and create the
11438 # libtool script then.
11439 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11440 if test -f "$ltmain_in"; then
11441 test -f Makefile && make "$ltmain"
11447 ac_cpp='$CPP $CPPFLAGS'
11448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11455 # Check whether --with-tags was given.
11456 if test "${with_tags+set}" = set; then
11457 withval=$with_tags; tagnames="$withval"
11461 if test -f "$ltmain" && test -n "$tagnames"; then
11462 if test ! -f "${ofile}"; then
11463 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11464 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11467 if test -z "$LTCC"; then
11468 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11469 if test -z "$LTCC"; then
11470 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11471 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11474 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11477 if test -z "$LTCFLAGS"; then
11478 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11481 # Extract list of available tagged configurations in $ofile.
11482 # Note that this assumes the entire list is on one line.
11483 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11485 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11486 for tagname in $tagnames; do
11488 # Check whether tagname contains only valid characters
11489 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11491 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11492 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11493 { (exit 1); exit 1; }; }
11497 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11499 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11500 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11501 { (exit 1); exit 1; }; }
11504 # Update the list of available tags.
11505 if test -n "$tagname"; then
11506 echo appending configuration tag \"$tagname\" to $ofile
11510 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11511 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11512 (test "X$CXX" != "Xg++"))) ; then
11514 ac_cpp='$CXXCPP $CPPFLAGS'
11515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11522 archive_cmds_need_lc_CXX=no
11523 allow_undefined_flag_CXX=
11524 always_export_symbols_CXX=no
11525 archive_expsym_cmds_CXX=
11526 export_dynamic_flag_spec_CXX=
11527 hardcode_direct_CXX=no
11528 hardcode_libdir_flag_spec_CXX=
11529 hardcode_libdir_flag_spec_ld_CXX=
11530 hardcode_libdir_separator_CXX=
11531 hardcode_minus_L_CXX=no
11532 hardcode_shlibpath_var_CXX=unsupported
11533 hardcode_automatic_CXX=no
11535 module_expsym_cmds_CXX=
11536 link_all_deplibs_CXX=unknown
11537 old_archive_cmds_CXX=$old_archive_cmds
11538 no_undefined_flag_CXX=
11539 whole_archive_flag_spec_CXX=
11540 enable_shared_with_static_runtimes_CXX=no
11542 # Dependencies to place before and after the object being linked:
11543 predep_objects_CXX=
11544 postdep_objects_CXX=
11547 compiler_lib_search_path_CXX=
11549 # Source file extension for C++ test sources.
11552 # Object file extension for compiled C++ test sources.
11556 # Code to be used in simple compile tests
11557 lt_simple_compile_test_code="int some_variable = 0;"
11559 # Code to be used in simple link tests
11560 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11562 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11564 # If no C compiler was specified, use CC.
11567 # If no C compiler flags were specified, use CFLAGS.
11568 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11570 # Allow CC to be a program name with arguments.
11574 # save warnings/boilerplate of simple test code
11575 ac_outfile=conftest.$ac_objext
11576 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11577 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11578 _lt_compiler_boilerplate=`cat conftest.err`
11581 ac_outfile=conftest.$ac_objext
11582 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11583 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11584 _lt_linker_boilerplate=`cat conftest.err`
11588 # Allow CC to be a program name with arguments.
11593 lt_save_with_gnu_ld=$with_gnu_ld
11594 lt_save_path_LD=$lt_cv_path_LD
11595 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11596 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11598 $as_unset lt_cv_prog_gnu_ld
11600 if test -n "${lt_cv_path_LDCXX+set}"; then
11601 lt_cv_path_LD=$lt_cv_path_LDCXX
11603 $as_unset lt_cv_path_LD
11605 test -z "${LDCXX+set}" || LD=$LDCXX
11609 for cc_temp in $compiler""; do
11611 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11612 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11617 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11620 # We don't want -fno-exception wen compiling C++ code, so set the
11621 # no_builtin_flag separately
11622 if test "$GXX" = yes; then
11623 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11625 lt_prog_compiler_no_builtin_flag_CXX=
11628 if test "$GXX" = yes; then
11629 # Set up default GNU C++ configuration
11632 # Check whether --with-gnu-ld was given.
11633 if test "${with_gnu_ld+set}" = set; then
11634 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11640 if test "$GCC" = yes; then
11641 # Check if gcc -print-prog-name=ld gives a path.
11642 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11643 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11646 # gcc leaves a trailing carriage return which upsets mingw
11647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11652 # Accept absolute paths.
11654 re_direlt='/[^/][^/]*/\.\./'
11655 # Canonicalize the pathname of ld
11656 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11657 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11658 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11660 test -z "$LD" && LD="$ac_prog"
11663 # If it fails, then pretend we aren't using GCC.
11667 # If it is relative, then search for the first ld in PATH.
11668 with_gnu_ld=unknown
11671 elif test "$with_gnu_ld" = yes; then
11672 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11673 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11675 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11676 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11678 if test "${lt_cv_path_LD+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11681 if test -z "$LD"; then
11682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11683 for ac_dir in $PATH; do
11685 test -z "$ac_dir" && ac_dir=.
11686 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11687 lt_cv_path_LD="$ac_dir/$ac_prog"
11688 # Check to see if the program is GNU ld. I'd rather use --version,
11689 # but apparently some variants of GNU ld only accept -v.
11690 # Break only if it was the GNU/non-GNU ld that we prefer.
11691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11692 *GNU* | *'with BFD'*)
11693 test "$with_gnu_ld" != no && break
11696 test "$with_gnu_ld" != yes && break
11703 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11707 LD="$lt_cv_path_LD"
11708 if test -n "$LD"; then
11709 { echo "$as_me:$LINENO: result: $LD" >&5
11710 echo "${ECHO_T}$LD" >&6; }
11712 { echo "$as_me:$LINENO: result: no" >&5
11713 echo "${ECHO_T}no" >&6; }
11715 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11716 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11717 { (exit 1); exit 1; }; }
11718 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11719 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11720 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11724 case `$LD -v 2>&1 </dev/null` in
11725 *GNU* | *'with BFD'*)
11726 lt_cv_prog_gnu_ld=yes
11729 lt_cv_prog_gnu_ld=no
11733 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11734 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11735 with_gnu_ld=$lt_cv_prog_gnu_ld
11739 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11740 # archiving commands below assume that GNU ld is being used.
11741 if test "$with_gnu_ld" = yes; then
11742 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11743 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'
11745 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11746 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11748 # If archive_cmds runs LD, not CC, wlarc should be empty
11749 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11750 # investigate it a little bit more. (MM)
11753 # ancient GNU ld didn't support --whole-archive et. al.
11754 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11755 grep 'no-whole-archive' > /dev/null; then
11756 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11758 whole_archive_flag_spec_CXX=
11764 # A generic and very simple default shared library creation
11765 # command for GNU C++ for the case where it uses the native
11766 # linker, instead of GNU ld. If possible, this setting should
11767 # overridden to take advantage of the native linker features on
11768 # the platform it is being used on.
11769 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11772 # Commands to make compiler produce verbose output that lists
11773 # what "hidden" libraries, object files and flags are used when
11774 # linking a shared library.
11775 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11783 # PORTME: fill in a description of your system's C++ link characteristics
11784 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11785 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11789 # FIXME: insert proper C++ library support
11793 if test "$host_cpu" = ia64; then
11794 # On IA64, the linker does run time linking by default, so we don't
11795 # have to do anything special.
11796 aix_use_runtimelinking=no
11797 exp_sym_flag='-Bexport'
11800 aix_use_runtimelinking=no
11802 # Test if we are trying to use run time linking or normal
11803 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11804 # need to do runtime linking.
11805 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11806 for ld_flag in $LDFLAGS; do
11809 aix_use_runtimelinking=yes
11817 exp_sym_flag='-bexport'
11818 no_entry_flag='-bnoentry'
11821 # When large executables or shared objects are built, AIX ld can
11822 # have problems creating the table of contents. If linking a library
11823 # or program results in "error TOC overflow" add -mminimal-toc to
11824 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11825 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11827 archive_cmds_CXX=''
11828 hardcode_direct_CXX=yes
11829 hardcode_libdir_separator_CXX=':'
11830 link_all_deplibs_CXX=yes
11832 if test "$GXX" = yes; then
11833 case $host_os in aix4.[012]|aix4.[012].*)
11834 # We only want to do this on AIX 4.2 and lower, the check
11835 # below for broken collect2 doesn't work under 4.3+
11836 collect2name=`${CC} -print-prog-name=collect2`
11837 if test -f "$collect2name" && \
11838 strings "$collect2name" | grep resolve_lib_name >/dev/null
11840 # We have reworked collect2
11843 # We have old collect2
11844 hardcode_direct_CXX=unsupported
11845 # It fails to find uninstalled libraries when the uninstalled
11846 # path is not listed in the libpath. Setting hardcode_minus_L
11847 # to unsupported forces relinking
11848 hardcode_minus_L_CXX=yes
11849 hardcode_libdir_flag_spec_CXX='-L$libdir'
11850 hardcode_libdir_separator_CXX=
11854 shared_flag='-shared'
11855 if test "$aix_use_runtimelinking" = yes; then
11856 shared_flag="$shared_flag "'${wl}-G'
11860 if test "$host_cpu" = ia64; then
11861 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11862 # chokes on -Wl,-G. The following line is correct:
11865 if test "$aix_use_runtimelinking" = yes; then
11866 shared_flag='${wl}-G'
11868 shared_flag='${wl}-bM:SRE'
11873 # It seems that -bexpall does not export symbols beginning with
11874 # underscore (_), so it is better to generate a list of symbols to export.
11875 always_export_symbols_CXX=yes
11876 if test "$aix_use_runtimelinking" = yes; then
11877 # Warning - without using the other runtime loading flags (-brtl),
11878 # -berok will link without error, but may produce a broken library.
11879 allow_undefined_flag_CXX='-berok'
11880 # Determine the default libpath from the value encoded in an empty executable.
11881 cat >conftest.$ac_ext <<_ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11896 rm -f conftest.$ac_objext conftest$ac_exeext
11897 if { (ac_try="$ac_link"
11898 case "(($ac_try" in
11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903 (eval "$ac_link") 2>conftest.er1
11905 grep -v '^ *+' conftest.er1 >conftest.err
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } && {
11910 test -z "$ac_cxx_werror_flag" ||
11911 test ! -s conftest.err
11912 } && test -s conftest$ac_exeext &&
11913 $as_test_x conftest$ac_exeext; then
11915 lt_aix_libpath_sed='
11916 /Import File Strings/,/^$/ {
11922 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11923 # Check for a 64-bit object if we didn't find anything.
11924 if test -z "$aix_libpath"; then
11925 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11935 conftest$ac_exeext conftest.$ac_ext
11936 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11938 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11940 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"
11942 if test "$host_cpu" = ia64; then
11943 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11944 allow_undefined_flag_CXX="-z nodefs"
11945 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"
11947 # Determine the default libpath from the value encoded in an empty executable.
11948 cat >conftest.$ac_ext <<_ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11963 rm -f conftest.$ac_objext conftest$ac_exeext
11964 if { (ac_try="$ac_link"
11965 case "(($ac_try" in
11966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11967 *) ac_try_echo=$ac_try;;
11969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11970 (eval "$ac_link") 2>conftest.er1
11972 grep -v '^ *+' conftest.er1 >conftest.err
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } && {
11977 test -z "$ac_cxx_werror_flag" ||
11978 test ! -s conftest.err
11979 } && test -s conftest$ac_exeext &&
11980 $as_test_x conftest$ac_exeext; then
11982 lt_aix_libpath_sed='
11983 /Import File Strings/,/^$/ {
11989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11990 # Check for a 64-bit object if we didn't find anything.
11991 if test -z "$aix_libpath"; then
11992 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11995 echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
12001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12002 conftest$ac_exeext conftest.$ac_ext
12003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12005 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12006 # Warning - without using the other run time loading flags,
12007 # -berok will link without error, but may produce a broken library.
12008 no_undefined_flag_CXX=' ${wl}-bernotok'
12009 allow_undefined_flag_CXX=' ${wl}-berok'
12010 # Exported symbols can be pulled into shared objects from archives
12011 whole_archive_flag_spec_CXX='$convenience'
12012 archive_cmds_need_lc_CXX=yes
12013 # This is similar to how AIX traditionally builds its shared libraries.
12014 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'
12020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12021 allow_undefined_flag_CXX=unsupported
12022 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12023 # support --undefined. This deserves some investigation. FIXME
12024 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12031 case $cc_basename in
12033 # FIXME: insert proper C++ library support
12039 cygwin* | mingw* | pw32*)
12040 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12041 # as there is no search path for DLLs.
12042 hardcode_libdir_flag_spec_CXX='-L$libdir'
12043 allow_undefined_flag_CXX=unsupported
12044 always_export_symbols_CXX=no
12045 enable_shared_with_static_runtimes_CXX=yes
12047 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12048 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'
12049 # If the export-symbols file already is a .def file (1st line
12050 # is EXPORTS), use it as is; otherwise, prepend...
12051 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12052 cp $export_symbols $output_objdir/$soname.def;
12054 echo EXPORTS > $output_objdir/$soname.def;
12055 cat $export_symbols >> $output_objdir/$soname.def;
12057 $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'
12062 darwin* | rhapsody*)
12064 rhapsody* | darwin1.[012])
12065 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12068 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12069 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12071 case ${MACOSX_DEPLOYMENT_TARGET} in
12073 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12076 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12082 archive_cmds_need_lc_CXX=no
12083 hardcode_direct_CXX=no
12084 hardcode_automatic_CXX=yes
12085 hardcode_shlibpath_var_CXX=unsupported
12086 whole_archive_flag_spec_CXX=''
12087 link_all_deplibs_CXX=yes
12089 if test "$GXX" = yes ; then
12090 lt_int_apple_cc_single_mod=no
12091 output_verbose_link_cmd='echo'
12092 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12093 lt_int_apple_cc_single_mod=yes
12095 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12096 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12098 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'
12100 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12101 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12102 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12103 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12105 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12107 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}'
12109 case $cc_basename in
12111 output_verbose_link_cmd='echo'
12112 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'
12113 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12114 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12115 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}'
12116 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}'
12126 case $cc_basename in
12128 # FIXME: insert proper C++ library support
12132 # Green Hills C++ Compiler
12133 # FIXME: insert proper C++ library support
12137 # FIXME: insert proper C++ library support
12143 # C++ shared libraries reported to be fairly broken before switch to ELF
12147 archive_cmds_need_lc_CXX=no
12149 freebsd* | dragonfly*)
12150 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12157 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12158 hardcode_libdir_separator_CXX=:
12159 export_dynamic_flag_spec_CXX='${wl}-E'
12160 hardcode_direct_CXX=yes
12161 hardcode_minus_L_CXX=yes # Not in the search PATH,
12162 # but as the default
12163 # location of the library.
12165 case $cc_basename in
12167 # FIXME: insert proper C++ library support
12171 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'
12172 # Commands to make compiler produce verbose output that lists
12173 # what "hidden" libraries, object files and flags are used when
12174 # linking a shared library.
12176 # There doesn't appear to be a way to prevent this compiler from
12177 # explicitly linking system object files so we need to strip them
12178 # from the output so that they don't get included in the library
12180 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'
12183 if test "$GXX" = yes; then
12184 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'
12186 # FIXME: insert proper C++ library support
12193 if test $with_gnu_ld = no; then
12194 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12195 hardcode_libdir_separator_CXX=:
12200 export_dynamic_flag_spec_CXX='${wl}-E'
12206 hardcode_direct_CXX=no
12207 hardcode_shlibpath_var_CXX=no
12210 hardcode_direct_CXX=yes
12211 hardcode_minus_L_CXX=yes # Not in the search PATH,
12212 # but as the default
12213 # location of the library.
12217 case $cc_basename in
12219 # FIXME: insert proper C++ library support
12225 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12228 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12231 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12234 # Commands to make compiler produce verbose output that lists
12235 # what "hidden" libraries, object files and flags are used when
12236 # linking a shared library.
12238 # There doesn't appear to be a way to prevent this compiler from
12239 # explicitly linking system object files so we need to strip them
12240 # from the output so that they don't get included in the library
12242 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'
12245 if test "$GXX" = yes; then
12246 if test $with_gnu_ld = no; then
12249 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12252 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12255 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'
12260 # FIXME: insert proper C++ library support
12267 hardcode_direct_CXX=no
12268 hardcode_shlibpath_var_CXX=no
12269 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12270 export_dynamic_flag_spec_CXX='${wl}-E'
12271 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12272 # Instead, shared libraries are loaded at an image base (0x10000000 by
12273 # default) and relocated if they conflict, which is a slow very memory
12274 # consuming and fragmenting process. To avoid this, we pick a random,
12275 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12276 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12277 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'
12278 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'
12281 case $cc_basename in
12284 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'
12286 # Archives containing C++ object files must be created using
12287 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12288 # necessary to make sure instantiated templates are included
12290 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12293 if test "$GXX" = yes; then
12294 if test "$with_gnu_ld" = no; then
12295 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'
12297 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'
12300 link_all_deplibs_CXX=yes
12303 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12304 hardcode_libdir_separator_CXX=:
12306 linux* | k*bsd*-gnu)
12307 case $cc_basename in
12309 # Kuck and Associates, Inc. (KAI) C++ Compiler
12311 # KCC will only create a shared library if the output file
12312 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12313 # to its proper name (with version) after linking.
12314 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'
12315 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'
12316 # Commands to make compiler produce verbose output that lists
12317 # what "hidden" libraries, object files and flags are used when
12318 # linking a shared library.
12320 # There doesn't appear to be a way to prevent this compiler from
12321 # explicitly linking system object files so we need to strip them
12322 # from the output so that they don't get included in the library
12324 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'
12326 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12327 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12329 # Archives containing C++ object files must be created using
12330 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12331 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12336 # version 8.0 and above of icpc choke on multiply defined symbols
12337 # if we add $predep_objects and $postdep_objects, however 7.1 and
12338 # earlier do not add the objects themselves.
12339 case `$CC -V 2>&1` in
12341 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12342 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'
12344 *) # Version 8.0 or newer
12347 ia64*) tmp_idyn=' -i_dynamic';;
12349 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12350 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'
12353 archive_cmds_need_lc_CXX=no
12354 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12355 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12356 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12359 # Portland Group C++ compiler
12360 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12361 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'
12363 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12364 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12365 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'
12369 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12370 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'
12372 runpath_var=LD_RUN_PATH
12373 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12374 hardcode_libdir_separator_CXX=:
12376 # Commands to make compiler produce verbose output that lists
12377 # what "hidden" libraries, object files and flags are used when
12378 # linking a shared library.
12380 # There doesn't appear to be a way to prevent this compiler from
12381 # explicitly linking system object files so we need to strip them
12382 # from the output so that they don't get included in the library
12384 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'
12387 case `$CC -V 2>&1 | sed 5q` in
12390 no_undefined_flag_CXX=' -zdefs'
12391 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12392 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'
12393 hardcode_libdir_flag_spec_CXX='-R$libdir'
12394 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'
12396 # Not sure whether something based on
12397 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12399 output_verbose_link_cmd='echo'
12401 # Archives containing C++ object files must be created using
12402 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12403 # necessary to make sure instantiated templates are included
12405 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12412 # FIXME: insert proper C++ library support
12416 # FIXME: insert proper C++ library support
12420 case $cc_basename in
12422 # FIXME: insert proper C++ library support
12426 # FIXME: insert proper C++ library support
12431 netbsd* | netbsdelf*-gnu)
12432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12433 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12435 hardcode_libdir_flag_spec_CXX='-R$libdir'
12436 hardcode_direct_CXX=yes
12437 hardcode_shlibpath_var_CXX=no
12439 # Workaround some broken pre-1.5 toolchains
12440 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12443 # C++ shared libraries are fairly broken
12447 if test -f /usr/libexec/ld.so; then
12448 hardcode_direct_CXX=yes
12449 hardcode_shlibpath_var_CXX=no
12450 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12451 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12452 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12453 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12454 export_dynamic_flag_spec_CXX='${wl}-E'
12455 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12457 output_verbose_link_cmd='echo'
12463 case $cc_basename in
12465 # Kuck and Associates, Inc. (KAI) C++ Compiler
12467 # KCC will only create a shared library if the output file
12468 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12469 # to its proper name (with version) after linking.
12470 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'
12472 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12473 hardcode_libdir_separator_CXX=:
12475 # Archives containing C++ object files must be created using
12476 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12477 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12481 # Rational C++ 2.4.1
12482 # FIXME: insert proper C++ library support
12486 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12487 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'
12489 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12490 hardcode_libdir_separator_CXX=:
12492 # Commands to make compiler produce verbose output that lists
12493 # what "hidden" libraries, object files and flags are used when
12494 # linking a shared library.
12496 # There doesn't appear to be a way to prevent this compiler from
12497 # explicitly linking system object files so we need to strip them
12498 # from the output so that they don't get included in the library
12500 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'
12503 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12504 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12505 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'
12507 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12508 hardcode_libdir_separator_CXX=:
12510 # Commands to make compiler produce verbose output that lists
12511 # what "hidden" libraries, object files and flags are used when
12512 # linking a shared library.
12513 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12516 # FIXME: insert proper C++ library support
12523 case $cc_basename in
12525 # Kuck and Associates, Inc. (KAI) C++ Compiler
12527 # KCC will only create a shared library if the output file
12528 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12529 # to its proper name (with version) after linking.
12530 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'
12532 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12533 hardcode_libdir_separator_CXX=:
12535 # Archives containing C++ object files must be created using
12536 # the KAI C++ compiler.
12537 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12540 # Rational C++ 2.4.1
12541 # FIXME: insert proper C++ library support
12545 allow_undefined_flag_CXX=' -expect_unresolved \*'
12546 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'
12547 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12548 echo "-hidden">> $lib.exp~
12549 $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~
12552 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12553 hardcode_libdir_separator_CXX=:
12555 # Commands to make compiler produce verbose output that lists
12556 # what "hidden" libraries, object files and flags are used when
12557 # linking a shared library.
12559 # There doesn't appear to be a way to prevent this compiler from
12560 # explicitly linking system object files so we need to strip them
12561 # from the output so that they don't get included in the library
12563 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'
12566 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12567 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12568 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'
12570 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12571 hardcode_libdir_separator_CXX=:
12573 # Commands to make compiler produce verbose output that lists
12574 # what "hidden" libraries, object files and flags are used when
12575 # linking a shared library.
12576 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12579 # FIXME: insert proper C++ library support
12586 # FIXME: insert proper C++ library support
12590 case $cc_basename in
12593 # FIXME: insert proper C++ library support
12598 # FIXME: insert proper C++ library support
12602 # FIXME: insert proper C++ library support
12608 case $cc_basename in
12610 # Sun C++ 4.2, 5.x and Centerline C++
12611 archive_cmds_need_lc_CXX=yes
12612 no_undefined_flag_CXX=' -zdefs'
12613 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12614 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12615 $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'
12617 hardcode_libdir_flag_spec_CXX='-R$libdir'
12618 hardcode_shlibpath_var_CXX=no
12620 solaris2.[0-5] | solaris2.[0-5].*) ;;
12622 # The compiler driver will combine and reorder linker options,
12623 # but understands `-z linker_flag'.
12624 # Supported since Solaris 2.6 (maybe 2.5.1?)
12625 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12628 link_all_deplibs_CXX=yes
12630 output_verbose_link_cmd='echo'
12632 # Archives containing C++ object files must be created using
12633 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12634 # necessary to make sure instantiated templates are included
12636 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12639 # Green Hills C++ Compiler
12640 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12642 # The C++ compiler must be used to create the archive.
12643 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12646 # GNU C++ compiler with Solaris linker
12647 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12648 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12649 if $CC --version | grep -v '^2\.7' > /dev/null; then
12650 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12651 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12652 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12654 # Commands to make compiler produce verbose output that lists
12655 # what "hidden" libraries, object files and flags are used when
12656 # linking a shared library.
12657 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12659 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12661 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12662 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12663 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12665 # Commands to make compiler produce verbose output that lists
12666 # what "hidden" libraries, object files and flags are used when
12667 # linking a shared library.
12668 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12671 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12673 solaris2.[0-5] | solaris2.[0-5].*) ;;
12675 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12682 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12683 no_undefined_flag_CXX='${wl}-z,text'
12684 archive_cmds_need_lc_CXX=no
12685 hardcode_shlibpath_var_CXX=no
12686 runpath_var='LD_RUN_PATH'
12688 case $cc_basename in
12690 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12691 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12694 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12695 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12699 sysv5* | sco3.2v5* | sco5v6*)
12700 # Note: We can NOT use -z defs as we might desire, because we do not
12701 # link with -lc, and that would cause any symbols used from libc to
12702 # always be unresolved, which means just about no library would
12703 # ever link correctly. If we're not using GNU ld we use -z text
12704 # though, which does catch some bad symbols but isn't as heavy-handed
12706 # For security reasons, it is highly recommended that you always
12707 # use absolute paths for naming shared libraries, and exclude the
12708 # DT_RUNPATH tag from executables and libraries. But doing so
12709 # requires that you compile everything twice, which is a pain.
12710 # So that behaviour is only enabled if SCOABSPATH is set to a
12711 # non-empty value in the environment. Most likely only useful for
12712 # creating official distributions of packages.
12713 # This is a hack until libtool officially supports absolute path
12714 # names for shared libraries.
12715 no_undefined_flag_CXX='${wl}-z,text'
12716 allow_undefined_flag_CXX='${wl}-z,nodefs'
12717 archive_cmds_need_lc_CXX=no
12718 hardcode_shlibpath_var_CXX=no
12719 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12720 hardcode_libdir_separator_CXX=':'
12721 link_all_deplibs_CXX=yes
12722 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12723 runpath_var='LD_RUN_PATH'
12725 case $cc_basename in
12727 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12728 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12731 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12732 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12737 case $cc_basename in
12739 # NonStop-UX NCC 3.20
12740 # FIXME: insert proper C++ library support
12744 # FIXME: insert proper C++ library support
12750 # FIXME: insert proper C++ library support
12754 # FIXME: insert proper C++ library support
12758 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12759 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12760 test "$ld_shlibs_CXX" = no && can_build_shared=no
12766 cat > conftest.$ac_ext <<EOF
12770 Foo (void) { a = 0; }
12776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12777 (eval $ac_compile) 2>&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; then
12781 # Parse the compiler output and extract the necessary
12782 # objects, libraries and library flags.
12784 # Sentinel used to keep track of whether or not we are before
12785 # the conftest object file.
12786 pre_test_object_deps_done=no
12788 # The `*' in the case matches for architectures that use `case' in
12789 # $output_verbose_cmd can trigger glob expansion during the loop
12790 # eval without this substitution.
12791 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12793 for p in `eval $output_verbose_link_cmd`; do
12797 # Some compilers place space between "-{L,R}" and the path.
12798 # Remove the space.
12799 if test $p = "-L" \
12800 || test $p = "-R"; then
12807 if test "$pre_test_object_deps_done" = no; then
12810 # Internal compiler library paths should come after those
12811 # provided the user. The postdeps already come after the
12812 # user supplied libs so there is no need to process them.
12813 if test -z "$compiler_lib_search_path_CXX"; then
12814 compiler_lib_search_path_CXX="${prev}${p}"
12816 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12819 # The "-l" case would never come before the object being
12820 # linked, so don't bother handling this case.
12823 if test -z "$postdeps_CXX"; then
12824 postdeps_CXX="${prev}${p}"
12826 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12832 # This assumes that the test object file only shows up
12833 # once in the compiler output.
12834 if test "$p" = "conftest.$objext"; then
12835 pre_test_object_deps_done=yes
12839 if test "$pre_test_object_deps_done" = no; then
12840 if test -z "$predep_objects_CXX"; then
12841 predep_objects_CXX="$p"
12843 predep_objects_CXX="$predep_objects_CXX $p"
12846 if test -z "$postdep_objects_CXX"; then
12847 postdep_objects_CXX="$p"
12849 postdep_objects_CXX="$postdep_objects_CXX $p"
12854 *) ;; # Ignore the rest.
12862 echo "libtool.m4: error: problem compiling CXX test program"
12865 $rm -f confest.$objext
12867 # PORTME: override above test on systems where it is broken
12870 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12871 # hack all around it, let's just trust "g++" to DTRT.
12872 predep_objects_CXX=
12873 postdep_objects_CXX=
12878 case `$CC -V 2>&1 | sed 5q` in
12882 # The more standards-conforming stlport4 library is
12883 # incompatible with the Cstd library. Avoid specifying
12884 # it if it's in CXXFLAGS. Ignore libCrun as
12885 # -library=stlport4 depends on it.
12886 case " $CXX $CXXFLAGS " in
12887 *" -library=stlport4 "*)
12888 solaris_use_stlport4=yes
12891 if test "$solaris_use_stlport4" != yes; then
12892 postdeps_CXX='-library=Cstd -library=Crun'
12899 case $cc_basename in
12901 # The more standards-conforming stlport4 library is
12902 # incompatible with the Cstd library. Avoid specifying
12903 # it if it's in CXXFLAGS. Ignore libCrun as
12904 # -library=stlport4 depends on it.
12905 case " $CXX $CXXFLAGS " in
12906 *" -library=stlport4 "*)
12907 solaris_use_stlport4=yes
12911 # Adding this requires a known-good setup of shared libraries for
12912 # Sun compiler versions before 5.6, else PIC objects from an old
12913 # archive will be linked into the output, leading to subtle bugs.
12914 if test "$solaris_use_stlport4" != yes; then
12915 postdeps_CXX='-library=Cstd -library=Crun'
12923 case " $postdeps_CXX " in
12924 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12927 lt_prog_compiler_wl_CXX=
12928 lt_prog_compiler_pic_CXX=
12929 lt_prog_compiler_static_CXX=
12931 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12932 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12934 # C++ specific cases for pic, static, wl, etc.
12935 if test "$GXX" = yes; then
12936 lt_prog_compiler_wl_CXX='-Wl,'
12937 lt_prog_compiler_static_CXX='-static'
12941 # All AIX code is PIC.
12942 if test "$host_cpu" = ia64; then
12943 # AIX 5 now supports IA64 processor
12944 lt_prog_compiler_static_CXX='-Bstatic'
12948 # FIXME: we need at least 68020 code to build shared libraries, but
12949 # adding the `-m68020' flag to GCC prevents building anything better,
12951 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12953 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12954 # PIC is the default for these OSes.
12956 mingw* | cygwin* | os2* | pw32*)
12957 # This hack is so that the source file can tell whether it is being
12958 # built for inclusion in a dll (and should export symbols for example).
12959 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12960 # (--disable-auto-import) libraries
12961 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12963 darwin* | rhapsody*)
12964 # PIC is the default on this platform
12965 # Common symbols not allowed in MH_DYLIB files
12966 lt_prog_compiler_pic_CXX='-fno-common'
12969 # DJGPP does not support shared libraries at all
12970 lt_prog_compiler_pic_CXX=
12973 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12974 # Instead, we relocate shared libraries at runtime.
12977 if test -d /usr/nec; then
12978 lt_prog_compiler_pic_CXX=-Kconform_pic
12982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12983 # not for PA HP-UX.
12988 lt_prog_compiler_pic_CXX='-fPIC'
12993 lt_prog_compiler_pic_CXX='-fPIC'
12999 # All AIX code is PIC.
13000 if test "$host_cpu" = ia64; then
13001 # AIX 5 now supports IA64 processor
13002 lt_prog_compiler_static_CXX='-Bstatic'
13004 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13008 case $cc_basename in
13010 # Green Hills C++ Compiler
13011 # _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"
13016 # PIC is the default on this platform
13017 # Common symbols not allowed in MH_DYLIB files
13018 case $cc_basename in
13020 lt_prog_compiler_pic_CXX='-qnocommon'
13021 lt_prog_compiler_wl_CXX='-Wl,'
13026 case $cc_basename in
13028 lt_prog_compiler_pic_CXX='-KPIC'
13031 # Green Hills C++ Compiler
13032 lt_prog_compiler_pic_CXX='-pic'
13038 freebsd* | dragonfly*)
13039 # FreeBSD uses GNU C++
13041 hpux9* | hpux10* | hpux11*)
13042 case $cc_basename in
13044 lt_prog_compiler_wl_CXX='-Wl,'
13045 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13046 if test "$host_cpu" != ia64; then
13047 lt_prog_compiler_pic_CXX='+Z'
13051 lt_prog_compiler_wl_CXX='-Wl,'
13052 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13058 lt_prog_compiler_pic_CXX='+Z'
13067 # This is c89, which is MS Visual C++ (no shared libs)
13068 # Anyone wants to do a port?
13070 irix5* | irix6* | nonstopux*)
13071 case $cc_basename in
13073 lt_prog_compiler_wl_CXX='-Wl,'
13074 lt_prog_compiler_static_CXX='-non_shared'
13075 # CC pic flag -KPIC is the default.
13081 linux* | k*bsd*-gnu)
13082 case $cc_basename in
13085 lt_prog_compiler_wl_CXX='--backend -Wl,'
13086 lt_prog_compiler_pic_CXX='-fPIC'
13090 lt_prog_compiler_wl_CXX='-Wl,'
13091 lt_prog_compiler_pic_CXX='-KPIC'
13092 lt_prog_compiler_static_CXX='-static'
13095 # Portland Group C++ compiler.
13096 lt_prog_compiler_wl_CXX='-Wl,'
13097 lt_prog_compiler_pic_CXX='-fpic'
13098 lt_prog_compiler_static_CXX='-Bstatic'
13102 # Make sure the PIC flag is empty. It appears that all Alpha
13103 # Linux and Compaq Tru64 Unix objects are PIC.
13104 lt_prog_compiler_pic_CXX=
13105 lt_prog_compiler_static_CXX='-non_shared'
13108 case `$CC -V 2>&1 | sed 5q` in
13111 lt_prog_compiler_pic_CXX='-KPIC'
13112 lt_prog_compiler_static_CXX='-Bstatic'
13113 lt_prog_compiler_wl_CXX='-Qoption ld '
13124 case $cc_basename in
13126 lt_prog_compiler_pic_CXX='-W c,exportall'
13132 netbsd* | netbsdelf*-gnu)
13134 osf3* | osf4* | osf5*)
13135 case $cc_basename in
13137 lt_prog_compiler_wl_CXX='--backend -Wl,'
13140 # Rational C++ 2.4.1
13141 lt_prog_compiler_pic_CXX='-pic'
13144 # Digital/Compaq C++
13145 lt_prog_compiler_wl_CXX='-Wl,'
13146 # Make sure the PIC flag is empty. It appears that all Alpha
13147 # Linux and Compaq Tru64 Unix objects are PIC.
13148 lt_prog_compiler_pic_CXX=
13149 lt_prog_compiler_static_CXX='-non_shared'
13158 case $cc_basename in
13160 # Sun C++ 4.2, 5.x and Centerline C++
13161 lt_prog_compiler_pic_CXX='-KPIC'
13162 lt_prog_compiler_static_CXX='-Bstatic'
13163 lt_prog_compiler_wl_CXX='-Qoption ld '
13166 # Green Hills C++ Compiler
13167 lt_prog_compiler_pic_CXX='-PIC'
13174 case $cc_basename in
13177 lt_prog_compiler_pic_CXX='-pic'
13178 lt_prog_compiler_static_CXX='-Bstatic'
13182 lt_prog_compiler_pic_CXX='-pic'
13189 case $cc_basename in
13191 # NonStop-UX NCC 3.20
13192 lt_prog_compiler_pic_CXX='-KPIC'
13198 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13199 case $cc_basename in
13201 lt_prog_compiler_wl_CXX='-Wl,'
13202 lt_prog_compiler_pic_CXX='-KPIC'
13203 lt_prog_compiler_static_CXX='-Bstatic'
13210 lt_prog_compiler_can_build_shared_CXX=no
13215 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13216 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13219 # Check to make sure the PIC flag actually works.
13221 if test -n "$lt_prog_compiler_pic_CXX"; then
13223 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13224 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13225 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 lt_prog_compiler_pic_works_CXX=no
13229 ac_outfile=conftest.$ac_objext
13230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13231 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13232 # Insert the option either (1) after the last *FLAGS variable, or
13233 # (2) before a word containing "conftest.", or (3) at the end.
13234 # Note that $ac_compile itself does not contain backslashes and begins
13235 # with a dollar sign (not a hyphen), so the echo should work correctly.
13236 # The option is referenced via a variable to avoid confusing sed.
13237 lt_compile=`echo "$ac_compile" | $SED \
13238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13240 -e 's:$: $lt_compiler_flag:'`
13241 (eval echo "\"\$as_me:13241: $lt_compile\"" >&5)
13242 (eval "$lt_compile" 2>conftest.err)
13244 cat conftest.err >&5
13245 echo "$as_me:13245: \$? = $ac_status" >&5
13246 if (exit $ac_status) && test -s "$ac_outfile"; then
13247 # The compiler can only warn and ignore the option if not recognized
13248 # So say no if there are warnings other than the usual output.
13249 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13251 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13252 lt_prog_compiler_pic_works_CXX=yes
13258 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13259 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13261 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13262 case $lt_prog_compiler_pic_CXX in
13264 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13267 lt_prog_compiler_pic_CXX=
13268 lt_prog_compiler_can_build_shared_CXX=no
13273 # For platforms which do not support PIC, -DPIC is meaningless:
13275 lt_prog_compiler_pic_CXX=
13278 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13283 # Check to make sure the static flag actually works.
13285 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13286 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13287 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13288 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 lt_prog_compiler_static_works_CXX=no
13292 save_LDFLAGS="$LDFLAGS"
13293 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13294 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13295 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13296 # The linker can only warn and ignore the option if not recognized
13297 # So say no if there are warnings
13298 if test -s conftest.err; then
13299 # Append any errors to the config.log.
13300 cat conftest.err 1>&5
13301 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13303 if diff conftest.exp conftest.er2 >/dev/null; then
13304 lt_prog_compiler_static_works_CXX=yes
13307 lt_prog_compiler_static_works_CXX=yes
13311 LDFLAGS="$save_LDFLAGS"
13314 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13315 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13317 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13320 lt_prog_compiler_static_CXX=
13324 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13325 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13326 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13327 echo $ECHO_N "(cached) $ECHO_C" >&6
13329 lt_cv_prog_compiler_c_o_CXX=no
13330 $rm -r conftest 2>/dev/null
13334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13336 lt_compiler_flag="-o out/conftest2.$ac_objext"
13337 # Insert the option either (1) after the last *FLAGS variable, or
13338 # (2) before a word containing "conftest.", or (3) at the end.
13339 # Note that $ac_compile itself does not contain backslashes and begins
13340 # with a dollar sign (not a hyphen), so the echo should work correctly.
13341 lt_compile=`echo "$ac_compile" | $SED \
13342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13344 -e 's:$: $lt_compiler_flag:'`
13345 (eval echo "\"\$as_me:13345: $lt_compile\"" >&5)
13346 (eval "$lt_compile" 2>out/conftest.err)
13348 cat out/conftest.err >&5
13349 echo "$as_me:13349: \$? = $ac_status" >&5
13350 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13352 # The compiler can only warn and ignore the option if not recognized
13353 # So say no if there are warnings
13354 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13355 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13356 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13357 lt_cv_prog_compiler_c_o_CXX=yes
13362 # SGI C++ compiler will create directory out/ii_files/ for
13363 # template instantiation
13364 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13365 $rm out/* && rmdir out
13371 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13372 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13375 hard_links="nottested"
13376 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13377 # do not overwrite the value of need_locks provided by the user
13378 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13379 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13382 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13384 ln conftest.a conftest.b 2>&5 || hard_links=no
13385 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13386 { echo "$as_me:$LINENO: result: $hard_links" >&5
13387 echo "${ECHO_T}$hard_links" >&6; }
13388 if test "$hard_links" = no; then
13389 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13390 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13397 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13398 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13400 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13403 # If we're using GNU nm, then we don't want the "-C" option.
13404 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13405 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13406 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'
13408 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'
13412 export_symbols_cmds_CXX="$ltdll_cmds"
13415 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'
13417 linux* | k*bsd*-gnu)
13418 link_all_deplibs_CXX=no
13421 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13425 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13426 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13427 test "$ld_shlibs_CXX" = no && can_build_shared=no
13430 # Do we need to explicitly link libc?
13432 case "x$archive_cmds_need_lc_CXX" in
13434 # Assume -lc should be added
13435 archive_cmds_need_lc_CXX=yes
13437 if test "$enable_shared" = yes && test "$GCC" = yes; then
13438 case $archive_cmds_CXX in
13440 # FIXME: we may have to deal with multi-command sequences.
13443 # Test whether the compiler implicitly links with -lc since on some
13444 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13445 # to ld, don't add -lc before -lgcc.
13446 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13447 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13449 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13452 (eval $ac_compile) 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } 2>conftest.err; then
13458 libobjs=conftest.$ac_objext
13460 wl=$lt_prog_compiler_wl_CXX
13461 pic_flag=$lt_prog_compiler_pic_CXX
13467 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13468 allow_undefined_flag_CXX=
13469 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13470 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }
13475 archive_cmds_need_lc_CXX=no
13477 archive_cmds_need_lc_CXX=yes
13479 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13481 cat conftest.err 1>&5
13484 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13485 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13492 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13493 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13494 library_names_spec=
13495 libname_spec='lib$name'
13499 postuninstall_cmds=
13503 shlibpath_overrides_runpath=unknown
13505 dynamic_linker="$host_os ld.so"
13506 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13508 need_lib_prefix=unknown
13509 hardcode_into_libs=no
13511 # when you set need_version to no, make sure it does not cause -set_version
13512 # flags to be left without arguments
13513 need_version=unknown
13518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13519 shlibpath_var=LIBPATH
13521 # AIX 3 has no versioning support, so we append a major version to the name.
13522 soname_spec='${libname}${release}${shared_ext}$major'
13529 hardcode_into_libs=yes
13530 if test "$host_cpu" = ia64; then
13531 # AIX 5 supports IA64
13532 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13533 shlibpath_var=LD_LIBRARY_PATH
13535 # With GCC up to 2.95.x, collect2 would create an import file
13536 # for dependence libraries. The import file would start with
13537 # the line `#! .'. This would cause the generated library to
13538 # depend on `.', always an invalid library. This was fixed in
13539 # development snapshots of GCC prior to 3.0.
13541 aix4 | aix4.[01] | aix4.[01].*)
13542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13544 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13547 can_build_shared=no
13551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13552 # soname into executable. Probably we can add versioning support to
13553 # collect2, so additional links can be useful in future.
13554 if test "$aix_use_runtimelinking" = yes; then
13555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13556 # instead of lib<name>.a to let people know that these are not
13557 # typical AIX shared libraries.
13558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13560 # We preserve .a as extension for shared libraries through AIX4.2
13561 # and later when we are not doing run time linking.
13562 library_names_spec='${libname}${release}.a $libname.a'
13563 soname_spec='${libname}${release}${shared_ext}$major'
13565 shlibpath_var=LIBPATH
13570 library_names_spec='$libname.ixlibrary $libname.a'
13571 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13572 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'
13576 library_names_spec='${libname}${shared_ext}'
13577 dynamic_linker="$host_os ld.so"
13578 shlibpath_var=LIBRARY_PATH
13584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13585 soname_spec='${libname}${release}${shared_ext}$major'
13586 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13587 shlibpath_var=LD_LIBRARY_PATH
13588 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13589 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13590 # the default ld.so.conf also contains /usr/contrib/lib and
13591 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13592 # libtool to hard-code these into programs
13595 cygwin* | mingw* | pw32*)
13596 version_type=windows
13601 case $GCC,$host_os in
13602 yes,cygwin* | yes,mingw* | yes,pw32*)
13603 library_names_spec='$libname.dll.a'
13604 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13605 postinstall_cmds='base_file=`basename \${file}`~
13606 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13607 dldir=$destdir/`dirname \$dlpath`~
13608 test -d \$dldir || mkdir -p \$dldir~
13609 $install_prog $dir/$dlname \$dldir/$dlname~
13610 chmod a+x \$dldir/$dlname'
13611 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13612 dlpath=$dir/\$dldll~
13614 shlibpath_overrides_runpath=yes
13618 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13619 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13620 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13623 # MinGW DLLs use traditional 'lib' prefix
13624 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13625 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13626 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13627 # It is most probably a Windows format PATH printed by
13628 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13629 # path with ; separators, and with drive letters. We can handle the
13630 # drive letters (cygwin fileutils understands them), so leave them,
13631 # especially as we might pass files found there to a mingw objdump,
13632 # which wouldn't understand a cygwinified path. Ahh.
13633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13639 # pw32 DLLs use 'pw' prefix rather than 'lib'
13640 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13646 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13649 dynamic_linker='Win32 ld.exe'
13650 # FIXME: first we should search . and the directory the executable is in
13654 darwin* | rhapsody*)
13655 dynamic_linker="$host_os dyld"
13656 version_type=darwin
13659 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13660 soname_spec='${libname}${release}${major}$shared_ext'
13661 shlibpath_overrides_runpath=yes
13662 shlibpath_var=DYLD_LIBRARY_PATH
13663 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13665 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13673 soname_spec='${libname}${release}${shared_ext}$major'
13674 shlibpath_var=LD_LIBRARY_PATH
13681 freebsd* | dragonfly*)
13682 # DragonFly does not have aout. When/if they implement a new
13683 # versioning mechanism, adjust this.
13684 if test -x /usr/bin/objformat; then
13685 objformat=`/usr/bin/objformat`
13688 freebsd[123]*) objformat=aout ;;
13689 *) objformat=elf ;;
13692 version_type=freebsd-$objformat
13693 case $version_type in
13695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13704 shlibpath_var=LD_LIBRARY_PATH
13707 shlibpath_overrides_runpath=yes
13709 freebsd3.[01]* | freebsdelf3.[01]*)
13710 shlibpath_overrides_runpath=yes
13711 hardcode_into_libs=yes
13713 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13714 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13715 shlibpath_overrides_runpath=no
13716 hardcode_into_libs=yes
13718 *) # from 4.6 on, and DragonFly
13719 shlibpath_overrides_runpath=yes
13720 hardcode_into_libs=yes
13729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13730 soname_spec='${libname}${release}${shared_ext}$major'
13731 shlibpath_var=LD_LIBRARY_PATH
13732 hardcode_into_libs=yes
13735 hpux9* | hpux10* | hpux11*)
13736 # Give a soname corresponding to the major version so that dld.sl refuses to
13737 # link against other versions.
13744 hardcode_into_libs=yes
13745 dynamic_linker="$host_os dld.so"
13746 shlibpath_var=LD_LIBRARY_PATH
13747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13749 soname_spec='${libname}${release}${shared_ext}$major'
13750 if test "X$HPUX_IA64_MODE" = X32; then
13751 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13753 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13759 hardcode_into_libs=yes
13760 dynamic_linker="$host_os dld.sl"
13761 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13764 soname_spec='${libname}${release}${shared_ext}$major'
13765 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13770 dynamic_linker="$host_os dld.sl"
13771 shlibpath_var=SHLIB_PATH
13772 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13774 soname_spec='${libname}${release}${shared_ext}$major'
13777 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13778 postinstall_cmds='chmod 555 $lib'
13785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13786 soname_spec='${libname}${release}${shared_ext}$major'
13787 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13788 shlibpath_var=LD_LIBRARY_PATH
13789 shlibpath_overrides_runpath=no
13790 hardcode_into_libs=yes
13793 irix5* | irix6* | nonstopux*)
13795 nonstopux*) version_type=nonstopux ;;
13797 if test "$lt_cv_prog_gnu_ld" = yes; then
13805 soname_spec='${libname}${release}${shared_ext}$major'
13806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13808 irix5* | nonstopux*)
13809 libsuff= shlibsuff=
13812 case $LD in # libtool.m4 will add one of these switches to LD
13813 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13814 libsuff= shlibsuff= libmagic=32-bit;;
13815 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13816 libsuff=32 shlibsuff=N32 libmagic=N32;;
13817 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13818 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13819 *) libsuff= shlibsuff= libmagic=never-match;;
13823 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13824 shlibpath_overrides_runpath=no
13825 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13826 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13827 hardcode_into_libs=yes
13830 # No shared lib support for Linux oldld, aout, or coff.
13831 linux*oldld* | linux*aout* | linux*coff*)
13835 # This must be Linux ELF.
13836 linux* | k*bsd*-gnu)
13840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13841 soname_spec='${libname}${release}${shared_ext}$major'
13842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13843 shlibpath_var=LD_LIBRARY_PATH
13844 shlibpath_overrides_runpath=no
13845 # This implies no fast_install, which is unacceptable.
13846 # Some rework will be needed to allow for fast_install
13847 # before this can be enabled.
13848 hardcode_into_libs=yes
13850 # Append ld.so.conf contents to the search path
13851 if test -f /etc/ld.so.conf; then
13852 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' ' '`
13853 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13856 # We used to test for /lib/ld.so.1 and disable shared libraries on
13857 # powerpc, because MkLinux only supported shared libraries with the
13858 # GNU dynamic linker. Since this was broken with cross compilers,
13859 # most powerpc-linux boxes support dynamic linking these days and
13860 # people can always --disable-shared, the test was removed, and we
13861 # assume the GNU/Linux dynamic linker is in use.
13862 dynamic_linker='GNU/Linux ld.so'
13869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13870 soname_spec='${libname}${release}${shared_ext}$major'
13871 shlibpath_var=LD_LIBRARY_PATH
13872 shlibpath_overrides_runpath=no
13873 hardcode_into_libs=yes
13874 dynamic_linker='NetBSD ld.elf_so'
13881 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13884 dynamic_linker='NetBSD (a.out) ld.so'
13886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13887 soname_spec='${libname}${release}${shared_ext}$major'
13888 dynamic_linker='NetBSD ld.elf_so'
13890 shlibpath_var=LD_LIBRARY_PATH
13891 shlibpath_overrides_runpath=yes
13892 hardcode_into_libs=yes
13897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13898 shlibpath_var=LD_LIBRARY_PATH
13899 shlibpath_overrides_runpath=yes
13906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13907 soname_spec='${libname}${release}${shared_ext}$major'
13908 shlibpath_var=LD_LIBRARY_PATH
13909 shlibpath_overrides_runpath=yes
13914 sys_lib_dlsearch_path_spec="/usr/lib"
13916 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13918 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13919 *) need_version=no ;;
13921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13923 shlibpath_var=LD_LIBRARY_PATH
13924 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13926 openbsd2.[89] | openbsd2.[89].*)
13927 shlibpath_overrides_runpath=no
13930 shlibpath_overrides_runpath=yes
13934 shlibpath_overrides_runpath=yes
13939 libname_spec='$name'
13942 library_names_spec='$libname${shared_ext} $libname.a'
13943 dynamic_linker='OS/2 ld.exe'
13944 shlibpath_var=LIBPATH
13947 osf3* | osf4* | osf5*)
13951 soname_spec='${libname}${release}${shared_ext}$major'
13952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13953 shlibpath_var=LD_LIBRARY_PATH
13954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13967 soname_spec='${libname}${release}${shared_ext}$major'
13968 shlibpath_var=LD_LIBRARY_PATH
13969 shlibpath_overrides_runpath=yes
13970 hardcode_into_libs=yes
13971 # ldd complains unless libraries are executable
13972 postinstall_cmds='chmod +x $lib'
13977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13978 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13979 shlibpath_var=LD_LIBRARY_PATH
13980 shlibpath_overrides_runpath=yes
13981 if test "$with_gnu_ld" = yes; then
13989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13990 soname_spec='${libname}${release}${shared_ext}$major'
13991 shlibpath_var=LD_LIBRARY_PATH
13992 case $host_vendor in
13994 shlibpath_overrides_runpath=no
13996 export_dynamic_flag_spec='${wl}-Blargedynsym'
13997 runpath_var=LD_RUN_PATH
14005 shlibpath_overrides_runpath=no
14006 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14012 if test -d /usr/nec ;then
14014 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14015 soname_spec='$libname${shared_ext}.$major'
14016 shlibpath_var=LD_LIBRARY_PATH
14020 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14021 version_type=freebsd-elf
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14025 soname_spec='${libname}${release}${shared_ext}$major'
14026 shlibpath_var=LD_LIBRARY_PATH
14027 hardcode_into_libs=yes
14028 if test "$with_gnu_ld" = yes; then
14029 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14030 shlibpath_overrides_runpath=no
14032 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14033 shlibpath_overrides_runpath=yes
14036 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14040 sys_lib_dlsearch_path_spec='/usr/lib'
14045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14046 soname_spec='${libname}${release}${shared_ext}$major'
14047 shlibpath_var=LD_LIBRARY_PATH
14054 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14055 echo "${ECHO_T}$dynamic_linker" >&6; }
14056 test "$dynamic_linker" = no && can_build_shared=no
14058 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14059 if test "$GCC" = yes; then
14060 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14063 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14064 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14065 hardcode_action_CXX=
14066 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14067 test -n "$runpath_var_CXX" || \
14068 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14070 # We can hardcode non-existant directories.
14071 if test "$hardcode_direct_CXX" != no &&
14072 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14073 # have to relink, otherwise we might link with an installed library
14074 # when we should be linking with a yet-to-be-installed one
14075 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14076 test "$hardcode_minus_L_CXX" != no; then
14077 # Linking always hardcodes the temporary library directory.
14078 hardcode_action_CXX=relink
14080 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14081 hardcode_action_CXX=immediate
14084 # We cannot hardcode anything, or else we can only hardcode existing
14086 hardcode_action_CXX=unsupported
14088 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14089 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14091 if test "$hardcode_action_CXX" = relink; then
14092 # Fast installation is not supported
14093 enable_fast_install=no
14094 elif test "$shlibpath_overrides_runpath" = yes ||
14095 test "$enable_shared" = no; then
14096 # Fast installation is not necessary
14097 enable_fast_install=needless
14101 # The else clause should only fire when bootstrapping the
14102 # libtool distribution, otherwise you forgot to ship ltmain.sh
14103 # with your package, and you will get complaints that there are
14104 # no rules to generate ltmain.sh.
14105 if test -f "$ltmain"; then
14106 # See if we are running on zsh, and set the options which allow our commands through
14107 # without removal of \ escapes.
14108 if test -n "${ZSH_VERSION+set}" ; then
14109 setopt NO_GLOB_SUBST
14111 # Now quote all the things that may contain metacharacters while being
14112 # careful not to overquote the AC_SUBSTed values. We take copies of the
14113 # variables and quote the copies for generation of the libtool script.
14114 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14116 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14117 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14118 deplibs_check_method reload_flag reload_cmds need_locks \
14119 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14120 lt_cv_sys_global_symbol_to_c_name_address \
14121 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14122 old_postinstall_cmds old_postuninstall_cmds \
14126 lt_prog_compiler_wl_CXX \
14127 lt_prog_compiler_pic_CXX \
14128 lt_prog_compiler_static_CXX \
14129 lt_prog_compiler_no_builtin_flag_CXX \
14130 export_dynamic_flag_spec_CXX \
14131 thread_safe_flag_spec_CXX \
14132 whole_archive_flag_spec_CXX \
14133 enable_shared_with_static_runtimes_CXX \
14134 old_archive_cmds_CXX \
14135 old_archive_from_new_cmds_CXX \
14136 predep_objects_CXX \
14137 postdep_objects_CXX \
14140 compiler_lib_search_path_CXX \
14142 archive_expsym_cmds_CXX \
14143 postinstall_cmds_CXX \
14144 postuninstall_cmds_CXX \
14145 old_archive_from_expsyms_cmds_CXX \
14146 allow_undefined_flag_CXX \
14147 no_undefined_flag_CXX \
14148 export_symbols_cmds_CXX \
14149 hardcode_libdir_flag_spec_CXX \
14150 hardcode_libdir_flag_spec_ld_CXX \
14151 hardcode_libdir_separator_CXX \
14152 hardcode_automatic_CXX \
14154 module_expsym_cmds_CXX \
14155 lt_cv_prog_compiler_c_o_CXX \
14156 fix_srcfile_path_CXX \
14157 exclude_expsyms_CXX \
14158 include_expsyms_CXX; do
14161 old_archive_cmds_CXX | \
14162 old_archive_from_new_cmds_CXX | \
14163 archive_cmds_CXX | \
14164 archive_expsym_cmds_CXX | \
14165 module_cmds_CXX | \
14166 module_expsym_cmds_CXX | \
14167 old_archive_from_expsyms_cmds_CXX | \
14168 export_symbols_cmds_CXX | \
14169 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14170 postinstall_cmds | postuninstall_cmds | \
14171 old_postinstall_cmds | old_postuninstall_cmds | \
14172 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14173 # Double-quote double-evaled strings.
14174 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14177 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14183 *'\$0 --fallback-echo"')
14184 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14190 cat <<__EOF__ >> "$cfgfile"
14191 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14193 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14195 # Shell to use when invoking shell scripts.
14198 # Whether or not to build shared libraries.
14199 build_libtool_libs=$enable_shared
14201 # Whether or not to build static libraries.
14202 build_old_libs=$enable_static
14204 # Whether or not to add -lc for building shared libraries.
14205 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14207 # Whether or not to disallow shared libs when runtime libs are static
14208 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14210 # Whether or not to optimize for fast installation.
14211 fast_install=$enable_fast_install
14214 host_alias=$host_alias
14218 # The build system.
14219 build_alias=$build_alias
14223 # An echo program that does not interpret backslashes.
14228 AR_FLAGS=$lt_AR_FLAGS
14233 # LTCC compiler flags.
14234 LTCFLAGS=$lt_LTCFLAGS
14236 # A language-specific compiler.
14237 CC=$lt_compiler_CXX
14239 # Is the compiler the GNU C compiler?
14245 # The linker used to build libraries.
14248 # Whether we need hard or soft links.
14251 # A BSD-compatible nm program.
14254 # A symbol stripping program
14257 # Used to examine libraries when file_magic_cmd begins "file"
14258 MAGIC_CMD=$MAGIC_CMD
14260 # Used on cygwin: DLL creation program.
14263 # Used on cygwin: object dumper.
14266 # Used on cygwin: assembler.
14269 # The name of the directory that contains temporary libtool files.
14272 # How to create reloadable object files.
14273 reload_flag=$lt_reload_flag
14274 reload_cmds=$lt_reload_cmds
14276 # How to pass a linker flag through the compiler.
14277 wl=$lt_lt_prog_compiler_wl_CXX
14279 # Object file suffix (normally "o").
14280 objext="$ac_objext"
14282 # Old archive suffix (normally "a").
14285 # Shared library suffix (normally ".so").
14286 shrext_cmds='$shrext_cmds'
14288 # Executable file suffix (normally "").
14291 # Additional compiler flags for building library objects.
14292 pic_flag=$lt_lt_prog_compiler_pic_CXX
14295 # What is the maximum length of a command?
14296 max_cmd_len=$lt_cv_sys_max_cmd_len
14298 # Does compiler simultaneously support -c and -o options?
14299 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14301 # Must we lock files when doing compilation?
14302 need_locks=$lt_need_locks
14304 # Do we need the lib prefix for modules?
14305 need_lib_prefix=$need_lib_prefix
14307 # Do we need a version for libraries?
14308 need_version=$need_version
14310 # Whether dlopen is supported.
14311 dlopen_support=$enable_dlopen
14313 # Whether dlopen of programs is supported.
14314 dlopen_self=$enable_dlopen_self
14316 # Whether dlopen of statically linked programs is supported.
14317 dlopen_self_static=$enable_dlopen_self_static
14319 # Compiler flag to prevent dynamic linking.
14320 link_static_flag=$lt_lt_prog_compiler_static_CXX
14322 # Compiler flag to turn off builtin functions.
14323 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14325 # Compiler flag to allow reflexive dlopens.
14326 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14328 # Compiler flag to generate shared objects directly from archives.
14329 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14331 # Compiler flag to generate thread-safe objects.
14332 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14334 # Library versioning type.
14335 version_type=$version_type
14337 # Format of library name prefix.
14338 libname_spec=$lt_libname_spec
14340 # List of archive names. First name is the real one, the rest are links.
14341 # The last name is the one that the linker finds with -lNAME.
14342 library_names_spec=$lt_library_names_spec
14344 # The coded name of the library, if different from the real name.
14345 soname_spec=$lt_soname_spec
14347 # Commands used to build and install an old-style archive.
14349 old_archive_cmds=$lt_old_archive_cmds_CXX
14350 old_postinstall_cmds=$lt_old_postinstall_cmds
14351 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14353 # Create an old-style archive from a shared archive.
14354 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14356 # Create a temporary old-style archive to link instead of a shared archive.
14357 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14359 # Commands used to build and install a shared archive.
14360 archive_cmds=$lt_archive_cmds_CXX
14361 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14362 postinstall_cmds=$lt_postinstall_cmds
14363 postuninstall_cmds=$lt_postuninstall_cmds
14365 # Commands used to build a loadable module (assumed same as above if empty)
14366 module_cmds=$lt_module_cmds_CXX
14367 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14369 # Commands to strip libraries.
14370 old_striplib=$lt_old_striplib
14371 striplib=$lt_striplib
14373 # Dependencies to place before the objects being linked to create a
14375 predep_objects=$lt_predep_objects_CXX
14377 # Dependencies to place after the objects being linked to create a
14379 postdep_objects=$lt_postdep_objects_CXX
14381 # Dependencies to place before the objects being linked to create a
14383 predeps=$lt_predeps_CXX
14385 # Dependencies to place after the objects being linked to create a
14387 postdeps=$lt_postdeps_CXX
14389 # The library search path used internally by the compiler when linking
14390 # a shared library.
14391 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14393 # Method to check whether dependent libraries are shared objects.
14394 deplibs_check_method=$lt_deplibs_check_method
14396 # Command to use when deplibs_check_method == file_magic.
14397 file_magic_cmd=$lt_file_magic_cmd
14399 # Flag that allows shared libraries with undefined symbols to be built.
14400 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14402 # Flag that forces no undefined symbols.
14403 no_undefined_flag=$lt_no_undefined_flag_CXX
14405 # Commands used to finish a libtool library installation in a directory.
14406 finish_cmds=$lt_finish_cmds
14408 # Same as above, but a single script fragment to be evaled but not shown.
14409 finish_eval=$lt_finish_eval
14411 # Take the output of nm and produce a listing of raw symbols and C names.
14412 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14414 # Transform the output of nm in a proper C declaration
14415 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14417 # Transform the output of nm in a C name address pair
14418 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14420 # This is the shared library runtime path variable.
14421 runpath_var=$runpath_var
14423 # This is the shared library path variable.
14424 shlibpath_var=$shlibpath_var
14426 # Is shlibpath searched before the hard-coded library search path?
14427 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14429 # How to hardcode a shared library path into an executable.
14430 hardcode_action=$hardcode_action_CXX
14432 # Whether we should hardcode library paths into libraries.
14433 hardcode_into_libs=$hardcode_into_libs
14435 # Flag to hardcode \$libdir into a binary during linking.
14436 # This must work even if \$libdir does not exist.
14437 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14439 # If ld is used when linking, flag to hardcode \$libdir into
14440 # a binary during linking. This must work even if \$libdir does
14442 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14444 # Whether we need a single -rpath flag with a separated argument.
14445 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14447 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14448 # resulting binary.
14449 hardcode_direct=$hardcode_direct_CXX
14451 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14452 # resulting binary.
14453 hardcode_minus_L=$hardcode_minus_L_CXX
14455 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14456 # the resulting binary.
14457 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14459 # Set to yes if building a shared library automatically hardcodes DIR into the library
14460 # and all subsequent libraries and executables linked against it.
14461 hardcode_automatic=$hardcode_automatic_CXX
14463 # Variables whose values should be saved in libtool wrapper scripts and
14464 # restored at relink time.
14465 variables_saved_for_relink="$variables_saved_for_relink"
14467 # Whether libtool must link a program against all its dependency libraries.
14468 link_all_deplibs=$link_all_deplibs_CXX
14470 # Compile-time system search path for libraries
14471 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14473 # Run-time system search path for libraries
14474 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14476 # Fix the shell variable \$srcfile for the compiler.
14477 fix_srcfile_path=$lt_fix_srcfile_path
14479 # Set to yes if exported symbols are required.
14480 always_export_symbols=$always_export_symbols_CXX
14482 # The commands to list exported symbols.
14483 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14485 # The commands to extract the exported symbol list from a shared archive.
14486 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14488 # Symbols that should not be listed in the preloaded symbols.
14489 exclude_expsyms=$lt_exclude_expsyms_CXX
14491 # Symbols that must always be exported.
14492 include_expsyms=$lt_include_expsyms_CXX
14494 # ### END LIBTOOL TAG CONFIG: $tagname
14500 # If there is no Makefile yet, we rely on a make rule to execute
14501 # `config.status --recheck' to rerun these tests and create the
14502 # libtool script then.
14503 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14504 if test -f "$ltmain_in"; then
14505 test -f Makefile && make "$ltmain"
14511 ac_cpp='$CPP $CPPFLAGS'
14512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14520 with_gnu_ldcxx=$with_gnu_ld
14521 with_gnu_ld=$lt_save_with_gnu_ld
14522 lt_cv_path_LDCXX=$lt_cv_path_LD
14523 lt_cv_path_LD=$lt_save_path_LD
14524 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14525 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14533 if test -n "$F77" && test "X$F77" != "Xno"; then
14536 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14537 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14538 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14541 archive_cmds_need_lc_F77=no
14542 allow_undefined_flag_F77=
14543 always_export_symbols_F77=no
14544 archive_expsym_cmds_F77=
14545 export_dynamic_flag_spec_F77=
14546 hardcode_direct_F77=no
14547 hardcode_libdir_flag_spec_F77=
14548 hardcode_libdir_flag_spec_ld_F77=
14549 hardcode_libdir_separator_F77=
14550 hardcode_minus_L_F77=no
14551 hardcode_automatic_F77=no
14553 module_expsym_cmds_F77=
14554 link_all_deplibs_F77=unknown
14555 old_archive_cmds_F77=$old_archive_cmds
14556 no_undefined_flag_F77=
14557 whole_archive_flag_spec_F77=
14558 enable_shared_with_static_runtimes_F77=no
14560 # Source file extension for f77 test sources.
14563 # Object file extension for compiled f77 test sources.
14567 # Code to be used in simple compile tests
14568 lt_simple_compile_test_code="\
14574 # Code to be used in simple link tests
14575 lt_simple_link_test_code="\
14580 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14582 # If no C compiler was specified, use CC.
14585 # If no C compiler flags were specified, use CFLAGS.
14586 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14588 # Allow CC to be a program name with arguments.
14592 # save warnings/boilerplate of simple test code
14593 ac_outfile=conftest.$ac_objext
14594 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14595 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14596 _lt_compiler_boilerplate=`cat conftest.err`
14599 ac_outfile=conftest.$ac_objext
14600 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14601 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14602 _lt_linker_boilerplate=`cat conftest.err`
14606 # Allow CC to be a program name with arguments.
14611 for cc_temp in $compiler""; do
14613 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14614 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14619 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14622 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14623 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14624 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14625 echo "${ECHO_T}$can_build_shared" >&6; }
14627 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14628 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14629 test "$can_build_shared" = "no" && enable_shared=no
14631 # On AIX, shared libraries and static libraries use the same namespace, and
14632 # are all built from PIC.
14635 test "$enable_shared" = yes && enable_static=no
14636 if test -n "$RANLIB"; then
14637 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14638 postinstall_cmds='$RANLIB $lib'
14642 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14643 test "$enable_shared" = yes && enable_static=no
14647 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14648 echo "${ECHO_T}$enable_shared" >&6; }
14650 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14651 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14652 # Make sure either enable_shared or enable_static is yes.
14653 test "$enable_shared" = yes || enable_static=yes
14654 { echo "$as_me:$LINENO: result: $enable_static" >&5
14655 echo "${ECHO_T}$enable_static" >&6; }
14660 lt_prog_compiler_wl_F77=
14661 lt_prog_compiler_pic_F77=
14662 lt_prog_compiler_static_F77=
14664 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14665 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14667 if test "$GCC" = yes; then
14668 lt_prog_compiler_wl_F77='-Wl,'
14669 lt_prog_compiler_static_F77='-static'
14673 # All AIX code is PIC.
14674 if test "$host_cpu" = ia64; then
14675 # AIX 5 now supports IA64 processor
14676 lt_prog_compiler_static_F77='-Bstatic'
14681 # FIXME: we need at least 68020 code to build shared libraries, but
14682 # adding the `-m68020' flag to GCC prevents building anything better,
14684 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14687 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14688 # PIC is the default for these OSes.
14691 mingw* | cygwin* | pw32* | os2*)
14692 # This hack is so that the source file can tell whether it is being
14693 # built for inclusion in a dll (and should export symbols for example).
14694 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14695 # (--disable-auto-import) libraries
14696 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14699 darwin* | rhapsody*)
14700 # PIC is the default on this platform
14701 # Common symbols not allowed in MH_DYLIB files
14702 lt_prog_compiler_pic_F77='-fno-common'
14706 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14707 # Instead, we relocate shared libraries at runtime.
14711 # Just because we use GCC doesn't mean we suddenly get shared libraries
14712 # on systems that don't support them.
14713 lt_prog_compiler_can_build_shared_F77=no
14718 if test -d /usr/nec; then
14719 lt_prog_compiler_pic_F77=-Kconform_pic
14724 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14725 # not for PA HP-UX.
14731 lt_prog_compiler_pic_F77='-fPIC'
14737 lt_prog_compiler_pic_F77='-fPIC'
14741 # PORTME Check for flag to pass linker flags through the system compiler.
14744 lt_prog_compiler_wl_F77='-Wl,'
14745 if test "$host_cpu" = ia64; then
14746 # AIX 5 now supports IA64 processor
14747 lt_prog_compiler_static_F77='-Bstatic'
14749 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14753 # PIC is the default on this platform
14754 # Common symbols not allowed in MH_DYLIB files
14755 case $cc_basename in
14757 lt_prog_compiler_pic_F77='-qnocommon'
14758 lt_prog_compiler_wl_F77='-Wl,'
14763 mingw* | cygwin* | pw32* | os2*)
14764 # This hack is so that the source file can tell whether it is being
14765 # built for inclusion in a dll (and should export symbols for example).
14766 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14769 hpux9* | hpux10* | hpux11*)
14770 lt_prog_compiler_wl_F77='-Wl,'
14771 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14772 # not for PA HP-UX.
14778 lt_prog_compiler_pic_F77='+Z'
14781 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14782 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14785 irix5* | irix6* | nonstopux*)
14786 lt_prog_compiler_wl_F77='-Wl,'
14787 # PIC (with -KPIC) is the default.
14788 lt_prog_compiler_static_F77='-non_shared'
14792 lt_prog_compiler_pic_F77='-KPIC'
14793 lt_prog_compiler_static_F77='-Bstatic'
14796 linux* | k*bsd*-gnu)
14797 case $cc_basename in
14799 lt_prog_compiler_wl_F77='-Wl,'
14800 lt_prog_compiler_pic_F77='-KPIC'
14801 lt_prog_compiler_static_F77='-static'
14803 pgcc* | pgf77* | pgf90* | pgf95*)
14804 # Portland Group compilers (*not* the Pentium gcc compiler,
14805 # which looks to be a dead project)
14806 lt_prog_compiler_wl_F77='-Wl,'
14807 lt_prog_compiler_pic_F77='-fpic'
14808 lt_prog_compiler_static_F77='-Bstatic'
14811 lt_prog_compiler_wl_F77='-Wl,'
14812 # All Alpha code is PIC.
14813 lt_prog_compiler_static_F77='-non_shared'
14816 case `$CC -V 2>&1 | sed 5q` in
14819 lt_prog_compiler_pic_F77='-KPIC'
14820 lt_prog_compiler_static_F77='-Bstatic'
14821 lt_prog_compiler_wl_F77='-Wl,'
14824 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14825 lt_prog_compiler_pic_F77='-KPIC'
14826 lt_prog_compiler_static_F77='-Bstatic'
14827 lt_prog_compiler_wl_F77=''
14834 osf3* | osf4* | osf5*)
14835 lt_prog_compiler_wl_F77='-Wl,'
14836 # All OSF/1 code is PIC.
14837 lt_prog_compiler_static_F77='-non_shared'
14841 lt_prog_compiler_static_F77='-non_shared'
14845 lt_prog_compiler_pic_F77='-KPIC'
14846 lt_prog_compiler_static_F77='-Bstatic'
14847 case $cc_basename in
14848 f77* | f90* | f95*)
14849 lt_prog_compiler_wl_F77='-Qoption ld ';;
14851 lt_prog_compiler_wl_F77='-Wl,';;
14856 lt_prog_compiler_wl_F77='-Qoption ld '
14857 lt_prog_compiler_pic_F77='-PIC'
14858 lt_prog_compiler_static_F77='-Bstatic'
14861 sysv4 | sysv4.2uw2* | sysv4.3*)
14862 lt_prog_compiler_wl_F77='-Wl,'
14863 lt_prog_compiler_pic_F77='-KPIC'
14864 lt_prog_compiler_static_F77='-Bstatic'
14868 if test -d /usr/nec ;then
14869 lt_prog_compiler_pic_F77='-Kconform_pic'
14870 lt_prog_compiler_static_F77='-Bstatic'
14874 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14875 lt_prog_compiler_wl_F77='-Wl,'
14876 lt_prog_compiler_pic_F77='-KPIC'
14877 lt_prog_compiler_static_F77='-Bstatic'
14881 lt_prog_compiler_wl_F77='-Wl,'
14882 lt_prog_compiler_can_build_shared_F77=no
14886 lt_prog_compiler_pic_F77='-pic'
14887 lt_prog_compiler_static_F77='-Bstatic'
14891 lt_prog_compiler_can_build_shared_F77=no
14896 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14897 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14900 # Check to make sure the PIC flag actually works.
14902 if test -n "$lt_prog_compiler_pic_F77"; then
14904 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14905 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14906 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14907 echo $ECHO_N "(cached) $ECHO_C" >&6
14909 lt_prog_compiler_pic_works_F77=no
14910 ac_outfile=conftest.$ac_objext
14911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14912 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14913 # Insert the option either (1) after the last *FLAGS variable, or
14914 # (2) before a word containing "conftest.", or (3) at the end.
14915 # Note that $ac_compile itself does not contain backslashes and begins
14916 # with a dollar sign (not a hyphen), so the echo should work correctly.
14917 # The option is referenced via a variable to avoid confusing sed.
14918 lt_compile=`echo "$ac_compile" | $SED \
14919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14921 -e 's:$: $lt_compiler_flag:'`
14922 (eval echo "\"\$as_me:14922: $lt_compile\"" >&5)
14923 (eval "$lt_compile" 2>conftest.err)
14925 cat conftest.err >&5
14926 echo "$as_me:14926: \$? = $ac_status" >&5
14927 if (exit $ac_status) && test -s "$ac_outfile"; then
14928 # The compiler can only warn and ignore the option if not recognized
14929 # So say no if there are warnings other than the usual output.
14930 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14933 lt_prog_compiler_pic_works_F77=yes
14939 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14940 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14942 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14943 case $lt_prog_compiler_pic_F77 in
14945 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14948 lt_prog_compiler_pic_F77=
14949 lt_prog_compiler_can_build_shared_F77=no
14954 # For platforms which do not support PIC, -DPIC is meaningless:
14956 lt_prog_compiler_pic_F77=
14959 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14964 # Check to make sure the static flag actually works.
14966 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14967 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14968 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14969 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14972 lt_prog_compiler_static_works_F77=no
14973 save_LDFLAGS="$LDFLAGS"
14974 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14975 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14976 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14977 # The linker can only warn and ignore the option if not recognized
14978 # So say no if there are warnings
14979 if test -s conftest.err; then
14980 # Append any errors to the config.log.
14981 cat conftest.err 1>&5
14982 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14984 if diff conftest.exp conftest.er2 >/dev/null; then
14985 lt_prog_compiler_static_works_F77=yes
14988 lt_prog_compiler_static_works_F77=yes
14992 LDFLAGS="$save_LDFLAGS"
14995 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14996 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14998 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15001 lt_prog_compiler_static_F77=
15005 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15006 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15007 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15010 lt_cv_prog_compiler_c_o_F77=no
15011 $rm -r conftest 2>/dev/null
15015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15017 lt_compiler_flag="-o out/conftest2.$ac_objext"
15018 # Insert the option either (1) after the last *FLAGS variable, or
15019 # (2) before a word containing "conftest.", or (3) at the end.
15020 # Note that $ac_compile itself does not contain backslashes and begins
15021 # with a dollar sign (not a hyphen), so the echo should work correctly.
15022 lt_compile=`echo "$ac_compile" | $SED \
15023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15025 -e 's:$: $lt_compiler_flag:'`
15026 (eval echo "\"\$as_me:15026: $lt_compile\"" >&5)
15027 (eval "$lt_compile" 2>out/conftest.err)
15029 cat out/conftest.err >&5
15030 echo "$as_me:15030: \$? = $ac_status" >&5
15031 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15033 # The compiler can only warn and ignore the option if not recognized
15034 # So say no if there are warnings
15035 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15036 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15037 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15038 lt_cv_prog_compiler_c_o_F77=yes
15043 # SGI C++ compiler will create directory out/ii_files/ for
15044 # template instantiation
15045 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15046 $rm out/* && rmdir out
15052 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15053 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15056 hard_links="nottested"
15057 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15058 # do not overwrite the value of need_locks provided by the user
15059 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15060 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15063 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15065 ln conftest.a conftest.b 2>&5 || hard_links=no
15066 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15067 { echo "$as_me:$LINENO: result: $hard_links" >&5
15068 echo "${ECHO_T}$hard_links" >&6; }
15069 if test "$hard_links" = no; then
15070 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15071 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15078 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15079 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15082 allow_undefined_flag_F77=
15083 enable_shared_with_static_runtimes_F77=no
15085 archive_expsym_cmds_F77=
15086 old_archive_From_new_cmds_F77=
15087 old_archive_from_expsyms_cmds_F77=
15088 export_dynamic_flag_spec_F77=
15089 whole_archive_flag_spec_F77=
15090 thread_safe_flag_spec_F77=
15091 hardcode_libdir_flag_spec_F77=
15092 hardcode_libdir_flag_spec_ld_F77=
15093 hardcode_libdir_separator_F77=
15094 hardcode_direct_F77=no
15095 hardcode_minus_L_F77=no
15096 hardcode_shlibpath_var_F77=unsupported
15097 link_all_deplibs_F77=unknown
15098 hardcode_automatic_F77=no
15100 module_expsym_cmds_F77=
15101 always_export_symbols_F77=no
15102 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15103 # include_expsyms should be a list of space-separated symbols to be *always*
15104 # included in the symbol list
15105 include_expsyms_F77=
15106 # exclude_expsyms can be an extended regexp of symbols to exclude
15107 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15108 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15109 # as well as any symbol that contains `d'.
15110 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15111 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15112 # platforms (ab)use it in PIC code, but their linkers get confused if
15113 # the symbol is explicitly referenced. Since portable code cannot
15114 # rely on this symbol name, it's probably fine to never include it in
15115 # preloaded symbol tables.
15116 extract_expsyms_cmds=
15117 # Just being paranoid about ensuring that cc_basename is set.
15118 for cc_temp in $compiler""; do
15120 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15121 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15126 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15129 cygwin* | mingw* | pw32*)
15130 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15131 # When not using gcc, we currently assume that we are using
15132 # Microsoft Visual C++.
15133 if test "$GCC" != yes; then
15138 # we just hope/assume this is gcc and not c89 (= MSVC++)
15147 if test "$with_gnu_ld" = yes; then
15148 # If archive_cmds runs LD, not CC, wlarc should be empty
15151 # Set some defaults for GNU ld with shared library support. These
15152 # are reset later if shared libraries are not supported. Putting them
15153 # here allows them to be overridden if necessary.
15154 runpath_var=LD_RUN_PATH
15155 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15156 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15157 # ancient GNU ld didn't support --whole-archive et. al.
15158 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15159 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15161 whole_archive_flag_spec_F77=
15163 supports_anon_versioning=no
15164 case `$LD -v 2>/dev/null` in
15165 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15166 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15167 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15168 *\ 2.11.*) ;; # other 2.11 versions
15169 *) supports_anon_versioning=yes ;;
15172 # See if GNU ld supports shared libraries.
15174 aix3* | aix4* | aix5*)
15175 # On AIX/PPC, the GNU linker is very broken
15176 if test "$host_cpu" != ia64; then
15180 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15181 *** to be unable to reliably create shared libraries on AIX.
15182 *** Therefore, libtool is disabling shared libraries support. If you
15183 *** really care for shared libraries, you may want to modify your PATH
15184 *** so that a non-GNU linker is found, and then restart.
15191 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)'
15192 hardcode_libdir_flag_spec_F77='-L$libdir'
15193 hardcode_minus_L_F77=yes
15195 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15196 # that the semantics of dynamic libraries on AmigaOS, at least up
15197 # to version 4, is to share data among multiple programs linked
15198 # with the same dynamic library. Since this doesn't match the
15199 # behavior of shared libraries on other platforms, we can't use
15205 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15206 allow_undefined_flag_F77=unsupported
15207 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15208 # support --undefined. This deserves some investigation. FIXME
15209 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15215 cygwin* | mingw* | pw32*)
15216 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15217 # as there is no search path for DLLs.
15218 hardcode_libdir_flag_spec_F77='-L$libdir'
15219 allow_undefined_flag_F77=unsupported
15220 always_export_symbols_F77=no
15221 enable_shared_with_static_runtimes_F77=yes
15222 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15224 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15225 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15226 # If the export-symbols file already is a .def file (1st line
15227 # is EXPORTS), use it as is; otherwise, prepend...
15228 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15229 cp $export_symbols $output_objdir/$soname.def;
15231 echo EXPORTS > $output_objdir/$soname.def;
15232 cat $export_symbols >> $output_objdir/$soname.def;
15234 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15241 hardcode_direct_F77=no
15242 hardcode_shlibpath_var_F77=no
15243 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15244 export_dynamic_flag_spec_F77='${wl}-E'
15245 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15246 # Instead, shared libraries are loaded at an image base (0x10000000 by
15247 # default) and relocated if they conflict, which is a slow very memory
15248 # consuming and fragmenting process. To avoid this, we pick a random,
15249 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15250 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15251 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'
15252 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'
15255 gnu* | linux* | k*bsd*-gnu)
15256 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15258 case $cc_basename,$host_cpu in
15259 pgcc*) # Portland Group C compiler
15260 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'
15261 tmp_addflag=' $pic_flag'
15263 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15264 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'
15265 tmp_addflag=' $pic_flag -Mnomain' ;;
15266 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15267 tmp_addflag=' -i_dynamic' ;;
15268 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15269 tmp_addflag=' -i_dynamic -nofor_main' ;;
15270 ifc* | ifort*) # Intel Fortran compiler
15271 tmp_addflag=' -nofor_main' ;;
15273 case `$CC -V 2>&1 | sed 5q` in
15274 *Sun\ C*) # Sun C 5.9
15275 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'
15276 tmp_sharedflag='-G' ;;
15277 *Sun\ F*) # Sun Fortran 8.3
15278 tmp_sharedflag='-G' ;;
15280 tmp_sharedflag='-shared' ;;
15282 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15284 if test $supports_anon_versioning = yes; then
15285 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15286 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15287 $echo "local: *; };" >> $output_objdir/$libname.ver~
15288 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15290 link_all_deplibs_F77=no
15296 netbsd* | netbsdelf*-gnu)
15297 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15298 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15301 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15302 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15307 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15311 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15312 *** create shared libraries on Solaris systems. Therefore, libtool
15313 *** is disabling shared libraries support. We urge you to upgrade GNU
15314 *** binutils to release 2.9.1 or newer. Another option is to modify
15315 *** your PATH or compiler configuration so that the native linker is
15316 *** used, and then restart.
15319 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15320 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15321 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15328 case `$LD -v 2>&1` in
15329 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15333 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15334 *** reliably create shared libraries on SCO systems. Therefore, libtool
15335 *** is disabling shared libraries support. We urge you to upgrade GNU
15336 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15337 *** your PATH or compiler configuration so that the native linker is
15338 *** used, and then restart.
15343 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15344 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15345 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15346 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15355 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15357 hardcode_direct_F77=yes
15358 hardcode_shlibpath_var_F77=no
15362 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15363 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15364 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15371 if test "$ld_shlibs_F77" = no; then
15373 hardcode_libdir_flag_spec_F77=
15374 export_dynamic_flag_spec_F77=
15375 whole_archive_flag_spec_F77=
15378 # PORTME fill in a description of your system's linker (not GNU ld)
15381 allow_undefined_flag_F77=unsupported
15382 always_export_symbols_F77=yes
15383 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'
15384 # Note: this linker hardcodes the directories in LIBPATH if there
15385 # are no directories specified by -L.
15386 hardcode_minus_L_F77=yes
15387 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15388 # Neither direct hardcoding nor static linking is supported with a
15390 hardcode_direct_F77=unsupported
15395 if test "$host_cpu" = ia64; then
15396 # On IA64, the linker does run time linking by default, so we don't
15397 # have to do anything special.
15398 aix_use_runtimelinking=no
15399 exp_sym_flag='-Bexport'
15402 # If we're using GNU nm, then we don't want the "-C" option.
15403 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15404 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15405 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'
15407 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'
15409 aix_use_runtimelinking=no
15411 # Test if we are trying to use run time linking or normal
15412 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15413 # need to do runtime linking.
15414 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15415 for ld_flag in $LDFLAGS; do
15416 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15417 aix_use_runtimelinking=yes
15424 exp_sym_flag='-bexport'
15425 no_entry_flag='-bnoentry'
15428 # When large executables or shared objects are built, AIX ld can
15429 # have problems creating the table of contents. If linking a library
15430 # or program results in "error TOC overflow" add -mminimal-toc to
15431 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15432 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15434 archive_cmds_F77=''
15435 hardcode_direct_F77=yes
15436 hardcode_libdir_separator_F77=':'
15437 link_all_deplibs_F77=yes
15439 if test "$GCC" = yes; then
15440 case $host_os in aix4.[012]|aix4.[012].*)
15441 # We only want to do this on AIX 4.2 and lower, the check
15442 # below for broken collect2 doesn't work under 4.3+
15443 collect2name=`${CC} -print-prog-name=collect2`
15444 if test -f "$collect2name" && \
15445 strings "$collect2name" | grep resolve_lib_name >/dev/null
15447 # We have reworked collect2
15450 # We have old collect2
15451 hardcode_direct_F77=unsupported
15452 # It fails to find uninstalled libraries when the uninstalled
15453 # path is not listed in the libpath. Setting hardcode_minus_L
15454 # to unsupported forces relinking
15455 hardcode_minus_L_F77=yes
15456 hardcode_libdir_flag_spec_F77='-L$libdir'
15457 hardcode_libdir_separator_F77=
15461 shared_flag='-shared'
15462 if test "$aix_use_runtimelinking" = yes; then
15463 shared_flag="$shared_flag "'${wl}-G'
15467 if test "$host_cpu" = ia64; then
15468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15469 # chokes on -Wl,-G. The following line is correct:
15472 if test "$aix_use_runtimelinking" = yes; then
15473 shared_flag='${wl}-G'
15475 shared_flag='${wl}-bM:SRE'
15480 # It seems that -bexpall does not export symbols beginning with
15481 # underscore (_), so it is better to generate a list of symbols to export.
15482 always_export_symbols_F77=yes
15483 if test "$aix_use_runtimelinking" = yes; then
15484 # Warning - without using the other runtime loading flags (-brtl),
15485 # -berok will link without error, but may produce a broken library.
15486 allow_undefined_flag_F77='-berok'
15487 # Determine the default libpath from the value encoded in an empty executable.
15488 cat >conftest.$ac_ext <<_ACEOF
15493 rm -f conftest.$ac_objext conftest$ac_exeext
15494 if { (ac_try="$ac_link"
15495 case "(($ac_try" in
15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500 (eval "$ac_link") 2>conftest.er1
15502 grep -v '^ *+' conftest.er1 >conftest.err
15504 cat conftest.err >&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } && {
15507 test -z "$ac_f77_werror_flag" ||
15508 test ! -s conftest.err
15509 } && test -s conftest$ac_exeext &&
15510 $as_test_x conftest$ac_exeext; then
15512 lt_aix_libpath_sed='
15513 /Import File Strings/,/^$/ {
15519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15520 # Check for a 64-bit object if we didn't find anything.
15521 if test -z "$aix_libpath"; then
15522 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15525 echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15532 conftest$ac_exeext conftest.$ac_ext
15533 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15535 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15536 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"
15538 if test "$host_cpu" = ia64; then
15539 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15540 allow_undefined_flag_F77="-z nodefs"
15541 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"
15543 # Determine the default libpath from the value encoded in an empty executable.
15544 cat >conftest.$ac_ext <<_ACEOF
15549 rm -f conftest.$ac_objext conftest$ac_exeext
15550 if { (ac_try="$ac_link"
15551 case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_link") 2>conftest.er1
15558 grep -v '^ *+' conftest.er1 >conftest.err
15560 cat conftest.err >&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } && {
15563 test -z "$ac_f77_werror_flag" ||
15564 test ! -s conftest.err
15565 } && test -s conftest$ac_exeext &&
15566 $as_test_x conftest$ac_exeext; then
15568 lt_aix_libpath_sed='
15569 /Import File Strings/,/^$/ {
15575 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15576 # Check for a 64-bit object if we didn't find anything.
15577 if test -z "$aix_libpath"; then
15578 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15581 echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15588 conftest$ac_exeext conftest.$ac_ext
15589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15591 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15592 # Warning - without using the other run time loading flags,
15593 # -berok will link without error, but may produce a broken library.
15594 no_undefined_flag_F77=' ${wl}-bernotok'
15595 allow_undefined_flag_F77=' ${wl}-berok'
15596 # Exported symbols can be pulled into shared objects from archives
15597 whole_archive_flag_spec_F77='$convenience'
15598 archive_cmds_need_lc_F77=yes
15599 # This is similar to how AIX traditionally builds its shared libraries.
15600 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'
15606 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)'
15607 hardcode_libdir_flag_spec_F77='-L$libdir'
15608 hardcode_minus_L_F77=yes
15609 # see comment about different semantics on the GNU ld section
15614 export_dynamic_flag_spec_F77=-rdynamic
15617 cygwin* | mingw* | pw32*)
15618 # When not using gcc, we currently assume that we are using
15619 # Microsoft Visual C++.
15620 # hardcode_libdir_flag_spec is actually meaningless, as there is
15621 # no search path for DLLs.
15622 hardcode_libdir_flag_spec_F77=' '
15623 allow_undefined_flag_F77=unsupported
15624 # Tell ltmain to make .lib files, not .a files.
15626 # Tell ltmain to make .dll files, not .so files.
15628 # FIXME: Setting linknames here is a bad hack.
15629 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15630 # The linker will automatically build a .lib file if we build a DLL.
15631 old_archive_From_new_cmds_F77='true'
15632 # FIXME: Should let the user specify the lib program.
15633 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15634 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15635 enable_shared_with_static_runtimes_F77=yes
15638 darwin* | rhapsody*)
15640 rhapsody* | darwin1.[012])
15641 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15644 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15645 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15647 case ${MACOSX_DEPLOYMENT_TARGET} in
15649 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15652 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15658 archive_cmds_need_lc_F77=no
15659 hardcode_direct_F77=no
15660 hardcode_automatic_F77=yes
15661 hardcode_shlibpath_var_F77=unsupported
15662 whole_archive_flag_spec_F77=''
15663 link_all_deplibs_F77=yes
15664 if test "$GCC" = yes ; then
15665 output_verbose_link_cmd='echo'
15666 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15667 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15668 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15669 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15670 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}'
15672 case $cc_basename in
15674 output_verbose_link_cmd='echo'
15675 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15676 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15677 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15678 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}'
15679 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}'
15689 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15690 hardcode_libdir_flag_spec_F77='-L$libdir'
15691 hardcode_shlibpath_var_F77=no
15698 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15699 # support. Future versions do this automatically, but an explicit c++rt0.o
15700 # does not break anything, and helps significantly (at the cost of a little
15703 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15704 hardcode_libdir_flag_spec_F77='-R$libdir'
15705 hardcode_direct_F77=yes
15706 hardcode_shlibpath_var_F77=no
15709 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15711 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15712 hardcode_direct_F77=yes
15713 hardcode_minus_L_F77=yes
15714 hardcode_shlibpath_var_F77=no
15717 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15718 freebsd* | dragonfly*)
15719 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15720 hardcode_libdir_flag_spec_F77='-R$libdir'
15721 hardcode_direct_F77=yes
15722 hardcode_shlibpath_var_F77=no
15726 if test "$GCC" = yes; then
15727 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'
15729 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'
15731 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15732 hardcode_libdir_separator_F77=:
15733 hardcode_direct_F77=yes
15735 # hardcode_minus_L: Not really in the search PATH,
15736 # but as the default location of the library.
15737 hardcode_minus_L_F77=yes
15738 export_dynamic_flag_spec_F77='${wl}-E'
15742 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15743 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15745 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15747 if test "$with_gnu_ld" = no; then
15748 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15749 hardcode_libdir_separator_F77=:
15751 hardcode_direct_F77=yes
15752 export_dynamic_flag_spec_F77='${wl}-E'
15754 # hardcode_minus_L: Not really in the search PATH,
15755 # but as the default location of the library.
15756 hardcode_minus_L_F77=yes
15761 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15764 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15767 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15770 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15776 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15779 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15782 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15786 if test "$with_gnu_ld" = no; then
15787 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15788 hardcode_libdir_separator_F77=:
15792 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15793 hardcode_direct_F77=no
15794 hardcode_shlibpath_var_F77=no
15797 hardcode_direct_F77=yes
15798 export_dynamic_flag_spec_F77='${wl}-E'
15800 # hardcode_minus_L: Not really in the search PATH,
15801 # but as the default location of the library.
15802 hardcode_minus_L_F77=yes
15808 irix5* | irix6* | nonstopux*)
15809 if test "$GCC" = yes; then
15810 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'
15812 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'
15813 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15815 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15816 hardcode_libdir_separator_F77=:
15817 link_all_deplibs_F77=yes
15820 netbsd* | netbsdelf*-gnu)
15821 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15822 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15824 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15826 hardcode_libdir_flag_spec_F77='-R$libdir'
15827 hardcode_direct_F77=yes
15828 hardcode_shlibpath_var_F77=no
15832 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15833 hardcode_direct_F77=yes
15834 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15835 hardcode_libdir_separator_F77=:
15836 hardcode_shlibpath_var_F77=no
15840 if test -f /usr/libexec/ld.so; then
15841 hardcode_direct_F77=yes
15842 hardcode_shlibpath_var_F77=no
15843 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15844 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15845 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15846 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15847 export_dynamic_flag_spec_F77='${wl}-E'
15850 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15851 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15852 hardcode_libdir_flag_spec_F77='-R$libdir'
15855 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15856 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15866 hardcode_libdir_flag_spec_F77='-L$libdir'
15867 hardcode_minus_L_F77=yes
15868 allow_undefined_flag_F77=unsupported
15869 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'
15870 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15874 if test "$GCC" = yes; then
15875 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15876 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'
15878 allow_undefined_flag_F77=' -expect_unresolved \*'
15879 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'
15881 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15882 hardcode_libdir_separator_F77=:
15885 osf4* | osf5*) # as osf3* with the addition of -msym flag
15886 if test "$GCC" = yes; then
15887 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15888 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'
15889 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15891 allow_undefined_flag_F77=' -expect_unresolved \*'
15892 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'
15893 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~
15894 $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'
15896 # Both c and cxx compiler support -rpath directly
15897 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15899 hardcode_libdir_separator_F77=:
15903 no_undefined_flag_F77=' -z text'
15904 if test "$GCC" = yes; then
15906 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15907 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15908 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15911 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15912 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15913 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15915 hardcode_libdir_flag_spec_F77='-R$libdir'
15916 hardcode_shlibpath_var_F77=no
15918 solaris2.[0-5] | solaris2.[0-5].*) ;;
15920 # The compiler driver will combine and reorder linker options,
15921 # but understands `-z linker_flag'. GCC discards it without `$wl',
15922 # but is careful enough not to reorder.
15923 # Supported since Solaris 2.6 (maybe 2.5.1?)
15924 if test "$GCC" = yes; then
15925 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15927 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15931 link_all_deplibs_F77=yes
15935 if test "x$host_vendor" = xsequent; then
15936 # Use $CC to link under sequent, because it throws in some extra .o
15937 # files that make .init and .fini sections work.
15938 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15940 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15942 hardcode_libdir_flag_spec_F77='-L$libdir'
15943 hardcode_direct_F77=yes
15944 hardcode_minus_L_F77=yes
15945 hardcode_shlibpath_var_F77=no
15949 case $host_vendor in
15951 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15952 hardcode_direct_F77=yes # is this really true???
15955 ## LD is ld it makes a PLAMLIB
15956 ## CC just makes a GrossModule.
15957 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15958 reload_cmds_F77='$CC -r -o $output$reload_objs'
15959 hardcode_direct_F77=no
15962 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15963 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15966 runpath_var='LD_RUN_PATH'
15967 hardcode_shlibpath_var_F77=no
15971 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15972 hardcode_shlibpath_var_F77=no
15973 export_dynamic_flag_spec_F77='-Bexport'
15977 if test -d /usr/nec; then
15978 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15979 hardcode_shlibpath_var_F77=no
15980 runpath_var=LD_RUN_PATH
15981 hardcode_runpath_var=yes
15986 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15987 no_undefined_flag_F77='${wl}-z,text'
15988 archive_cmds_need_lc_F77=no
15989 hardcode_shlibpath_var_F77=no
15990 runpath_var='LD_RUN_PATH'
15992 if test "$GCC" = yes; then
15993 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15994 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15996 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15997 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16001 sysv5* | sco3.2v5* | sco5v6*)
16002 # Note: We can NOT use -z defs as we might desire, because we do not
16003 # link with -lc, and that would cause any symbols used from libc to
16004 # always be unresolved, which means just about no library would
16005 # ever link correctly. If we're not using GNU ld we use -z text
16006 # though, which does catch some bad symbols but isn't as heavy-handed
16008 no_undefined_flag_F77='${wl}-z,text'
16009 allow_undefined_flag_F77='${wl}-z,nodefs'
16010 archive_cmds_need_lc_F77=no
16011 hardcode_shlibpath_var_F77=no
16012 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16013 hardcode_libdir_separator_F77=':'
16014 link_all_deplibs_F77=yes
16015 export_dynamic_flag_spec_F77='${wl}-Bexport'
16016 runpath_var='LD_RUN_PATH'
16018 if test "$GCC" = yes; then
16019 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16020 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16022 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16023 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16028 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16029 hardcode_libdir_flag_spec_F77='-L$libdir'
16030 hardcode_shlibpath_var_F77=no
16039 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16040 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16041 test "$ld_shlibs_F77" = no && can_build_shared=no
16044 # Do we need to explicitly link libc?
16046 case "x$archive_cmds_need_lc_F77" in
16048 # Assume -lc should be added
16049 archive_cmds_need_lc_F77=yes
16051 if test "$enable_shared" = yes && test "$GCC" = yes; then
16052 case $archive_cmds_F77 in
16054 # FIXME: we may have to deal with multi-command sequences.
16057 # Test whether the compiler implicitly links with -lc since on some
16058 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16059 # to ld, don't add -lc before -lgcc.
16060 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16061 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16066 (eval $ac_compile) 2>&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } 2>conftest.err; then
16072 libobjs=conftest.$ac_objext
16074 wl=$lt_prog_compiler_wl_F77
16075 pic_flag=$lt_prog_compiler_pic_F77
16081 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16082 allow_undefined_flag_F77=
16083 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16084 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }
16089 archive_cmds_need_lc_F77=no
16091 archive_cmds_need_lc_F77=yes
16093 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16095 cat conftest.err 1>&5
16098 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16099 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16106 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16107 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16108 library_names_spec=
16109 libname_spec='lib$name'
16113 postuninstall_cmds=
16117 shlibpath_overrides_runpath=unknown
16119 dynamic_linker="$host_os ld.so"
16120 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16122 need_lib_prefix=unknown
16123 hardcode_into_libs=no
16125 # when you set need_version to no, make sure it does not cause -set_version
16126 # flags to be left without arguments
16127 need_version=unknown
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16133 shlibpath_var=LIBPATH
16135 # AIX 3 has no versioning support, so we append a major version to the name.
16136 soname_spec='${libname}${release}${shared_ext}$major'
16143 hardcode_into_libs=yes
16144 if test "$host_cpu" = ia64; then
16145 # AIX 5 supports IA64
16146 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16147 shlibpath_var=LD_LIBRARY_PATH
16149 # With GCC up to 2.95.x, collect2 would create an import file
16150 # for dependence libraries. The import file would start with
16151 # the line `#! .'. This would cause the generated library to
16152 # depend on `.', always an invalid library. This was fixed in
16153 # development snapshots of GCC prior to 3.0.
16155 aix4 | aix4.[01] | aix4.[01].*)
16156 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16158 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16161 can_build_shared=no
16165 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16166 # soname into executable. Probably we can add versioning support to
16167 # collect2, so additional links can be useful in future.
16168 if test "$aix_use_runtimelinking" = yes; then
16169 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16170 # instead of lib<name>.a to let people know that these are not
16171 # typical AIX shared libraries.
16172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16174 # We preserve .a as extension for shared libraries through AIX4.2
16175 # and later when we are not doing run time linking.
16176 library_names_spec='${libname}${release}.a $libname.a'
16177 soname_spec='${libname}${release}${shared_ext}$major'
16179 shlibpath_var=LIBPATH
16184 library_names_spec='$libname.ixlibrary $libname.a'
16185 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16186 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'
16190 library_names_spec='${libname}${shared_ext}'
16191 dynamic_linker="$host_os ld.so"
16192 shlibpath_var=LIBRARY_PATH
16198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16199 soname_spec='${libname}${release}${shared_ext}$major'
16200 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16201 shlibpath_var=LD_LIBRARY_PATH
16202 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16203 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16204 # the default ld.so.conf also contains /usr/contrib/lib and
16205 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16206 # libtool to hard-code these into programs
16209 cygwin* | mingw* | pw32*)
16210 version_type=windows
16215 case $GCC,$host_os in
16216 yes,cygwin* | yes,mingw* | yes,pw32*)
16217 library_names_spec='$libname.dll.a'
16218 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16219 postinstall_cmds='base_file=`basename \${file}`~
16220 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16221 dldir=$destdir/`dirname \$dlpath`~
16222 test -d \$dldir || mkdir -p \$dldir~
16223 $install_prog $dir/$dlname \$dldir/$dlname~
16224 chmod a+x \$dldir/$dlname'
16225 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16226 dlpath=$dir/\$dldll~
16228 shlibpath_overrides_runpath=yes
16232 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16233 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16234 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16237 # MinGW DLLs use traditional 'lib' prefix
16238 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16239 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16240 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16241 # It is most probably a Windows format PATH printed by
16242 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16243 # path with ; separators, and with drive letters. We can handle the
16244 # drive letters (cygwin fileutils understands them), so leave them,
16245 # especially as we might pass files found there to a mingw objdump,
16246 # which wouldn't understand a cygwinified path. Ahh.
16247 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16249 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16253 # pw32 DLLs use 'pw' prefix rather than 'lib'
16254 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16260 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16263 dynamic_linker='Win32 ld.exe'
16264 # FIXME: first we should search . and the directory the executable is in
16268 darwin* | rhapsody*)
16269 dynamic_linker="$host_os dyld"
16270 version_type=darwin
16273 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16274 soname_spec='${libname}${release}${major}$shared_ext'
16275 shlibpath_overrides_runpath=yes
16276 shlibpath_var=DYLD_LIBRARY_PATH
16277 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16279 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16287 soname_spec='${libname}${release}${shared_ext}$major'
16288 shlibpath_var=LD_LIBRARY_PATH
16295 freebsd* | dragonfly*)
16296 # DragonFly does not have aout. When/if they implement a new
16297 # versioning mechanism, adjust this.
16298 if test -x /usr/bin/objformat; then
16299 objformat=`/usr/bin/objformat`
16302 freebsd[123]*) objformat=aout ;;
16303 *) objformat=elf ;;
16306 version_type=freebsd-$objformat
16307 case $version_type in
16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16318 shlibpath_var=LD_LIBRARY_PATH
16321 shlibpath_overrides_runpath=yes
16323 freebsd3.[01]* | freebsdelf3.[01]*)
16324 shlibpath_overrides_runpath=yes
16325 hardcode_into_libs=yes
16327 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16328 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16329 shlibpath_overrides_runpath=no
16330 hardcode_into_libs=yes
16332 *) # from 4.6 on, and DragonFly
16333 shlibpath_overrides_runpath=yes
16334 hardcode_into_libs=yes
16343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16344 soname_spec='${libname}${release}${shared_ext}$major'
16345 shlibpath_var=LD_LIBRARY_PATH
16346 hardcode_into_libs=yes
16349 hpux9* | hpux10* | hpux11*)
16350 # Give a soname corresponding to the major version so that dld.sl refuses to
16351 # link against other versions.
16358 hardcode_into_libs=yes
16359 dynamic_linker="$host_os dld.so"
16360 shlibpath_var=LD_LIBRARY_PATH
16361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16363 soname_spec='${libname}${release}${shared_ext}$major'
16364 if test "X$HPUX_IA64_MODE" = X32; then
16365 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16367 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16373 hardcode_into_libs=yes
16374 dynamic_linker="$host_os dld.sl"
16375 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378 soname_spec='${libname}${release}${shared_ext}$major'
16379 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16384 dynamic_linker="$host_os dld.sl"
16385 shlibpath_var=SHLIB_PATH
16386 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388 soname_spec='${libname}${release}${shared_ext}$major'
16391 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16392 postinstall_cmds='chmod 555 $lib'
16399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16400 soname_spec='${libname}${release}${shared_ext}$major'
16401 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16402 shlibpath_var=LD_LIBRARY_PATH
16403 shlibpath_overrides_runpath=no
16404 hardcode_into_libs=yes
16407 irix5* | irix6* | nonstopux*)
16409 nonstopux*) version_type=nonstopux ;;
16411 if test "$lt_cv_prog_gnu_ld" = yes; then
16419 soname_spec='${libname}${release}${shared_ext}$major'
16420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16422 irix5* | nonstopux*)
16423 libsuff= shlibsuff=
16426 case $LD in # libtool.m4 will add one of these switches to LD
16427 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16428 libsuff= shlibsuff= libmagic=32-bit;;
16429 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16430 libsuff=32 shlibsuff=N32 libmagic=N32;;
16431 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16432 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16433 *) libsuff= shlibsuff= libmagic=never-match;;
16437 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16438 shlibpath_overrides_runpath=no
16439 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16440 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16441 hardcode_into_libs=yes
16444 # No shared lib support for Linux oldld, aout, or coff.
16445 linux*oldld* | linux*aout* | linux*coff*)
16449 # This must be Linux ELF.
16450 linux* | k*bsd*-gnu)
16454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16455 soname_spec='${libname}${release}${shared_ext}$major'
16456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16457 shlibpath_var=LD_LIBRARY_PATH
16458 shlibpath_overrides_runpath=no
16459 # This implies no fast_install, which is unacceptable.
16460 # Some rework will be needed to allow for fast_install
16461 # before this can be enabled.
16462 hardcode_into_libs=yes
16464 # Append ld.so.conf contents to the search path
16465 if test -f /etc/ld.so.conf; then
16466 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' ' '`
16467 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16470 # We used to test for /lib/ld.so.1 and disable shared libraries on
16471 # powerpc, because MkLinux only supported shared libraries with the
16472 # GNU dynamic linker. Since this was broken with cross compilers,
16473 # most powerpc-linux boxes support dynamic linking these days and
16474 # people can always --disable-shared, the test was removed, and we
16475 # assume the GNU/Linux dynamic linker is in use.
16476 dynamic_linker='GNU/Linux ld.so'
16483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16484 soname_spec='${libname}${release}${shared_ext}$major'
16485 shlibpath_var=LD_LIBRARY_PATH
16486 shlibpath_overrides_runpath=no
16487 hardcode_into_libs=yes
16488 dynamic_linker='NetBSD ld.elf_so'
16495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16498 dynamic_linker='NetBSD (a.out) ld.so'
16500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16501 soname_spec='${libname}${release}${shared_ext}$major'
16502 dynamic_linker='NetBSD ld.elf_so'
16504 shlibpath_var=LD_LIBRARY_PATH
16505 shlibpath_overrides_runpath=yes
16506 hardcode_into_libs=yes
16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16512 shlibpath_var=LD_LIBRARY_PATH
16513 shlibpath_overrides_runpath=yes
16520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16521 soname_spec='${libname}${release}${shared_ext}$major'
16522 shlibpath_var=LD_LIBRARY_PATH
16523 shlibpath_overrides_runpath=yes
16528 sys_lib_dlsearch_path_spec="/usr/lib"
16530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16532 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16533 *) need_version=no ;;
16535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16537 shlibpath_var=LD_LIBRARY_PATH
16538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16540 openbsd2.[89] | openbsd2.[89].*)
16541 shlibpath_overrides_runpath=no
16544 shlibpath_overrides_runpath=yes
16548 shlibpath_overrides_runpath=yes
16553 libname_spec='$name'
16556 library_names_spec='$libname${shared_ext} $libname.a'
16557 dynamic_linker='OS/2 ld.exe'
16558 shlibpath_var=LIBPATH
16561 osf3* | osf4* | osf5*)
16565 soname_spec='${libname}${release}${shared_ext}$major'
16566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16567 shlibpath_var=LD_LIBRARY_PATH
16568 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16569 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581 soname_spec='${libname}${release}${shared_ext}$major'
16582 shlibpath_var=LD_LIBRARY_PATH
16583 shlibpath_overrides_runpath=yes
16584 hardcode_into_libs=yes
16585 # ldd complains unless libraries are executable
16586 postinstall_cmds='chmod +x $lib'
16591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16592 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16593 shlibpath_var=LD_LIBRARY_PATH
16594 shlibpath_overrides_runpath=yes
16595 if test "$with_gnu_ld" = yes; then
16603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16604 soname_spec='${libname}${release}${shared_ext}$major'
16605 shlibpath_var=LD_LIBRARY_PATH
16606 case $host_vendor in
16608 shlibpath_overrides_runpath=no
16610 export_dynamic_flag_spec='${wl}-Blargedynsym'
16611 runpath_var=LD_RUN_PATH
16619 shlibpath_overrides_runpath=no
16620 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16626 if test -d /usr/nec ;then
16628 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16629 soname_spec='$libname${shared_ext}.$major'
16630 shlibpath_var=LD_LIBRARY_PATH
16634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16635 version_type=freebsd-elf
16638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16639 soname_spec='${libname}${release}${shared_ext}$major'
16640 shlibpath_var=LD_LIBRARY_PATH
16641 hardcode_into_libs=yes
16642 if test "$with_gnu_ld" = yes; then
16643 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16644 shlibpath_overrides_runpath=no
16646 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16647 shlibpath_overrides_runpath=yes
16650 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16654 sys_lib_dlsearch_path_spec='/usr/lib'
16659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16660 soname_spec='${libname}${release}${shared_ext}$major'
16661 shlibpath_var=LD_LIBRARY_PATH
16668 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16669 echo "${ECHO_T}$dynamic_linker" >&6; }
16670 test "$dynamic_linker" = no && can_build_shared=no
16672 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16673 if test "$GCC" = yes; then
16674 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16677 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16678 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16679 hardcode_action_F77=
16680 if test -n "$hardcode_libdir_flag_spec_F77" || \
16681 test -n "$runpath_var_F77" || \
16682 test "X$hardcode_automatic_F77" = "Xyes" ; then
16684 # We can hardcode non-existant directories.
16685 if test "$hardcode_direct_F77" != no &&
16686 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16687 # have to relink, otherwise we might link with an installed library
16688 # when we should be linking with a yet-to-be-installed one
16689 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16690 test "$hardcode_minus_L_F77" != no; then
16691 # Linking always hardcodes the temporary library directory.
16692 hardcode_action_F77=relink
16694 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16695 hardcode_action_F77=immediate
16698 # We cannot hardcode anything, or else we can only hardcode existing
16700 hardcode_action_F77=unsupported
16702 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16703 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16705 if test "$hardcode_action_F77" = relink; then
16706 # Fast installation is not supported
16707 enable_fast_install=no
16708 elif test "$shlibpath_overrides_runpath" = yes ||
16709 test "$enable_shared" = no; then
16710 # Fast installation is not necessary
16711 enable_fast_install=needless
16715 # The else clause should only fire when bootstrapping the
16716 # libtool distribution, otherwise you forgot to ship ltmain.sh
16717 # with your package, and you will get complaints that there are
16718 # no rules to generate ltmain.sh.
16719 if test -f "$ltmain"; then
16720 # See if we are running on zsh, and set the options which allow our commands through
16721 # without removal of \ escapes.
16722 if test -n "${ZSH_VERSION+set}" ; then
16723 setopt NO_GLOB_SUBST
16725 # Now quote all the things that may contain metacharacters while being
16726 # careful not to overquote the AC_SUBSTed values. We take copies of the
16727 # variables and quote the copies for generation of the libtool script.
16728 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16730 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16731 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16732 deplibs_check_method reload_flag reload_cmds need_locks \
16733 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16734 lt_cv_sys_global_symbol_to_c_name_address \
16735 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16736 old_postinstall_cmds old_postuninstall_cmds \
16740 lt_prog_compiler_wl_F77 \
16741 lt_prog_compiler_pic_F77 \
16742 lt_prog_compiler_static_F77 \
16743 lt_prog_compiler_no_builtin_flag_F77 \
16744 export_dynamic_flag_spec_F77 \
16745 thread_safe_flag_spec_F77 \
16746 whole_archive_flag_spec_F77 \
16747 enable_shared_with_static_runtimes_F77 \
16748 old_archive_cmds_F77 \
16749 old_archive_from_new_cmds_F77 \
16750 predep_objects_F77 \
16751 postdep_objects_F77 \
16754 compiler_lib_search_path_F77 \
16756 archive_expsym_cmds_F77 \
16757 postinstall_cmds_F77 \
16758 postuninstall_cmds_F77 \
16759 old_archive_from_expsyms_cmds_F77 \
16760 allow_undefined_flag_F77 \
16761 no_undefined_flag_F77 \
16762 export_symbols_cmds_F77 \
16763 hardcode_libdir_flag_spec_F77 \
16764 hardcode_libdir_flag_spec_ld_F77 \
16765 hardcode_libdir_separator_F77 \
16766 hardcode_automatic_F77 \
16768 module_expsym_cmds_F77 \
16769 lt_cv_prog_compiler_c_o_F77 \
16770 fix_srcfile_path_F77 \
16771 exclude_expsyms_F77 \
16772 include_expsyms_F77; do
16775 old_archive_cmds_F77 | \
16776 old_archive_from_new_cmds_F77 | \
16777 archive_cmds_F77 | \
16778 archive_expsym_cmds_F77 | \
16779 module_cmds_F77 | \
16780 module_expsym_cmds_F77 | \
16781 old_archive_from_expsyms_cmds_F77 | \
16782 export_symbols_cmds_F77 | \
16783 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16784 postinstall_cmds | postuninstall_cmds | \
16785 old_postinstall_cmds | old_postuninstall_cmds | \
16786 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16787 # Double-quote double-evaled strings.
16788 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16791 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16797 *'\$0 --fallback-echo"')
16798 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16804 cat <<__EOF__ >> "$cfgfile"
16805 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16807 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16809 # Shell to use when invoking shell scripts.
16812 # Whether or not to build shared libraries.
16813 build_libtool_libs=$enable_shared
16815 # Whether or not to build static libraries.
16816 build_old_libs=$enable_static
16818 # Whether or not to add -lc for building shared libraries.
16819 build_libtool_need_lc=$archive_cmds_need_lc_F77
16821 # Whether or not to disallow shared libs when runtime libs are static
16822 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16824 # Whether or not to optimize for fast installation.
16825 fast_install=$enable_fast_install
16828 host_alias=$host_alias
16832 # The build system.
16833 build_alias=$build_alias
16837 # An echo program that does not interpret backslashes.
16842 AR_FLAGS=$lt_AR_FLAGS
16847 # LTCC compiler flags.
16848 LTCFLAGS=$lt_LTCFLAGS
16850 # A language-specific compiler.
16851 CC=$lt_compiler_F77
16853 # Is the compiler the GNU C compiler?
16859 # The linker used to build libraries.
16862 # Whether we need hard or soft links.
16865 # A BSD-compatible nm program.
16868 # A symbol stripping program
16871 # Used to examine libraries when file_magic_cmd begins "file"
16872 MAGIC_CMD=$MAGIC_CMD
16874 # Used on cygwin: DLL creation program.
16877 # Used on cygwin: object dumper.
16880 # Used on cygwin: assembler.
16883 # The name of the directory that contains temporary libtool files.
16886 # How to create reloadable object files.
16887 reload_flag=$lt_reload_flag
16888 reload_cmds=$lt_reload_cmds
16890 # How to pass a linker flag through the compiler.
16891 wl=$lt_lt_prog_compiler_wl_F77
16893 # Object file suffix (normally "o").
16894 objext="$ac_objext"
16896 # Old archive suffix (normally "a").
16899 # Shared library suffix (normally ".so").
16900 shrext_cmds='$shrext_cmds'
16902 # Executable file suffix (normally "").
16905 # Additional compiler flags for building library objects.
16906 pic_flag=$lt_lt_prog_compiler_pic_F77
16909 # What is the maximum length of a command?
16910 max_cmd_len=$lt_cv_sys_max_cmd_len
16912 # Does compiler simultaneously support -c and -o options?
16913 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16915 # Must we lock files when doing compilation?
16916 need_locks=$lt_need_locks
16918 # Do we need the lib prefix for modules?
16919 need_lib_prefix=$need_lib_prefix
16921 # Do we need a version for libraries?
16922 need_version=$need_version
16924 # Whether dlopen is supported.
16925 dlopen_support=$enable_dlopen
16927 # Whether dlopen of programs is supported.
16928 dlopen_self=$enable_dlopen_self
16930 # Whether dlopen of statically linked programs is supported.
16931 dlopen_self_static=$enable_dlopen_self_static
16933 # Compiler flag to prevent dynamic linking.
16934 link_static_flag=$lt_lt_prog_compiler_static_F77
16936 # Compiler flag to turn off builtin functions.
16937 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16939 # Compiler flag to allow reflexive dlopens.
16940 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16942 # Compiler flag to generate shared objects directly from archives.
16943 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16945 # Compiler flag to generate thread-safe objects.
16946 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16948 # Library versioning type.
16949 version_type=$version_type
16951 # Format of library name prefix.
16952 libname_spec=$lt_libname_spec
16954 # List of archive names. First name is the real one, the rest are links.
16955 # The last name is the one that the linker finds with -lNAME.
16956 library_names_spec=$lt_library_names_spec
16958 # The coded name of the library, if different from the real name.
16959 soname_spec=$lt_soname_spec
16961 # Commands used to build and install an old-style archive.
16963 old_archive_cmds=$lt_old_archive_cmds_F77
16964 old_postinstall_cmds=$lt_old_postinstall_cmds
16965 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16967 # Create an old-style archive from a shared archive.
16968 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16970 # Create a temporary old-style archive to link instead of a shared archive.
16971 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16973 # Commands used to build and install a shared archive.
16974 archive_cmds=$lt_archive_cmds_F77
16975 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16976 postinstall_cmds=$lt_postinstall_cmds
16977 postuninstall_cmds=$lt_postuninstall_cmds
16979 # Commands used to build a loadable module (assumed same as above if empty)
16980 module_cmds=$lt_module_cmds_F77
16981 module_expsym_cmds=$lt_module_expsym_cmds_F77
16983 # Commands to strip libraries.
16984 old_striplib=$lt_old_striplib
16985 striplib=$lt_striplib
16987 # Dependencies to place before the objects being linked to create a
16989 predep_objects=$lt_predep_objects_F77
16991 # Dependencies to place after the objects being linked to create a
16993 postdep_objects=$lt_postdep_objects_F77
16995 # Dependencies to place before the objects being linked to create a
16997 predeps=$lt_predeps_F77
16999 # Dependencies to place after the objects being linked to create a
17001 postdeps=$lt_postdeps_F77
17003 # The library search path used internally by the compiler when linking
17004 # a shared library.
17005 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17007 # Method to check whether dependent libraries are shared objects.
17008 deplibs_check_method=$lt_deplibs_check_method
17010 # Command to use when deplibs_check_method == file_magic.
17011 file_magic_cmd=$lt_file_magic_cmd
17013 # Flag that allows shared libraries with undefined symbols to be built.
17014 allow_undefined_flag=$lt_allow_undefined_flag_F77
17016 # Flag that forces no undefined symbols.
17017 no_undefined_flag=$lt_no_undefined_flag_F77
17019 # Commands used to finish a libtool library installation in a directory.
17020 finish_cmds=$lt_finish_cmds
17022 # Same as above, but a single script fragment to be evaled but not shown.
17023 finish_eval=$lt_finish_eval
17025 # Take the output of nm and produce a listing of raw symbols and C names.
17026 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17028 # Transform the output of nm in a proper C declaration
17029 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17031 # Transform the output of nm in a C name address pair
17032 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17034 # This is the shared library runtime path variable.
17035 runpath_var=$runpath_var
17037 # This is the shared library path variable.
17038 shlibpath_var=$shlibpath_var
17040 # Is shlibpath searched before the hard-coded library search path?
17041 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17043 # How to hardcode a shared library path into an executable.
17044 hardcode_action=$hardcode_action_F77
17046 # Whether we should hardcode library paths into libraries.
17047 hardcode_into_libs=$hardcode_into_libs
17049 # Flag to hardcode \$libdir into a binary during linking.
17050 # This must work even if \$libdir does not exist.
17051 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17053 # If ld is used when linking, flag to hardcode \$libdir into
17054 # a binary during linking. This must work even if \$libdir does
17056 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17058 # Whether we need a single -rpath flag with a separated argument.
17059 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17061 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17062 # resulting binary.
17063 hardcode_direct=$hardcode_direct_F77
17065 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17066 # resulting binary.
17067 hardcode_minus_L=$hardcode_minus_L_F77
17069 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17070 # the resulting binary.
17071 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17073 # Set to yes if building a shared library automatically hardcodes DIR into the library
17074 # and all subsequent libraries and executables linked against it.
17075 hardcode_automatic=$hardcode_automatic_F77
17077 # Variables whose values should be saved in libtool wrapper scripts and
17078 # restored at relink time.
17079 variables_saved_for_relink="$variables_saved_for_relink"
17081 # Whether libtool must link a program against all its dependency libraries.
17082 link_all_deplibs=$link_all_deplibs_F77
17084 # Compile-time system search path for libraries
17085 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17087 # Run-time system search path for libraries
17088 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17090 # Fix the shell variable \$srcfile for the compiler.
17091 fix_srcfile_path=$lt_fix_srcfile_path
17093 # Set to yes if exported symbols are required.
17094 always_export_symbols=$always_export_symbols_F77
17096 # The commands to list exported symbols.
17097 export_symbols_cmds=$lt_export_symbols_cmds_F77
17099 # The commands to extract the exported symbol list from a shared archive.
17100 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17102 # Symbols that should not be listed in the preloaded symbols.
17103 exclude_expsyms=$lt_exclude_expsyms_F77
17105 # Symbols that must always be exported.
17106 include_expsyms=$lt_include_expsyms_F77
17108 # ### END LIBTOOL TAG CONFIG: $tagname
17114 # If there is no Makefile yet, we rely on a make rule to execute
17115 # `config.status --recheck' to rerun these tests and create the
17116 # libtool script then.
17117 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17118 if test -f "$ltmain_in"; then
17119 test -f Makefile && make "$ltmain"
17125 ac_cpp='$CPP $CPPFLAGS'
17126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17138 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17141 # Source file extension for Java test sources.
17144 # Object file extension for compiled Java test sources.
17148 # Code to be used in simple compile tests
17149 lt_simple_compile_test_code="class foo {}"
17151 # Code to be used in simple link tests
17152 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17154 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17156 # If no C compiler was specified, use CC.
17159 # If no C compiler flags were specified, use CFLAGS.
17160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17162 # Allow CC to be a program name with arguments.
17166 # save warnings/boilerplate of simple test code
17167 ac_outfile=conftest.$ac_objext
17168 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17169 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17170 _lt_compiler_boilerplate=`cat conftest.err`
17173 ac_outfile=conftest.$ac_objext
17174 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17175 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17176 _lt_linker_boilerplate=`cat conftest.err`
17180 # Allow CC to be a program name with arguments.
17185 for cc_temp in $compiler""; do
17187 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17188 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17193 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17196 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17197 archive_cmds_need_lc_GCJ=no
17199 old_archive_cmds_GCJ=$old_archive_cmds
17202 lt_prog_compiler_no_builtin_flag_GCJ=
17204 if test "$GCC" = yes; then
17205 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17208 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17209 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17210 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17211 echo $ECHO_N "(cached) $ECHO_C" >&6
17213 lt_cv_prog_compiler_rtti_exceptions=no
17214 ac_outfile=conftest.$ac_objext
17215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17216 lt_compiler_flag="-fno-rtti -fno-exceptions"
17217 # Insert the option either (1) after the last *FLAGS variable, or
17218 # (2) before a word containing "conftest.", or (3) at the end.
17219 # Note that $ac_compile itself does not contain backslashes and begins
17220 # with a dollar sign (not a hyphen), so the echo should work correctly.
17221 # The option is referenced via a variable to avoid confusing sed.
17222 lt_compile=`echo "$ac_compile" | $SED \
17223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17225 -e 's:$: $lt_compiler_flag:'`
17226 (eval echo "\"\$as_me:17226: $lt_compile\"" >&5)
17227 (eval "$lt_compile" 2>conftest.err)
17229 cat conftest.err >&5
17230 echo "$as_me:17230: \$? = $ac_status" >&5
17231 if (exit $ac_status) && test -s "$ac_outfile"; then
17232 # The compiler can only warn and ignore the option if not recognized
17233 # So say no if there are warnings other than the usual output.
17234 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17235 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17236 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17237 lt_cv_prog_compiler_rtti_exceptions=yes
17243 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17244 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17246 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17247 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17254 lt_prog_compiler_wl_GCJ=
17255 lt_prog_compiler_pic_GCJ=
17256 lt_prog_compiler_static_GCJ=
17258 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17259 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17261 if test "$GCC" = yes; then
17262 lt_prog_compiler_wl_GCJ='-Wl,'
17263 lt_prog_compiler_static_GCJ='-static'
17267 # All AIX code is PIC.
17268 if test "$host_cpu" = ia64; then
17269 # AIX 5 now supports IA64 processor
17270 lt_prog_compiler_static_GCJ='-Bstatic'
17275 # FIXME: we need at least 68020 code to build shared libraries, but
17276 # adding the `-m68020' flag to GCC prevents building anything better,
17278 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17281 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17282 # PIC is the default for these OSes.
17285 mingw* | cygwin* | pw32* | os2*)
17286 # This hack is so that the source file can tell whether it is being
17287 # built for inclusion in a dll (and should export symbols for example).
17288 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17289 # (--disable-auto-import) libraries
17290 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17293 darwin* | rhapsody*)
17294 # PIC is the default on this platform
17295 # Common symbols not allowed in MH_DYLIB files
17296 lt_prog_compiler_pic_GCJ='-fno-common'
17300 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17301 # Instead, we relocate shared libraries at runtime.
17305 # Just because we use GCC doesn't mean we suddenly get shared libraries
17306 # on systems that don't support them.
17307 lt_prog_compiler_can_build_shared_GCJ=no
17312 if test -d /usr/nec; then
17313 lt_prog_compiler_pic_GCJ=-Kconform_pic
17318 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17319 # not for PA HP-UX.
17325 lt_prog_compiler_pic_GCJ='-fPIC'
17331 lt_prog_compiler_pic_GCJ='-fPIC'
17335 # PORTME Check for flag to pass linker flags through the system compiler.
17338 lt_prog_compiler_wl_GCJ='-Wl,'
17339 if test "$host_cpu" = ia64; then
17340 # AIX 5 now supports IA64 processor
17341 lt_prog_compiler_static_GCJ='-Bstatic'
17343 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17347 # PIC is the default on this platform
17348 # Common symbols not allowed in MH_DYLIB files
17349 case $cc_basename in
17351 lt_prog_compiler_pic_GCJ='-qnocommon'
17352 lt_prog_compiler_wl_GCJ='-Wl,'
17357 mingw* | cygwin* | pw32* | os2*)
17358 # This hack is so that the source file can tell whether it is being
17359 # built for inclusion in a dll (and should export symbols for example).
17360 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17363 hpux9* | hpux10* | hpux11*)
17364 lt_prog_compiler_wl_GCJ='-Wl,'
17365 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17366 # not for PA HP-UX.
17372 lt_prog_compiler_pic_GCJ='+Z'
17375 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17376 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17379 irix5* | irix6* | nonstopux*)
17380 lt_prog_compiler_wl_GCJ='-Wl,'
17381 # PIC (with -KPIC) is the default.
17382 lt_prog_compiler_static_GCJ='-non_shared'
17386 lt_prog_compiler_pic_GCJ='-KPIC'
17387 lt_prog_compiler_static_GCJ='-Bstatic'
17390 linux* | k*bsd*-gnu)
17391 case $cc_basename in
17393 lt_prog_compiler_wl_GCJ='-Wl,'
17394 lt_prog_compiler_pic_GCJ='-KPIC'
17395 lt_prog_compiler_static_GCJ='-static'
17397 pgcc* | pgf77* | pgf90* | pgf95*)
17398 # Portland Group compilers (*not* the Pentium gcc compiler,
17399 # which looks to be a dead project)
17400 lt_prog_compiler_wl_GCJ='-Wl,'
17401 lt_prog_compiler_pic_GCJ='-fpic'
17402 lt_prog_compiler_static_GCJ='-Bstatic'
17405 lt_prog_compiler_wl_GCJ='-Wl,'
17406 # All Alpha code is PIC.
17407 lt_prog_compiler_static_GCJ='-non_shared'
17410 case `$CC -V 2>&1 | sed 5q` in
17413 lt_prog_compiler_pic_GCJ='-KPIC'
17414 lt_prog_compiler_static_GCJ='-Bstatic'
17415 lt_prog_compiler_wl_GCJ='-Wl,'
17418 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17419 lt_prog_compiler_pic_GCJ='-KPIC'
17420 lt_prog_compiler_static_GCJ='-Bstatic'
17421 lt_prog_compiler_wl_GCJ=''
17428 osf3* | osf4* | osf5*)
17429 lt_prog_compiler_wl_GCJ='-Wl,'
17430 # All OSF/1 code is PIC.
17431 lt_prog_compiler_static_GCJ='-non_shared'
17435 lt_prog_compiler_static_GCJ='-non_shared'
17439 lt_prog_compiler_pic_GCJ='-KPIC'
17440 lt_prog_compiler_static_GCJ='-Bstatic'
17441 case $cc_basename in
17442 f77* | f90* | f95*)
17443 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17445 lt_prog_compiler_wl_GCJ='-Wl,';;
17450 lt_prog_compiler_wl_GCJ='-Qoption ld '
17451 lt_prog_compiler_pic_GCJ='-PIC'
17452 lt_prog_compiler_static_GCJ='-Bstatic'
17455 sysv4 | sysv4.2uw2* | sysv4.3*)
17456 lt_prog_compiler_wl_GCJ='-Wl,'
17457 lt_prog_compiler_pic_GCJ='-KPIC'
17458 lt_prog_compiler_static_GCJ='-Bstatic'
17462 if test -d /usr/nec ;then
17463 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17464 lt_prog_compiler_static_GCJ='-Bstatic'
17468 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17469 lt_prog_compiler_wl_GCJ='-Wl,'
17470 lt_prog_compiler_pic_GCJ='-KPIC'
17471 lt_prog_compiler_static_GCJ='-Bstatic'
17475 lt_prog_compiler_wl_GCJ='-Wl,'
17476 lt_prog_compiler_can_build_shared_GCJ=no
17480 lt_prog_compiler_pic_GCJ='-pic'
17481 lt_prog_compiler_static_GCJ='-Bstatic'
17485 lt_prog_compiler_can_build_shared_GCJ=no
17490 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17491 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17494 # Check to make sure the PIC flag actually works.
17496 if test -n "$lt_prog_compiler_pic_GCJ"; then
17498 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17499 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17500 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 lt_prog_compiler_pic_works_GCJ=no
17504 ac_outfile=conftest.$ac_objext
17505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17506 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17507 # Insert the option either (1) after the last *FLAGS variable, or
17508 # (2) before a word containing "conftest.", or (3) at the end.
17509 # Note that $ac_compile itself does not contain backslashes and begins
17510 # with a dollar sign (not a hyphen), so the echo should work correctly.
17511 # The option is referenced via a variable to avoid confusing sed.
17512 lt_compile=`echo "$ac_compile" | $SED \
17513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17515 -e 's:$: $lt_compiler_flag:'`
17516 (eval echo "\"\$as_me:17516: $lt_compile\"" >&5)
17517 (eval "$lt_compile" 2>conftest.err)
17519 cat conftest.err >&5
17520 echo "$as_me:17520: \$? = $ac_status" >&5
17521 if (exit $ac_status) && test -s "$ac_outfile"; then
17522 # The compiler can only warn and ignore the option if not recognized
17523 # So say no if there are warnings other than the usual output.
17524 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17526 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17527 lt_prog_compiler_pic_works_GCJ=yes
17533 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17534 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17536 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17537 case $lt_prog_compiler_pic_GCJ in
17539 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17542 lt_prog_compiler_pic_GCJ=
17543 lt_prog_compiler_can_build_shared_GCJ=no
17548 # For platforms which do not support PIC, -DPIC is meaningless:
17550 lt_prog_compiler_pic_GCJ=
17553 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17558 # Check to make sure the static flag actually works.
17560 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17561 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17562 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17563 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17564 echo $ECHO_N "(cached) $ECHO_C" >&6
17566 lt_prog_compiler_static_works_GCJ=no
17567 save_LDFLAGS="$LDFLAGS"
17568 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17569 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17570 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17571 # The linker can only warn and ignore the option if not recognized
17572 # So say no if there are warnings
17573 if test -s conftest.err; then
17574 # Append any errors to the config.log.
17575 cat conftest.err 1>&5
17576 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17578 if diff conftest.exp conftest.er2 >/dev/null; then
17579 lt_prog_compiler_static_works_GCJ=yes
17582 lt_prog_compiler_static_works_GCJ=yes
17586 LDFLAGS="$save_LDFLAGS"
17589 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17590 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17592 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17595 lt_prog_compiler_static_GCJ=
17599 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17600 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17601 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17602 echo $ECHO_N "(cached) $ECHO_C" >&6
17604 lt_cv_prog_compiler_c_o_GCJ=no
17605 $rm -r conftest 2>/dev/null
17609 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17611 lt_compiler_flag="-o out/conftest2.$ac_objext"
17612 # Insert the option either (1) after the last *FLAGS variable, or
17613 # (2) before a word containing "conftest.", or (3) at the end.
17614 # Note that $ac_compile itself does not contain backslashes and begins
17615 # with a dollar sign (not a hyphen), so the echo should work correctly.
17616 lt_compile=`echo "$ac_compile" | $SED \
17617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17619 -e 's:$: $lt_compiler_flag:'`
17620 (eval echo "\"\$as_me:17620: $lt_compile\"" >&5)
17621 (eval "$lt_compile" 2>out/conftest.err)
17623 cat out/conftest.err >&5
17624 echo "$as_me:17624: \$? = $ac_status" >&5
17625 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17627 # The compiler can only warn and ignore the option if not recognized
17628 # So say no if there are warnings
17629 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17630 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17631 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17632 lt_cv_prog_compiler_c_o_GCJ=yes
17637 # SGI C++ compiler will create directory out/ii_files/ for
17638 # template instantiation
17639 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17640 $rm out/* && rmdir out
17646 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17647 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17650 hard_links="nottested"
17651 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17652 # do not overwrite the value of need_locks provided by the user
17653 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17654 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17659 ln conftest.a conftest.b 2>&5 || hard_links=no
17660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17661 { echo "$as_me:$LINENO: result: $hard_links" >&5
17662 echo "${ECHO_T}$hard_links" >&6; }
17663 if test "$hard_links" = no; then
17664 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17665 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17672 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17673 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17676 allow_undefined_flag_GCJ=
17677 enable_shared_with_static_runtimes_GCJ=no
17679 archive_expsym_cmds_GCJ=
17680 old_archive_From_new_cmds_GCJ=
17681 old_archive_from_expsyms_cmds_GCJ=
17682 export_dynamic_flag_spec_GCJ=
17683 whole_archive_flag_spec_GCJ=
17684 thread_safe_flag_spec_GCJ=
17685 hardcode_libdir_flag_spec_GCJ=
17686 hardcode_libdir_flag_spec_ld_GCJ=
17687 hardcode_libdir_separator_GCJ=
17688 hardcode_direct_GCJ=no
17689 hardcode_minus_L_GCJ=no
17690 hardcode_shlibpath_var_GCJ=unsupported
17691 link_all_deplibs_GCJ=unknown
17692 hardcode_automatic_GCJ=no
17694 module_expsym_cmds_GCJ=
17695 always_export_symbols_GCJ=no
17696 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17697 # include_expsyms should be a list of space-separated symbols to be *always*
17698 # included in the symbol list
17699 include_expsyms_GCJ=
17700 # exclude_expsyms can be an extended regexp of symbols to exclude
17701 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17702 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17703 # as well as any symbol that contains `d'.
17704 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17705 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17706 # platforms (ab)use it in PIC code, but their linkers get confused if
17707 # the symbol is explicitly referenced. Since portable code cannot
17708 # rely on this symbol name, it's probably fine to never include it in
17709 # preloaded symbol tables.
17710 extract_expsyms_cmds=
17711 # Just being paranoid about ensuring that cc_basename is set.
17712 for cc_temp in $compiler""; do
17714 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17715 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17720 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17723 cygwin* | mingw* | pw32*)
17724 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17725 # When not using gcc, we currently assume that we are using
17726 # Microsoft Visual C++.
17727 if test "$GCC" != yes; then
17732 # we just hope/assume this is gcc and not c89 (= MSVC++)
17741 if test "$with_gnu_ld" = yes; then
17742 # If archive_cmds runs LD, not CC, wlarc should be empty
17745 # Set some defaults for GNU ld with shared library support. These
17746 # are reset later if shared libraries are not supported. Putting them
17747 # here allows them to be overridden if necessary.
17748 runpath_var=LD_RUN_PATH
17749 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17750 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17751 # ancient GNU ld didn't support --whole-archive et. al.
17752 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17753 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17755 whole_archive_flag_spec_GCJ=
17757 supports_anon_versioning=no
17758 case `$LD -v 2>/dev/null` in
17759 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17760 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17761 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17762 *\ 2.11.*) ;; # other 2.11 versions
17763 *) supports_anon_versioning=yes ;;
17766 # See if GNU ld supports shared libraries.
17768 aix3* | aix4* | aix5*)
17769 # On AIX/PPC, the GNU linker is very broken
17770 if test "$host_cpu" != ia64; then
17774 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17775 *** to be unable to reliably create shared libraries on AIX.
17776 *** Therefore, libtool is disabling shared libraries support. If you
17777 *** really care for shared libraries, you may want to modify your PATH
17778 *** so that a non-GNU linker is found, and then restart.
17785 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)'
17786 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17787 hardcode_minus_L_GCJ=yes
17789 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17790 # that the semantics of dynamic libraries on AmigaOS, at least up
17791 # to version 4, is to share data among multiple programs linked
17792 # with the same dynamic library. Since this doesn't match the
17793 # behavior of shared libraries on other platforms, we can't use
17799 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17800 allow_undefined_flag_GCJ=unsupported
17801 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17802 # support --undefined. This deserves some investigation. FIXME
17803 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17809 cygwin* | mingw* | pw32*)
17810 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17811 # as there is no search path for DLLs.
17812 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17813 allow_undefined_flag_GCJ=unsupported
17814 always_export_symbols_GCJ=no
17815 enable_shared_with_static_runtimes_GCJ=yes
17816 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17818 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17819 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17820 # If the export-symbols file already is a .def file (1st line
17821 # is EXPORTS), use it as is; otherwise, prepend...
17822 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17823 cp $export_symbols $output_objdir/$soname.def;
17825 echo EXPORTS > $output_objdir/$soname.def;
17826 cat $export_symbols >> $output_objdir/$soname.def;
17828 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17835 hardcode_direct_GCJ=no
17836 hardcode_shlibpath_var_GCJ=no
17837 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17838 export_dynamic_flag_spec_GCJ='${wl}-E'
17839 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17840 # Instead, shared libraries are loaded at an image base (0x10000000 by
17841 # default) and relocated if they conflict, which is a slow very memory
17842 # consuming and fragmenting process. To avoid this, we pick a random,
17843 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17844 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17845 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'
17846 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'
17849 gnu* | linux* | k*bsd*-gnu)
17850 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17852 case $cc_basename,$host_cpu in
17853 pgcc*) # Portland Group C compiler
17854 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'
17855 tmp_addflag=' $pic_flag'
17857 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17858 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'
17859 tmp_addflag=' $pic_flag -Mnomain' ;;
17860 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17861 tmp_addflag=' -i_dynamic' ;;
17862 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17863 tmp_addflag=' -i_dynamic -nofor_main' ;;
17864 ifc* | ifort*) # Intel Fortran compiler
17865 tmp_addflag=' -nofor_main' ;;
17867 case `$CC -V 2>&1 | sed 5q` in
17868 *Sun\ C*) # Sun C 5.9
17869 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'
17870 tmp_sharedflag='-G' ;;
17871 *Sun\ F*) # Sun Fortran 8.3
17872 tmp_sharedflag='-G' ;;
17874 tmp_sharedflag='-shared' ;;
17876 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17878 if test $supports_anon_versioning = yes; then
17879 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17880 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17881 $echo "local: *; };" >> $output_objdir/$libname.ver~
17882 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17884 link_all_deplibs_GCJ=no
17890 netbsd* | netbsdelf*-gnu)
17891 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17892 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17895 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17896 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17901 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17905 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17906 *** create shared libraries on Solaris systems. Therefore, libtool
17907 *** is disabling shared libraries support. We urge you to upgrade GNU
17908 *** binutils to release 2.9.1 or newer. Another option is to modify
17909 *** your PATH or compiler configuration so that the native linker is
17910 *** used, and then restart.
17913 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17914 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17915 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17921 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17922 case `$LD -v 2>&1` in
17923 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17927 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17928 *** reliably create shared libraries on SCO systems. Therefore, libtool
17929 *** is disabling shared libraries support. We urge you to upgrade GNU
17930 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17931 *** your PATH or compiler configuration so that the native linker is
17932 *** used, and then restart.
17937 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17938 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17939 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17940 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17949 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17951 hardcode_direct_GCJ=yes
17952 hardcode_shlibpath_var_GCJ=no
17956 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17957 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17958 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17965 if test "$ld_shlibs_GCJ" = no; then
17967 hardcode_libdir_flag_spec_GCJ=
17968 export_dynamic_flag_spec_GCJ=
17969 whole_archive_flag_spec_GCJ=
17972 # PORTME fill in a description of your system's linker (not GNU ld)
17975 allow_undefined_flag_GCJ=unsupported
17976 always_export_symbols_GCJ=yes
17977 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'
17978 # Note: this linker hardcodes the directories in LIBPATH if there
17979 # are no directories specified by -L.
17980 hardcode_minus_L_GCJ=yes
17981 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17982 # Neither direct hardcoding nor static linking is supported with a
17984 hardcode_direct_GCJ=unsupported
17989 if test "$host_cpu" = ia64; then
17990 # On IA64, the linker does run time linking by default, so we don't
17991 # have to do anything special.
17992 aix_use_runtimelinking=no
17993 exp_sym_flag='-Bexport'
17996 # If we're using GNU nm, then we don't want the "-C" option.
17997 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17998 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17999 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'
18001 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'
18003 aix_use_runtimelinking=no
18005 # Test if we are trying to use run time linking or normal
18006 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18007 # need to do runtime linking.
18008 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18009 for ld_flag in $LDFLAGS; do
18010 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18011 aix_use_runtimelinking=yes
18018 exp_sym_flag='-bexport'
18019 no_entry_flag='-bnoentry'
18022 # When large executables or shared objects are built, AIX ld can
18023 # have problems creating the table of contents. If linking a library
18024 # or program results in "error TOC overflow" add -mminimal-toc to
18025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18028 archive_cmds_GCJ=''
18029 hardcode_direct_GCJ=yes
18030 hardcode_libdir_separator_GCJ=':'
18031 link_all_deplibs_GCJ=yes
18033 if test "$GCC" = yes; then
18034 case $host_os in aix4.[012]|aix4.[012].*)
18035 # We only want to do this on AIX 4.2 and lower, the check
18036 # below for broken collect2 doesn't work under 4.3+
18037 collect2name=`${CC} -print-prog-name=collect2`
18038 if test -f "$collect2name" && \
18039 strings "$collect2name" | grep resolve_lib_name >/dev/null
18041 # We have reworked collect2
18044 # We have old collect2
18045 hardcode_direct_GCJ=unsupported
18046 # It fails to find uninstalled libraries when the uninstalled
18047 # path is not listed in the libpath. Setting hardcode_minus_L
18048 # to unsupported forces relinking
18049 hardcode_minus_L_GCJ=yes
18050 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18051 hardcode_libdir_separator_GCJ=
18055 shared_flag='-shared'
18056 if test "$aix_use_runtimelinking" = yes; then
18057 shared_flag="$shared_flag "'${wl}-G'
18061 if test "$host_cpu" = ia64; then
18062 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18063 # chokes on -Wl,-G. The following line is correct:
18066 if test "$aix_use_runtimelinking" = yes; then
18067 shared_flag='${wl}-G'
18069 shared_flag='${wl}-bM:SRE'
18074 # It seems that -bexpall does not export symbols beginning with
18075 # underscore (_), so it is better to generate a list of symbols to export.
18076 always_export_symbols_GCJ=yes
18077 if test "$aix_use_runtimelinking" = yes; then
18078 # Warning - without using the other runtime loading flags (-brtl),
18079 # -berok will link without error, but may produce a broken library.
18080 allow_undefined_flag_GCJ='-berok'
18081 # Determine the default libpath from the value encoded in an empty executable.
18082 cat >conftest.$ac_ext <<_ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18097 rm -f conftest.$ac_objext conftest$ac_exeext
18098 if { (ac_try="$ac_link"
18099 case "(($ac_try" in
18100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101 *) ac_try_echo=$ac_try;;
18103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104 (eval "$ac_link") 2>conftest.er1
18106 grep -v '^ *+' conftest.er1 >conftest.err
18108 cat conftest.err >&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } && {
18111 test -z "$ac_c_werror_flag" ||
18112 test ! -s conftest.err
18113 } && test -s conftest$ac_exeext &&
18114 $as_test_x conftest$ac_exeext; then
18116 lt_aix_libpath_sed='
18117 /Import File Strings/,/^$/ {
18123 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18124 # Check for a 64-bit object if we didn't find anything.
18125 if test -z "$aix_libpath"; then
18126 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18129 echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18136 conftest$ac_exeext conftest.$ac_ext
18137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18139 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18140 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"
18142 if test "$host_cpu" = ia64; then
18143 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18144 allow_undefined_flag_GCJ="-z nodefs"
18145 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"
18147 # Determine the default libpath from the value encoded in an empty executable.
18148 cat >conftest.$ac_ext <<_ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18163 rm -f conftest.$ac_objext conftest$ac_exeext
18164 if { (ac_try="$ac_link"
18165 case "(($ac_try" in
18166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167 *) ac_try_echo=$ac_try;;
18169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18170 (eval "$ac_link") 2>conftest.er1
18172 grep -v '^ *+' conftest.er1 >conftest.err
18174 cat conftest.err >&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); } && {
18177 test -z "$ac_c_werror_flag" ||
18178 test ! -s conftest.err
18179 } && test -s conftest$ac_exeext &&
18180 $as_test_x conftest$ac_exeext; then
18182 lt_aix_libpath_sed='
18183 /Import File Strings/,/^$/ {
18189 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18190 # Check for a 64-bit object if we didn't find anything.
18191 if test -z "$aix_libpath"; then
18192 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18195 echo "$as_me: failed program was:" >&5
18196 sed 's/^/| /' conftest.$ac_ext >&5
18201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18202 conftest$ac_exeext conftest.$ac_ext
18203 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18205 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18206 # Warning - without using the other run time loading flags,
18207 # -berok will link without error, but may produce a broken library.
18208 no_undefined_flag_GCJ=' ${wl}-bernotok'
18209 allow_undefined_flag_GCJ=' ${wl}-berok'
18210 # Exported symbols can be pulled into shared objects from archives
18211 whole_archive_flag_spec_GCJ='$convenience'
18212 archive_cmds_need_lc_GCJ=yes
18213 # This is similar to how AIX traditionally builds its shared libraries.
18214 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'
18220 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)'
18221 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18222 hardcode_minus_L_GCJ=yes
18223 # see comment about different semantics on the GNU ld section
18228 export_dynamic_flag_spec_GCJ=-rdynamic
18231 cygwin* | mingw* | pw32*)
18232 # When not using gcc, we currently assume that we are using
18233 # Microsoft Visual C++.
18234 # hardcode_libdir_flag_spec is actually meaningless, as there is
18235 # no search path for DLLs.
18236 hardcode_libdir_flag_spec_GCJ=' '
18237 allow_undefined_flag_GCJ=unsupported
18238 # Tell ltmain to make .lib files, not .a files.
18240 # Tell ltmain to make .dll files, not .so files.
18242 # FIXME: Setting linknames here is a bad hack.
18243 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18244 # The linker will automatically build a .lib file if we build a DLL.
18245 old_archive_From_new_cmds_GCJ='true'
18246 # FIXME: Should let the user specify the lib program.
18247 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18248 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18249 enable_shared_with_static_runtimes_GCJ=yes
18252 darwin* | rhapsody*)
18254 rhapsody* | darwin1.[012])
18255 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18258 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18259 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18261 case ${MACOSX_DEPLOYMENT_TARGET} in
18263 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18266 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18272 archive_cmds_need_lc_GCJ=no
18273 hardcode_direct_GCJ=no
18274 hardcode_automatic_GCJ=yes
18275 hardcode_shlibpath_var_GCJ=unsupported
18276 whole_archive_flag_spec_GCJ=''
18277 link_all_deplibs_GCJ=yes
18278 if test "$GCC" = yes ; then
18279 output_verbose_link_cmd='echo'
18280 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18281 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18282 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18283 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18284 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}'
18286 case $cc_basename in
18288 output_verbose_link_cmd='echo'
18289 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18290 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18291 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18292 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}'
18293 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}'
18303 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18304 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18305 hardcode_shlibpath_var_GCJ=no
18312 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18313 # support. Future versions do this automatically, but an explicit c++rt0.o
18314 # does not break anything, and helps significantly (at the cost of a little
18317 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18318 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18319 hardcode_direct_GCJ=yes
18320 hardcode_shlibpath_var_GCJ=no
18323 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18325 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18326 hardcode_direct_GCJ=yes
18327 hardcode_minus_L_GCJ=yes
18328 hardcode_shlibpath_var_GCJ=no
18331 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18332 freebsd* | dragonfly*)
18333 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18334 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18335 hardcode_direct_GCJ=yes
18336 hardcode_shlibpath_var_GCJ=no
18340 if test "$GCC" = yes; then
18341 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'
18343 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'
18345 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18346 hardcode_libdir_separator_GCJ=:
18347 hardcode_direct_GCJ=yes
18349 # hardcode_minus_L: Not really in the search PATH,
18350 # but as the default location of the library.
18351 hardcode_minus_L_GCJ=yes
18352 export_dynamic_flag_spec_GCJ='${wl}-E'
18356 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18357 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18359 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18361 if test "$with_gnu_ld" = no; then
18362 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18363 hardcode_libdir_separator_GCJ=:
18365 hardcode_direct_GCJ=yes
18366 export_dynamic_flag_spec_GCJ='${wl}-E'
18368 # hardcode_minus_L: Not really in the search PATH,
18369 # but as the default location of the library.
18370 hardcode_minus_L_GCJ=yes
18375 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18378 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18381 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18384 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18390 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18393 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18396 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18400 if test "$with_gnu_ld" = no; then
18401 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18402 hardcode_libdir_separator_GCJ=:
18406 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18407 hardcode_direct_GCJ=no
18408 hardcode_shlibpath_var_GCJ=no
18411 hardcode_direct_GCJ=yes
18412 export_dynamic_flag_spec_GCJ='${wl}-E'
18414 # hardcode_minus_L: Not really in the search PATH,
18415 # but as the default location of the library.
18416 hardcode_minus_L_GCJ=yes
18422 irix5* | irix6* | nonstopux*)
18423 if test "$GCC" = yes; then
18424 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'
18426 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'
18427 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18429 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18430 hardcode_libdir_separator_GCJ=:
18431 link_all_deplibs_GCJ=yes
18434 netbsd* | netbsdelf*-gnu)
18435 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18436 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18438 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18440 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18441 hardcode_direct_GCJ=yes
18442 hardcode_shlibpath_var_GCJ=no
18446 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18447 hardcode_direct_GCJ=yes
18448 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18449 hardcode_libdir_separator_GCJ=:
18450 hardcode_shlibpath_var_GCJ=no
18454 if test -f /usr/libexec/ld.so; then
18455 hardcode_direct_GCJ=yes
18456 hardcode_shlibpath_var_GCJ=no
18457 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18458 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18459 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18460 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18461 export_dynamic_flag_spec_GCJ='${wl}-E'
18464 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18465 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18466 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18469 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18470 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18480 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18481 hardcode_minus_L_GCJ=yes
18482 allow_undefined_flag_GCJ=unsupported
18483 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'
18484 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18488 if test "$GCC" = yes; then
18489 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18490 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'
18492 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18493 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'
18495 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18496 hardcode_libdir_separator_GCJ=:
18499 osf4* | osf5*) # as osf3* with the addition of -msym flag
18500 if test "$GCC" = yes; then
18501 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18502 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'
18503 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18505 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18506 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'
18507 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~
18508 $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'
18510 # Both c and cxx compiler support -rpath directly
18511 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18513 hardcode_libdir_separator_GCJ=:
18517 no_undefined_flag_GCJ=' -z text'
18518 if test "$GCC" = yes; then
18520 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18521 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18522 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18525 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18526 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18527 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18529 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18530 hardcode_shlibpath_var_GCJ=no
18532 solaris2.[0-5] | solaris2.[0-5].*) ;;
18534 # The compiler driver will combine and reorder linker options,
18535 # but understands `-z linker_flag'. GCC discards it without `$wl',
18536 # but is careful enough not to reorder.
18537 # Supported since Solaris 2.6 (maybe 2.5.1?)
18538 if test "$GCC" = yes; then
18539 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18541 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18545 link_all_deplibs_GCJ=yes
18549 if test "x$host_vendor" = xsequent; then
18550 # Use $CC to link under sequent, because it throws in some extra .o
18551 # files that make .init and .fini sections work.
18552 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18554 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18556 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18557 hardcode_direct_GCJ=yes
18558 hardcode_minus_L_GCJ=yes
18559 hardcode_shlibpath_var_GCJ=no
18563 case $host_vendor in
18565 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18566 hardcode_direct_GCJ=yes # is this really true???
18569 ## LD is ld it makes a PLAMLIB
18570 ## CC just makes a GrossModule.
18571 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18572 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18573 hardcode_direct_GCJ=no
18576 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18577 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18580 runpath_var='LD_RUN_PATH'
18581 hardcode_shlibpath_var_GCJ=no
18585 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18586 hardcode_shlibpath_var_GCJ=no
18587 export_dynamic_flag_spec_GCJ='-Bexport'
18591 if test -d /usr/nec; then
18592 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18593 hardcode_shlibpath_var_GCJ=no
18594 runpath_var=LD_RUN_PATH
18595 hardcode_runpath_var=yes
18600 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18601 no_undefined_flag_GCJ='${wl}-z,text'
18602 archive_cmds_need_lc_GCJ=no
18603 hardcode_shlibpath_var_GCJ=no
18604 runpath_var='LD_RUN_PATH'
18606 if test "$GCC" = yes; then
18607 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18608 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18610 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18611 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18615 sysv5* | sco3.2v5* | sco5v6*)
18616 # Note: We can NOT use -z defs as we might desire, because we do not
18617 # link with -lc, and that would cause any symbols used from libc to
18618 # always be unresolved, which means just about no library would
18619 # ever link correctly. If we're not using GNU ld we use -z text
18620 # though, which does catch some bad symbols but isn't as heavy-handed
18622 no_undefined_flag_GCJ='${wl}-z,text'
18623 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18624 archive_cmds_need_lc_GCJ=no
18625 hardcode_shlibpath_var_GCJ=no
18626 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18627 hardcode_libdir_separator_GCJ=':'
18628 link_all_deplibs_GCJ=yes
18629 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18630 runpath_var='LD_RUN_PATH'
18632 if test "$GCC" = yes; then
18633 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18634 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18636 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18637 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18642 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18643 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18644 hardcode_shlibpath_var_GCJ=no
18653 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18654 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18655 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18658 # Do we need to explicitly link libc?
18660 case "x$archive_cmds_need_lc_GCJ" in
18662 # Assume -lc should be added
18663 archive_cmds_need_lc_GCJ=yes
18665 if test "$enable_shared" = yes && test "$GCC" = yes; then
18666 case $archive_cmds_GCJ in
18668 # FIXME: we may have to deal with multi-command sequences.
18671 # Test whether the compiler implicitly links with -lc since on some
18672 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18673 # to ld, don't add -lc before -lgcc.
18674 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18675 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18680 (eval $ac_compile) 2>&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); } 2>conftest.err; then
18686 libobjs=conftest.$ac_objext
18688 wl=$lt_prog_compiler_wl_GCJ
18689 pic_flag=$lt_prog_compiler_pic_GCJ
18695 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18696 allow_undefined_flag_GCJ=
18697 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18698 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }
18703 archive_cmds_need_lc_GCJ=no
18705 archive_cmds_need_lc_GCJ=yes
18707 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18709 cat conftest.err 1>&5
18712 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18713 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18720 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18721 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18722 library_names_spec=
18723 libname_spec='lib$name'
18727 postuninstall_cmds=
18731 shlibpath_overrides_runpath=unknown
18733 dynamic_linker="$host_os ld.so"
18734 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18736 need_lib_prefix=unknown
18737 hardcode_into_libs=no
18739 # when you set need_version to no, make sure it does not cause -set_version
18740 # flags to be left without arguments
18741 need_version=unknown
18746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18747 shlibpath_var=LIBPATH
18749 # AIX 3 has no versioning support, so we append a major version to the name.
18750 soname_spec='${libname}${release}${shared_ext}$major'
18757 hardcode_into_libs=yes
18758 if test "$host_cpu" = ia64; then
18759 # AIX 5 supports IA64
18760 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18761 shlibpath_var=LD_LIBRARY_PATH
18763 # With GCC up to 2.95.x, collect2 would create an import file
18764 # for dependence libraries. The import file would start with
18765 # the line `#! .'. This would cause the generated library to
18766 # depend on `.', always an invalid library. This was fixed in
18767 # development snapshots of GCC prior to 3.0.
18769 aix4 | aix4.[01] | aix4.[01].*)
18770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18772 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18775 can_build_shared=no
18779 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18780 # soname into executable. Probably we can add versioning support to
18781 # collect2, so additional links can be useful in future.
18782 if test "$aix_use_runtimelinking" = yes; then
18783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18784 # instead of lib<name>.a to let people know that these are not
18785 # typical AIX shared libraries.
18786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18788 # We preserve .a as extension for shared libraries through AIX4.2
18789 # and later when we are not doing run time linking.
18790 library_names_spec='${libname}${release}.a $libname.a'
18791 soname_spec='${libname}${release}${shared_ext}$major'
18793 shlibpath_var=LIBPATH
18798 library_names_spec='$libname.ixlibrary $libname.a'
18799 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18800 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'
18804 library_names_spec='${libname}${shared_ext}'
18805 dynamic_linker="$host_os ld.so"
18806 shlibpath_var=LIBRARY_PATH
18812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18813 soname_spec='${libname}${release}${shared_ext}$major'
18814 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18815 shlibpath_var=LD_LIBRARY_PATH
18816 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18817 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18818 # the default ld.so.conf also contains /usr/contrib/lib and
18819 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18820 # libtool to hard-code these into programs
18823 cygwin* | mingw* | pw32*)
18824 version_type=windows
18829 case $GCC,$host_os in
18830 yes,cygwin* | yes,mingw* | yes,pw32*)
18831 library_names_spec='$libname.dll.a'
18832 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18833 postinstall_cmds='base_file=`basename \${file}`~
18834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18835 dldir=$destdir/`dirname \$dlpath`~
18836 test -d \$dldir || mkdir -p \$dldir~
18837 $install_prog $dir/$dlname \$dldir/$dlname~
18838 chmod a+x \$dldir/$dlname'
18839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18840 dlpath=$dir/\$dldll~
18842 shlibpath_overrides_runpath=yes
18846 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18847 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18848 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18851 # MinGW DLLs use traditional 'lib' prefix
18852 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18853 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18854 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18855 # It is most probably a Windows format PATH printed by
18856 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18857 # path with ; separators, and with drive letters. We can handle the
18858 # drive letters (cygwin fileutils understands them), so leave them,
18859 # especially as we might pass files found there to a mingw objdump,
18860 # which wouldn't understand a cygwinified path. Ahh.
18861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18867 # pw32 DLLs use 'pw' prefix rather than 'lib'
18868 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18874 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18877 dynamic_linker='Win32 ld.exe'
18878 # FIXME: first we should search . and the directory the executable is in
18882 darwin* | rhapsody*)
18883 dynamic_linker="$host_os dyld"
18884 version_type=darwin
18887 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18888 soname_spec='${libname}${release}${major}$shared_ext'
18889 shlibpath_overrides_runpath=yes
18890 shlibpath_var=DYLD_LIBRARY_PATH
18891 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18893 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18901 soname_spec='${libname}${release}${shared_ext}$major'
18902 shlibpath_var=LD_LIBRARY_PATH
18909 freebsd* | dragonfly*)
18910 # DragonFly does not have aout. When/if they implement a new
18911 # versioning mechanism, adjust this.
18912 if test -x /usr/bin/objformat; then
18913 objformat=`/usr/bin/objformat`
18916 freebsd[123]*) objformat=aout ;;
18917 *) objformat=elf ;;
18920 version_type=freebsd-$objformat
18921 case $version_type in
18923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18928 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18932 shlibpath_var=LD_LIBRARY_PATH
18935 shlibpath_overrides_runpath=yes
18937 freebsd3.[01]* | freebsdelf3.[01]*)
18938 shlibpath_overrides_runpath=yes
18939 hardcode_into_libs=yes
18941 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18942 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18943 shlibpath_overrides_runpath=no
18944 hardcode_into_libs=yes
18946 *) # from 4.6 on, and DragonFly
18947 shlibpath_overrides_runpath=yes
18948 hardcode_into_libs=yes
18957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18958 soname_spec='${libname}${release}${shared_ext}$major'
18959 shlibpath_var=LD_LIBRARY_PATH
18960 hardcode_into_libs=yes
18963 hpux9* | hpux10* | hpux11*)
18964 # Give a soname corresponding to the major version so that dld.sl refuses to
18965 # link against other versions.
18972 hardcode_into_libs=yes
18973 dynamic_linker="$host_os dld.so"
18974 shlibpath_var=LD_LIBRARY_PATH
18975 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18977 soname_spec='${libname}${release}${shared_ext}$major'
18978 if test "X$HPUX_IA64_MODE" = X32; then
18979 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18981 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18987 hardcode_into_libs=yes
18988 dynamic_linker="$host_os dld.sl"
18989 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18992 soname_spec='${libname}${release}${shared_ext}$major'
18993 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18998 dynamic_linker="$host_os dld.sl"
18999 shlibpath_var=SHLIB_PATH
19000 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19002 soname_spec='${libname}${release}${shared_ext}$major'
19005 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19006 postinstall_cmds='chmod 555 $lib'
19013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19014 soname_spec='${libname}${release}${shared_ext}$major'
19015 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19016 shlibpath_var=LD_LIBRARY_PATH
19017 shlibpath_overrides_runpath=no
19018 hardcode_into_libs=yes
19021 irix5* | irix6* | nonstopux*)
19023 nonstopux*) version_type=nonstopux ;;
19025 if test "$lt_cv_prog_gnu_ld" = yes; then
19033 soname_spec='${libname}${release}${shared_ext}$major'
19034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19036 irix5* | nonstopux*)
19037 libsuff= shlibsuff=
19040 case $LD in # libtool.m4 will add one of these switches to LD
19041 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19042 libsuff= shlibsuff= libmagic=32-bit;;
19043 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19044 libsuff=32 shlibsuff=N32 libmagic=N32;;
19045 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19046 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19047 *) libsuff= shlibsuff= libmagic=never-match;;
19051 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19052 shlibpath_overrides_runpath=no
19053 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19054 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19055 hardcode_into_libs=yes
19058 # No shared lib support for Linux oldld, aout, or coff.
19059 linux*oldld* | linux*aout* | linux*coff*)
19063 # This must be Linux ELF.
19064 linux* | k*bsd*-gnu)
19068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19069 soname_spec='${libname}${release}${shared_ext}$major'
19070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19071 shlibpath_var=LD_LIBRARY_PATH
19072 shlibpath_overrides_runpath=no
19073 # This implies no fast_install, which is unacceptable.
19074 # Some rework will be needed to allow for fast_install
19075 # before this can be enabled.
19076 hardcode_into_libs=yes
19078 # Append ld.so.conf contents to the search path
19079 if test -f /etc/ld.so.conf; then
19080 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' ' '`
19081 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19084 # We used to test for /lib/ld.so.1 and disable shared libraries on
19085 # powerpc, because MkLinux only supported shared libraries with the
19086 # GNU dynamic linker. Since this was broken with cross compilers,
19087 # most powerpc-linux boxes support dynamic linking these days and
19088 # people can always --disable-shared, the test was removed, and we
19089 # assume the GNU/Linux dynamic linker is in use.
19090 dynamic_linker='GNU/Linux ld.so'
19097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19098 soname_spec='${libname}${release}${shared_ext}$major'
19099 shlibpath_var=LD_LIBRARY_PATH
19100 shlibpath_overrides_runpath=no
19101 hardcode_into_libs=yes
19102 dynamic_linker='NetBSD ld.elf_so'
19109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19112 dynamic_linker='NetBSD (a.out) ld.so'
19114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19115 soname_spec='${libname}${release}${shared_ext}$major'
19116 dynamic_linker='NetBSD ld.elf_so'
19118 shlibpath_var=LD_LIBRARY_PATH
19119 shlibpath_overrides_runpath=yes
19120 hardcode_into_libs=yes
19125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19126 shlibpath_var=LD_LIBRARY_PATH
19127 shlibpath_overrides_runpath=yes
19134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19135 soname_spec='${libname}${release}${shared_ext}$major'
19136 shlibpath_var=LD_LIBRARY_PATH
19137 shlibpath_overrides_runpath=yes
19142 sys_lib_dlsearch_path_spec="/usr/lib"
19144 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19146 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19147 *) need_version=no ;;
19149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19151 shlibpath_var=LD_LIBRARY_PATH
19152 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19154 openbsd2.[89] | openbsd2.[89].*)
19155 shlibpath_overrides_runpath=no
19158 shlibpath_overrides_runpath=yes
19162 shlibpath_overrides_runpath=yes
19167 libname_spec='$name'
19170 library_names_spec='$libname${shared_ext} $libname.a'
19171 dynamic_linker='OS/2 ld.exe'
19172 shlibpath_var=LIBPATH
19175 osf3* | osf4* | osf5*)
19179 soname_spec='${libname}${release}${shared_ext}$major'
19180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19181 shlibpath_var=LD_LIBRARY_PATH
19182 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19183 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19195 soname_spec='${libname}${release}${shared_ext}$major'
19196 shlibpath_var=LD_LIBRARY_PATH
19197 shlibpath_overrides_runpath=yes
19198 hardcode_into_libs=yes
19199 # ldd complains unless libraries are executable
19200 postinstall_cmds='chmod +x $lib'
19205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19206 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19207 shlibpath_var=LD_LIBRARY_PATH
19208 shlibpath_overrides_runpath=yes
19209 if test "$with_gnu_ld" = yes; then
19217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19218 soname_spec='${libname}${release}${shared_ext}$major'
19219 shlibpath_var=LD_LIBRARY_PATH
19220 case $host_vendor in
19222 shlibpath_overrides_runpath=no
19224 export_dynamic_flag_spec='${wl}-Blargedynsym'
19225 runpath_var=LD_RUN_PATH
19233 shlibpath_overrides_runpath=no
19234 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19240 if test -d /usr/nec ;then
19242 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19243 soname_spec='$libname${shared_ext}.$major'
19244 shlibpath_var=LD_LIBRARY_PATH
19248 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19249 version_type=freebsd-elf
19252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19253 soname_spec='${libname}${release}${shared_ext}$major'
19254 shlibpath_var=LD_LIBRARY_PATH
19255 hardcode_into_libs=yes
19256 if test "$with_gnu_ld" = yes; then
19257 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19258 shlibpath_overrides_runpath=no
19260 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19261 shlibpath_overrides_runpath=yes
19264 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19268 sys_lib_dlsearch_path_spec='/usr/lib'
19273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19274 soname_spec='${libname}${release}${shared_ext}$major'
19275 shlibpath_var=LD_LIBRARY_PATH
19282 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19283 echo "${ECHO_T}$dynamic_linker" >&6; }
19284 test "$dynamic_linker" = no && can_build_shared=no
19286 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19287 if test "$GCC" = yes; then
19288 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19291 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19292 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19293 hardcode_action_GCJ=
19294 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19295 test -n "$runpath_var_GCJ" || \
19296 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19298 # We can hardcode non-existant directories.
19299 if test "$hardcode_direct_GCJ" != no &&
19300 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19301 # have to relink, otherwise we might link with an installed library
19302 # when we should be linking with a yet-to-be-installed one
19303 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19304 test "$hardcode_minus_L_GCJ" != no; then
19305 # Linking always hardcodes the temporary library directory.
19306 hardcode_action_GCJ=relink
19308 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19309 hardcode_action_GCJ=immediate
19312 # We cannot hardcode anything, or else we can only hardcode existing
19314 hardcode_action_GCJ=unsupported
19316 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19317 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19319 if test "$hardcode_action_GCJ" = relink; then
19320 # Fast installation is not supported
19321 enable_fast_install=no
19322 elif test "$shlibpath_overrides_runpath" = yes ||
19323 test "$enable_shared" = no; then
19324 # Fast installation is not necessary
19325 enable_fast_install=needless
19329 # The else clause should only fire when bootstrapping the
19330 # libtool distribution, otherwise you forgot to ship ltmain.sh
19331 # with your package, and you will get complaints that there are
19332 # no rules to generate ltmain.sh.
19333 if test -f "$ltmain"; then
19334 # See if we are running on zsh, and set the options which allow our commands through
19335 # without removal of \ escapes.
19336 if test -n "${ZSH_VERSION+set}" ; then
19337 setopt NO_GLOB_SUBST
19339 # Now quote all the things that may contain metacharacters while being
19340 # careful not to overquote the AC_SUBSTed values. We take copies of the
19341 # variables and quote the copies for generation of the libtool script.
19342 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19344 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19345 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19346 deplibs_check_method reload_flag reload_cmds need_locks \
19347 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19348 lt_cv_sys_global_symbol_to_c_name_address \
19349 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19350 old_postinstall_cmds old_postuninstall_cmds \
19354 lt_prog_compiler_wl_GCJ \
19355 lt_prog_compiler_pic_GCJ \
19356 lt_prog_compiler_static_GCJ \
19357 lt_prog_compiler_no_builtin_flag_GCJ \
19358 export_dynamic_flag_spec_GCJ \
19359 thread_safe_flag_spec_GCJ \
19360 whole_archive_flag_spec_GCJ \
19361 enable_shared_with_static_runtimes_GCJ \
19362 old_archive_cmds_GCJ \
19363 old_archive_from_new_cmds_GCJ \
19364 predep_objects_GCJ \
19365 postdep_objects_GCJ \
19368 compiler_lib_search_path_GCJ \
19370 archive_expsym_cmds_GCJ \
19371 postinstall_cmds_GCJ \
19372 postuninstall_cmds_GCJ \
19373 old_archive_from_expsyms_cmds_GCJ \
19374 allow_undefined_flag_GCJ \
19375 no_undefined_flag_GCJ \
19376 export_symbols_cmds_GCJ \
19377 hardcode_libdir_flag_spec_GCJ \
19378 hardcode_libdir_flag_spec_ld_GCJ \
19379 hardcode_libdir_separator_GCJ \
19380 hardcode_automatic_GCJ \
19382 module_expsym_cmds_GCJ \
19383 lt_cv_prog_compiler_c_o_GCJ \
19384 fix_srcfile_path_GCJ \
19385 exclude_expsyms_GCJ \
19386 include_expsyms_GCJ; do
19389 old_archive_cmds_GCJ | \
19390 old_archive_from_new_cmds_GCJ | \
19391 archive_cmds_GCJ | \
19392 archive_expsym_cmds_GCJ | \
19393 module_cmds_GCJ | \
19394 module_expsym_cmds_GCJ | \
19395 old_archive_from_expsyms_cmds_GCJ | \
19396 export_symbols_cmds_GCJ | \
19397 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19398 postinstall_cmds | postuninstall_cmds | \
19399 old_postinstall_cmds | old_postuninstall_cmds | \
19400 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19401 # Double-quote double-evaled strings.
19402 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19405 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19411 *'\$0 --fallback-echo"')
19412 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19418 cat <<__EOF__ >> "$cfgfile"
19419 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19421 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19423 # Shell to use when invoking shell scripts.
19426 # Whether or not to build shared libraries.
19427 build_libtool_libs=$enable_shared
19429 # Whether or not to build static libraries.
19430 build_old_libs=$enable_static
19432 # Whether or not to add -lc for building shared libraries.
19433 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19435 # Whether or not to disallow shared libs when runtime libs are static
19436 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19438 # Whether or not to optimize for fast installation.
19439 fast_install=$enable_fast_install
19442 host_alias=$host_alias
19446 # The build system.
19447 build_alias=$build_alias
19451 # An echo program that does not interpret backslashes.
19456 AR_FLAGS=$lt_AR_FLAGS
19461 # LTCC compiler flags.
19462 LTCFLAGS=$lt_LTCFLAGS
19464 # A language-specific compiler.
19465 CC=$lt_compiler_GCJ
19467 # Is the compiler the GNU C compiler?
19473 # The linker used to build libraries.
19476 # Whether we need hard or soft links.
19479 # A BSD-compatible nm program.
19482 # A symbol stripping program
19485 # Used to examine libraries when file_magic_cmd begins "file"
19486 MAGIC_CMD=$MAGIC_CMD
19488 # Used on cygwin: DLL creation program.
19491 # Used on cygwin: object dumper.
19494 # Used on cygwin: assembler.
19497 # The name of the directory that contains temporary libtool files.
19500 # How to create reloadable object files.
19501 reload_flag=$lt_reload_flag
19502 reload_cmds=$lt_reload_cmds
19504 # How to pass a linker flag through the compiler.
19505 wl=$lt_lt_prog_compiler_wl_GCJ
19507 # Object file suffix (normally "o").
19508 objext="$ac_objext"
19510 # Old archive suffix (normally "a").
19513 # Shared library suffix (normally ".so").
19514 shrext_cmds='$shrext_cmds'
19516 # Executable file suffix (normally "").
19519 # Additional compiler flags for building library objects.
19520 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19523 # What is the maximum length of a command?
19524 max_cmd_len=$lt_cv_sys_max_cmd_len
19526 # Does compiler simultaneously support -c and -o options?
19527 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19529 # Must we lock files when doing compilation?
19530 need_locks=$lt_need_locks
19532 # Do we need the lib prefix for modules?
19533 need_lib_prefix=$need_lib_prefix
19535 # Do we need a version for libraries?
19536 need_version=$need_version
19538 # Whether dlopen is supported.
19539 dlopen_support=$enable_dlopen
19541 # Whether dlopen of programs is supported.
19542 dlopen_self=$enable_dlopen_self
19544 # Whether dlopen of statically linked programs is supported.
19545 dlopen_self_static=$enable_dlopen_self_static
19547 # Compiler flag to prevent dynamic linking.
19548 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19550 # Compiler flag to turn off builtin functions.
19551 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19553 # Compiler flag to allow reflexive dlopens.
19554 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19556 # Compiler flag to generate shared objects directly from archives.
19557 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19559 # Compiler flag to generate thread-safe objects.
19560 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19562 # Library versioning type.
19563 version_type=$version_type
19565 # Format of library name prefix.
19566 libname_spec=$lt_libname_spec
19568 # List of archive names. First name is the real one, the rest are links.
19569 # The last name is the one that the linker finds with -lNAME.
19570 library_names_spec=$lt_library_names_spec
19572 # The coded name of the library, if different from the real name.
19573 soname_spec=$lt_soname_spec
19575 # Commands used to build and install an old-style archive.
19577 old_archive_cmds=$lt_old_archive_cmds_GCJ
19578 old_postinstall_cmds=$lt_old_postinstall_cmds
19579 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19581 # Create an old-style archive from a shared archive.
19582 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19584 # Create a temporary old-style archive to link instead of a shared archive.
19585 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19587 # Commands used to build and install a shared archive.
19588 archive_cmds=$lt_archive_cmds_GCJ
19589 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19590 postinstall_cmds=$lt_postinstall_cmds
19591 postuninstall_cmds=$lt_postuninstall_cmds
19593 # Commands used to build a loadable module (assumed same as above if empty)
19594 module_cmds=$lt_module_cmds_GCJ
19595 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19597 # Commands to strip libraries.
19598 old_striplib=$lt_old_striplib
19599 striplib=$lt_striplib
19601 # Dependencies to place before the objects being linked to create a
19603 predep_objects=$lt_predep_objects_GCJ
19605 # Dependencies to place after the objects being linked to create a
19607 postdep_objects=$lt_postdep_objects_GCJ
19609 # Dependencies to place before the objects being linked to create a
19611 predeps=$lt_predeps_GCJ
19613 # Dependencies to place after the objects being linked to create a
19615 postdeps=$lt_postdeps_GCJ
19617 # The library search path used internally by the compiler when linking
19618 # a shared library.
19619 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19621 # Method to check whether dependent libraries are shared objects.
19622 deplibs_check_method=$lt_deplibs_check_method
19624 # Command to use when deplibs_check_method == file_magic.
19625 file_magic_cmd=$lt_file_magic_cmd
19627 # Flag that allows shared libraries with undefined symbols to be built.
19628 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19630 # Flag that forces no undefined symbols.
19631 no_undefined_flag=$lt_no_undefined_flag_GCJ
19633 # Commands used to finish a libtool library installation in a directory.
19634 finish_cmds=$lt_finish_cmds
19636 # Same as above, but a single script fragment to be evaled but not shown.
19637 finish_eval=$lt_finish_eval
19639 # Take the output of nm and produce a listing of raw symbols and C names.
19640 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19642 # Transform the output of nm in a proper C declaration
19643 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19645 # Transform the output of nm in a C name address pair
19646 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19648 # This is the shared library runtime path variable.
19649 runpath_var=$runpath_var
19651 # This is the shared library path variable.
19652 shlibpath_var=$shlibpath_var
19654 # Is shlibpath searched before the hard-coded library search path?
19655 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19657 # How to hardcode a shared library path into an executable.
19658 hardcode_action=$hardcode_action_GCJ
19660 # Whether we should hardcode library paths into libraries.
19661 hardcode_into_libs=$hardcode_into_libs
19663 # Flag to hardcode \$libdir into a binary during linking.
19664 # This must work even if \$libdir does not exist.
19665 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19667 # If ld is used when linking, flag to hardcode \$libdir into
19668 # a binary during linking. This must work even if \$libdir does
19670 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19672 # Whether we need a single -rpath flag with a separated argument.
19673 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19675 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19676 # resulting binary.
19677 hardcode_direct=$hardcode_direct_GCJ
19679 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19680 # resulting binary.
19681 hardcode_minus_L=$hardcode_minus_L_GCJ
19683 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19684 # the resulting binary.
19685 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19687 # Set to yes if building a shared library automatically hardcodes DIR into the library
19688 # and all subsequent libraries and executables linked against it.
19689 hardcode_automatic=$hardcode_automatic_GCJ
19691 # Variables whose values should be saved in libtool wrapper scripts and
19692 # restored at relink time.
19693 variables_saved_for_relink="$variables_saved_for_relink"
19695 # Whether libtool must link a program against all its dependency libraries.
19696 link_all_deplibs=$link_all_deplibs_GCJ
19698 # Compile-time system search path for libraries
19699 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19701 # Run-time system search path for libraries
19702 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19704 # Fix the shell variable \$srcfile for the compiler.
19705 fix_srcfile_path=$lt_fix_srcfile_path
19707 # Set to yes if exported symbols are required.
19708 always_export_symbols=$always_export_symbols_GCJ
19710 # The commands to list exported symbols.
19711 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19713 # The commands to extract the exported symbol list from a shared archive.
19714 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19716 # Symbols that should not be listed in the preloaded symbols.
19717 exclude_expsyms=$lt_exclude_expsyms_GCJ
19719 # Symbols that must always be exported.
19720 include_expsyms=$lt_include_expsyms_GCJ
19722 # ### END LIBTOOL TAG CONFIG: $tagname
19728 # If there is no Makefile yet, we rely on a make rule to execute
19729 # `config.status --recheck' to rerun these tests and create the
19730 # libtool script then.
19731 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19732 if test -f "$ltmain_in"; then
19733 test -f Makefile && make "$ltmain"
19739 ac_cpp='$CPP $CPPFLAGS'
19740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19754 # Source file extension for RC test sources.
19757 # Object file extension for compiled RC test sources.
19761 # Code to be used in simple compile tests
19762 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19764 # Code to be used in simple link tests
19765 lt_simple_link_test_code="$lt_simple_compile_test_code"
19767 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19769 # If no C compiler was specified, use CC.
19772 # If no C compiler flags were specified, use CFLAGS.
19773 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19775 # Allow CC to be a program name with arguments.
19779 # save warnings/boilerplate of simple test code
19780 ac_outfile=conftest.$ac_objext
19781 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19782 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19783 _lt_compiler_boilerplate=`cat conftest.err`
19786 ac_outfile=conftest.$ac_objext
19787 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19788 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19789 _lt_linker_boilerplate=`cat conftest.err`
19793 # Allow CC to be a program name with arguments.
19798 for cc_temp in $compiler""; do
19800 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19801 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19806 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19808 lt_cv_prog_compiler_c_o_RC=yes
19810 # The else clause should only fire when bootstrapping the
19811 # libtool distribution, otherwise you forgot to ship ltmain.sh
19812 # with your package, and you will get complaints that there are
19813 # no rules to generate ltmain.sh.
19814 if test -f "$ltmain"; then
19815 # See if we are running on zsh, and set the options which allow our commands through
19816 # without removal of \ escapes.
19817 if test -n "${ZSH_VERSION+set}" ; then
19818 setopt NO_GLOB_SUBST
19820 # Now quote all the things that may contain metacharacters while being
19821 # careful not to overquote the AC_SUBSTed values. We take copies of the
19822 # variables and quote the copies for generation of the libtool script.
19823 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19825 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19826 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19827 deplibs_check_method reload_flag reload_cmds need_locks \
19828 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19829 lt_cv_sys_global_symbol_to_c_name_address \
19830 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19831 old_postinstall_cmds old_postuninstall_cmds \
19835 lt_prog_compiler_wl_RC \
19836 lt_prog_compiler_pic_RC \
19837 lt_prog_compiler_static_RC \
19838 lt_prog_compiler_no_builtin_flag_RC \
19839 export_dynamic_flag_spec_RC \
19840 thread_safe_flag_spec_RC \
19841 whole_archive_flag_spec_RC \
19842 enable_shared_with_static_runtimes_RC \
19843 old_archive_cmds_RC \
19844 old_archive_from_new_cmds_RC \
19845 predep_objects_RC \
19846 postdep_objects_RC \
19849 compiler_lib_search_path_RC \
19851 archive_expsym_cmds_RC \
19852 postinstall_cmds_RC \
19853 postuninstall_cmds_RC \
19854 old_archive_from_expsyms_cmds_RC \
19855 allow_undefined_flag_RC \
19856 no_undefined_flag_RC \
19857 export_symbols_cmds_RC \
19858 hardcode_libdir_flag_spec_RC \
19859 hardcode_libdir_flag_spec_ld_RC \
19860 hardcode_libdir_separator_RC \
19861 hardcode_automatic_RC \
19863 module_expsym_cmds_RC \
19864 lt_cv_prog_compiler_c_o_RC \
19865 fix_srcfile_path_RC \
19866 exclude_expsyms_RC \
19867 include_expsyms_RC; do
19870 old_archive_cmds_RC | \
19871 old_archive_from_new_cmds_RC | \
19872 archive_cmds_RC | \
19873 archive_expsym_cmds_RC | \
19875 module_expsym_cmds_RC | \
19876 old_archive_from_expsyms_cmds_RC | \
19877 export_symbols_cmds_RC | \
19878 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19879 postinstall_cmds | postuninstall_cmds | \
19880 old_postinstall_cmds | old_postuninstall_cmds | \
19881 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19882 # Double-quote double-evaled strings.
19883 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19886 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19892 *'\$0 --fallback-echo"')
19893 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19899 cat <<__EOF__ >> "$cfgfile"
19900 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19902 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19904 # Shell to use when invoking shell scripts.
19907 # Whether or not to build shared libraries.
19908 build_libtool_libs=$enable_shared
19910 # Whether or not to build static libraries.
19911 build_old_libs=$enable_static
19913 # Whether or not to add -lc for building shared libraries.
19914 build_libtool_need_lc=$archive_cmds_need_lc_RC
19916 # Whether or not to disallow shared libs when runtime libs are static
19917 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19919 # Whether or not to optimize for fast installation.
19920 fast_install=$enable_fast_install
19923 host_alias=$host_alias
19927 # The build system.
19928 build_alias=$build_alias
19932 # An echo program that does not interpret backslashes.
19937 AR_FLAGS=$lt_AR_FLAGS
19942 # LTCC compiler flags.
19943 LTCFLAGS=$lt_LTCFLAGS
19945 # A language-specific compiler.
19948 # Is the compiler the GNU C compiler?
19954 # The linker used to build libraries.
19957 # Whether we need hard or soft links.
19960 # A BSD-compatible nm program.
19963 # A symbol stripping program
19966 # Used to examine libraries when file_magic_cmd begins "file"
19967 MAGIC_CMD=$MAGIC_CMD
19969 # Used on cygwin: DLL creation program.
19972 # Used on cygwin: object dumper.
19975 # Used on cygwin: assembler.
19978 # The name of the directory that contains temporary libtool files.
19981 # How to create reloadable object files.
19982 reload_flag=$lt_reload_flag
19983 reload_cmds=$lt_reload_cmds
19985 # How to pass a linker flag through the compiler.
19986 wl=$lt_lt_prog_compiler_wl_RC
19988 # Object file suffix (normally "o").
19989 objext="$ac_objext"
19991 # Old archive suffix (normally "a").
19994 # Shared library suffix (normally ".so").
19995 shrext_cmds='$shrext_cmds'
19997 # Executable file suffix (normally "").
20000 # Additional compiler flags for building library objects.
20001 pic_flag=$lt_lt_prog_compiler_pic_RC
20004 # What is the maximum length of a command?
20005 max_cmd_len=$lt_cv_sys_max_cmd_len
20007 # Does compiler simultaneously support -c and -o options?
20008 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20010 # Must we lock files when doing compilation?
20011 need_locks=$lt_need_locks
20013 # Do we need the lib prefix for modules?
20014 need_lib_prefix=$need_lib_prefix
20016 # Do we need a version for libraries?
20017 need_version=$need_version
20019 # Whether dlopen is supported.
20020 dlopen_support=$enable_dlopen
20022 # Whether dlopen of programs is supported.
20023 dlopen_self=$enable_dlopen_self
20025 # Whether dlopen of statically linked programs is supported.
20026 dlopen_self_static=$enable_dlopen_self_static
20028 # Compiler flag to prevent dynamic linking.
20029 link_static_flag=$lt_lt_prog_compiler_static_RC
20031 # Compiler flag to turn off builtin functions.
20032 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20034 # Compiler flag to allow reflexive dlopens.
20035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20037 # Compiler flag to generate shared objects directly from archives.
20038 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20040 # Compiler flag to generate thread-safe objects.
20041 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20043 # Library versioning type.
20044 version_type=$version_type
20046 # Format of library name prefix.
20047 libname_spec=$lt_libname_spec
20049 # List of archive names. First name is the real one, the rest are links.
20050 # The last name is the one that the linker finds with -lNAME.
20051 library_names_spec=$lt_library_names_spec
20053 # The coded name of the library, if different from the real name.
20054 soname_spec=$lt_soname_spec
20056 # Commands used to build and install an old-style archive.
20058 old_archive_cmds=$lt_old_archive_cmds_RC
20059 old_postinstall_cmds=$lt_old_postinstall_cmds
20060 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20062 # Create an old-style archive from a shared archive.
20063 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20065 # Create a temporary old-style archive to link instead of a shared archive.
20066 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20068 # Commands used to build and install a shared archive.
20069 archive_cmds=$lt_archive_cmds_RC
20070 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20071 postinstall_cmds=$lt_postinstall_cmds
20072 postuninstall_cmds=$lt_postuninstall_cmds
20074 # Commands used to build a loadable module (assumed same as above if empty)
20075 module_cmds=$lt_module_cmds_RC
20076 module_expsym_cmds=$lt_module_expsym_cmds_RC
20078 # Commands to strip libraries.
20079 old_striplib=$lt_old_striplib
20080 striplib=$lt_striplib
20082 # Dependencies to place before the objects being linked to create a
20084 predep_objects=$lt_predep_objects_RC
20086 # Dependencies to place after the objects being linked to create a
20088 postdep_objects=$lt_postdep_objects_RC
20090 # Dependencies to place before the objects being linked to create a
20092 predeps=$lt_predeps_RC
20094 # Dependencies to place after the objects being linked to create a
20096 postdeps=$lt_postdeps_RC
20098 # The library search path used internally by the compiler when linking
20099 # a shared library.
20100 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20102 # Method to check whether dependent libraries are shared objects.
20103 deplibs_check_method=$lt_deplibs_check_method
20105 # Command to use when deplibs_check_method == file_magic.
20106 file_magic_cmd=$lt_file_magic_cmd
20108 # Flag that allows shared libraries with undefined symbols to be built.
20109 allow_undefined_flag=$lt_allow_undefined_flag_RC
20111 # Flag that forces no undefined symbols.
20112 no_undefined_flag=$lt_no_undefined_flag_RC
20114 # Commands used to finish a libtool library installation in a directory.
20115 finish_cmds=$lt_finish_cmds
20117 # Same as above, but a single script fragment to be evaled but not shown.
20118 finish_eval=$lt_finish_eval
20120 # Take the output of nm and produce a listing of raw symbols and C names.
20121 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20123 # Transform the output of nm in a proper C declaration
20124 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20126 # Transform the output of nm in a C name address pair
20127 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20129 # This is the shared library runtime path variable.
20130 runpath_var=$runpath_var
20132 # This is the shared library path variable.
20133 shlibpath_var=$shlibpath_var
20135 # Is shlibpath searched before the hard-coded library search path?
20136 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20138 # How to hardcode a shared library path into an executable.
20139 hardcode_action=$hardcode_action_RC
20141 # Whether we should hardcode library paths into libraries.
20142 hardcode_into_libs=$hardcode_into_libs
20144 # Flag to hardcode \$libdir into a binary during linking.
20145 # This must work even if \$libdir does not exist.
20146 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20148 # If ld is used when linking, flag to hardcode \$libdir into
20149 # a binary during linking. This must work even if \$libdir does
20151 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20153 # Whether we need a single -rpath flag with a separated argument.
20154 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20156 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20157 # resulting binary.
20158 hardcode_direct=$hardcode_direct_RC
20160 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20161 # resulting binary.
20162 hardcode_minus_L=$hardcode_minus_L_RC
20164 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20165 # the resulting binary.
20166 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20168 # Set to yes if building a shared library automatically hardcodes DIR into the library
20169 # and all subsequent libraries and executables linked against it.
20170 hardcode_automatic=$hardcode_automatic_RC
20172 # Variables whose values should be saved in libtool wrapper scripts and
20173 # restored at relink time.
20174 variables_saved_for_relink="$variables_saved_for_relink"
20176 # Whether libtool must link a program against all its dependency libraries.
20177 link_all_deplibs=$link_all_deplibs_RC
20179 # Compile-time system search path for libraries
20180 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20182 # Run-time system search path for libraries
20183 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20185 # Fix the shell variable \$srcfile for the compiler.
20186 fix_srcfile_path=$lt_fix_srcfile_path
20188 # Set to yes if exported symbols are required.
20189 always_export_symbols=$always_export_symbols_RC
20191 # The commands to list exported symbols.
20192 export_symbols_cmds=$lt_export_symbols_cmds_RC
20194 # The commands to extract the exported symbol list from a shared archive.
20195 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20197 # Symbols that should not be listed in the preloaded symbols.
20198 exclude_expsyms=$lt_exclude_expsyms_RC
20200 # Symbols that must always be exported.
20201 include_expsyms=$lt_include_expsyms_RC
20203 # ### END LIBTOOL TAG CONFIG: $tagname
20209 # If there is no Makefile yet, we rely on a make rule to execute
20210 # `config.status --recheck' to rerun these tests and create the
20211 # libtool script then.
20212 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20213 if test -f "$ltmain_in"; then
20214 test -f Makefile && make "$ltmain"
20220 ac_cpp='$CPP $CPPFLAGS'
20221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20230 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20231 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20232 { (exit 1); exit 1; }; }
20236 # Append the new tag name to the list of available tags.
20237 if test -n "$tagname" ; then
20238 available_tags="$available_tags $tagname"
20244 # Now substitute the updated list of available tags.
20245 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20246 mv "${ofile}T" "$ofile"
20250 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20251 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20252 { (exit 1); exit 1; }; }
20258 # This can be used to rebuild libtool when needed
20259 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20261 # Always use our own libtool.
20262 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20264 # Prevent multiple expansion
20285 ac_config_files="$ac_config_files Makefile test/Makefile src/Makefile lib/Makefile bindings/mysql/myisenna/Makefile"
20293 for ac_header in sys/mman.h sys/time.h sys/param.h sys/types.h pthread.h sys/resource.h
20295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20300 echo $ECHO_N "(cached) $ECHO_C" >&6
20302 ac_res=`eval echo '${'$as_ac_Header'}'`
20303 { echo "$as_me:$LINENO: result: $ac_res" >&5
20304 echo "${ECHO_T}$ac_res" >&6; }
20306 # Is the header compilable?
20307 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20309 cat >conftest.$ac_ext <<_ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h. */
20315 $ac_includes_default
20316 #include <$ac_header>
20318 rm -f conftest.$ac_objext
20319 if { (ac_try="$ac_compile"
20320 case "(($ac_try" in
20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322 *) ac_try_echo=$ac_try;;
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325 (eval "$ac_compile") 2>conftest.er1
20327 grep -v '^ *+' conftest.er1 >conftest.err
20329 cat conftest.err >&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } && {
20332 test -z "$ac_c_werror_flag" ||
20333 test ! -s conftest.err
20334 } && test -s conftest.$ac_objext; then
20335 ac_header_compiler=yes
20337 echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20340 ac_header_compiler=no
20343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20345 echo "${ECHO_T}$ac_header_compiler" >&6; }
20347 # Is the header present?
20348 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20350 cat >conftest.$ac_ext <<_ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h. */
20356 #include <$ac_header>
20358 if { (ac_try="$ac_cpp conftest.$ac_ext"
20359 case "(($ac_try" in
20360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361 *) ac_try_echo=$ac_try;;
20363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20366 grep -v '^ *+' conftest.er1 >conftest.err
20368 cat conftest.err >&5
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); } >/dev/null && {
20371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20372 test ! -s conftest.err
20374 ac_header_preproc=yes
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20379 ac_header_preproc=no
20382 rm -f conftest.err conftest.$ac_ext
20383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20384 echo "${ECHO_T}$ac_header_preproc" >&6; }
20386 # So? What about this header?
20387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20393 ac_header_preproc=yes
20396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20409 ## ----------------------------- ##
20410 ## Report this to senna@razil.jp ##
20411 ## ----------------------------- ##
20413 ) | sed "s/^/$as_me: WARNING: /" >&2
20416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20419 echo $ECHO_N "(cached) $ECHO_C" >&6
20421 eval "$as_ac_Header=\$ac_header_preproc"
20423 ac_res=`eval echo '${'$as_ac_Header'}'`
20424 { echo "$as_me:$LINENO: result: $ac_res" >&5
20425 echo "${ECHO_T}$ac_res" >&6; }
20428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20429 cat >>confdefs.h <<_ACEOF
20430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20442 for ac_header in netdb.h sys/wait.h sys/socket.h netinet/in.h netinet/tcp.h
20444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20449 echo $ECHO_N "(cached) $ECHO_C" >&6
20451 ac_res=`eval echo '${'$as_ac_Header'}'`
20452 { echo "$as_me:$LINENO: result: $ac_res" >&5
20453 echo "${ECHO_T}$ac_res" >&6; }
20455 # Is the header compilable?
20456 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20458 cat >conftest.$ac_ext <<_ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h. */
20464 $ac_includes_default
20465 #include <$ac_header>
20467 rm -f conftest.$ac_objext
20468 if { (ac_try="$ac_compile"
20469 case "(($ac_try" in
20470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471 *) ac_try_echo=$ac_try;;
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474 (eval "$ac_compile") 2>conftest.er1
20476 grep -v '^ *+' conftest.er1 >conftest.err
20478 cat conftest.err >&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } && {
20481 test -z "$ac_c_werror_flag" ||
20482 test ! -s conftest.err
20483 } && test -s conftest.$ac_objext; then
20484 ac_header_compiler=yes
20486 echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 ac_header_compiler=no
20492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20494 echo "${ECHO_T}$ac_header_compiler" >&6; }
20496 # Is the header present?
20497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20499 cat >conftest.$ac_ext <<_ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h. */
20505 #include <$ac_header>
20507 if { (ac_try="$ac_cpp conftest.$ac_ext"
20508 case "(($ac_try" in
20509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510 *) ac_try_echo=$ac_try;;
20512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20515 grep -v '^ *+' conftest.er1 >conftest.err
20517 cat conftest.err >&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } >/dev/null && {
20520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20521 test ! -s conftest.err
20523 ac_header_preproc=yes
20525 echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20528 ac_header_preproc=no
20531 rm -f conftest.err conftest.$ac_ext
20532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20533 echo "${ECHO_T}$ac_header_preproc" >&6; }
20535 # So? What about this header?
20536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20542 ac_header_preproc=yes
20545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20558 ## ----------------------------- ##
20559 ## Report this to senna@razil.jp ##
20560 ## ----------------------------- ##
20562 ) | sed "s/^/$as_me: WARNING: /" >&2
20565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20570 eval "$as_ac_Header=\$ac_header_preproc"
20572 ac_res=`eval echo '${'$as_ac_Header'}'`
20573 { echo "$as_me:$LINENO: result: $ac_res" >&5
20574 echo "${ECHO_T}$ac_res" >&6; }
20577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20578 cat >>confdefs.h <<_ACEOF
20579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20589 for ac_header in ucontext.h signal.h errno.h
20591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20596 echo $ECHO_N "(cached) $ECHO_C" >&6
20598 ac_res=`eval echo '${'$as_ac_Header'}'`
20599 { echo "$as_me:$LINENO: result: $ac_res" >&5
20600 echo "${ECHO_T}$ac_res" >&6; }
20602 # Is the header compilable?
20603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20605 cat >conftest.$ac_ext <<_ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h. */
20611 $ac_includes_default
20612 #include <$ac_header>
20614 rm -f conftest.$ac_objext
20615 if { (ac_try="$ac_compile"
20616 case "(($ac_try" in
20617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618 *) ac_try_echo=$ac_try;;
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621 (eval "$ac_compile") 2>conftest.er1
20623 grep -v '^ *+' conftest.er1 >conftest.err
20625 cat conftest.err >&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } && {
20628 test -z "$ac_c_werror_flag" ||
20629 test ! -s conftest.err
20630 } && test -s conftest.$ac_objext; then
20631 ac_header_compiler=yes
20633 echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20636 ac_header_compiler=no
20639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20641 echo "${ECHO_T}$ac_header_compiler" >&6; }
20643 # Is the header present?
20644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20646 cat >conftest.$ac_ext <<_ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20652 #include <$ac_header>
20654 if { (ac_try="$ac_cpp conftest.$ac_ext"
20655 case "(($ac_try" in
20656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657 *) ac_try_echo=$ac_try;;
20659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20662 grep -v '^ *+' conftest.er1 >conftest.err
20664 cat conftest.err >&5
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); } >/dev/null && {
20667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20668 test ! -s conftest.err
20670 ac_header_preproc=yes
20672 echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20675 ac_header_preproc=no
20678 rm -f conftest.err conftest.$ac_ext
20679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20680 echo "${ECHO_T}$ac_header_preproc" >&6; }
20682 # So? What about this header?
20683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20689 ac_header_preproc=yes
20692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20705 ## ----------------------------- ##
20706 ## Report this to senna@razil.jp ##
20707 ## ----------------------------- ##
20709 ) | sed "s/^/$as_me: WARNING: /" >&2
20712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20715 echo $ECHO_N "(cached) $ECHO_C" >&6
20717 eval "$as_ac_Header=\$ac_header_preproc"
20719 ac_res=`eval echo '${'$as_ac_Header'}'`
20720 { echo "$as_me:$LINENO: result: $ac_res" >&5
20721 echo "${ECHO_T}$ac_res" >&6; }
20724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20725 cat >>confdefs.h <<_ACEOF
20726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20734 for ac_func in localtime_r
20736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20740 echo $ECHO_N "(cached) $ECHO_C" >&6
20742 cat >conftest.$ac_ext <<_ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h. */
20748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20750 #define $ac_func innocuous_$ac_func
20752 /* System header to define __stub macros and hopefully few prototypes,
20753 which can conflict with char $ac_func (); below.
20754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20755 <limits.h> exists even on freestanding compilers. */
20758 # include <limits.h>
20760 # include <assert.h>
20765 /* Override any GCC internal prototype to avoid an error.
20766 Use char because int might match the return type of a GCC
20767 builtin and then its argument prototype would still apply. */
20772 /* The GNU C library defines this for functions which it implements
20773 to always fail with ENOSYS. Some functions are actually named
20774 something starting with __ and the normal name is an alias. */
20775 #if defined __stub_$ac_func || defined __stub___$ac_func
20782 return $ac_func ();
20787 rm -f conftest.$ac_objext conftest$ac_exeext
20788 if { (ac_try="$ac_link"
20789 case "(($ac_try" in
20790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791 *) ac_try_echo=$ac_try;;
20793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794 (eval "$ac_link") 2>conftest.er1
20796 grep -v '^ *+' conftest.er1 >conftest.err
20798 cat conftest.err >&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } && {
20801 test -z "$ac_c_werror_flag" ||
20802 test ! -s conftest.err
20803 } && test -s conftest$ac_exeext &&
20804 $as_test_x conftest$ac_exeext; then
20805 eval "$as_ac_var=yes"
20807 echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20810 eval "$as_ac_var=no"
20813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20814 conftest$ac_exeext conftest.$ac_ext
20816 ac_res=`eval echo '${'$as_ac_var'}'`
20817 { echo "$as_me:$LINENO: result: $ac_res" >&5
20818 echo "${ECHO_T}$ac_res" >&6; }
20819 if test `eval echo '${'$as_ac_var'}'` = yes; then
20820 cat >>confdefs.h <<_ACEOF
20821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20827 # Check whether --enable-largefile was given.
20828 if test "${enable_largefile+set}" = set; then
20829 enableval=$enable_largefile;
20832 if test "$enable_largefile" != no; then
20834 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
20835 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
20836 if test "${ac_cv_sys_largefile_CC+set}" = set; then
20837 echo $ECHO_N "(cached) $ECHO_C" >&6
20839 ac_cv_sys_largefile_CC=no
20840 if test "$GCC" != yes; then
20843 # IRIX 6.2 and later do not support large files by default,
20844 # so use the C compiler's -n32 option if that helps.
20845 cat >conftest.$ac_ext <<_ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20851 #include <sys/types.h>
20852 /* Check that off_t can represent 2**63 - 1 correctly.
20853 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20854 since some C++ compilers masquerading as C compilers
20855 incorrectly reject 9223372036854775807. */
20856 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20858 && LARGE_OFF_T % 2147483647 == 1)
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
20887 echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20893 rm -f core conftest.err conftest.$ac_objext
20895 rm -f conftest.$ac_objext
20896 if { (ac_try="$ac_compile"
20897 case "(($ac_try" in
20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899 *) ac_try_echo=$ac_try;;
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902 (eval "$ac_compile") 2>conftest.er1
20904 grep -v '^ *+' conftest.er1 >conftest.err
20906 cat conftest.err >&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } && {
20909 test -z "$ac_c_werror_flag" ||
20910 test ! -s conftest.err
20911 } && test -s conftest.$ac_objext; then
20912 ac_cv_sys_largefile_CC=' -n32'; break
20914 echo "$as_me: failed program was:" >&5
20915 sed 's/^/| /' conftest.$ac_ext >&5
20920 rm -f core conftest.err conftest.$ac_objext
20924 rm -f conftest.$ac_ext
20927 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
20928 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
20929 if test "$ac_cv_sys_largefile_CC" != no; then
20930 CC=$CC$ac_cv_sys_largefile_CC
20933 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20934 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
20935 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20936 echo $ECHO_N "(cached) $ECHO_C" >&6
20939 cat >conftest.$ac_ext <<_ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h. */
20945 #include <sys/types.h>
20946 /* Check that off_t can represent 2**63 - 1 correctly.
20947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20948 since some C++ compilers masquerading as C compilers
20949 incorrectly reject 9223372036854775807. */
20950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20952 && LARGE_OFF_T % 2147483647 == 1)
20962 rm -f conftest.$ac_objext
20963 if { (ac_try="$ac_compile"
20964 case "(($ac_try" in
20965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966 *) ac_try_echo=$ac_try;;
20968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969 (eval "$ac_compile") 2>conftest.er1
20971 grep -v '^ *+' conftest.er1 >conftest.err
20973 cat conftest.err >&5
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); } && {
20976 test -z "$ac_c_werror_flag" ||
20977 test ! -s conftest.err
20978 } && test -s conftest.$ac_objext; then
20979 ac_cv_sys_file_offset_bits=no; break
20981 echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20988 cat >conftest.$ac_ext <<_ACEOF
20991 cat confdefs.h >>conftest.$ac_ext
20992 cat >>conftest.$ac_ext <<_ACEOF
20993 /* end confdefs.h. */
20994 #define _FILE_OFFSET_BITS 64
20995 #include <sys/types.h>
20996 /* Check that off_t can represent 2**63 - 1 correctly.
20997 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20998 since some C++ compilers masquerading as C compilers
20999 incorrectly reject 9223372036854775807. */
21000 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21001 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21002 && LARGE_OFF_T % 2147483647 == 1)
21012 rm -f conftest.$ac_objext
21013 if { (ac_try="$ac_compile"
21014 case "(($ac_try" in
21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016 *) ac_try_echo=$ac_try;;
21018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019 (eval "$ac_compile") 2>conftest.er1
21021 grep -v '^ *+' conftest.er1 >conftest.err
21023 cat conftest.err >&5
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); } && {
21026 test -z "$ac_c_werror_flag" ||
21027 test ! -s conftest.err
21028 } && test -s conftest.$ac_objext; then
21029 ac_cv_sys_file_offset_bits=64; break
21031 echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21038 ac_cv_sys_file_offset_bits=unknown
21042 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21043 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
21044 case $ac_cv_sys_file_offset_bits in #(
21047 cat >>confdefs.h <<_ACEOF
21048 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21053 if test $ac_cv_sys_file_offset_bits = unknown; then
21054 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21055 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
21056 if test "${ac_cv_sys_large_files+set}" = set; then
21057 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 cat >conftest.$ac_ext <<_ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h. */
21066 #include <sys/types.h>
21067 /* Check that off_t can represent 2**63 - 1 correctly.
21068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21069 since some C++ compilers masquerading as C compilers
21070 incorrectly reject 9223372036854775807. */
21071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21073 && LARGE_OFF_T % 2147483647 == 1)
21083 rm -f conftest.$ac_objext
21084 if { (ac_try="$ac_compile"
21085 case "(($ac_try" in
21086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087 *) ac_try_echo=$ac_try;;
21089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21090 (eval "$ac_compile") 2>conftest.er1
21092 grep -v '^ *+' conftest.er1 >conftest.err
21094 cat conftest.err >&5
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); } && {
21097 test -z "$ac_c_werror_flag" ||
21098 test ! -s conftest.err
21099 } && test -s conftest.$ac_objext; then
21100 ac_cv_sys_large_files=no; break
21102 echo "$as_me: failed program was:" >&5
21103 sed 's/^/| /' conftest.$ac_ext >&5
21108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21109 cat >conftest.$ac_ext <<_ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21115 #define _LARGE_FILES 1
21116 #include <sys/types.h>
21117 /* Check that off_t can represent 2**63 - 1 correctly.
21118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21119 since some C++ compilers masquerading as C compilers
21120 incorrectly reject 9223372036854775807. */
21121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21123 && LARGE_OFF_T % 2147483647 == 1)
21133 rm -f conftest.$ac_objext
21134 if { (ac_try="$ac_compile"
21135 case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_compile") 2>conftest.er1
21142 grep -v '^ *+' conftest.er1 >conftest.err
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } && {
21147 test -z "$ac_c_werror_flag" ||
21148 test ! -s conftest.err
21149 } && test -s conftest.$ac_objext; then
21150 ac_cv_sys_large_files=1; break
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21159 ac_cv_sys_large_files=unknown
21163 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21164 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
21165 case $ac_cv_sys_large_files in #(
21168 cat >>confdefs.h <<_ACEOF
21169 #define _LARGE_FILES $ac_cv_sys_large_files
21177 { echo "$as_me:$LINENO: checking for off_t" >&5
21178 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21179 if test "${ac_cv_type_off_t+set}" = set; then
21180 echo $ECHO_N "(cached) $ECHO_C" >&6
21182 cat >conftest.$ac_ext <<_ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21188 $ac_includes_default
21189 typedef off_t ac__type_new_;
21193 if ((ac__type_new_ *) 0)
21195 if (sizeof (ac__type_new_))
21201 rm -f conftest.$ac_objext
21202 if { (ac_try="$ac_compile"
21203 case "(($ac_try" in
21204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205 *) ac_try_echo=$ac_try;;
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208 (eval "$ac_compile") 2>conftest.er1
21210 grep -v '^ *+' conftest.er1 >conftest.err
21212 cat conftest.err >&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } && {
21215 test -z "$ac_c_werror_flag" ||
21216 test ! -s conftest.err
21217 } && test -s conftest.$ac_objext; then
21218 ac_cv_type_off_t=yes
21220 echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21223 ac_cv_type_off_t=no
21226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21228 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21229 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21230 if test $ac_cv_type_off_t = yes; then
21234 cat >>confdefs.h <<_ACEOF
21235 #define off_t long int
21240 { echo "$as_me:$LINENO: checking for size_t" >&5
21241 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21242 if test "${ac_cv_type_size_t+set}" = set; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21245 cat >conftest.$ac_ext <<_ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h. */
21251 $ac_includes_default
21252 typedef size_t ac__type_new_;
21256 if ((ac__type_new_ *) 0)
21258 if (sizeof (ac__type_new_))
21264 rm -f conftest.$ac_objext
21265 if { (ac_try="$ac_compile"
21266 case "(($ac_try" in
21267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21268 *) ac_try_echo=$ac_try;;
21270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21271 (eval "$ac_compile") 2>conftest.er1
21273 grep -v '^ *+' conftest.er1 >conftest.err
21275 cat conftest.err >&5
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); } && {
21278 test -z "$ac_c_werror_flag" ||
21279 test ! -s conftest.err
21280 } && test -s conftest.$ac_objext; then
21281 ac_cv_type_size_t=yes
21283 echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21286 ac_cv_type_size_t=no
21289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21291 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21292 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21293 if test $ac_cv_type_size_t = yes; then
21297 cat >>confdefs.h <<_ACEOF
21298 #define size_t unsigned int
21303 { echo "$as_me:$LINENO: checking for off_t" >&5
21304 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21305 if test "${ac_cv_type_off_t+set}" = set; then
21306 echo $ECHO_N "(cached) $ECHO_C" >&6
21308 cat >conftest.$ac_ext <<_ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h. */
21314 $ac_includes_default
21315 typedef off_t ac__type_new_;
21319 if ((ac__type_new_ *) 0)
21321 if (sizeof (ac__type_new_))
21327 rm -f conftest.$ac_objext
21328 if { (ac_try="$ac_compile"
21329 case "(($ac_try" in
21330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21331 *) ac_try_echo=$ac_try;;
21333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21334 (eval "$ac_compile") 2>conftest.er1
21336 grep -v '^ *+' conftest.er1 >conftest.err
21338 cat conftest.err >&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } && {
21341 test -z "$ac_c_werror_flag" ||
21342 test ! -s conftest.err
21343 } && test -s conftest.$ac_objext; then
21344 ac_cv_type_off_t=yes
21346 echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21349 ac_cv_type_off_t=no
21352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21354 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21355 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21357 # The cast to long int works around a bug in the HP C Compiler
21358 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21359 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21360 # This bug is HP SR number 8606223364.
21361 { echo "$as_me:$LINENO: checking size of off_t" >&5
21362 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
21363 if test "${ac_cv_sizeof_off_t+set}" = set; then
21364 echo $ECHO_N "(cached) $ECHO_C" >&6
21366 if test "$cross_compiling" = yes; then
21367 # Depending upon the size, compute the lo and hi bounds.
21368 cat >conftest.$ac_ext <<_ACEOF
21371 cat confdefs.h >>conftest.$ac_ext
21372 cat >>conftest.$ac_ext <<_ACEOF
21373 /* end confdefs.h. */
21374 $ac_includes_default
21375 typedef off_t ac__type_sizeof_;
21379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21386 rm -f conftest.$ac_objext
21387 if { (ac_try="$ac_compile"
21388 case "(($ac_try" in
21389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21390 *) ac_try_echo=$ac_try;;
21392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21393 (eval "$ac_compile") 2>conftest.er1
21395 grep -v '^ *+' conftest.er1 >conftest.err
21397 cat conftest.err >&5
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); } && {
21400 test -z "$ac_c_werror_flag" ||
21401 test ! -s conftest.err
21402 } && test -s conftest.$ac_objext; then
21405 cat >conftest.$ac_ext <<_ACEOF
21408 cat confdefs.h >>conftest.$ac_ext
21409 cat >>conftest.$ac_ext <<_ACEOF
21410 /* end confdefs.h. */
21411 $ac_includes_default
21412 typedef off_t ac__type_sizeof_;
21416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21423 rm -f conftest.$ac_objext
21424 if { (ac_try="$ac_compile"
21425 case "(($ac_try" in
21426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427 *) ac_try_echo=$ac_try;;
21429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21430 (eval "$ac_compile") 2>conftest.er1
21432 grep -v '^ *+' conftest.er1 >conftest.err
21434 cat conftest.err >&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } && {
21437 test -z "$ac_c_werror_flag" ||
21438 test ! -s conftest.err
21439 } && test -s conftest.$ac_objext; then
21440 ac_hi=$ac_mid; break
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21445 ac_lo=`expr $ac_mid + 1`
21446 if test $ac_lo -le $ac_mid; then
21450 ac_mid=`expr 2 '*' $ac_mid + 1`
21453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456 echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.$ac_ext >&5
21459 cat >conftest.$ac_ext <<_ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21465 $ac_includes_default
21466 typedef off_t ac__type_sizeof_;
21470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21477 rm -f conftest.$ac_objext
21478 if { (ac_try="$ac_compile"
21479 case "(($ac_try" in
21480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481 *) ac_try_echo=$ac_try;;
21483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21484 (eval "$ac_compile") 2>conftest.er1
21486 grep -v '^ *+' conftest.er1 >conftest.err
21488 cat conftest.err >&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } && {
21491 test -z "$ac_c_werror_flag" ||
21492 test ! -s conftest.err
21493 } && test -s conftest.$ac_objext; then
21496 cat >conftest.$ac_ext <<_ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h. */
21502 $ac_includes_default
21503 typedef off_t ac__type_sizeof_;
21507 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21514 rm -f conftest.$ac_objext
21515 if { (ac_try="$ac_compile"
21516 case "(($ac_try" in
21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518 *) ac_try_echo=$ac_try;;
21520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521 (eval "$ac_compile") 2>conftest.er1
21523 grep -v '^ *+' conftest.er1 >conftest.err
21525 cat conftest.err >&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } && {
21528 test -z "$ac_c_werror_flag" ||
21529 test ! -s conftest.err
21530 } && test -s conftest.$ac_objext; then
21531 ac_lo=$ac_mid; break
21533 echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21536 ac_hi=`expr '(' $ac_mid ')' - 1`
21537 if test $ac_mid -le $ac_hi; then
21541 ac_mid=`expr 2 '*' $ac_mid`
21544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21547 echo "$as_me: failed program was:" >&5
21548 sed 's/^/| /' conftest.$ac_ext >&5
21553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557 # Binary search between lo and hi bounds.
21558 while test "x$ac_lo" != "x$ac_hi"; do
21559 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21560 cat >conftest.$ac_ext <<_ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h. */
21566 $ac_includes_default
21567 typedef off_t ac__type_sizeof_;
21571 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21578 rm -f conftest.$ac_objext
21579 if { (ac_try="$ac_compile"
21580 case "(($ac_try" in
21581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582 *) ac_try_echo=$ac_try;;
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585 (eval "$ac_compile") 2>conftest.er1
21587 grep -v '^ *+' conftest.er1 >conftest.err
21589 cat conftest.err >&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } && {
21592 test -z "$ac_c_werror_flag" ||
21593 test ! -s conftest.err
21594 } && test -s conftest.$ac_objext; then
21597 echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21600 ac_lo=`expr '(' $ac_mid ')' + 1`
21603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21606 ?*) ac_cv_sizeof_off_t=$ac_lo;;
21607 '') if test "$ac_cv_type_off_t" = yes; then
21608 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
21609 See \`config.log' for more details." >&5
21610 echo "$as_me: error: cannot compute sizeof (off_t)
21611 See \`config.log' for more details." >&2;}
21612 { (exit 77); exit 77; }; }
21614 ac_cv_sizeof_off_t=0
21618 cat >conftest.$ac_ext <<_ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21624 $ac_includes_default
21625 typedef off_t ac__type_sizeof_;
21626 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21627 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21629 #include <stdlib.h>
21634 FILE *f = fopen ("conftest.val", "w");
21637 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21639 long int i = longval ();
21640 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21642 fprintf (f, "%ld\n", i);
21646 unsigned long int i = ulongval ();
21647 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21649 fprintf (f, "%lu\n", i);
21651 return ferror (f) || fclose (f) != 0;
21657 rm -f conftest$ac_exeext
21658 if { (ac_try="$ac_link"
21659 case "(($ac_try" in
21660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661 *) ac_try_echo=$ac_try;;
21663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21664 (eval "$ac_link") 2>&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21668 { (case "(($ac_try" in
21669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670 *) ac_try_echo=$ac_try;;
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673 (eval "$ac_try") 2>&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; }; then
21677 ac_cv_sizeof_off_t=`cat conftest.val`
21679 echo "$as_me: program exited with status $ac_status" >&5
21680 echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21683 ( exit $ac_status )
21684 if test "$ac_cv_type_off_t" = yes; then
21685 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
21686 See \`config.log' for more details." >&5
21687 echo "$as_me: error: cannot compute sizeof (off_t)
21688 See \`config.log' for more details." >&2;}
21689 { (exit 77); exit 77; }; }
21691 ac_cv_sizeof_off_t=0
21694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21698 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
21699 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
21703 cat >>confdefs.h <<_ACEOF
21704 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21711 # Check whether --with-sennahome was given.
21712 if test "${with_sennahome+set}" = set; then
21713 withval=$with_sennahome; SENNA_HOME="$withval"
21715 SENNA_HOME="/var/senna"
21719 cat >>confdefs.h <<_ACEOF
21720 #define SENNA_HOME "$SENNA_HOME"
21726 # Check whether --with-log was given.
21727 if test "${with_log+set}" = set; then
21728 withval=$with_log; SENNA_LOG_PATH="$withval"
21730 SENNA_LOG_PATH="$SENNA_HOME/log/senna.log"
21734 cat >>confdefs.h <<_ACEOF
21735 #define SENNA_LOG_PATH "$SENNA_LOG_PATH"
21741 # Check whether --with-encoding was given.
21742 if test "${with_encoding+set}" = set; then
21743 withval=$with_encoding; SENNA_DEFAULT_ENCODING="$withval"
21745 SENNA_DEFAULT_ENCODING="euc_jp"
21749 cat >>confdefs.h <<_ACEOF
21750 #define SENNA_DEFAULT_ENCODING "$SENNA_DEFAULT_ENCODING"
21754 # default initial_n_segments
21756 # Check whether --with-initial_n_segments was given.
21757 if test "${with_initial_n_segments+set}" = set; then
21758 withval=$with_initial_n_segments; SENNA_DEFAULT_INITIAL_N_SEGMENTS="$withval"
21760 SENNA_DEFAULT_INITIAL_N_SEGMENTS="512"
21764 cat >>confdefs.h <<_ACEOF
21765 #define SENNA_DEFAULT_INITIAL_N_SEGMENTS $SENNA_DEFAULT_INITIAL_N_SEGMENTS
21769 # default query escalation threshold
21771 # Check whether --with-query_escalation_threshold was given.
21772 if test "${with_query_escalation_threshold+set}" = set; then
21773 withval=$with_query_escalation_threshold; SENNA_DEFAULT_QUERY_ESCALATION_THRESHOLD="$withval"
21775 SENNA_DEFAULT_QUERY_ESCALATION_THRESHOLD="0"
21779 cat >>confdefs.h <<_ACEOF
21780 #define SENNA_DEFAULT_QUERY_ESCALATION_THRESHOLD $SENNA_DEFAULT_QUERY_ESCALATION_THRESHOLD
21784 { echo "$as_me:$LINENO: checking for log in -lm" >&5
21785 echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6; }
21786 if test "${ac_cv_lib_m_log+set}" = set; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21789 ac_check_lib_save_LIBS=$LIBS
21791 cat >conftest.$ac_ext <<_ACEOF
21794 cat confdefs.h >>conftest.$ac_ext
21795 cat >>conftest.$ac_ext <<_ACEOF
21796 /* end confdefs.h. */
21798 /* Override any GCC internal prototype to avoid an error.
21799 Use char because int might match the return type of a GCC
21800 builtin and then its argument prototype would still apply. */
21813 rm -f conftest.$ac_objext conftest$ac_exeext
21814 if { (ac_try="$ac_link"
21815 case "(($ac_try" in
21816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817 *) ac_try_echo=$ac_try;;
21819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820 (eval "$ac_link") 2>conftest.er1
21822 grep -v '^ *+' conftest.er1 >conftest.err
21824 cat conftest.err >&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } && {
21827 test -z "$ac_c_werror_flag" ||
21828 test ! -s conftest.err
21829 } && test -s conftest$ac_exeext &&
21830 $as_test_x conftest$ac_exeext; then
21831 ac_cv_lib_m_log=yes
21833 echo "$as_me: failed program was:" >&5
21834 sed 's/^/| /' conftest.$ac_ext >&5
21839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21840 conftest$ac_exeext conftest.$ac_ext
21841 LIBS=$ac_check_lib_save_LIBS
21843 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
21844 echo "${ECHO_T}$ac_cv_lib_m_log" >&6; }
21845 if test $ac_cv_lib_m_log = yes; then
21848 { { echo "$as_me:$LINENO: error: \"No libm found\"" >&5
21849 echo "$as_me: error: \"No libm found\"" >&2;}
21850 { (exit 1); exit 1; }; }
21853 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
21854 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
21855 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
21856 echo $ECHO_N "(cached) $ECHO_C" >&6
21858 ac_check_lib_save_LIBS=$LIBS
21859 LIBS="-lpthread $LIBS"
21860 cat >conftest.$ac_ext <<_ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h. */
21867 /* Override any GCC internal prototype to avoid an error.
21868 Use char because int might match the return type of a GCC
21869 builtin and then its argument prototype would still apply. */
21873 char pthread_mutex_init ();
21877 return pthread_mutex_init ();
21882 rm -f conftest.$ac_objext conftest$ac_exeext
21883 if { (ac_try="$ac_link"
21884 case "(($ac_try" in
21885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886 *) ac_try_echo=$ac_try;;
21888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889 (eval "$ac_link") 2>conftest.er1
21891 grep -v '^ *+' conftest.er1 >conftest.err
21893 cat conftest.err >&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); } && {
21896 test -z "$ac_c_werror_flag" ||
21897 test ! -s conftest.err
21898 } && test -s conftest$ac_exeext &&
21899 $as_test_x conftest$ac_exeext; then
21900 ac_cv_lib_pthread_pthread_mutex_init=yes
21902 echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21905 ac_cv_lib_pthread_pthread_mutex_init=no
21908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21909 conftest$ac_exeext conftest.$ac_ext
21910 LIBS=$ac_check_lib_save_LIBS
21912 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
21913 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
21914 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
21915 PTHREAD_LIBS="-lpthread"
21917 { { echo "$as_me:$LINENO: error: \"No libpthread found\"" >&5
21918 echo "$as_me: error: \"No libpthread found\"" >&2;}
21919 { (exit 1); exit 1; }; }
21924 # Check whether --enable-aio was given.
21925 if test "${enable_aio+set}" = set; then
21926 enableval=$enable_aio;
21931 if test "x$enable_aio" != "xno"; then
21933 { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
21934 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
21935 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
21938 ac_check_lib_save_LIBS=$LIBS
21940 cat >conftest.$ac_ext <<_ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h. */
21947 /* Override any GCC internal prototype to avoid an error.
21948 Use char because int might match the return type of a GCC
21949 builtin and then its argument prototype would still apply. */
21957 return nanosleep ();
21962 rm -f conftest.$ac_objext conftest$ac_exeext
21963 if { (ac_try="$ac_link"
21964 case "(($ac_try" in
21965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21966 *) ac_try_echo=$ac_try;;
21968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21969 (eval "$ac_link") 2>conftest.er1
21971 grep -v '^ *+' conftest.er1 >conftest.err
21973 cat conftest.err >&5
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); } && {
21976 test -z "$ac_c_werror_flag" ||
21977 test ! -s conftest.err
21978 } && test -s conftest$ac_exeext &&
21979 $as_test_x conftest$ac_exeext; then
21980 ac_cv_lib_rt_nanosleep=yes
21982 echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21985 ac_cv_lib_rt_nanosleep=no
21988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21989 conftest$ac_exeext conftest.$ac_ext
21990 LIBS=$ac_check_lib_save_LIBS
21992 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
21993 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
21994 if test $ac_cv_lib_rt_nanosleep = yes; then
21995 cat >>confdefs.h <<_ACEOF
21996 #define HAVE_LIBRT 1
22002 { { echo "$as_me:$LINENO: error: \"No librt found\"" >&5
22003 echo "$as_me: error: \"No librt found\"" >&2;}
22004 { (exit 1); exit 1; }; }
22008 cat >>confdefs.h <<\_ACEOF
22015 # Check whether --enable-nfkc was given.
22016 if test "${enable_nfkc+set}" = set; then
22017 enableval=$enable_nfkc;
22022 if test "x$enable_nfkc" != "xyes"; then
22024 cat >>confdefs.h <<\_ACEOF
22031 # Check whether --enable-gcov was given.
22032 if test "${enable_gcov+set}" = set; then
22033 enableval=$enable_gcov;
22038 if test "x$enable_gcov" = "xno"; then
22042 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage"
22044 { echo "$as_me:$LINENO: checking for __gcov_init in -lgcov" >&5
22045 echo $ECHO_N "checking for __gcov_init in -lgcov... $ECHO_C" >&6; }
22046 if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then
22047 echo $ECHO_N "(cached) $ECHO_C" >&6
22049 ac_check_lib_save_LIBS=$LIBS
22050 LIBS="-lgcov $LIBS"
22051 cat >conftest.$ac_ext <<_ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22058 /* Override any GCC internal prototype to avoid an error.
22059 Use char because int might match the return type of a GCC
22060 builtin and then its argument prototype would still apply. */
22064 char __gcov_init ();
22068 return __gcov_init ();
22073 rm -f conftest.$ac_objext conftest$ac_exeext
22074 if { (ac_try="$ac_link"
22075 case "(($ac_try" in
22076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22077 *) ac_try_echo=$ac_try;;
22079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22080 (eval "$ac_link") 2>conftest.er1
22082 grep -v '^ *+' conftest.er1 >conftest.err
22084 cat conftest.err >&5
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); } && {
22087 test -z "$ac_c_werror_flag" ||
22088 test ! -s conftest.err
22089 } && test -s conftest$ac_exeext &&
22090 $as_test_x conftest$ac_exeext; then
22091 ac_cv_lib_gcov___gcov_init=yes
22093 echo "$as_me: failed program was:" >&5
22094 sed 's/^/| /' conftest.$ac_ext >&5
22096 ac_cv_lib_gcov___gcov_init=no
22099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22100 conftest$ac_exeext conftest.$ac_ext
22101 LIBS=$ac_check_lib_save_LIBS
22103 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcov___gcov_init" >&5
22104 echo "${ECHO_T}$ac_cv_lib_gcov___gcov_init" >&6; }
22105 if test $ac_cv_lib_gcov___gcov_init = yes; then
22106 cat >>confdefs.h <<_ACEOF
22107 #define HAVE_LIBGCOV 1
22110 LIBS="-lgcov $LIBS"
22113 { { echo "$as_me:$LINENO: error: \"No libgcov found\"" >&5
22114 echo "$as_me: error: \"No libgcov found\"" >&2;}
22115 { (exit 1); exit 1; }; }
22121 # Extract the first word of "lcov", so it can be a program name with args.
22122 set dummy lcov; ac_word=$2
22123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22125 if test "${ac_cv_path_LCOV+set}" = set; then
22126 echo $ECHO_N "(cached) $ECHO_C" >&6
22130 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
22133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22134 for as_dir in $PATH
22137 test -z "$as_dir" && as_dir=.
22138 for ac_exec_ext in '' $ac_executable_extensions; do
22139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22140 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
22141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22148 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
22152 LCOV=$ac_cv_path_LCOV
22153 if test -n "$LCOV"; then
22154 { echo "$as_me:$LINENO: result: $LCOV" >&5
22155 echo "${ECHO_T}$LCOV" >&6; }
22157 { echo "$as_me:$LINENO: result: no" >&5
22158 echo "${ECHO_T}no" >&6; }
22162 if test "x$LCOV" = "xno"; then
22163 { { echo "$as_me:$LINENO: error: lcov is missing." >&5
22164 echo "$as_me: error: lcov is missing." >&2;}
22165 { (exit 1); exit 1; }; }
22168 # Extract the first word of "genhtml", so it can be a program name with args.
22169 set dummy genhtml; ac_word=$2
22170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22172 if test "${ac_cv_path_GENHTML+set}" = set; then
22173 echo $ECHO_N "(cached) $ECHO_C" >&6
22177 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
22180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22181 for as_dir in $PATH
22184 test -z "$as_dir" && as_dir=.
22185 for ac_exec_ext in '' $ac_executable_extensions; do
22186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22187 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
22188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22195 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
22199 GENHTML=$ac_cv_path_GENHTML
22200 if test -n "$GENHTML"; then
22201 { echo "$as_me:$LINENO: result: $GENHTML" >&5
22202 echo "${ECHO_T}$GENHTML" >&6; }
22204 { echo "$as_me:$LINENO: result: no" >&5
22205 echo "${ECHO_T}no" >&6; }
22209 if test "x$GENHTML" = "xno"; then
22210 { { echo "$as_me:$LINENO: error: genhtml is missing." >&5
22211 echo "$as_me: error: genhtml is missing." >&2;}
22212 { (exit 1); exit 1; }; }
22220 if test "x$enable_gcov" = "xyes"; then
22222 GCOV_ENABLED_FALSE='#'
22224 GCOV_ENABLED_TRUE='#'
22225 GCOV_ENABLED_FALSE=
22230 # Check whether --enable-fmalloc was given.
22231 if test "${enable_fmalloc+set}" = set; then
22232 enableval=$enable_fmalloc;
22234 enable_fail_malloc="no"
22237 if test "x$enable_fail_malloc" != "xno"; then
22239 cat >>confdefs.h <<\_ACEOF
22240 #define USE_FAIL_MALLOC 1
22247 # Check whether --with-mysqlsrc was given.
22248 if test "${with_mysqlsrc+set}" = set; then
22249 withval=$with_mysqlsrc; MYSQL_SRCDIR="$withval"
22254 # epoll/poll/select check
22255 if test "${ac_cv_header_sys_epoll_h+set}" = set; then
22256 { echo "$as_me:$LINENO: checking for sys/epoll.h" >&5
22257 echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6; }
22258 if test "${ac_cv_header_sys_epoll_h+set}" = set; then
22259 echo $ECHO_N "(cached) $ECHO_C" >&6
22261 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5
22262 echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6; }
22264 # Is the header compilable?
22265 { echo "$as_me:$LINENO: checking sys/epoll.h usability" >&5
22266 echo $ECHO_N "checking sys/epoll.h usability... $ECHO_C" >&6; }
22267 cat >conftest.$ac_ext <<_ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h. */
22273 $ac_includes_default
22274 #include <sys/epoll.h>
22276 rm -f conftest.$ac_objext
22277 if { (ac_try="$ac_compile"
22278 case "(($ac_try" in
22279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22280 *) ac_try_echo=$ac_try;;
22282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22283 (eval "$ac_compile") 2>conftest.er1
22285 grep -v '^ *+' conftest.er1 >conftest.err
22287 cat conftest.err >&5
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); } && {
22290 test -z "$ac_c_werror_flag" ||
22291 test ! -s conftest.err
22292 } && test -s conftest.$ac_objext; then
22293 ac_header_compiler=yes
22295 echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22298 ac_header_compiler=no
22301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22303 echo "${ECHO_T}$ac_header_compiler" >&6; }
22305 # Is the header present?
22306 { echo "$as_me:$LINENO: checking sys/epoll.h presence" >&5
22307 echo $ECHO_N "checking sys/epoll.h presence... $ECHO_C" >&6; }
22308 cat >conftest.$ac_ext <<_ACEOF
22311 cat confdefs.h >>conftest.$ac_ext
22312 cat >>conftest.$ac_ext <<_ACEOF
22313 /* end confdefs.h. */
22314 #include <sys/epoll.h>
22316 if { (ac_try="$ac_cpp conftest.$ac_ext"
22317 case "(($ac_try" in
22318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22319 *) ac_try_echo=$ac_try;;
22321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22324 grep -v '^ *+' conftest.er1 >conftest.err
22326 cat conftest.err >&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); } >/dev/null && {
22329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22330 test ! -s conftest.err
22332 ac_header_preproc=yes
22334 echo "$as_me: failed program was:" >&5
22335 sed 's/^/| /' conftest.$ac_ext >&5
22337 ac_header_preproc=no
22340 rm -f conftest.err conftest.$ac_ext
22341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22342 echo "${ECHO_T}$ac_header_preproc" >&6; }
22344 # So? What about this header?
22345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22347 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&5
22348 echo "$as_me: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22349 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the compiler's result" >&5
22350 echo "$as_me: WARNING: sys/epoll.h: proceeding with the compiler's result" >&2;}
22351 ac_header_preproc=yes
22354 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: present but cannot be compiled" >&5
22355 echo "$as_me: WARNING: sys/epoll.h: present but cannot be compiled" >&2;}
22356 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&5
22357 echo "$as_me: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&2;}
22358 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: see the Autoconf documentation" >&5
22359 echo "$as_me: WARNING: sys/epoll.h: see the Autoconf documentation" >&2;}
22360 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&5
22361 echo "$as_me: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&2;}
22362 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&5
22363 echo "$as_me: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&2;}
22364 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&5
22365 echo "$as_me: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&2;}
22367 ## ----------------------------- ##
22368 ## Report this to senna@razil.jp ##
22369 ## ----------------------------- ##
22371 ) | sed "s/^/$as_me: WARNING: /" >&2
22374 { echo "$as_me:$LINENO: checking for sys/epoll.h" >&5
22375 echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6; }
22376 if test "${ac_cv_header_sys_epoll_h+set}" = set; then
22377 echo $ECHO_N "(cached) $ECHO_C" >&6
22379 ac_cv_header_sys_epoll_h=$ac_header_preproc
22381 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5
22382 echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6; }
22385 if test $ac_cv_header_sys_epoll_h = yes; then
22387 { echo "$as_me:$LINENO: checking for epoll_create" >&5
22388 echo $ECHO_N "checking for epoll_create... $ECHO_C" >&6; }
22389 if test "${ac_cv_func_epoll_create+set}" = set; then
22390 echo $ECHO_N "(cached) $ECHO_C" >&6
22392 cat >conftest.$ac_ext <<_ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h. */
22398 /* Define epoll_create to an innocuous variant, in case <limits.h> declares epoll_create.
22399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22400 #define epoll_create innocuous_epoll_create
22402 /* System header to define __stub macros and hopefully few prototypes,
22403 which can conflict with char epoll_create (); below.
22404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22405 <limits.h> exists even on freestanding compilers. */
22408 # include <limits.h>
22410 # include <assert.h>
22413 #undef epoll_create
22415 /* Override any GCC internal prototype to avoid an error.
22416 Use char because int might match the return type of a GCC
22417 builtin and then its argument prototype would still apply. */
22421 char epoll_create ();
22422 /* The GNU C library defines this for functions which it implements
22423 to always fail with ENOSYS. Some functions are actually named
22424 something starting with __ and the normal name is an alias. */
22425 #if defined __stub_epoll_create || defined __stub___epoll_create
22432 return epoll_create ();
22437 rm -f conftest.$ac_objext conftest$ac_exeext
22438 if { (ac_try="$ac_link"
22439 case "(($ac_try" in
22440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22441 *) ac_try_echo=$ac_try;;
22443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22444 (eval "$ac_link") 2>conftest.er1
22446 grep -v '^ *+' conftest.er1 >conftest.err
22448 cat conftest.err >&5
22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450 (exit $ac_status); } && {
22451 test -z "$ac_c_werror_flag" ||
22452 test ! -s conftest.err
22453 } && test -s conftest$ac_exeext &&
22454 $as_test_x conftest$ac_exeext; then
22455 ac_cv_func_epoll_create=yes
22457 echo "$as_me: failed program was:" >&5
22458 sed 's/^/| /' conftest.$ac_ext >&5
22460 ac_cv_func_epoll_create=no
22463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22464 conftest$ac_exeext conftest.$ac_ext
22466 { echo "$as_me:$LINENO: result: $ac_cv_func_epoll_create" >&5
22467 echo "${ECHO_T}$ac_cv_func_epoll_create" >&6; }
22468 if test $ac_cv_func_epoll_create = yes; then
22470 if test "$cross_compiling" = yes; then
22471 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22472 See \`config.log' for more details." >&5
22473 echo "$as_me: error: cannot run test program while cross compiling
22474 See \`config.log' for more details." >&2;}
22475 { (exit 1); exit 1; }; }
22477 cat >conftest.$ac_ext <<_ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h. */
22484 #include <sys/epoll.h>
22485 int main(int argc, char **argv) { return (epoll_create(16) < 0); }
22488 rm -f conftest$ac_exeext
22489 if { (ac_try="$ac_link"
22490 case "(($ac_try" in
22491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492 *) ac_try_echo=$ac_try;;
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495 (eval "$ac_link") 2>&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22499 { (case "(($ac_try" in
22500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501 *) ac_try_echo=$ac_try;;
22503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22504 (eval "$ac_try") 2>&5
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); }; }; then
22511 cat >>confdefs.h <<\_ACEOF
22512 #define USE_EPOLL 1
22518 echo "$as_me: program exited with status $ac_status" >&5
22519 echo "$as_me: failed program was:" >&5
22520 sed 's/^/| /' conftest.$ac_ext >&5
22523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22535 if test "x$have_epoll" != "xyes"; then
22536 if test "${ac_cv_header_sys_poll_h+set}" = set; then
22537 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
22538 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
22539 if test "${ac_cv_header_sys_poll_h+set}" = set; then
22540 echo $ECHO_N "(cached) $ECHO_C" >&6
22542 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
22543 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
22545 # Is the header compilable?
22546 { echo "$as_me:$LINENO: checking sys/poll.h usability" >&5
22547 echo $ECHO_N "checking sys/poll.h usability... $ECHO_C" >&6; }
22548 cat >conftest.$ac_ext <<_ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h. */
22554 $ac_includes_default
22555 #include <sys/poll.h>
22557 rm -f conftest.$ac_objext
22558 if { (ac_try="$ac_compile"
22559 case "(($ac_try" in
22560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22561 *) ac_try_echo=$ac_try;;
22563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22564 (eval "$ac_compile") 2>conftest.er1
22566 grep -v '^ *+' conftest.er1 >conftest.err
22568 cat conftest.err >&5
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); } && {
22571 test -z "$ac_c_werror_flag" ||
22572 test ! -s conftest.err
22573 } && test -s conftest.$ac_objext; then
22574 ac_header_compiler=yes
22576 echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.$ac_ext >&5
22579 ac_header_compiler=no
22582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22584 echo "${ECHO_T}$ac_header_compiler" >&6; }
22586 # Is the header present?
22587 { echo "$as_me:$LINENO: checking sys/poll.h presence" >&5
22588 echo $ECHO_N "checking sys/poll.h presence... $ECHO_C" >&6; }
22589 cat >conftest.$ac_ext <<_ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h. */
22595 #include <sys/poll.h>
22597 if { (ac_try="$ac_cpp conftest.$ac_ext"
22598 case "(($ac_try" in
22599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22600 *) ac_try_echo=$ac_try;;
22602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22605 grep -v '^ *+' conftest.er1 >conftest.err
22607 cat conftest.err >&5
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); } >/dev/null && {
22610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22611 test ! -s conftest.err
22613 ac_header_preproc=yes
22615 echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22618 ac_header_preproc=no
22621 rm -f conftest.err conftest.$ac_ext
22622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22623 echo "${ECHO_T}$ac_header_preproc" >&6; }
22625 # So? What about this header?
22626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22628 { echo "$as_me:$LINENO: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&5
22629 echo "$as_me: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22630 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the compiler's result" >&5
22631 echo "$as_me: WARNING: sys/poll.h: proceeding with the compiler's result" >&2;}
22632 ac_header_preproc=yes
22635 { echo "$as_me:$LINENO: WARNING: sys/poll.h: present but cannot be compiled" >&5
22636 echo "$as_me: WARNING: sys/poll.h: present but cannot be compiled" >&2;}
22637 { echo "$as_me:$LINENO: WARNING: sys/poll.h: check for missing prerequisite headers?" >&5
22638 echo "$as_me: WARNING: sys/poll.h: check for missing prerequisite headers?" >&2;}
22639 { echo "$as_me:$LINENO: WARNING: sys/poll.h: see the Autoconf documentation" >&5
22640 echo "$as_me: WARNING: sys/poll.h: see the Autoconf documentation" >&2;}
22641 { echo "$as_me:$LINENO: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&5
22642 echo "$as_me: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&2;}
22643 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&5
22644 echo "$as_me: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&2;}
22645 { echo "$as_me:$LINENO: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&5
22646 echo "$as_me: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&2;}
22648 ## ----------------------------- ##
22649 ## Report this to senna@razil.jp ##
22650 ## ----------------------------- ##
22652 ) | sed "s/^/$as_me: WARNING: /" >&2
22655 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
22656 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
22657 if test "${ac_cv_header_sys_poll_h+set}" = set; then
22658 echo $ECHO_N "(cached) $ECHO_C" >&6
22660 ac_cv_header_sys_poll_h=$ac_header_preproc
22662 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
22663 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
22666 if test $ac_cv_header_sys_poll_h = yes; then
22668 { echo "$as_me:$LINENO: checking for poll" >&5
22669 echo $ECHO_N "checking for poll... $ECHO_C" >&6; }
22670 if test "${ac_cv_func_poll+set}" = set; then
22671 echo $ECHO_N "(cached) $ECHO_C" >&6
22673 cat >conftest.$ac_ext <<_ACEOF
22676 cat confdefs.h >>conftest.$ac_ext
22677 cat >>conftest.$ac_ext <<_ACEOF
22678 /* end confdefs.h. */
22679 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
22680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22681 #define poll innocuous_poll
22683 /* System header to define __stub macros and hopefully few prototypes,
22684 which can conflict with char poll (); below.
22685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22686 <limits.h> exists even on freestanding compilers. */
22689 # include <limits.h>
22691 # include <assert.h>
22696 /* Override any GCC internal prototype to avoid an error.
22697 Use char because int might match the return type of a GCC
22698 builtin and then its argument prototype would still apply. */
22703 /* The GNU C library defines this for functions which it implements
22704 to always fail with ENOSYS. Some functions are actually named
22705 something starting with __ and the normal name is an alias. */
22706 #if defined __stub_poll || defined __stub___poll
22718 rm -f conftest.$ac_objext conftest$ac_exeext
22719 if { (ac_try="$ac_link"
22720 case "(($ac_try" in
22721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22722 *) ac_try_echo=$ac_try;;
22724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22725 (eval "$ac_link") 2>conftest.er1
22727 grep -v '^ *+' conftest.er1 >conftest.err
22729 cat conftest.err >&5
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); } && {
22732 test -z "$ac_c_werror_flag" ||
22733 test ! -s conftest.err
22734 } && test -s conftest$ac_exeext &&
22735 $as_test_x conftest$ac_exeext; then
22736 ac_cv_func_poll=yes
22738 echo "$as_me: failed program was:" >&5
22739 sed 's/^/| /' conftest.$ac_ext >&5
22744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22745 conftest$ac_exeext conftest.$ac_ext
22747 { echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
22748 echo "${ECHO_T}$ac_cv_func_poll" >&6; }
22749 if test $ac_cv_func_poll = yes; then
22753 cat >>confdefs.h <<\_ACEOF
22764 if test "x$have_poll" != "xyes"; then
22765 { echo "$as_me:$LINENO: checking for select" >&5
22766 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
22767 if test "${ac_cv_func_select+set}" = set; then
22768 echo $ECHO_N "(cached) $ECHO_C" >&6
22770 cat >conftest.$ac_ext <<_ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h. */
22776 /* Define select to an innocuous variant, in case <limits.h> declares select.
22777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22778 #define select innocuous_select
22780 /* System header to define __stub macros and hopefully few prototypes,
22781 which can conflict with char select (); below.
22782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22783 <limits.h> exists even on freestanding compilers. */
22786 # include <limits.h>
22788 # include <assert.h>
22793 /* Override any GCC internal prototype to avoid an error.
22794 Use char because int might match the return type of a GCC
22795 builtin and then its argument prototype would still apply. */
22800 /* The GNU C library defines this for functions which it implements
22801 to always fail with ENOSYS. Some functions are actually named
22802 something starting with __ and the normal name is an alias. */
22803 #if defined __stub_select || defined __stub___select
22815 rm -f conftest.$ac_objext conftest$ac_exeext
22816 if { (ac_try="$ac_link"
22817 case "(($ac_try" in
22818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22819 *) ac_try_echo=$ac_try;;
22821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22822 (eval "$ac_link") 2>conftest.er1
22824 grep -v '^ *+' conftest.er1 >conftest.err
22826 cat conftest.err >&5
22827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828 (exit $ac_status); } && {
22829 test -z "$ac_c_werror_flag" ||
22830 test ! -s conftest.err
22831 } && test -s conftest$ac_exeext &&
22832 $as_test_x conftest$ac_exeext; then
22833 ac_cv_func_select=yes
22835 echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22838 ac_cv_func_select=no
22841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22842 conftest$ac_exeext conftest.$ac_ext
22844 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
22845 echo "${ECHO_T}$ac_cv_func_select" >&6; }
22846 if test $ac_cv_func_select = yes; then
22850 for ac_header in sys/select.h
22852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22857 echo $ECHO_N "(cached) $ECHO_C" >&6
22859 ac_res=`eval echo '${'$as_ac_Header'}'`
22860 { echo "$as_me:$LINENO: result: $ac_res" >&5
22861 echo "${ECHO_T}$ac_res" >&6; }
22863 # Is the header compilable?
22864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22866 cat >conftest.$ac_ext <<_ACEOF
22869 cat confdefs.h >>conftest.$ac_ext
22870 cat >>conftest.$ac_ext <<_ACEOF
22871 /* end confdefs.h. */
22872 $ac_includes_default
22873 #include <$ac_header>
22875 rm -f conftest.$ac_objext
22876 if { (ac_try="$ac_compile"
22877 case "(($ac_try" in
22878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22879 *) ac_try_echo=$ac_try;;
22881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22882 (eval "$ac_compile") 2>conftest.er1
22884 grep -v '^ *+' conftest.er1 >conftest.err
22886 cat conftest.err >&5
22887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); } && {
22889 test -z "$ac_c_werror_flag" ||
22890 test ! -s conftest.err
22891 } && test -s conftest.$ac_objext; then
22892 ac_header_compiler=yes
22894 echo "$as_me: failed program was:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22897 ac_header_compiler=no
22900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22902 echo "${ECHO_T}$ac_header_compiler" >&6; }
22904 # Is the header present?
22905 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22907 cat >conftest.$ac_ext <<_ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h. */
22913 #include <$ac_header>
22915 if { (ac_try="$ac_cpp conftest.$ac_ext"
22916 case "(($ac_try" in
22917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22918 *) ac_try_echo=$ac_try;;
22920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22923 grep -v '^ *+' conftest.er1 >conftest.err
22925 cat conftest.err >&5
22926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); } >/dev/null && {
22928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22929 test ! -s conftest.err
22931 ac_header_preproc=yes
22933 echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22936 ac_header_preproc=no
22939 rm -f conftest.err conftest.$ac_ext
22940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22941 echo "${ECHO_T}$ac_header_preproc" >&6; }
22943 # So? What about this header?
22944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22950 ac_header_preproc=yes
22953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22960 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22966 ## ----------------------------- ##
22967 ## Report this to senna@razil.jp ##
22968 ## ----------------------------- ##
22970 ) | sed "s/^/$as_me: WARNING: /" >&2
22973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22978 eval "$as_ac_Header=\$ac_header_preproc"
22980 ac_res=`eval echo '${'$as_ac_Header'}'`
22981 { echo "$as_me:$LINENO: result: $ac_res" >&5
22982 echo "${ECHO_T}$ac_res" >&6; }
22985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22986 cat >>confdefs.h <<_ACEOF
22987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22995 cat >>confdefs.h <<\_ACEOF
22996 #define USE_SELECT 1
23002 { { echo "$as_me:$LINENO: error: epoll/poll/select is missing." >&5
23003 echo "$as_me: error: epoll/poll/select is missing." >&2;}
23004 { (exit 1); exit 1; }; }
23011 # check MSG_NOSIGNAL defined
23012 { echo "$as_me:$LINENO: checking whether MSG_NOSIGNAL defined" >&5
23013 echo $ECHO_N "checking whether MSG_NOSIGNAL defined... $ECHO_C" >&6; }
23014 cat >conftest.$ac_ext <<_ACEOF
23016 #include <sys/types.h>
23017 #include <sys/socket.h>
23019 #if __FreeBSD__ >= 2 && __FreeBSD_version >= 600020
23020 #ifndef MSG_NOSIGNAL
23021 #define MSG_NOSIGNAL 0x20000
23025 int main(int argc, char **argv)
23027 return MSG_NOSIGNAL;
23031 rm -f conftest.$ac_objext
23032 if { (ac_try="$ac_compile"
23033 case "(($ac_try" in
23034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035 *) ac_try_echo=$ac_try;;
23037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23038 (eval "$ac_compile") 2>conftest.er1
23040 grep -v '^ *+' conftest.er1 >conftest.err
23042 cat conftest.err >&5
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); } && {
23045 test -z "$ac_c_werror_flag" ||
23046 test ! -s conftest.err
23047 } && test -s conftest.$ac_objext; then
23049 { echo "$as_me:$LINENO: result: yes" >&5
23050 echo "${ECHO_T}yes" >&6; }
23052 cat >>confdefs.h <<\_ACEOF
23053 #define USE_MSG_NOSIGNAL 1
23058 echo "$as_me: failed program was:" >&5
23059 sed 's/^/| /' conftest.$ac_ext >&5
23062 { echo "$as_me:$LINENO: result: no" >&5
23063 echo "${ECHO_T}no" >&6; }
23067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23070 # NOTE: MUST be checked last
23072 # Check whether --with-mecab was given.
23073 if test "${with_mecab+set}" = set; then
23074 withval=$with_mecab; with_mecab="$withval"
23079 if test "x$with_mecab" = "xno"; then
23081 cat >>confdefs.h <<\_ACEOF
23088 # Check whether --with-mecab-config was given.
23089 if test "${with_mecab_config+set}" = set; then
23090 withval=$with_mecab_config; as_ac_File=`echo "ac_cv_file_"$withval"" | $as_tr_sh`
23091 { echo "$as_me:$LINENO: checking for \"$withval\"" >&5
23092 echo $ECHO_N "checking for \"$withval\"... $ECHO_C" >&6; }
23093 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23094 echo $ECHO_N "(cached) $ECHO_C" >&6
23096 test "$cross_compiling" = yes &&
23097 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23098 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23099 { (exit 1); exit 1; }; }
23100 if test -r ""$withval""; then
23101 eval "$as_ac_File=yes"
23103 eval "$as_ac_File=no"
23106 ac_res=`eval echo '${'$as_ac_File'}'`
23107 { echo "$as_me:$LINENO: result: $ac_res" >&5
23108 echo "${ECHO_T}$ac_res" >&6; }
23109 if test `eval echo '${'$as_ac_File'}'` = yes; then
23110 MECAB_CONFIG="$withval"
23116 # Extract the first word of "mecab-config", so it can be a program name with args.
23117 set dummy mecab-config; ac_word=$2
23118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23120 if test "${ac_cv_path_MECAB_CONFIG+set}" = set; then
23121 echo $ECHO_N "(cached) $ECHO_C" >&6
23123 case $MECAB_CONFIG in
23125 ac_cv_path_MECAB_CONFIG="$MECAB_CONFIG" # Let the user override the test with a path.
23128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23129 for as_dir in $PATH
23132 test -z "$as_dir" && as_dir=.
23133 for ac_exec_ext in '' $ac_executable_extensions; do
23134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23135 ac_cv_path_MECAB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23143 test -z "$ac_cv_path_MECAB_CONFIG" && ac_cv_path_MECAB_CONFIG="no"
23147 MECAB_CONFIG=$ac_cv_path_MECAB_CONFIG
23148 if test -n "$MECAB_CONFIG"; then
23149 { echo "$as_me:$LINENO: result: $MECAB_CONFIG" >&5
23150 echo "${ECHO_T}$MECAB_CONFIG" >&6; }
23152 { echo "$as_me:$LINENO: result: no" >&5
23153 echo "${ECHO_T}no" >&6; }
23159 if test "x$MECAB_CONFIG" = "xno"; then
23160 { { echo "$as_me:$LINENO: error: mecab-config is missing." >&5
23161 echo "$as_me: error: mecab-config is missing." >&2;}
23162 { (exit 1); exit 1; }; }
23165 MECAB_CFLAGS="-I`$MECAB_CONFIG --inc-dir`"
23166 LDFLAGS="$LDFLAGS -L`$MECAB_CONFIG --libs-only-L`"
23168 { echo "$as_me:$LINENO: checking for mecab_new in -lmecab" >&5
23169 echo $ECHO_N "checking for mecab_new in -lmecab... $ECHO_C" >&6; }
23170 if test "${ac_cv_lib_mecab_mecab_new+set}" = set; then
23171 echo $ECHO_N "(cached) $ECHO_C" >&6
23173 ac_check_lib_save_LIBS=$LIBS
23174 LIBS="-lmecab $LIBS"
23175 cat >conftest.$ac_ext <<_ACEOF
23178 cat confdefs.h >>conftest.$ac_ext
23179 cat >>conftest.$ac_ext <<_ACEOF
23180 /* end confdefs.h. */
23182 /* Override any GCC internal prototype to avoid an error.
23183 Use char because int might match the return type of a GCC
23184 builtin and then its argument prototype would still apply. */
23192 return mecab_new ();
23197 rm -f conftest.$ac_objext conftest$ac_exeext
23198 if { (ac_try="$ac_link"
23199 case "(($ac_try" in
23200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23201 *) ac_try_echo=$ac_try;;
23203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23204 (eval "$ac_link") 2>conftest.er1
23206 grep -v '^ *+' conftest.er1 >conftest.err
23208 cat conftest.err >&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } && {
23211 test -z "$ac_c_werror_flag" ||
23212 test ! -s conftest.err
23213 } && test -s conftest$ac_exeext &&
23214 $as_test_x conftest$ac_exeext; then
23215 ac_cv_lib_mecab_mecab_new=yes
23217 echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23220 ac_cv_lib_mecab_mecab_new=no
23223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23224 conftest$ac_exeext conftest.$ac_ext
23225 LIBS=$ac_check_lib_save_LIBS
23227 { echo "$as_me:$LINENO: result: $ac_cv_lib_mecab_mecab_new" >&5
23228 echo "${ECHO_T}$ac_cv_lib_mecab_mecab_new" >&6; }
23229 if test $ac_cv_lib_mecab_mecab_new = yes; then
23230 cat >>confdefs.h <<_ACEOF
23231 #define HAVE_LIBMECAB 1
23234 LIBS="-lmecab $LIBS"
23237 { { echo "$as_me:$LINENO: error: \"No libmecab found\"" >&5
23238 echo "$as_me: error: \"No libmecab found\"" >&2;}
23239 { (exit 1); exit 1; }; }
23242 { echo "$as_me:$LINENO: checking for mecab_dictionary_info in -lmecab" >&5
23243 echo $ECHO_N "checking for mecab_dictionary_info in -lmecab... $ECHO_C" >&6; }
23244 if test "${ac_cv_lib_mecab_mecab_dictionary_info+set}" = set; then
23245 echo $ECHO_N "(cached) $ECHO_C" >&6
23247 ac_check_lib_save_LIBS=$LIBS
23248 LIBS="-lmecab $LIBS"
23249 cat >conftest.$ac_ext <<_ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h. */
23256 /* Override any GCC internal prototype to avoid an error.
23257 Use char because int might match the return type of a GCC
23258 builtin and then its argument prototype would still apply. */
23262 char mecab_dictionary_info ();
23266 return mecab_dictionary_info ();
23271 rm -f conftest.$ac_objext conftest$ac_exeext
23272 if { (ac_try="$ac_link"
23273 case "(($ac_try" in
23274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23275 *) ac_try_echo=$ac_try;;
23277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23278 (eval "$ac_link") 2>conftest.er1
23280 grep -v '^ *+' conftest.er1 >conftest.err
23282 cat conftest.err >&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); } && {
23285 test -z "$ac_c_werror_flag" ||
23286 test ! -s conftest.err
23287 } && test -s conftest$ac_exeext &&
23288 $as_test_x conftest$ac_exeext; then
23289 ac_cv_lib_mecab_mecab_dictionary_info=yes
23291 echo "$as_me: failed program was:" >&5
23292 sed 's/^/| /' conftest.$ac_ext >&5
23294 ac_cv_lib_mecab_mecab_dictionary_info=no
23297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23298 conftest$ac_exeext conftest.$ac_ext
23299 LIBS=$ac_check_lib_save_LIBS
23301 { echo "$as_me:$LINENO: result: $ac_cv_lib_mecab_mecab_dictionary_info" >&5
23302 echo "${ECHO_T}$ac_cv_lib_mecab_mecab_dictionary_info" >&6; }
23303 if test $ac_cv_lib_mecab_mecab_dictionary_info = yes; then
23305 cat >>confdefs.h <<\_ACEOF
23306 #define USE_MECAB_DICINFO 1
23311 CPPFLAGS="$CPPFLAGS $MECAB_CFLAGS"
23312 if test "${ac_cv_header_mecab_h+set}" = set; then
23313 { echo "$as_me:$LINENO: checking for mecab.h" >&5
23314 echo $ECHO_N "checking for mecab.h... $ECHO_C" >&6; }
23315 if test "${ac_cv_header_mecab_h+set}" = set; then
23316 echo $ECHO_N "(cached) $ECHO_C" >&6
23318 { echo "$as_me:$LINENO: result: $ac_cv_header_mecab_h" >&5
23319 echo "${ECHO_T}$ac_cv_header_mecab_h" >&6; }
23321 # Is the header compilable?
23322 { echo "$as_me:$LINENO: checking mecab.h usability" >&5
23323 echo $ECHO_N "checking mecab.h usability... $ECHO_C" >&6; }
23324 cat >conftest.$ac_ext <<_ACEOF
23327 cat confdefs.h >>conftest.$ac_ext
23328 cat >>conftest.$ac_ext <<_ACEOF
23329 /* end confdefs.h. */
23330 $ac_includes_default
23333 rm -f conftest.$ac_objext
23334 if { (ac_try="$ac_compile"
23335 case "(($ac_try" in
23336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23337 *) ac_try_echo=$ac_try;;
23339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23340 (eval "$ac_compile") 2>conftest.er1
23342 grep -v '^ *+' conftest.er1 >conftest.err
23344 cat conftest.err >&5
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); } && {
23347 test -z "$ac_c_werror_flag" ||
23348 test ! -s conftest.err
23349 } && test -s conftest.$ac_objext; then
23350 ac_header_compiler=yes
23352 echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23355 ac_header_compiler=no
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23360 echo "${ECHO_T}$ac_header_compiler" >&6; }
23362 # Is the header present?
23363 { echo "$as_me:$LINENO: checking mecab.h presence" >&5
23364 echo $ECHO_N "checking mecab.h presence... $ECHO_C" >&6; }
23365 cat >conftest.$ac_ext <<_ACEOF
23368 cat confdefs.h >>conftest.$ac_ext
23369 cat >>conftest.$ac_ext <<_ACEOF
23370 /* end confdefs.h. */
23373 if { (ac_try="$ac_cpp conftest.$ac_ext"
23374 case "(($ac_try" in
23375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23376 *) ac_try_echo=$ac_try;;
23378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23381 grep -v '^ *+' conftest.er1 >conftest.err
23383 cat conftest.err >&5
23384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385 (exit $ac_status); } >/dev/null && {
23386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23387 test ! -s conftest.err
23389 ac_header_preproc=yes
23391 echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.$ac_ext >&5
23394 ac_header_preproc=no
23397 rm -f conftest.err conftest.$ac_ext
23398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23399 echo "${ECHO_T}$ac_header_preproc" >&6; }
23401 # So? What about this header?
23402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23404 { echo "$as_me:$LINENO: WARNING: mecab.h: accepted by the compiler, rejected by the preprocessor!" >&5
23405 echo "$as_me: WARNING: mecab.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23406 { echo "$as_me:$LINENO: WARNING: mecab.h: proceeding with the compiler's result" >&5
23407 echo "$as_me: WARNING: mecab.h: proceeding with the compiler's result" >&2;}
23408 ac_header_preproc=yes
23411 { echo "$as_me:$LINENO: WARNING: mecab.h: present but cannot be compiled" >&5
23412 echo "$as_me: WARNING: mecab.h: present but cannot be compiled" >&2;}
23413 { echo "$as_me:$LINENO: WARNING: mecab.h: check for missing prerequisite headers?" >&5
23414 echo "$as_me: WARNING: mecab.h: check for missing prerequisite headers?" >&2;}
23415 { echo "$as_me:$LINENO: WARNING: mecab.h: see the Autoconf documentation" >&5
23416 echo "$as_me: WARNING: mecab.h: see the Autoconf documentation" >&2;}
23417 { echo "$as_me:$LINENO: WARNING: mecab.h: section \"Present But Cannot Be Compiled\"" >&5
23418 echo "$as_me: WARNING: mecab.h: section \"Present But Cannot Be Compiled\"" >&2;}
23419 { echo "$as_me:$LINENO: WARNING: mecab.h: proceeding with the preprocessor's result" >&5
23420 echo "$as_me: WARNING: mecab.h: proceeding with the preprocessor's result" >&2;}
23421 { echo "$as_me:$LINENO: WARNING: mecab.h: in the future, the compiler will take precedence" >&5
23422 echo "$as_me: WARNING: mecab.h: in the future, the compiler will take precedence" >&2;}
23424 ## ----------------------------- ##
23425 ## Report this to senna@razil.jp ##
23426 ## ----------------------------- ##
23428 ) | sed "s/^/$as_me: WARNING: /" >&2
23431 { echo "$as_me:$LINENO: checking for mecab.h" >&5
23432 echo $ECHO_N "checking for mecab.h... $ECHO_C" >&6; }
23433 if test "${ac_cv_header_mecab_h+set}" = set; then
23434 echo $ECHO_N "(cached) $ECHO_C" >&6
23436 ac_cv_header_mecab_h=$ac_header_preproc
23438 { echo "$as_me:$LINENO: result: $ac_cv_header_mecab_h" >&5
23439 echo "${ECHO_T}$ac_cv_header_mecab_h" >&6; }
23442 if test $ac_cv_header_mecab_h = yes; then
23445 { { echo "$as_me:$LINENO: error: \"No mecab.h found\"" >&5
23446 echo "$as_me: error: \"No mecab.h found\"" >&2;}
23447 { (exit 1); exit 1; }; }
23453 # flags for compile senna
23454 CFLAGS="$CFLAGS $MECAB_CFLAGS $OPT_CFLAGS $GCOV_CFLAGS"
23455 LIBS="$LIBS $PTHREAD_LIBS $M_LIBS"
23457 cat >>confdefs.h <<_ACEOF
23458 #define CONFIGURE_OPTIONS "$ac_configure_args"
23462 # flags for senna-cfg
23463 SENNA_LIBDIR='-L${libdir}'
23464 SENNA_INCLUDEDIR="-I${includedir}/senna"
23465 SENNA_CFLAGS="$GCOV_CFLAGS"
23466 SENNA_LIBS="-lsenna $GCOV_LIBS $PTHREAD_LIBS $M_LIBS"
23473 ac_config_files="$ac_config_files senna-cfg senna.spec vcc/config.h"
23475 ac_config_commands="$ac_config_commands default"
23477 cat >confcache <<\_ACEOF
23478 # This file is a shell script that caches the results of configure
23479 # tests run on this system so they can be shared between configure
23480 # scripts and configure runs, see configure's option --config-cache.
23481 # It is not useful on other systems. If it contains results you don't
23482 # want to keep, you may remove or edit it.
23484 # config.status only pays attention to the cache file if you give it
23485 # the --recheck option to rerun configure.
23487 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23488 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23489 # following values.
23493 # The following way of writing the cache mishandles newlines in values,
23494 # but we know of no workaround that is simple, portable, and efficient.
23495 # So, we kill variables containing newlines.
23496 # Ultrix sh set writes to stderr and can't be redirected directly,
23497 # and sets the high bit in the cache file unless we assign to the vars.
23499 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23500 eval ac_val=\$$ac_var
23504 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23505 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23508 _ | IFS | as_nl) ;; #(
23509 *) $as_unset $ac_var ;;
23515 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23516 *${as_nl}ac_space=\ *)
23517 # `set' does not quote correctly, so add quotes (double-quote
23518 # substitution turns \\\\ into \\, and sed turns \\ into \).
23521 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23524 # `set' quotes correctly as required by POSIX, so do not add quotes.
23525 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23534 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23536 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23538 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23539 if test -w "$cache_file"; then
23540 test "x$cache_file" != "x/dev/null" &&
23541 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23542 echo "$as_me: updating cache $cache_file" >&6;}
23543 cat confcache >$cache_file
23545 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23546 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23551 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23552 # Let make expand exec_prefix.
23553 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23555 DEFS=-DHAVE_CONFIG_H
23559 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23560 # 1. Remove the extension, and $U if already installed.
23561 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23562 ac_i=`echo "$ac_i" | sed "$ac_script"`
23563 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23564 # will be set to the directory where LIBOBJS objects are built.
23565 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23566 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23568 LIBOBJS=$ac_libobjs
23570 LTLIBOBJS=$ac_ltlibobjs
23573 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23574 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23575 Usually this means the macro was only invoked conditionally." >&5
23576 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23577 Usually this means the macro was only invoked conditionally." >&2;}
23578 { (exit 1); exit 1; }; }
23580 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23581 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23582 Usually this means the macro was only invoked conditionally." >&5
23583 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23584 Usually this means the macro was only invoked conditionally." >&2;}
23585 { (exit 1); exit 1; }; }
23587 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23588 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23589 Usually this means the macro was only invoked conditionally." >&5
23590 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23591 Usually this means the macro was only invoked conditionally." >&2;}
23592 { (exit 1); exit 1; }; }
23594 if test -z "${GCOV_ENABLED_TRUE}" && test -z "${GCOV_ENABLED_FALSE}"; then
23595 { { echo "$as_me:$LINENO: error: conditional \"GCOV_ENABLED\" was never defined.
23596 Usually this means the macro was only invoked conditionally." >&5
23597 echo "$as_me: error: conditional \"GCOV_ENABLED\" was never defined.
23598 Usually this means the macro was only invoked conditionally." >&2;}
23599 { (exit 1); exit 1; }; }
23602 : ${CONFIG_STATUS=./config.status}
23603 ac_clean_files_save=$ac_clean_files
23604 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23605 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23606 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23607 cat >$CONFIG_STATUS <<_ACEOF
23609 # Generated by $as_me.
23610 # Run this file to recreate the current configuration.
23611 # Compiler output produced by configure, useful for debugging
23612 # configure, is in config.log if it exists.
23615 ac_cs_recheck=false
23617 SHELL=\${CONFIG_SHELL-$SHELL}
23620 cat >>$CONFIG_STATUS <<\_ACEOF
23621 ## --------------------- ##
23622 ## M4sh Initialization. ##
23623 ## --------------------- ##
23625 # Be more Bourne compatible
23626 DUALCASE=1; export DUALCASE # for MKS sh
23627 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23630 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23631 # is contrary to our usage. Disable this feature.
23632 alias -g '${1+"$@"}'='"$@"'
23633 setopt NO_GLOB_SUBST
23635 case `(set -o) 2>/dev/null` in
23636 *posix*) set -o posix ;;
23645 # Avoid depending upon Character Ranges.
23646 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23647 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23648 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23649 as_cr_digits='0123456789'
23650 as_cr_alnum=$as_cr_Letters$as_cr_digits
23652 # The user is always right.
23653 if test "${PATH_SEPARATOR+set}" != set; then
23654 echo "#! /bin/sh" >conf$$.sh
23655 echo "exit 0" >>conf$$.sh
23657 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23665 # Support unset when possible.
23666 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23674 # We need space, tab and new line, in precisely that order. Quoting is
23675 # there to prevent editors from complaining about space-tab.
23676 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23677 # splitting by setting IFS to empty value.)
23682 # Find who we are. Look in the path if we contain no directory separator.
23684 *[\\/]* ) as_myself=$0 ;;
23685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23686 for as_dir in $PATH
23689 test -z "$as_dir" && as_dir=.
23690 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23696 # We did not find ourselves, most probably we were run as `sh COMMAND'
23697 # in which case we are not to be found in the path.
23698 if test "x$as_myself" = x; then
23701 if test ! -f "$as_myself"; then
23702 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23703 { (exit 1); exit 1; }
23706 # Work around bugs in pre-3.0 UWIN ksh.
23707 for as_var in ENV MAIL MAILPATH
23708 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23716 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23717 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23718 LC_TELEPHONE LC_TIME
23720 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23721 eval $as_var=C; export $as_var
23723 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23727 # Required to use basename.
23728 if expr a : '\(a\)' >/dev/null 2>&1 &&
23729 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23735 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23736 as_basename=basename
23742 # Name of the executable.
23743 as_me=`$as_basename -- "$0" ||
23744 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23745 X"$0" : 'X\(//\)$' \| \
23746 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23748 sed '/^.*\/\([^/][^/]*\)\/*$/{
23767 as_lineno_1=$LINENO
23768 as_lineno_2=$LINENO
23769 test "x$as_lineno_1" != "x$as_lineno_2" &&
23770 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23772 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23773 # uniformly replaced by the line number. The first 'sed' inserts a
23774 # line-number line after each line using $LINENO; the second 'sed'
23775 # does the real work. The second script uses 'N' to pair each
23776 # line-number line with the line containing $LINENO, and appends
23777 # trailing '-' during substitution so that $LINENO is not a special
23778 # case at line end.
23779 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23780 # scripts with optimization help from Paolo Bonzini. Blame Lee
23781 # E. McMahon (1931-1989) for sed's syntax. :-)
23793 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23796 ' >$as_me.lineno &&
23797 chmod +x "$as_me.lineno" ||
23798 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23799 { (exit 1); exit 1; }; }
23801 # Don't try to exec as it changes $[0], causing all sort of problems
23802 # (the dirname of $[0] is not the place where we might find the
23803 # original and so on. Autoconf is especially sensitive to this).
23804 . "./$as_me.lineno"
23805 # Exit status is that of the last command.
23810 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23816 ECHO_C= ECHO_N= ECHO_T=
23817 case `echo -n x` in
23819 case `echo 'x\c'` in
23820 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23827 if expr a : '\(a\)' >/dev/null 2>&1 &&
23828 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23834 rm -f conf$$ conf$$.exe conf$$.file
23835 if test -d conf$$.dir; then
23836 rm -f conf$$.dir/conf$$.file
23842 if ln -s conf$$.file conf$$ 2>/dev/null; then
23844 # ... but there are two gotchas:
23845 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23846 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23847 # In both cases, we have to default to `cp -p'.
23848 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23850 elif ln conf$$.file conf$$ 2>/dev/null; then
23855 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23856 rmdir conf$$.dir 2>/dev/null
23858 if mkdir -p . 2>/dev/null; then
23861 test -d ./-p && rmdir ./-p
23865 if test -x / >/dev/null 2>&1; then
23866 as_test_x='test -x'
23868 if ls -dL / >/dev/null 2>&1; then
23875 if test -d "$1"; then
23881 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23882 ???[sx]*):;;*)false;;esac;fi
23886 as_executable_p=$as_test_x
23888 # Sed expression to map a string onto a valid CPP name.
23889 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23891 # Sed expression to map a string onto a valid variable name.
23892 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23897 # Save the log message, to keep $[0] and so on meaningful, and to
23898 # report actual input values of CONFIG_FILES etc. instead of their
23899 # values after options handling.
23901 This file was extended by senna $as_me 1.1.2, which was
23902 generated by GNU Autoconf 2.61. Invocation command line was
23904 CONFIG_FILES = $CONFIG_FILES
23905 CONFIG_HEADERS = $CONFIG_HEADERS
23906 CONFIG_LINKS = $CONFIG_LINKS
23907 CONFIG_COMMANDS = $CONFIG_COMMANDS
23910 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23915 cat >>$CONFIG_STATUS <<_ACEOF
23916 # Files that config.status was made for.
23917 config_files="$ac_config_files"
23918 config_headers="$ac_config_headers"
23919 config_commands="$ac_config_commands"
23923 cat >>$CONFIG_STATUS <<\_ACEOF
23925 \`$as_me' instantiates files from templates according to the
23926 current configuration.
23928 Usage: $0 [OPTIONS] [FILE]...
23930 -h, --help print this help, then exit
23931 -V, --version print version number and configuration settings, then exit
23932 -q, --quiet do not print progress messages
23933 -d, --debug don't remove temporary files
23934 --recheck update $as_me by reconfiguring in the same conditions
23935 --file=FILE[:TEMPLATE]
23936 instantiate the configuration file FILE
23937 --header=FILE[:TEMPLATE]
23938 instantiate the configuration header FILE
23940 Configuration files:
23943 Configuration headers:
23946 Configuration commands:
23949 Report bugs to <bug-autoconf@gnu.org>."
23952 cat >>$CONFIG_STATUS <<_ACEOF
23954 senna config.status 1.1.2
23955 configured by $0, generated by GNU Autoconf 2.61,
23956 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23958 Copyright (C) 2006 Free Software Foundation, Inc.
23959 This config.status script is free software; the Free Software Foundation
23960 gives unlimited permission to copy, distribute and modify it."
23967 cat >>$CONFIG_STATUS <<\_ACEOF
23968 # If no file are specified by the user, then we need to provide default
23969 # value. By we need to know if files were specified by the user.
23975 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23976 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23987 # Handling of the options.
23988 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23990 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23991 echo "$ac_cs_version"; exit ;;
23992 --debug | --debu | --deb | --de | --d | -d )
23994 --file | --fil | --fi | --f )
23996 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23997 ac_need_defaults=false;;
23998 --header | --heade | --head | --hea )
24000 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24001 ac_need_defaults=false;;
24003 # Conflict between --help and --header
24004 { echo "$as_me: error: ambiguous option: $1
24005 Try \`$0 --help' for more information." >&2
24006 { (exit 1); exit 1; }; };;
24007 --help | --hel | -h )
24008 echo "$ac_cs_usage"; exit ;;
24009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24010 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24013 # This is an error.
24014 -*) { echo "$as_me: error: unrecognized option: $1
24015 Try \`$0 --help' for more information." >&2
24016 { (exit 1); exit 1; }; } ;;
24018 *) ac_config_targets="$ac_config_targets $1"
24019 ac_need_defaults=false ;;
24025 ac_configure_extra_args=
24027 if $ac_cs_silent; then
24029 ac_configure_extra_args="$ac_configure_extra_args --silent"
24033 cat >>$CONFIG_STATUS <<_ACEOF
24034 if \$ac_cs_recheck; then
24035 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24036 CONFIG_SHELL=$SHELL
24037 export CONFIG_SHELL
24038 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24042 cat >>$CONFIG_STATUS <<\_ACEOF
24046 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24047 ## Running $as_me. ##
24053 cat >>$CONFIG_STATUS <<_ACEOF
24057 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24061 cat >>$CONFIG_STATUS <<\_ACEOF
24063 # Handling of arguments.
24064 for ac_config_target in $ac_config_targets
24066 case $ac_config_target in
24067 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24068 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24069 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24070 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
24071 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24072 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24073 "bindings/mysql/myisenna/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/mysql/myisenna/Makefile" ;;
24074 "senna-cfg") CONFIG_FILES="$CONFIG_FILES senna-cfg" ;;
24075 "senna.spec") CONFIG_FILES="$CONFIG_FILES senna.spec" ;;
24076 "vcc/config.h") CONFIG_FILES="$CONFIG_FILES vcc/config.h" ;;
24077 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24079 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24080 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24081 { (exit 1); exit 1; }; };;
24086 # If the user did not use the arguments to specify the items to instantiate,
24087 # then the envvar interface is used. Set only those that are not.
24088 # We use the long form for the default assignment because of an extremely
24089 # bizarre bug on SunOS 4.1.3.
24090 if $ac_need_defaults; then
24091 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24092 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24093 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24096 # Have a temporary directory for convenience. Make it in the build tree
24097 # simply because there is no reason against having it here, and in addition,
24098 # creating and moving files from /tmp can sometimes cause problems.
24099 # Hook for its removal unless debugging.
24100 # Note that there is a small window in which the directory will not be cleaned:
24101 # after its creation but before its name has been assigned to `$tmp'.
24105 trap 'exit_status=$?
24106 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24108 trap '{ (exit 1); exit 1; }' 1 2 13 15
24110 # Create a (secure) tmp directory for tmp files.
24113 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24114 test -n "$tmp" && test -d "$tmp"
24117 tmp=./conf$$-$RANDOM
24118 (umask 077 && mkdir "$tmp")
24121 echo "$me: cannot create a temporary directory in ." >&2
24122 { (exit 1); exit 1; }
24126 # Set up the sed scripts for CONFIG_FILES section.
24129 # No need to generate the scripts if there are no CONFIG_FILES.
24130 # This happens for instance when ./config.status config.h
24131 if test -n "$CONFIG_FILES"; then
24138 for ac_last_try in false false false false false :; do
24139 cat >conf$$subs.sed <<_ACEOF
24140 SHELL!$SHELL$ac_delim
24141 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24142 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24143 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24144 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24145 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24146 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24147 exec_prefix!$exec_prefix$ac_delim
24148 prefix!$prefix$ac_delim
24149 program_transform_name!$program_transform_name$ac_delim
24150 bindir!$bindir$ac_delim
24151 sbindir!$sbindir$ac_delim
24152 libexecdir!$libexecdir$ac_delim
24153 datarootdir!$datarootdir$ac_delim
24154 datadir!$datadir$ac_delim
24155 sysconfdir!$sysconfdir$ac_delim
24156 sharedstatedir!$sharedstatedir$ac_delim
24157 localstatedir!$localstatedir$ac_delim
24158 includedir!$includedir$ac_delim
24159 oldincludedir!$oldincludedir$ac_delim
24160 docdir!$docdir$ac_delim
24161 infodir!$infodir$ac_delim
24162 htmldir!$htmldir$ac_delim
24163 dvidir!$dvidir$ac_delim
24164 pdfdir!$pdfdir$ac_delim
24165 psdir!$psdir$ac_delim
24166 libdir!$libdir$ac_delim
24167 localedir!$localedir$ac_delim
24168 mandir!$mandir$ac_delim
24169 DEFS!$DEFS$ac_delim
24170 ECHO_C!$ECHO_C$ac_delim
24171 ECHO_N!$ECHO_N$ac_delim
24172 ECHO_T!$ECHO_T$ac_delim
24173 LIBS!$LIBS$ac_delim
24174 build_alias!$build_alias$ac_delim
24175 host_alias!$host_alias$ac_delim
24176 target_alias!$target_alias$ac_delim
24177 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24178 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24179 INSTALL_DATA!$INSTALL_DATA$ac_delim
24180 CYGPATH_W!$CYGPATH_W$ac_delim
24181 PACKAGE!$PACKAGE$ac_delim
24182 VERSION!$VERSION$ac_delim
24183 ACLOCAL!$ACLOCAL$ac_delim
24184 AUTOCONF!$AUTOCONF$ac_delim
24185 AUTOMAKE!$AUTOMAKE$ac_delim
24186 AUTOHEADER!$AUTOHEADER$ac_delim
24187 MAKEINFO!$MAKEINFO$ac_delim
24188 install_sh!$install_sh$ac_delim
24189 STRIP!$STRIP$ac_delim
24190 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24191 mkdir_p!$mkdir_p$ac_delim
24193 SET_MAKE!$SET_MAKE$ac_delim
24194 am__leading_dot!$am__leading_dot$ac_delim
24195 AMTAR!$AMTAR$ac_delim
24196 am__tar!$am__tar$ac_delim
24197 am__untar!$am__untar$ac_delim
24199 CFLAGS!$CFLAGS$ac_delim
24200 LDFLAGS!$LDFLAGS$ac_delim
24201 CPPFLAGS!$CPPFLAGS$ac_delim
24202 ac_ct_CC!$ac_ct_CC$ac_delim
24203 EXEEXT!$EXEEXT$ac_delim
24204 OBJEXT!$OBJEXT$ac_delim
24205 DEPDIR!$DEPDIR$ac_delim
24206 am__include!$am__include$ac_delim
24207 am__quote!$am__quote$ac_delim
24208 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24209 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24210 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24211 CCDEPMODE!$CCDEPMODE$ac_delim
24212 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24213 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24214 build!$build$ac_delim
24215 build_cpu!$build_cpu$ac_delim
24216 build_vendor!$build_vendor$ac_delim
24217 build_os!$build_os$ac_delim
24218 host!$host$ac_delim
24219 host_cpu!$host_cpu$ac_delim
24220 host_vendor!$host_vendor$ac_delim
24221 host_os!$host_os$ac_delim
24223 GREP!$GREP$ac_delim
24224 EGREP!$EGREP$ac_delim
24225 LN_S!$LN_S$ac_delim
24226 ECHO!$ECHO$ac_delim
24228 RANLIB!$RANLIB$ac_delim
24231 CXXFLAGS!$CXXFLAGS$ac_delim
24232 ac_ct_CXX!$ac_ct_CXX$ac_delim
24233 CXXDEPMODE!$CXXDEPMODE$ac_delim
24234 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24235 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24236 CXXCPP!$CXXCPP$ac_delim
24239 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24241 elif $ac_last_try; then
24242 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24243 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24244 { (exit 1); exit 1; }; }
24246 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24250 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24251 if test -n "$ac_eof"; then
24252 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24253 ac_eof=`expr $ac_eof + 1`
24256 cat >>$CONFIG_STATUS <<_ACEOF
24257 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24261 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24262 s/^/s,@/; s/!/@,|#_!!_#|/
24265 s/'"$ac_delim"'$/,g/; t
24267 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24268 ' >>$CONFIG_STATUS <conf$$subs.sed
24269 rm -f conf$$subs.sed
24270 cat >>$CONFIG_STATUS <<_ACEOF
24276 for ac_last_try in false false false false false :; do
24277 cat >conf$$subs.sed <<_ACEOF
24279 FFLAGS!$FFLAGS$ac_delim
24280 ac_ct_F77!$ac_ct_F77$ac_delim
24281 LIBTOOL!$LIBTOOL$ac_delim
24282 GCOV_LIBS!$GCOV_LIBS$ac_delim
24283 LCOV!$LCOV$ac_delim
24284 GENHTML!$GENHTML$ac_delim
24285 GCOV_CFLAGS!$GCOV_CFLAGS$ac_delim
24286 GCOV_ENABLED_TRUE!$GCOV_ENABLED_TRUE$ac_delim
24287 GCOV_ENABLED_FALSE!$GCOV_ENABLED_FALSE$ac_delim
24288 MYSQL_SRCDIR!$MYSQL_SRCDIR$ac_delim
24289 MECAB_CONFIG!$MECAB_CONFIG$ac_delim
24290 SENNA_LIBDIR!$SENNA_LIBDIR$ac_delim
24291 SENNA_INCLUDEDIR!$SENNA_INCLUDEDIR$ac_delim
24292 SENNA_CFLAGS!$SENNA_CFLAGS$ac_delim
24293 SENNA_LIBS!$SENNA_LIBS$ac_delim
24294 LIBOBJS!$LIBOBJS$ac_delim
24295 LTLIBOBJS!$LTLIBOBJS$ac_delim
24298 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
24300 elif $ac_last_try; then
24301 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24302 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24303 { (exit 1); exit 1; }; }
24305 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24309 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24310 if test -n "$ac_eof"; then
24311 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24312 ac_eof=`expr $ac_eof + 1`
24315 cat >>$CONFIG_STATUS <<_ACEOF
24316 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24317 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24320 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24321 s/^/s,@/; s/!/@,|#_!!_#|/
24324 s/'"$ac_delim"'$/,g/; t
24326 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24327 ' >>$CONFIG_STATUS <conf$$subs.sed
24328 rm -f conf$$subs.sed
24329 cat >>$CONFIG_STATUS <<_ACEOF
24336 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24337 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24338 # trailing colons and then remove the whole line if VPATH becomes empty
24339 # (actually we leave an empty line to preserve line numbers).
24340 if test "x$srcdir" = x.; then
24341 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24342 s/:*\$(srcdir):*/:/
24343 s/:*\${srcdir}:*/:/
24345 s/^\([^=]*=[ ]*\):*/\1/
24351 cat >>$CONFIG_STATUS <<\_ACEOF
24352 fi # test -n "$CONFIG_FILES"
24355 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24358 :[FHLC]) ac_mode=$ac_tag; continue;;
24360 case $ac_mode$ac_tag in
24362 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24363 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24364 { (exit 1); exit 1; }; };;
24365 :[FH]-) ac_tag=-:-;;
24366 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24383 -) ac_f="$tmp/stdin";;
24384 *) # Look for the file first in the build tree, then in the source tree
24385 # (if the path is not absolute). The absolute path cannot be DOS-style,
24386 # because $ac_f cannot contain `:'.
24390 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24392 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24393 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24394 { (exit 1); exit 1; }; };;
24396 ac_file_inputs="$ac_file_inputs $ac_f"
24399 # Let's still pretend it is `configure' which instantiates (i.e., don't
24400 # use $as_me), people would be surprised to read:
24401 # /* config.h. Generated by config.status. */
24402 configure_input="Generated from "`IFS=:
24403 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24404 if test x"$ac_file" != x-; then
24405 configure_input="$ac_file. $configure_input"
24406 { echo "$as_me:$LINENO: creating $ac_file" >&5
24407 echo "$as_me: creating $ac_file" >&6;}
24411 *:-:* | *:-) cat >"$tmp/stdin";;
24416 ac_dir=`$as_dirname -- "$ac_file" ||
24417 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24418 X"$ac_file" : 'X\(//\)[^/]' \| \
24419 X"$ac_file" : 'X\(//\)$' \| \
24420 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24426 /^X\(\/\/\)[^/].*/{
24441 -*) as_dir=./$as_dir;;
24443 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24447 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24448 *) as_qdir=$as_dir;;
24450 as_dirs="'$as_qdir' $as_dirs"
24451 as_dir=`$as_dirname -- "$as_dir" ||
24452 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24453 X"$as_dir" : 'X\(//\)[^/]' \| \
24454 X"$as_dir" : 'X\(//\)$' \| \
24455 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24461 /^X\(\/\/\)[^/].*/{
24474 test -d "$as_dir" && break
24476 test -z "$as_dirs" || eval "mkdir $as_dirs"
24477 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24478 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24479 { (exit 1); exit 1; }; }; }
24483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24485 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24486 # A ".." for each directory in $ac_dir_suffix.
24487 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24488 case $ac_top_builddir_sub in
24489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24493 ac_abs_top_builddir=$ac_pwd
24494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24495 # for backward compatibility:
24496 ac_top_builddir=$ac_top_build_prefix
24499 .) # We are building in place.
24501 ac_top_srcdir=$ac_top_builddir_sub
24502 ac_abs_top_srcdir=$ac_pwd ;;
24503 [\\/]* | ?:[\\/]* ) # Absolute name.
24504 ac_srcdir=$srcdir$ac_dir_suffix;
24505 ac_top_srcdir=$srcdir
24506 ac_abs_top_srcdir=$srcdir ;;
24507 *) # Relative name.
24508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24509 ac_top_srcdir=$ac_top_build_prefix$srcdir
24510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24522 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24523 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24527 cat >>$CONFIG_STATUS <<\_ACEOF
24528 # If the template does not know about datarootdir, expand it.
24529 # FIXME: This hack should be removed a few years after 2.60.
24530 ac_datarootdir_hack=; ac_datarootdir_seen=
24532 case `sed -n '/datarootdir/ {
24541 ' $ac_file_inputs` in
24542 *datarootdir*) ac_datarootdir_seen=yes;;
24543 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24544 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24545 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24547 cat >>$CONFIG_STATUS <<_ACEOF
24548 ac_datarootdir_hack='
24549 s&@datadir@&$datadir&g
24550 s&@docdir@&$docdir&g
24551 s&@infodir@&$infodir&g
24552 s&@localedir@&$localedir&g
24553 s&@mandir@&$mandir&g
24554 s&\\\${datarootdir}&$datarootdir&g' ;;
24558 # Neutralize VPATH when `$srcdir' = `.'.
24559 # Shell code in configure.ac might set extrasub.
24560 # FIXME: do we really want to maintain this feature?
24561 cat >>$CONFIG_STATUS <<_ACEOF
24565 cat >>$CONFIG_STATUS <<\_ACEOF
24567 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24568 s&@configure_input@&$configure_input&;t t
24569 s&@top_builddir@&$ac_top_builddir_sub&;t t
24570 s&@srcdir@&$ac_srcdir&;t t
24571 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24572 s&@top_srcdir@&$ac_top_srcdir&;t t
24573 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24574 s&@builddir@&$ac_builddir&;t t
24575 s&@abs_builddir@&$ac_abs_builddir&;t t
24576 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24577 s&@INSTALL@&$ac_INSTALL&;t t
24578 $ac_datarootdir_hack
24579 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24581 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24582 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24583 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24584 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24585 which seems to be undefined. Please make sure it is defined." >&5
24586 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24587 which seems to be undefined. Please make sure it is defined." >&2;}
24591 -) cat "$tmp/out"; rm -f "$tmp/out";;
24592 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24601 # Transform confdefs.h into a sed script `conftest.defines', that
24602 # substitutes the proper values into config.h.in to produce config.h.
24603 rm -f conftest.defines conftest.tail
24604 # First, append a space to every undef/define line, to ease matching.
24605 echo 's/$/ /' >conftest.defines
24606 # Then, protect against being on the right side of a sed subst, or in
24607 # an unquoted here document, in config.status. If some macros were
24608 # called several times there might be several #defines for the same
24609 # symbol, which is useless. But do not sort them, since the last
24610 # AC_DEFINE must be honored.
24611 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24612 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24613 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24614 # PARAMS is the parameter list in the macro definition--in most cases, it's
24615 # just an empty string.
24616 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24617 ac_dB='\\)[ (].*,\\1define\\2'
24625 s/^[ ]*#[ ]*define[ ][ ]*//
24630 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24631 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24632 ' >>conftest.defines
24634 # Remove the space that was appended to ease matching.
24635 # Then replace #undef with comments. This is necessary, for
24636 # example, in the case of _POSIX_SOURCE, which is predefined and required
24637 # on some systems where configure will not decide to define it.
24638 # (The regexp can be short, since the line contains either #define or #undef.)
24640 s,^[ #]*u.*,/* & */,' >>conftest.defines
24642 # Break up conftest.defines:
24643 ac_max_sed_lines=50
24645 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24646 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24647 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24649 ac_in='$ac_file_inputs'
24650 ac_out='"$tmp/out1"'
24651 ac_nxt='"$tmp/out2"'
24655 # Write a here document:
24656 cat >>$CONFIG_STATUS <<_ACEOF
24657 # First, check the format of the line:
24658 cat >"\$tmp/defines.sed" <<\\CEOF
24659 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24660 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24664 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24666 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24667 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24668 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24669 grep . conftest.tail >/dev/null || break
24670 rm -f conftest.defines
24671 mv conftest.tail conftest.defines
24673 rm -f conftest.defines conftest.tail
24675 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24676 cat >>$CONFIG_STATUS <<\_ACEOF
24677 if test x"$ac_file" != x-; then
24678 echo "/* $configure_input */" >"$tmp/config.h"
24679 cat "$ac_result" >>"$tmp/config.h"
24680 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24681 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24682 echo "$as_me: $ac_file is unchanged" >&6;}
24685 mv "$tmp/config.h" $ac_file
24688 echo "/* $configure_input */"
24692 # Compute $ac_file's index in $config_headers.
24694 for _am_header in $config_headers :; do
24695 case $_am_header in
24696 $ac_file | $ac_file:* )
24699 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24702 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24703 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24704 X$ac_file : 'X\(//\)[^/]' \| \
24705 X$ac_file : 'X\(//\)$' \| \
24706 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24712 /^X\(\/\/\)[^/].*/{
24724 s/.*/./; q'`/stamp-h$_am_stamp_count
24727 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24728 echo "$as_me: executing $ac_file commands" >&6;}
24733 case $ac_file$ac_mode in
24734 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24735 # Strip MF so we end up with the name of the file.
24736 mf=`echo "$mf" | sed -e 's/:.*$//'`
24737 # Check whether this is an Automake generated Makefile or not.
24738 # We used to match only the files named `Makefile.in', but
24739 # some people rename them; so instead we look at the file content.
24740 # Grep'ing the first line is not enough: some people post-process
24741 # each Makefile.in and add a new line on top of each file to say so.
24742 # So let's grep whole file.
24743 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24744 dirpart=`$as_dirname -- "$mf" ||
24745 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24746 X"$mf" : 'X\(//\)[^/]' \| \
24747 X"$mf" : 'X\(//\)$' \| \
24748 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24754 /^X\(\/\/\)[^/].*/{
24770 # Extract the definition of DEPDIR, am__include, and am__quote
24771 # from the Makefile without running `make'.
24772 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24773 test -z "$DEPDIR" && continue
24774 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24775 test -z "am__include" && continue
24776 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24777 # When using ansi2knr, U may be empty or an underscore; expand it
24778 U=`sed -n 's/^U = //p' < "$mf"`
24779 # Find all dependency output files, they are included files with
24780 # $(DEPDIR) in their names. We invoke sed twice because it is the
24781 # simplest approach to changing $(DEPDIR) to its actual value in the
24783 for file in `sed -n "
24784 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24785 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24786 # Make sure the directory exists.
24787 test -f "$dirpart/$file" && continue
24788 fdir=`$as_dirname -- "$file" ||
24789 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24790 X"$file" : 'X\(//\)[^/]' \| \
24791 X"$file" : 'X\(//\)$' \| \
24792 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24798 /^X\(\/\/\)[^/].*/{
24811 { as_dir=$dirpart/$fdir
24813 -*) as_dir=./$as_dir;;
24815 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24819 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24820 *) as_qdir=$as_dir;;
24822 as_dirs="'$as_qdir' $as_dirs"
24823 as_dir=`$as_dirname -- "$as_dir" ||
24824 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24825 X"$as_dir" : 'X\(//\)[^/]' \| \
24826 X"$as_dir" : 'X\(//\)$' \| \
24827 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24833 /^X\(\/\/\)[^/].*/{
24846 test -d "$as_dir" && break
24848 test -z "$as_dirs" || eval "mkdir $as_dirs"
24849 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24850 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24851 { (exit 1); exit 1; }; }; }
24852 # echo "creating $dirpart/$file"
24853 echo '# dummy' > "$dirpart/$file"
24857 "default":C) chmod +x senna-cfg ;;
24863 { (exit 0); exit 0; }
24865 chmod +x $CONFIG_STATUS
24866 ac_clean_files=$ac_clean_files_save
24869 # configure is writing to config.log, and then calls config.status.
24870 # config.status does its own redirection, appending to config.log.
24871 # Unfortunately, on DOS this fails, as config.log is still kept open
24872 # by configure, so config.status won't be able to write to it; its
24873 # output is simply discarded. So we exec the FD to /dev/null,
24874 # effectively closing config.log, so it can be properly (re)opened and
24875 # appended to by config.status. When coming back to configure, we
24876 # need to make the FD available again.
24877 if test "$no_create" != yes; then
24879 ac_config_status_args=
24880 test "$silent" = yes &&
24881 ac_config_status_args="$ac_config_status_args --quiet"
24883 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24885 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24886 # would make configure fail if this is the last instruction.
24887 $ac_cs_success || { (exit 1); exit 1; }
24892 $PACKAGE_NAME $PACKAGE_VERSION configuration:
24893 -----------------------
24898 Install path prefix: ${prefix}
24900 Now type 'make' to build $PACKAGE_NAME $PACKAGE_VERSION!