2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for yaz 2.1.28.
5 # Report bugs to <adam@indexdata.dk>.
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 Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
68 # Find who we are. Look in the path if we contain no directory separator.
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
159 if test $as_have_required = yes && (eval ":
169 as_func_ret_success () {
172 as_func_ret_failure () {
177 if as_func_success; then
181 echo as_func_success failed.
184 if as_func_failure; then
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
255 CONFIG_SHELL=$as_shell
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
282 as_func_ret_success () {
285 as_func_ret_failure () {
290 if as_func_success; then
294 echo as_func_success failed.
297 if as_func_failure; then
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
371 as_func_ret_success () {
374 as_func_ret_failure () {
379 if as_func_success; then
383 echo as_func_success failed.
386 if as_func_failure; then
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 ECHO_C= ECHO_N= ECHO_T=
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 elif ln conf$$.file conf$$ 2>/dev/null; then
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
513 test -d ./-p && rmdir ./-p
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 # Check that we are running under the correct shell.
541 SHELL=${CONFIG_SHELL-/bin/sh}
545 # Remove one level of quotation (which was required for Make).
546 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
551 if test "X$1" = X--no-reexec; then
552 # Discard the --no-reexec flag, and continue.
554 elif test "X$1" = X--fallback-echo; then
555 # Avoid inline document here, it may be left over
557 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558 # Yippee, $echo works!
561 # Restart under the correct shell.
562 exec $SHELL "$0" --no-reexec ${1+"$@"}
565 if test "X$1" = X--fallback-echo; then
566 # used as fallback echo
574 # The HP-UX ksh and POSIX shell print the target directory to stdout
576 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578 if test -z "$ECHO"; then
579 if test "X${echo_test_string+set}" != Xset; then
580 # find a string as large as possible, as long as the shell can cope with it
581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584 echo_test_string=`eval $cmd` &&
585 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
592 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594 test "X$echo_testing_string" = "X$echo_test_string"; then
597 # The Solaris, AIX, and Digital Unix default echo programs unquote
598 # backslashes. This makes it impossible to quote backslashes using
599 # echo "$something" | sed 's/\\/\\\\/g'
601 # So, first we look for a working echo in the user's PATH.
603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604 for dir in $PATH /usr/ucb; do
606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
616 if test "X$echo" = Xecho; then
617 # We didn't find a better echo, so look for alternatives.
618 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 # This shell has a builtin print -r that does the trick.
623 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624 test "X$CONFIG_SHELL" != X/bin/ksh; then
625 # If we have ksh, try running configure again with it.
626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627 export ORIGINAL_CONFIG_SHELL
628 CONFIG_SHELL=/bin/ksh
630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
634 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
645 SHELL="$CONFIG_SHELL"
647 echo="$CONFIG_SHELL $0 --fallback-echo"
648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649 test "X$echo_testing_string" = 'X\t' &&
650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 echo="$CONFIG_SHELL $0 --fallback-echo"
654 # maybe with a smaller string...
657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
665 if test "$prev" != 'sed 50q "$0"'; then
666 echo_test_string=`eval $prev`
667 export echo_test_string
668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
670 # Oops. We lost completely, so just stick with echo.
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
682 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
689 tagnames=${tagnames+${tagnames},}CXX
691 tagnames=${tagnames+${tagnames},}F77
693 exec 7<&0 </dev/null 6>&1
696 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697 # so uname gets run too.
698 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
703 ac_default_prefix=/usr/local
705 ac_config_libobj_dir=.
711 SHELL=${CONFIG_SHELL-/bin/sh}
713 # Identity of this package.
715 PACKAGE_TARNAME='yaz'
716 PACKAGE_VERSION='2.1.28'
717 PACKAGE_STRING='yaz 2.1.28'
718 PACKAGE_BUGREPORT='adam@indexdata.dk'
720 ac_unique_file="configure.ac"
721 # Factoring default headers for most tests.
722 ac_includes_default="\
725 # include <sys/types.h>
728 # include <sys/stat.h>
739 # if !STDC_HEADERS && HAVE_MEMORY_H
745 # include <strings.h>
748 # include <inttypes.h>
766 program_transform_name
808 INSTALL_STRIP_PROGRAM
877 ac_precious_vars='build_alias
893 # Initialize some variables set by options.
895 ac_init_version=false
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
905 program_transform_name=s,x,x,
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
930 infodir='${datarootdir}/info'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
943 # If the previous option needs an argument, assign it.
944 if test -n "$ac_prev"; then
945 eval $ac_prev=\$ac_option
951 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 # Accept the important Cygnus configure options, so we can diagnose typos.
957 case $ac_dashdash$ac_option in
961 -bindir | --bindir | --bindi | --bind | --bin | --bi)
963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966 -build | --build | --buil | --bui | --bu)
967 ac_prev=build_alias ;;
968 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969 build_alias=$ac_optarg ;;
971 -cache-file | --cache-file | --cache-fil | --cache-fi \
972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973 ac_prev=cache_file ;;
974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976 cache_file=$ac_optarg ;;
979 cache_file=config.cache ;;
981 -datadir | --datadir | --datadi | --datad)
983 -datadir=* | --datadir=* | --datadi=* | --datad=*)
984 datadir=$ac_optarg ;;
986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987 | --dataroo | --dataro | --datar)
988 ac_prev=datarootdir ;;
989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991 datarootdir=$ac_optarg ;;
993 -disable-* | --disable-*)
994 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
997 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
998 { (exit 1); exit 1; }; }
999 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1000 eval enable_$ac_feature=no ;;
1002 -docdir | --docdir | --docdi | --doc | --do)
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
1012 -enable-* | --enable-*)
1013 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1016 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1017 { (exit 1); exit 1; }; }
1018 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1019 eval enable_$ac_feature=\$ac_optarg ;;
1021 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023 | --exec | --exe | --ex)
1024 ac_prev=exec_prefix ;;
1025 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027 | --exec=* | --exe=* | --ex=*)
1028 exec_prefix=$ac_optarg ;;
1030 -gas | --gas | --ga | --g)
1031 # Obsolete; use --with-gas.
1034 -help | --help | --hel | --he | -h)
1035 ac_init_help=long ;;
1036 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037 ac_init_help=recursive ;;
1038 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039 ac_init_help=short ;;
1041 -host | --host | --hos | --ho)
1042 ac_prev=host_alias ;;
1043 -host=* | --host=* | --hos=* | --ho=*)
1044 host_alias=$ac_optarg ;;
1046 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050 htmldir=$ac_optarg ;;
1052 -includedir | --includedir | --includedi | --included | --include \
1053 | --includ | --inclu | --incl | --inc)
1054 ac_prev=includedir ;;
1055 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056 | --includ=* | --inclu=* | --incl=* | --inc=*)
1057 includedir=$ac_optarg ;;
1059 -infodir | --infodir | --infodi | --infod | --info | --inf)
1061 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062 infodir=$ac_optarg ;;
1064 -libdir | --libdir | --libdi | --libd)
1066 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067 libdir=$ac_optarg ;;
1069 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070 | --libexe | --libex | --libe)
1071 ac_prev=libexecdir ;;
1072 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073 | --libexe=* | --libex=* | --libe=*)
1074 libexecdir=$ac_optarg ;;
1076 -localedir | --localedir | --localedi | --localed | --locale)
1077 ac_prev=localedir ;;
1078 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079 localedir=$ac_optarg ;;
1081 -localstatedir | --localstatedir | --localstatedi | --localstated \
1082 | --localstate | --localstat | --localsta | --localst | --locals)
1083 ac_prev=localstatedir ;;
1084 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086 localstatedir=$ac_optarg ;;
1088 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091 mandir=$ac_optarg ;;
1093 -nfp | --nfp | --nf)
1094 # Obsolete; use --without-fp.
1097 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098 | --no-cr | --no-c | -n)
1101 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107 | --oldin | --oldi | --old | --ol | --o)
1108 ac_prev=oldincludedir ;;
1109 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112 oldincludedir=$ac_optarg ;;
1114 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117 prefix=$ac_optarg ;;
1119 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120 | --program-pre | --program-pr | --program-p)
1121 ac_prev=program_prefix ;;
1122 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124 program_prefix=$ac_optarg ;;
1126 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127 | --program-suf | --program-su | --program-s)
1128 ac_prev=program_suffix ;;
1129 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131 program_suffix=$ac_optarg ;;
1133 -program-transform-name | --program-transform-name \
1134 | --program-transform-nam | --program-transform-na \
1135 | --program-transform-n | --program-transform- \
1136 | --program-transform | --program-transfor \
1137 | --program-transfo | --program-transf \
1138 | --program-trans | --program-tran \
1139 | --progr-tra | --program-tr | --program-t)
1140 ac_prev=program_transform_name ;;
1141 -program-transform-name=* | --program-transform-name=* \
1142 | --program-transform-nam=* | --program-transform-na=* \
1143 | --program-transform-n=* | --program-transform-=* \
1144 | --program-transform=* | --program-transfor=* \
1145 | --program-transfo=* | --program-transf=* \
1146 | --program-trans=* | --program-tran=* \
1147 | --progr-tra=* | --program-tr=* | --program-t=*)
1148 program_transform_name=$ac_optarg ;;
1150 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153 pdfdir=$ac_optarg ;;
1155 -psdir | --psdir | --psdi | --psd | --ps)
1157 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 sbindir=$ac_optarg ;;
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 sharedstatedir=$ac_optarg ;;
1181 -site | --site | --sit)
1183 -site=* | --site=* | --sit=*)
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1210 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1213 { echo "$as_me: error: invalid package name: $ac_package" >&2
1214 { (exit 1); exit 1; }; }
1215 ac_package=`echo $ac_package| sed 's/-/_/g'`
1216 eval with_$ac_package=\$ac_optarg ;;
1218 -without-* | --without-*)
1219 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1222 { echo "$as_me: error: invalid package name: $ac_package" >&2
1223 { (exit 1); exit 1; }; }
1224 ac_package=`echo $ac_package | sed 's/-/_/g'`
1225 eval with_$ac_package=no ;;
1228 # Obsolete; use --with-x.
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1245 -*) { echo "$as_me: error: unrecognized option: $ac_option
1246 Try \`$0 --help' for more information." >&2
1247 { (exit 1); exit 1; }; }
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1254 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1255 { (exit 1); exit 1; }; }
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1260 # FIXME: should be removed in autoconf 3.0.
1261 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 { echo "$as_me: error: missing argument to $ac_option" >&2
1273 { (exit 1); exit 1; }; }
1276 # Be sure to have absolute directory names.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1282 eval ac_val=\$$ac_var
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1288 { (exit 1); exit 1; }; }
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1296 target=$target_alias
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303 If a cross compiler is detected then cross compile mode will be used." >&2
1304 elif test "x$build_alias" != "x$host_alias"; then
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312 test "$silent" = yes && exec 6>/dev/null
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318 { echo "$as_me: error: Working directory cannot be determined" >&2
1319 { (exit 1); exit 1; }; }
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 { echo "$as_me: error: pwd does not report name of working directory" >&2
1322 { (exit 1); exit 1; }; }
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$0" ||
1330 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$0" : 'X\(//\)[^/]' \| \
1332 X"$0" : 'X\(//\)$' \| \
1333 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1357 ac_srcdir_defaulted=no
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1362 { (exit 1); exit 1; }; }
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1367 { (exit 1); exit 1; }; }
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 # Report the --help message.
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1393 \`configure' configures yaz 2.1.28 to adapt to many kinds of systems.
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1400 Defaults for the options are specified in brackets.
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1424 For better control, use the options below.
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/yaz]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive ) echo "Configuration of yaz 2.1.28:";;
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --disable-dependency-tracking speeds up one-time build
1471 --enable-dependency-tracking do not reject slow dependency extractors
1472 --enable-shared[=PKGS] build shared libraries [default=yes]
1473 --enable-static[=PKGS] build static libraries [default=yes]
1474 --enable-fast-install[=PKGS]
1475 optimize for fast installation [default=yes]
1476 --disable-libtool-lock avoid locking (might break parallel builds)
1477 --enable-tcpd=PREFIX enable TCP wrapper for server if available
1478 --enable-pth enable GNU threads
1479 --disable-threads disable POSIX threads
1480 --enable-memdebug enable memory debugging
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1486 --with-pic try to use only PIC/non-PIC objects [default=use
1488 --with-tags[=TAGS] include additional configurations [automatic]
1489 --with-docbook-dtd=DIR use docbookx.dtd in DIR
1490 --with-docbook-dsssl=DIR use Docbook DSSSL in DIR/{html,print}/docbook.dsl
1491 --with-docbook-xsl=DIR use Docbook XSL in DIR/{htmlhelp,xhtml}
1492 --with-openssl=PREFIX OpenSSL library in PREFIX
1493 --with-iconv=PREFIX iconv library in PREFIX
1494 --with-xml2[=PREFIX] use libxml2 in PREFIX
1495 --with-xslt[=PREFIX] use libXSLT in PREFIX
1496 --with-exslt[=PREFIX] use libEXSLT in PREFIX
1498 Some influential environment variables:
1499 CC C compiler command
1500 CFLAGS C compiler flags
1501 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1502 nonstandard directory <lib dir>
1503 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1506 CXX C++ compiler command
1507 CXXFLAGS C++ compiler flags
1508 CXXCPP C++ preprocessor
1509 F77 Fortran 77 compiler command
1510 FFLAGS Fortran 77 compiler flags
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1515 Report bugs to <adam@indexdata.dk>.
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" || continue
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1543 .) # We are building in place.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1567 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1576 yaz configure 2.1.28
1577 generated by GNU Autoconf 2.60
1579 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1580 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1586 cat >config.log <<_ACEOF
1587 This file contains any messages produced by compilers while
1588 running configure, to aid debugging if configure makes a mistake.
1590 It was created by yaz $as_me 2.1.28, which was
1591 generated by GNU Autoconf 2.60. Invocation command line was
1603 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1604 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1605 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1606 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1607 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1609 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1610 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1612 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1613 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1614 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1615 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1616 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1617 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1618 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 test -z "$as_dir" && as_dir=.
1627 echo "PATH: $as_dir"
1643 # Keep a trace of the command line.
1644 # Strip out --no-create and --no-recursion so they do not pile up.
1645 # Strip out --silent because we don't want to record it for future runs.
1646 # Also quote any args containing shell meta-characters.
1647 # Make two passes to allow for proper duplicate-argument suppression.
1651 ac_must_keep_next=false
1657 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1659 | -silent | --silent | --silen | --sile | --sil)
1662 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1665 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1667 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1668 if test $ac_must_keep_next = true; then
1669 ac_must_keep_next=false # Got value, back to normal.
1672 *=* | --config-cache | -C | -disable-* | --disable-* \
1673 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1674 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1675 | -with-* | --with-* | -without-* | --without-* | --x)
1676 case "$ac_configure_args0 " in
1677 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1680 -* ) ac_must_keep_next=true ;;
1683 ac_configure_args="$ac_configure_args '$ac_arg'"
1688 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1689 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1691 # When interrupted or exit'd, cleanup temporary files, and complete
1692 # config.log. We remove comments because anyway the quotes in there
1693 # would cause problems or look ugly.
1694 # WARNING: Use '\'' to represent an apostrophe within the trap.
1695 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1696 trap 'exit_status=$?
1697 # Save into config.log some information that might help in debugging.
1702 ## ---------------- ##
1703 ## Cache variables. ##
1704 ## ---------------- ##
1707 # The following way of writing the cache mishandles newlines in values,
1709 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1710 eval ac_val=\$$ac_var
1714 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1715 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1718 _ | IFS | as_nl) ;; #(
1719 *) $as_unset $ac_var ;;
1724 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1725 *${as_nl}ac_space=\ *)
1727 "s/'\''/'\''\\\\'\'''\''/g;
1728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1739 ## ----------------- ##
1740 ## Output variables. ##
1741 ## ----------------- ##
1744 for ac_var in $ac_subst_vars
1746 eval ac_val=\$$ac_var
1748 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750 echo "$ac_var='\''$ac_val'\''"
1754 if test -n "$ac_subst_files"; then
1756 ## ------------------- ##
1757 ## File substitutions. ##
1758 ## ------------------- ##
1761 for ac_var in $ac_subst_files
1763 eval ac_val=\$$ac_var
1765 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1767 echo "$ac_var='\''$ac_val'\''"
1772 if test -s confdefs.h; then
1782 test "$ac_signal" != 0 &&
1783 echo "$as_me: caught signal $ac_signal"
1784 echo "$as_me: exit $exit_status"
1786 rm -f core *.core core.conftest.* &&
1787 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1790 for ac_signal in 1 2 13 15; do
1791 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1796 rm -f -r conftest* confdefs.h
1798 # Predefined preprocessor variables.
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_NAME "$PACKAGE_NAME"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_STRING "$PACKAGE_STRING"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825 # Let the site file select an alternate cache file if it wants to.
1826 # Prefer explicitly selected file to automatically selected ones.
1827 if test -n "$CONFIG_SITE"; then
1828 set x "$CONFIG_SITE"
1829 elif test "x$prefix" != xNONE; then
1830 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1832 set x "$ac_default_prefix/share/config.site" \
1833 "$ac_default_prefix/etc/config.site"
1838 if test -r "$ac_site_file"; then
1839 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1840 echo "$as_me: loading site script $ac_site_file" >&6;}
1841 sed 's/^/| /' "$ac_site_file" >&5
1846 if test -r "$cache_file"; then
1847 # Some versions of bash will fail to source /dev/null (special
1848 # files actually), so we avoid doing that.
1849 if test -f "$cache_file"; then
1850 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1851 echo "$as_me: loading cache $cache_file" >&6;}
1853 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1854 *) . "./$cache_file";;
1858 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1859 echo "$as_me: creating cache $cache_file" >&6;}
1863 # Check that the precious variables saved in the cache have kept the same
1865 ac_cache_corrupted=false
1866 for ac_var in $ac_precious_vars; do
1867 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1868 eval ac_new_set=\$ac_env_${ac_var}_set
1869 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1870 eval ac_new_val=\$ac_env_${ac_var}_value
1871 case $ac_old_set,$ac_new_set in
1873 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1874 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1875 ac_cache_corrupted=: ;;
1877 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1878 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1879 ac_cache_corrupted=: ;;
1882 if test "x$ac_old_val" != "x$ac_new_val"; then
1883 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1884 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1885 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1886 echo "$as_me: former value: $ac_old_val" >&2;}
1887 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1888 echo "$as_me: current value: $ac_new_val" >&2;}
1889 ac_cache_corrupted=:
1892 # Pass precious variables to config.status.
1893 if test "$ac_new_set" = set; then
1895 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1896 *) ac_arg=$ac_var=$ac_new_val ;;
1898 case " $ac_configure_args " in
1899 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1900 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1904 if $ac_cache_corrupted; then
1905 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1906 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1907 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1908 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1909 { (exit 1); exit 1; }; }
1937 ac_cpp='$CPP $CPPFLAGS'
1938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1945 for ac_dir in config "$srcdir"/config; do
1946 if test -f "$ac_dir/install-sh"; then
1948 ac_install_sh="$ac_aux_dir/install-sh -c"
1950 elif test -f "$ac_dir/install.sh"; then
1952 ac_install_sh="$ac_aux_dir/install.sh -c"
1954 elif test -f "$ac_dir/shtool"; then
1956 ac_install_sh="$ac_aux_dir/shtool install -c"
1960 if test -z "$ac_aux_dir"; then
1961 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1962 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1963 { (exit 1); exit 1; }; }
1966 # These three variables are undocumented and unsupported,
1967 # and are intended to be withdrawn in a future Autoconf release.
1968 # They can cause serious problems if a builder's source tree is in a directory
1969 # whose full name contains unusual characters.
1970 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1971 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1972 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1975 am__api_version="1.8"
1976 # Find a good install program. We prefer a C program (faster),
1977 # so one script is as good as another. But avoid the broken or
1978 # incompatible versions:
1979 # SysV /etc/install, /usr/sbin/install
1980 # SunOS /usr/etc/install
1981 # IRIX /sbin/install
1983 # AmigaOS /C/install, which installs bootblocks on floppy discs
1984 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1985 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1986 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1987 # OS/2's system install, which has a completely different semantic
1988 # ./install, which can be erroneously created by make from ./install.sh.
1989 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1990 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1991 if test -z "$INSTALL"; then
1992 if test "${ac_cv_path_install+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir=.
2000 # Account for people who put trailing slashes in PATH elements.
2002 ./ | .// | /cC/* | \
2003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2007 # OSF1 and SCO ODT 3.0 have their own names for install.
2008 # Don't use installbsd from OSF since it installs stuff as root
2010 for ac_prog in ginstall scoinst install; do
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2013 if test $ac_prog = install &&
2014 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # AIX install. It has an incompatible calling convention.
2017 elif test $ac_prog = install &&
2018 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019 # program-specific install script used by HP pwplus--don't use.
2022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2035 if test "${ac_cv_path_install+set}" = set; then
2036 INSTALL=$ac_cv_path_install
2038 # As a last resort, use the slow shell script. Don't cache a
2039 # value for INSTALL within a source directory, because that will
2040 # break other packages using the cache if that directory is
2041 # removed, or if the value is a relative name.
2042 INSTALL=$ac_install_sh
2045 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2046 echo "${ECHO_T}$INSTALL" >&6; }
2048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2049 # It thinks the first close brace ends the variable substitution.
2050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2056 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2057 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2060 echo timestamp > conftest.file
2061 # Do `set' in a subshell so we don't clobber the current shell's
2062 # arguments. Must try -L first in case configure is actually a
2063 # symlink; some systems play weird games with the mod time of symlinks
2064 # (eg FreeBSD returns the mod time of the symlink's containing
2067 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2068 if test "$*" = "X"; then
2070 set X `ls -t $srcdir/configure conftest.file`
2073 if test "$*" != "X $srcdir/configure conftest.file" \
2074 && test "$*" != "X conftest.file $srcdir/configure"; then
2076 # If neither matched, then we have a broken ls. This can happen
2077 # if, for instance, CONFIG_SHELL is bash and it inherits a
2078 # broken ls alias from the environment. This has actually
2079 # happened. Such a system could not be considered "sane".
2080 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2081 alias in your environment" >&5
2082 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2083 alias in your environment" >&2;}
2084 { (exit 1); exit 1; }; }
2087 test "$2" = conftest.file
2093 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2094 Check your system clock" >&5
2095 echo "$as_me: error: newly created file is older than distributed files!
2096 Check your system clock" >&2;}
2097 { (exit 1); exit 1; }; }
2099 { echo "$as_me:$LINENO: result: yes" >&5
2100 echo "${ECHO_T}yes" >&6; }
2101 test "$program_prefix" != NONE &&
2102 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2103 # Use a double $ so make ignores it.
2104 test "$program_suffix" != NONE &&
2105 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2106 # Double any \ or $. echo might interpret backslashes.
2107 # By default was `s,x,x', remove it if useless.
2108 cat <<\_ACEOF >conftest.sed
2109 s/[\\$]/&&/g;s/;s,x,x,$//
2111 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2114 # expand $ac_aux_dir to an absolute path
2115 am_aux_dir=`cd $ac_aux_dir && pwd`
2117 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2118 # Use eval to expand $SHELL
2119 if eval "$MISSING --run true"; then
2120 am_missing_run="$MISSING --run "
2123 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2124 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2127 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2128 # Keeping the `.' argument allows $(mkdir_p) to be used without
2129 # argument. Indeed, we sometimes output rules like
2130 # $(mkdir_p) $(somedir)
2131 # where $(somedir) is conditionally defined.
2132 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2133 # expensive solution, as it forces Make to start a sub-shell.)
2134 mkdir_p='mkdir -p -- .'
2136 # On NextStep and OpenStep, the `mkdir' command does not
2137 # recognize any option. It will interpret all options as
2138 # directories to create, and then abort because `.' already
2140 for d in ./-p ./--version;
2142 test -d $d && rmdir $d
2144 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2145 if test -f "$ac_aux_dir/mkinstalldirs"; then
2146 mkdir_p='$(mkinstalldirs)'
2148 mkdir_p='$(install_sh) -d'
2152 for ac_prog in gawk mawk nawk awk
2154 # Extract the first word of "$ac_prog", so it can be a program name with args.
2155 set dummy $ac_prog; ac_word=$2
2156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158 if test "${ac_cv_prog_AWK+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 if test -n "$AWK"; then
2162 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2171 ac_cv_prog_AWK="$ac_prog"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 if test -n "$AWK"; then
2183 { echo "$as_me:$LINENO: result: $AWK" >&5
2184 echo "${ECHO_T}$AWK" >&6; }
2186 { echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6; }
2191 test -n "$AWK" && break
2194 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2195 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2196 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2197 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2200 cat >conftest.make <<\_ACEOF
2203 @echo '@@@%%%=$(MAKE)=@@@%%%'
2205 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2206 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2208 eval ac_cv_prog_make_${ac_make}_set=yes;;
2210 eval ac_cv_prog_make_${ac_make}_set=no;;
2214 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2215 { echo "$as_me:$LINENO: result: yes" >&5
2216 echo "${ECHO_T}yes" >&6; }
2219 { echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6; }
2221 SET_MAKE="MAKE=${MAKE-make}"
2224 rm -rf .tst 2>/dev/null
2225 mkdir .tst 2>/dev/null
2226 if test -d .tst; then
2231 rmdir .tst 2>/dev/null
2233 # test to see if srcdir already configured
2234 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2235 test -f $srcdir/config.status; then
2236 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2237 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2238 { (exit 1); exit 1; }; }
2241 # test whether we have cygpath
2242 if test -z "$CYGPATH_W"; then
2243 if (cygpath --version) >/dev/null 2>/dev/null; then
2244 CYGPATH_W='cygpath -w'
2251 # Define the identity of the package.
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE "$PACKAGE"
2261 cat >>confdefs.h <<_ACEOF
2262 #define VERSION "$VERSION"
2265 # Some tools Automake needs.
2267 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2270 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2273 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2276 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2279 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2282 AMTAR=${AMTAR-"${am_missing_run}tar"}
2284 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2286 # Installed binaries are usually stripped using `strip' when the user
2287 # run `make install-strip'. However `strip' might not be the right
2288 # tool to use in cross-compilation environments, therefore Automake
2289 # will honor the `STRIP' environment variable to overrule this program.
2290 if test "$cross_compiling" != no; then
2291 if test -n "$ac_tool_prefix"; then
2292 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2293 set dummy ${ac_tool_prefix}strip; ac_word=$2
2294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2296 if test "${ac_cv_prog_STRIP+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 if test -n "$STRIP"; then
2300 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2309 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319 STRIP=$ac_cv_prog_STRIP
2320 if test -n "$STRIP"; then
2321 { echo "$as_me:$LINENO: result: $STRIP" >&5
2322 echo "${ECHO_T}$STRIP" >&6; }
2324 { echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6; }
2330 if test -z "$ac_cv_prog_STRIP"; then
2332 # Extract the first word of "strip", so it can be a program name with args.
2333 set dummy strip; ac_word=$2
2334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 if test -n "$ac_ct_STRIP"; then
2340 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_ac_ct_STRIP="strip"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2359 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2360 if test -n "$ac_ct_STRIP"; then
2361 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2362 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2364 { echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6; }
2368 if test "x$ac_ct_STRIP" = x; then
2371 case $cross_compiling:$ac_tool_warned in
2373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2374 whose name does not start with the host triplet. If you think this
2375 configuration is useful to you, please write to autoconf@gnu.org." >&5
2376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2377 whose name does not start with the host triplet. If you think this
2378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2379 ac_tool_warned=yes ;;
2384 STRIP="$ac_cv_prog_STRIP"
2388 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2390 # We need awk for the "check" target. The system "awk" is bad on
2398 ac_cpp='$CPP $CPPFLAGS'
2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402 if test -n "$ac_tool_prefix"; then
2403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2404 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_CC+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 if test -n "$CC"; then
2411 ac_cv_prog_CC="$CC" # Let the user override the test.
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 if test -n "$CC"; then
2432 { echo "$as_me:$LINENO: result: $CC" >&5
2433 echo "${ECHO_T}$CC" >&6; }
2435 { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2441 if test -z "$ac_cv_prog_CC"; then
2443 # Extract the first word of "gcc", so it can be a program name with args.
2444 set dummy gcc; ac_word=$2
2445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 if test -n "$ac_ct_CC"; then
2451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_ac_ct_CC="gcc"
2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2471 if test -n "$ac_ct_CC"; then
2472 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2473 echo "${ECHO_T}$ac_ct_CC" >&6; }
2475 { echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6; }
2479 if test "x$ac_ct_CC" = x; then
2482 case $cross_compiling:$ac_tool_warned in
2484 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2485 whose name does not start with the host triplet. If you think this
2486 configuration is useful to you, please write to autoconf@gnu.org." >&5
2487 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2488 whose name does not start with the host triplet. If you think this
2489 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2490 ac_tool_warned=yes ;;
2498 if test -z "$CC"; then
2499 if test -n "$ac_tool_prefix"; then
2500 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2501 set dummy ${ac_tool_prefix}cc; ac_word=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_CC+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 if test -n "$CC"; then
2508 ac_cv_prog_CC="$CC" # Let the user override the test.
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2517 ac_cv_prog_CC="${ac_tool_prefix}cc"
2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2528 if test -n "$CC"; then
2529 { echo "$as_me:$LINENO: result: $CC" >&5
2530 echo "${ECHO_T}$CC" >&6; }
2532 { echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6; }
2539 if test -z "$CC"; then
2540 # Extract the first word of "cc", so it can be a program name with args.
2541 set dummy cc; ac_word=$2
2542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2544 if test "${ac_cv_prog_CC+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 if test -n "$CC"; then
2548 ac_cv_prog_CC="$CC" # Let the user override the test.
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2558 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2559 ac_prog_rejected=yes
2563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 if test $ac_prog_rejected = yes; then
2571 # We found a bogon in the path, so make sure we never use it.
2572 set dummy $ac_cv_prog_CC
2574 if test $# != 0; then
2575 # We chose a different compiler from the bogus one.
2576 # However, it has the same basename, so the bogon will be chosen
2577 # first if we set CC to just the basename; use the full file name.
2579 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2585 if test -n "$CC"; then
2586 { echo "$as_me:$LINENO: result: $CC" >&5
2587 echo "${ECHO_T}$CC" >&6; }
2589 { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2595 if test -z "$CC"; then
2596 if test -n "$ac_tool_prefix"; then
2597 for ac_prog in cl.exe
2599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2603 if test "${ac_cv_prog_CC+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 if test -n "$CC"; then
2607 ac_cv_prog_CC="$CC" # Let the user override the test.
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2616 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 if test -n "$CC"; then
2628 { echo "$as_me:$LINENO: result: $CC" >&5
2629 echo "${ECHO_T}$CC" >&6; }
2631 { echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6; }
2636 test -n "$CC" && break
2639 if test -z "$CC"; then
2641 for ac_prog in cl.exe
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 if test -n "$ac_ct_CC"; then
2651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_prog_ac_ct_CC="$ac_prog"
2661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2671 if test -n "$ac_ct_CC"; then
2672 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2673 echo "${ECHO_T}$ac_ct_CC" >&6; }
2675 { echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6; }
2680 test -n "$ac_ct_CC" && break
2683 if test "x$ac_ct_CC" = x; then
2686 case $cross_compiling:$ac_tool_warned in
2688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2689 whose name does not start with the host triplet. If you think this
2690 configuration is useful to you, please write to autoconf@gnu.org." >&5
2691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2692 whose name does not start with the host triplet. If you think this
2693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2694 ac_tool_warned=yes ;;
2703 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2704 See \`config.log' for more details." >&5
2705 echo "$as_me: error: no acceptable C compiler found in \$PATH
2706 See \`config.log' for more details." >&2;}
2707 { (exit 1); exit 1; }; }
2709 # Provide some information about the compiler.
2710 echo "$as_me:$LINENO: checking for C compiler version" >&5
2711 ac_compiler=`set X $ac_compile; echo $2`
2712 { (ac_try="$ac_compiler --version >&5"
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler --version >&5") 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
2722 { (ac_try="$ac_compiler -v >&5"
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -v >&5") 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
2732 { (ac_try="$ac_compiler -V >&5"
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compiler -V >&5") 2>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
2743 cat >conftest.$ac_ext <<_ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2758 ac_clean_files_save=$ac_clean_files
2759 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2760 # Try to create an executable without -o first, disregard a.out.
2761 # It will help us diagnose broken compilers, and finding out an intuition
2763 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2764 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2765 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2767 # List of possible output files, starting from the most likely.
2768 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2769 # only as a last resort. b.out is created by i960 compilers.
2770 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2772 # The IRIX 6 linker writes into existing files which may not be
2773 # executable, retaining their permissions. Remove them first so a
2774 # subsequent execution test works.
2776 for ac_file in $ac_files
2779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2780 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2785 if { (ac_try="$ac_link_default"
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791 (eval "$ac_link_default") 2>&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; then
2795 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2796 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2797 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2798 # so that the user can short-circuit this test for compilers unknown to
2800 for ac_file in $ac_files
2802 test -f "$ac_file" || continue
2804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2807 # We found the default executable, but exeext='' is most
2811 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2813 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2815 # We set ac_cv_exeext here because the later test for it is not
2816 # safe: cross compilers may not add the suffix if given an `-o'
2817 # argument, so we may need to know it at that point already.
2818 # Even if this section looks crufty: it has the advantage of
2825 test "$ac_cv_exeext" = no && ac_cv_exeext=
2828 echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2831 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2832 See \`config.log' for more details." >&5
2833 echo "$as_me: error: C compiler cannot create executables
2834 See \`config.log' for more details." >&2;}
2835 { (exit 77); exit 77; }; }
2838 ac_exeext=$ac_cv_exeext
2839 { echo "$as_me:$LINENO: result: $ac_file" >&5
2840 echo "${ECHO_T}$ac_file" >&6; }
2842 # Check that the compiler produces executables we can run. If not, either
2843 # the compiler is broken, or we cross compile.
2844 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2845 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2846 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2847 # If not cross compiling, check that we can run a simple program.
2848 if test "$cross_compiling" != yes; then
2849 if { ac_try='./$ac_file'
2850 { (case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_try") 2>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2861 if test "$cross_compiling" = maybe; then
2864 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2865 If you meant to cross compile, use \`--host'.
2866 See \`config.log' for more details." >&5
2867 echo "$as_me: error: cannot run C compiled programs.
2868 If you meant to cross compile, use \`--host'.
2869 See \`config.log' for more details." >&2;}
2870 { (exit 1); exit 1; }; }
2874 { echo "$as_me:$LINENO: result: yes" >&5
2875 echo "${ECHO_T}yes" >&6; }
2877 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2878 ac_clean_files=$ac_clean_files_save
2879 # Check that the compiler produces executables we can run. If not, either
2880 # the compiler is broken, or we cross compile.
2881 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2882 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2883 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2884 echo "${ECHO_T}$cross_compiling" >&6; }
2886 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2887 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2888 if { (ac_try="$ac_link"
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_link") 2>&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; then
2898 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2899 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2900 # work properly (i.e., refer to `conftest.exe'), while it won't with
2902 for ac_file in conftest.exe conftest conftest.*; do
2903 test -f "$ac_file" || continue
2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2906 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2912 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2913 See \`config.log' for more details." >&5
2914 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2915 See \`config.log' for more details." >&2;}
2916 { (exit 1); exit 1; }; }
2919 rm -f conftest$ac_cv_exeext
2920 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2921 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2923 rm -f conftest.$ac_ext
2924 EXEEXT=$ac_cv_exeext
2926 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2927 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2928 if test "${ac_cv_objext+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 cat >conftest.$ac_ext <<_ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2946 rm -f conftest.o conftest.obj
2947 if { (ac_try="$ac_compile"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; then
2957 for ac_file in conftest.o conftest.obj conftest.*; do
2958 test -f "$ac_file" || continue;
2960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2961 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2969 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2970 See \`config.log' for more details." >&5
2971 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2972 See \`config.log' for more details." >&2;}
2973 { (exit 1); exit 1; }; }
2976 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2978 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2979 echo "${ECHO_T}$ac_cv_objext" >&6; }
2980 OBJEXT=$ac_cv_objext
2982 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2983 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2984 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 cat >conftest.$ac_ext <<_ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3014 grep -v '^ *+' conftest.er1 >conftest.err
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3051 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3052 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3053 GCC=`test $ac_compiler_gnu = yes && echo yes`
3054 ac_test_CFLAGS=${CFLAGS+set}
3055 ac_save_CFLAGS=$CFLAGS
3056 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3058 if test "${ac_cv_prog_cc_g+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 ac_save_c_werror_flag=$ac_c_werror_flag
3062 ac_c_werror_flag=yes
3065 cat >conftest.$ac_ext <<_ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3144 grep -v '^ *+' conftest.er1 >conftest.err
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3174 ac_c_werror_flag=$ac_save_c_werror_flag
3176 cat >conftest.$ac_ext <<_ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3191 rm -f conftest.$ac_objext
3192 if { (ac_try="$ac_compile"
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_compile") 2>conftest.er1
3200 grep -v '^ *+' conftest.er1 >conftest.err
3202 cat conftest.err >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } &&
3205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; } &&
3215 { ac_try='test -s conftest.$ac_objext'
3216 { (case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_try") 2>&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; }; then
3227 echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 ac_c_werror_flag=$ac_save_c_werror_flag
3242 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3243 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3244 if test "$ac_test_CFLAGS" = set; then
3245 CFLAGS=$ac_save_CFLAGS
3246 elif test $ac_cv_prog_cc_g = yes; then
3247 if test "$GCC" = yes; then
3253 if test "$GCC" = yes; then
3259 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3260 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3261 if test "${ac_cv_prog_cc_c89+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 ac_cv_prog_cc_c89=no
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3274 #include <sys/types.h>
3275 #include <sys/stat.h>
3276 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3277 struct buf { int x; };
3278 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3279 static char *e (p, i)
3285 static char *f (char * (*g) (char **, int), char **p, ...)
3290 s = g (p, va_arg (v,int));
3295 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3296 function prototypes and stuff, but not '\xHH' hex character constants.
3297 These don't provoke an error unfortunately, instead are silently treated
3298 as 'x'. The following induces an error, until -std is added to get
3299 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3300 array size at least. It's necessary to write '\x00'==0 to get something
3301 that's true only with -std. */
3302 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3304 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3305 inside strings and character constants. */
3307 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3309 int test (int i, double x);
3310 struct s1 {int (*f) (int a);};
3311 struct s2 {int (*f) (double a);};
3312 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3318 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3323 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3324 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3326 CC="$ac_save_CC $ac_arg"
3327 rm -f conftest.$ac_objext
3328 if { (ac_try="$ac_compile"
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_compile") 2>conftest.er1
3336 grep -v '^ *+' conftest.er1 >conftest.err
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; } &&
3351 { ac_try='test -s conftest.$ac_objext'
3352 { (case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_try") 2>&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; }; then
3361 ac_cv_prog_cc_c89=$ac_arg
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3369 rm -f core conftest.err conftest.$ac_objext
3370 test "x$ac_cv_prog_cc_c89" != "xno" && break
3372 rm -f conftest.$ac_ext
3377 case "x$ac_cv_prog_cc_c89" in
3379 { echo "$as_me:$LINENO: result: none needed" >&5
3380 echo "${ECHO_T}none needed" >&6; } ;;
3382 { echo "$as_me:$LINENO: result: unsupported" >&5
3383 echo "${ECHO_T}unsupported" >&6; } ;;
3385 CC="$CC $ac_cv_prog_cc_c89"
3386 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3387 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396 DEPDIR="${am__leading_dot}deps"
3398 ac_config_commands="$ac_config_commands depfiles"
3401 am_make=${MAKE-make}
3402 cat > confinc << 'END'
3407 # If we don't find an include directive, just comment out the code.
3408 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3409 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3413 # First try GNU make style include.
3414 echo "include confinc" > confmf
3415 # We grep out `Entering directory' and `Leaving directory'
3416 # messages which can occur if `w' ends up in MAKEFLAGS.
3417 # In particular we don't look at `^make:' because GNU make might
3418 # be invoked under some other name (usually "gmake"), in which
3419 # case it prints its new name instead of `make'.
3420 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3425 # Now try BSD make style include.
3426 if test "$am__include" = "#"; then
3427 echo '.include "confinc"' > confmf
3428 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3429 am__include=.include
3436 { echo "$as_me:$LINENO: result: $_am_result" >&5
3437 echo "${ECHO_T}$_am_result" >&6; }
3438 rm -f confinc confmf
3440 # Check whether --enable-dependency-tracking was given.
3441 if test "${enable_dependency_tracking+set}" = set; then
3442 enableval=$enable_dependency_tracking;
3445 if test "x$enable_dependency_tracking" != xno; then
3446 am_depcomp="$ac_aux_dir/depcomp"
3451 if test "x$enable_dependency_tracking" != xno; then
3462 depcc="$CC" am_compiler_list=
3464 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3465 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3466 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3470 # We make a subdir and do the tests there. Otherwise we can end up
3471 # making bogus files that we don't know about and never remove. For
3472 # instance it was reported that on HP-UX the gcc test will end up
3473 # making a dummy file named `D' -- because `-MD' means `put the output
3476 # Copy depcomp to subdir because otherwise we won't find it if we're
3477 # using a relative directory.
3478 cp "$am_depcomp" conftest.dir
3480 # We will build objects and dependencies in a subdirectory because
3481 # it helps to detect inapplicable dependency modes. For instance
3482 # both Tru64's cc and ICC support -MD to output dependencies as a
3483 # side effect of compilation, but ICC will put the dependencies in
3484 # the current directory while Tru64 will put them in the object
3488 am_cv_CC_dependencies_compiler_type=none
3489 if test "$am_compiler_list" = ""; then
3490 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3492 for depmode in $am_compiler_list; do
3493 # Setup a source with many dependencies, because some compilers
3494 # like to wrap large dependency lists on column 80 (with \), and
3495 # we should not choose a depcomp mode which is confused by this.
3497 # We need to recreate these files for each test, as the compiler may
3498 # overwrite some of them when testing with obscure command lines.
3499 # This happens at least with the AIX C compiler.
3501 for i in 1 2 3 4 5 6; do
3502 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3503 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3504 # Solaris 8's {/usr,}/bin/sh.
3505 touch sub/conftst$i.h
3507 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3511 # after this tag, mechanisms are not by side-effect, so they'll
3512 # only be used when explicitly requested
3513 if test "x$enable_dependency_tracking" = xyes; then
3521 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3522 # mode. It turns out that the SunPro C++ compiler does not properly
3523 # handle `-M -o', and we need to detect this.
3524 if depmode=$depmode \
3525 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3526 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3527 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3528 >/dev/null 2>conftest.err &&
3529 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3530 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3531 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3532 # icc doesn't choke on unknown options, it will just issue warnings
3533 # or remarks (even with -Werror). So we grep stderr for any message
3534 # that says an option was ignored or not supported.
3535 # When given -MP, icc 7.0 and 7.1 complain thusly:
3536 # icc: Command line warning: ignoring option '-M'; no argument required
3537 # The diagnosis changed in icc 8.0:
3538 # icc: Command line remark: option '-MP' not supported
3539 if (grep 'ignoring option' conftest.err ||
3540 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3541 am_cv_CC_dependencies_compiler_type=$depmode
3550 am_cv_CC_dependencies_compiler_type=none
3554 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3555 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3556 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3561 test "x$enable_dependency_tracking" != xno \
3562 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3564 am__fastdepCC_FALSE='#'
3566 am__fastdepCC_TRUE='#'
3567 am__fastdepCC_FALSE=
3572 ac_cpp='$CPP $CPPFLAGS'
3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3577 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3578 # On Suns, sometimes $CPP names a directory.
3579 if test -n "$CPP" && test -d "$CPP"; then
3582 if test -z "$CPP"; then
3583 if test "${ac_cv_prog_CPP+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 # Double quotes because CPP needs to be expanded
3587 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3590 for ac_c_preproc_warn_flag in '' yes
3592 # Use a header file that comes with gcc, so configuring glibc
3593 # with a fresh cross-compiler works.
3594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3595 # <limits.h> exists even on freestanding compilers.
3596 # On the NeXT, cc -E runs the code through the compiler's parser,
3597 # not just through cpp. "Syntax error" is here to catch this case.
3598 cat >conftest.$ac_ext <<_ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3605 # include <limits.h>
3607 # include <assert.h>
3611 if { (ac_try="$ac_cpp conftest.$ac_ext"
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3619 grep -v '^ *+' conftest.er1 >conftest.err
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } >/dev/null; then
3624 if test -s conftest.err; then
3625 ac_cpp_err=$ac_c_preproc_warn_flag
3626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3633 if test -z "$ac_cpp_err"; then
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 # Broken: fails on valid input.
3643 rm -f conftest.err conftest.$ac_ext
3645 # OK, works on sane cases. Now check whether nonexistent headers
3646 # can be detected and how.
3647 cat >conftest.$ac_ext <<_ACEOF
3650 cat confdefs.h >>conftest.$ac_ext
3651 cat >>conftest.$ac_ext <<_ACEOF
3652 /* end confdefs.h. */
3653 #include <ac_nonexistent.h>
3655 if { (ac_try="$ac_cpp conftest.$ac_ext"
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3663 grep -v '^ *+' conftest.er1 >conftest.err
3665 cat conftest.err >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } >/dev/null; then
3668 if test -s conftest.err; then
3669 ac_cpp_err=$ac_c_preproc_warn_flag
3670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3677 if test -z "$ac_cpp_err"; then
3678 # Broken: success on invalid input.
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 # Passes both tests.
3689 rm -f conftest.err conftest.$ac_ext
3692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3693 rm -f conftest.err conftest.$ac_ext
3694 if $ac_preproc_ok; then
3706 { echo "$as_me:$LINENO: result: $CPP" >&5
3707 echo "${ECHO_T}$CPP" >&6; }
3709 for ac_c_preproc_warn_flag in '' yes
3711 # Use a header file that comes with gcc, so configuring glibc
3712 # with a fresh cross-compiler works.
3713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3714 # <limits.h> exists even on freestanding compilers.
3715 # On the NeXT, cc -E runs the code through the compiler's parser,
3716 # not just through cpp. "Syntax error" is here to catch this case.
3717 cat >conftest.$ac_ext <<_ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h. */
3724 # include <limits.h>
3726 # include <assert.h>
3730 if { (ac_try="$ac_cpp conftest.$ac_ext"
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3738 grep -v '^ *+' conftest.er1 >conftest.err
3740 cat conftest.err >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } >/dev/null; then
3743 if test -s conftest.err; then
3744 ac_cpp_err=$ac_c_preproc_warn_flag
3745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3752 if test -z "$ac_cpp_err"; then
3755 echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3758 # Broken: fails on valid input.
3762 rm -f conftest.err conftest.$ac_ext
3764 # OK, works on sane cases. Now check whether nonexistent headers
3765 # can be detected and how.
3766 cat >conftest.$ac_ext <<_ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3772 #include <ac_nonexistent.h>
3774 if { (ac_try="$ac_cpp conftest.$ac_ext"
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3782 grep -v '^ *+' conftest.er1 >conftest.err
3784 cat conftest.err >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } >/dev/null; then
3787 if test -s conftest.err; then
3788 ac_cpp_err=$ac_c_preproc_warn_flag
3789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3796 if test -z "$ac_cpp_err"; then
3797 # Broken: success on invalid input.
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3803 # Passes both tests.
3808 rm -f conftest.err conftest.$ac_ext
3811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3812 rm -f conftest.err conftest.$ac_ext
3813 if $ac_preproc_ok; then
3816 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3817 See \`config.log' for more details." >&5
3818 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3819 See \`config.log' for more details." >&2;}
3820 { (exit 1); exit 1; }; }
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829 for ac_prog in 'bison -y'
3831 # Extract the first word of "$ac_prog", so it can be a program name with args.
3832 set dummy $ac_prog; ac_word=$2
3833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3835 if test "${ac_cv_prog_YACC+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 if test -n "$YACC"; then
3839 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3848 ac_cv_prog_YACC="$ac_prog"
3849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 YACC=$ac_cv_prog_YACC
3859 if test -n "$YACC"; then
3860 { echo "$as_me:$LINENO: result: $YACC" >&5
3861 echo "${ECHO_T}$YACC" >&6; }
3863 { echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6; }
3868 test -n "$YACC" && break
3871 test -z "$YACC" && { echo "$as_me:$LINENO: WARNING: GNU bison not found" >&5
3872 echo "$as_me: WARNING: GNU bison not found" >&2;}
3873 for ac_prog in tclsh8.5 tclsh8.4 tclsh8.3 tclsh8.2
3875 # Extract the first word of "$ac_prog", so it can be a program name with args.
3876 set dummy $ac_prog; ac_word=$2
3877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3879 if test "${ac_cv_prog_TCLSH+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 if test -n "$TCLSH"; then
3883 ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3892 ac_cv_prog_TCLSH="$ac_prog"
3893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 TCLSH=$ac_cv_prog_TCLSH
3903 if test -n "$TCLSH"; then
3904 { echo "$as_me:$LINENO: result: $TCLSH" >&5
3905 echo "${ECHO_T}$TCLSH" >&6; }
3907 { echo "$as_me:$LINENO: result: no" >&5
3908 echo "${ECHO_T}no" >&6; }
3912 test -n "$TCLSH" && break
3914 test -n "$TCLSH" || TCLSH="tclsh"
3916 # Find a good install program. We prefer a C program (faster),
3917 # so one script is as good as another. But avoid the broken or
3918 # incompatible versions:
3919 # SysV /etc/install, /usr/sbin/install
3920 # SunOS /usr/etc/install
3921 # IRIX /sbin/install
3923 # AmigaOS /C/install, which installs bootblocks on floppy discs
3924 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3925 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3926 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3927 # OS/2's system install, which has a completely different semantic
3928 # ./install, which can be erroneously created by make from ./install.sh.
3929 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3930 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3931 if test -z "$INSTALL"; then
3932 if test "${ac_cv_path_install+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 test -z "$as_dir" && as_dir=.
3940 # Account for people who put trailing slashes in PATH elements.
3942 ./ | .// | /cC/* | \
3943 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3944 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3947 # OSF1 and SCO ODT 3.0 have their own names for install.
3948 # Don't use installbsd from OSF since it installs stuff as root
3950 for ac_prog in ginstall scoinst install; do
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
3953 if test $ac_prog = install &&
3954 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3955 # AIX install. It has an incompatible calling convention.
3957 elif test $ac_prog = install &&
3958 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3959 # program-specific install script used by HP pwplus--don't use.
3962 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3975 if test "${ac_cv_path_install+set}" = set; then
3976 INSTALL=$ac_cv_path_install
3978 # As a last resort, use the slow shell script. Don't cache a
3979 # value for INSTALL within a source directory, because that will
3980 # break other packages using the cache if that directory is
3981 # removed, or if the value is a relative name.
3982 INSTALL=$ac_install_sh
3985 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3986 echo "${ECHO_T}$INSTALL" >&6; }
3988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3989 # It thinks the first close brace ends the variable substitution.
3990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3994 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3996 # Check whether --enable-shared was given.
3997 if test "${enable_shared+set}" = set; then
3998 enableval=$enable_shared; p=${PACKAGE-default}
4000 yes) enable_shared=yes ;;
4001 no) enable_shared=no ;;
4004 # Look at the argument we got. We use all the common list separators.
4005 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4006 for pkg in $enableval; do
4008 if test "X$pkg" = "X$p"; then
4020 # Check whether --enable-static was given.
4021 if test "${enable_static+set}" = set; then
4022 enableval=$enable_static; p=${PACKAGE-default}
4024 yes) enable_static=yes ;;
4025 no) enable_static=no ;;
4028 # Look at the argument we got. We use all the common list separators.
4029 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4030 for pkg in $enableval; do
4032 if test "X$pkg" = "X$p"; then
4044 # Check whether --enable-fast-install was given.
4045 if test "${enable_fast_install+set}" = set; then
4046 enableval=$enable_fast_install; p=${PACKAGE-default}
4048 yes) enable_fast_install=yes ;;
4049 no) enable_fast_install=no ;;
4051 enable_fast_install=no
4052 # Look at the argument we got. We use all the common list separators.
4053 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4054 for pkg in $enableval; do
4056 if test "X$pkg" = "X$p"; then
4057 enable_fast_install=yes
4064 enable_fast_install=yes
4068 # Make sure we can run config.sub.
4069 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4070 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4071 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4072 { (exit 1); exit 1; }; }
4074 { echo "$as_me:$LINENO: checking build system type" >&5
4075 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4076 if test "${ac_cv_build+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 ac_build_alias=$build_alias
4080 test "x$ac_build_alias" = x &&
4081 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4082 test "x$ac_build_alias" = x &&
4083 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4084 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4085 { (exit 1); exit 1; }; }
4086 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4087 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4088 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4089 { (exit 1); exit 1; }; }
4092 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4093 echo "${ECHO_T}$ac_cv_build" >&6; }
4094 case $ac_cv_build in
4096 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4097 echo "$as_me: error: invalid value of canonical build" >&2;}
4098 { (exit 1); exit 1; }; };;
4101 ac_save_IFS=$IFS; IFS='-'
4107 # Remember, the first character of IFS is used to create $*,
4108 # except with old shells:
4111 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4114 { echo "$as_me:$LINENO: checking host system type" >&5
4115 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4116 if test "${ac_cv_host+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 if test "x$host_alias" = x; then
4120 ac_cv_host=$ac_cv_build
4122 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4123 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4124 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4125 { (exit 1); exit 1; }; }
4129 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4130 echo "${ECHO_T}$ac_cv_host" >&6; }
4133 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4134 echo "$as_me: error: invalid value of canonical host" >&2;}
4135 { (exit 1); exit 1; }; };;
4138 ac_save_IFS=$IFS; IFS='-'
4144 # Remember, the first character of IFS is used to create $*,
4145 # except with old shells:
4148 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4151 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4152 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4153 if test "${lt_cv_path_SED+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 # Loop through the user's path and test for sed and gsed.
4157 # Then use that list of sed's as ones to test for truncation.
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 test -z "$as_dir" && as_dir=.
4163 for lt_ac_prog in sed gsed; do
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4166 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4173 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4174 # along with /bin/sed that truncates output.
4175 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4176 test ! -f $lt_ac_sed && continue
4177 cat /dev/null > conftest.in
4179 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4180 # Check for GNU sed and select it if it is found.
4181 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4182 lt_cv_path_SED=$lt_ac_sed
4186 cat conftest.in conftest.in >conftest.tmp
4187 mv conftest.tmp conftest.in
4188 cp conftest.in conftest.nl
4190 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4191 cmp -s conftest.out conftest.nl || break
4192 # 10000 chars as input seems more than enough
4193 test $lt_ac_count -gt 10 && break
4194 lt_ac_count=`expr $lt_ac_count + 1`
4195 if test $lt_ac_count -gt $lt_ac_max; then
4196 lt_ac_max=$lt_ac_count
4197 lt_cv_path_SED=$lt_ac_sed
4205 { echo "$as_me:$LINENO: result: $SED" >&5
4206 echo "${ECHO_T}$SED" >&6; }
4208 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4209 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4210 if test "${ac_cv_path_GREP+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 # Extract the first word of "grep ggrep" to use in msg output
4214 if test -z "$GREP"; then
4215 set dummy grep ggrep; ac_prog_name=$2
4216 if test "${ac_cv_path_GREP+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 ac_path_GREP_found=false
4220 # Loop through the user's path and test for each of PROGNAME-LIST
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4225 test -z "$as_dir" && as_dir=.
4226 for ac_prog in grep ggrep; do
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4229 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4230 # Check for GNU ac_path_GREP and select it if it is found.
4231 # Check for GNU $ac_path_GREP
4232 case `"$ac_path_GREP" --version 2>&1` in
4234 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4237 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4240 cat "conftest.in" "conftest.in" >"conftest.tmp"
4241 mv "conftest.tmp" "conftest.in"
4242 cp "conftest.in" "conftest.nl"
4243 echo 'GREP' >> "conftest.nl"
4244 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246 ac_count=`expr $ac_count + 1`
4247 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4248 # Best one so far, save it but keep looking for a better one
4249 ac_cv_path_GREP="$ac_path_GREP"
4250 ac_path_GREP_max=$ac_count
4252 # 10*(2^10) chars as input seems more than enough
4253 test $ac_count -gt 10 && break
4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4259 $ac_path_GREP_found && break 3
4269 GREP="$ac_cv_path_GREP"
4270 if test -z "$GREP"; then
4271 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4272 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4273 { (exit 1); exit 1; }; }
4277 ac_cv_path_GREP=$GREP
4282 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4283 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4284 GREP="$ac_cv_path_GREP"
4287 { echo "$as_me:$LINENO: checking for egrep" >&5
4288 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4289 if test "${ac_cv_path_EGREP+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4293 then ac_cv_path_EGREP="$GREP -E"
4295 # Extract the first word of "egrep" to use in msg output
4296 if test -z "$EGREP"; then
4297 set dummy egrep; ac_prog_name=$2
4298 if test "${ac_cv_path_EGREP+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 ac_path_EGREP_found=false
4302 # Loop through the user's path and test for each of PROGNAME-LIST
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4307 test -z "$as_dir" && as_dir=.
4308 for ac_prog in egrep; do
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4311 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4312 # Check for GNU ac_path_EGREP and select it if it is found.
4313 # Check for GNU $ac_path_EGREP
4314 case `"$ac_path_EGREP" --version 2>&1` in
4316 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4319 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4322 cat "conftest.in" "conftest.in" >"conftest.tmp"
4323 mv "conftest.tmp" "conftest.in"
4324 cp "conftest.in" "conftest.nl"
4325 echo 'EGREP' >> "conftest.nl"
4326 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4328 ac_count=`expr $ac_count + 1`
4329 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4330 # Best one so far, save it but keep looking for a better one
4331 ac_cv_path_EGREP="$ac_path_EGREP"
4332 ac_path_EGREP_max=$ac_count
4334 # 10*(2^10) chars as input seems more than enough
4335 test $ac_count -gt 10 && break
4337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4341 $ac_path_EGREP_found && break 3
4351 EGREP="$ac_cv_path_EGREP"
4352 if test -z "$EGREP"; then
4353 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4354 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4355 { (exit 1); exit 1; }; }
4359 ac_cv_path_EGREP=$EGREP
4365 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4366 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4367 EGREP="$ac_cv_path_EGREP"
4371 # Check whether --with-gnu-ld was given.
4372 if test "${with_gnu_ld+set}" = set; then
4373 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4379 if test "$GCC" = yes; then
4380 # Check if gcc -print-prog-name=ld gives a path.
4381 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4382 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4385 # gcc leaves a trailing carriage return which upsets mingw
4386 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4388 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4391 # Accept absolute paths.
4393 re_direlt='/[^/][^/]*/\.\./'
4394 # Canonicalize the pathname of ld
4395 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4396 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4397 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4399 test -z "$LD" && LD="$ac_prog"
4402 # If it fails, then pretend we aren't using GCC.
4406 # If it is relative, then search for the first ld in PATH.
4410 elif test "$with_gnu_ld" = yes; then
4411 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4412 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4414 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4415 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4417 if test "${lt_cv_path_LD+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 if test -z "$LD"; then
4421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4422 for ac_dir in $PATH; do
4424 test -z "$ac_dir" && ac_dir=.
4425 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4426 lt_cv_path_LD="$ac_dir/$ac_prog"
4427 # Check to see if the program is GNU ld. I'd rather use --version,
4428 # but apparently some variants of GNU ld only accept -v.
4429 # Break only if it was the GNU/non-GNU ld that we prefer.
4430 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4431 *GNU* | *'with BFD'*)
4432 test "$with_gnu_ld" != no && break
4435 test "$with_gnu_ld" != yes && break
4442 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4447 if test -n "$LD"; then
4448 { echo "$as_me:$LINENO: result: $LD" >&5
4449 echo "${ECHO_T}$LD" >&6; }
4451 { echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6; }
4454 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4455 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4456 { (exit 1); exit 1; }; }
4457 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4458 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4459 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4463 case `$LD -v 2>&1 </dev/null` in
4464 *GNU* | *'with BFD'*)
4465 lt_cv_prog_gnu_ld=yes
4468 lt_cv_prog_gnu_ld=no
4472 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4473 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4474 with_gnu_ld=$lt_cv_prog_gnu_ld
4477 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4478 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4479 if test "${lt_cv_ld_reload_flag+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 lt_cv_ld_reload_flag='-r'
4484 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4485 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4486 reload_flag=$lt_cv_ld_reload_flag
4487 case $reload_flag in
4489 *) reload_flag=" $reload_flag" ;;
4491 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4494 if test "$GCC" = yes; then
4495 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4497 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4502 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4503 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4504 if test "${lt_cv_path_NM+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 if test -n "$NM"; then
4508 # Let the user override the test.
4511 lt_nm_to_check="${ac_tool_prefix}nm"
4512 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4513 lt_nm_to_check="$lt_nm_to_check nm"
4515 for lt_tmp_nm in $lt_nm_to_check; do
4516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4517 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4519 test -z "$ac_dir" && ac_dir=.
4520 tmp_nm="$ac_dir/$lt_tmp_nm"
4521 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4522 # Check to see if the nm accepts a BSD-compat flag.
4523 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4524 # nm: unknown option "B" ignored
4525 # Tru64's nm complains that /dev/null is an invalid object file
4526 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4527 */dev/null* | *'Invalid file or object type'*)
4528 lt_cv_path_NM="$tmp_nm -B"
4532 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4534 lt_cv_path_NM="$tmp_nm -p"
4538 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4539 continue # so that we can try to find one that supports BSD flags
4548 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4551 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4552 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4555 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4556 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4558 if test "$LN_S" = "ln -s"; then
4559 { echo "$as_me:$LINENO: result: yes" >&5
4560 echo "${ECHO_T}yes" >&6; }
4562 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4563 echo "${ECHO_T}no, using $LN_S" >&6; }
4566 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4567 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4568 if test "${lt_cv_deplibs_check_method+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 lt_cv_file_magic_cmd='$MAGIC_CMD'
4572 lt_cv_file_magic_test_file=
4573 lt_cv_deplibs_check_method='unknown'
4574 # Need to set the preceding variable on all platforms that support
4575 # interlibrary dependencies.
4576 # 'none' -- dependencies not supported.
4577 # `unknown' -- same as none, but documents that we really don't know.
4578 # 'pass_all' -- all dependencies passed with no checks.
4579 # 'test_compile' -- check by making test program.
4580 # 'file_magic [[regex]]' -- check by looking for files in library path
4581 # which responds to the $file_magic_cmd with a given extended regex.
4582 # If you have `file' or equivalent on your system and you're not sure
4583 # whether `pass_all' will *always* work, you probably want this one.
4587 lt_cv_deplibs_check_method=pass_all
4591 lt_cv_deplibs_check_method=pass_all
4595 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4596 lt_cv_file_magic_cmd='/usr/bin/file -L'
4597 lt_cv_file_magic_test_file=/shlib/libc.so
4601 # func_win32_libid is a shell function defined in ltmain.sh
4602 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4603 lt_cv_file_magic_cmd='func_win32_libid'
4607 # Base MSYS/MinGW do not provide the 'file' command needed by
4608 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4609 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4610 lt_cv_file_magic_cmd='$OBJDUMP -f'
4613 darwin* | rhapsody*)
4614 lt_cv_deplibs_check_method=pass_all
4617 freebsd* | dragonfly*)
4618 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4621 # Not sure whether the presence of OpenBSD here was a mistake.
4622 # Let's accept both of them until this is cleared up.
4623 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4624 lt_cv_file_magic_cmd=/usr/bin/file
4625 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4629 lt_cv_deplibs_check_method=pass_all
4634 lt_cv_deplibs_check_method=pass_all
4637 hpux10.20* | hpux11*)
4638 lt_cv_file_magic_cmd=/usr/bin/file
4641 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4642 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4645 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]'
4646 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4649 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4650 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4656 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4660 irix5* | irix6* | nonstopux*)
4662 *-32|*"-32 ") libmagic=32-bit;;
4663 *-n32|*"-n32 ") libmagic=N32;;
4664 *-64|*"-64 ") libmagic=64-bit;;
4665 *) libmagic=never-match;;
4667 lt_cv_deplibs_check_method=pass_all
4670 # This must be Linux ELF.
4671 linux* | k*bsd*-gnu)
4672 lt_cv_deplibs_check_method=pass_all
4675 netbsd* | netbsdelf*-gnu)
4676 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4685 lt_cv_file_magic_cmd=/usr/bin/file
4686 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4690 lt_cv_deplibs_check_method=unknown
4694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4697 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4701 osf3* | osf4* | osf5*)
4702 lt_cv_deplibs_check_method=pass_all
4706 lt_cv_deplibs_check_method=pass_all
4710 case $host_vendor in
4712 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]'
4713 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4716 lt_cv_deplibs_check_method=pass_all
4719 lt_cv_file_magic_cmd='/bin/file'
4720 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4723 lt_cv_file_magic_cmd='/bin/file'
4724 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4725 lt_cv_file_magic_test_file=/lib/libc.so
4728 lt_cv_deplibs_check_method=pass_all
4731 lt_cv_deplibs_check_method=pass_all
4736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4737 lt_cv_deplibs_check_method=pass_all
4742 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4743 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4744 file_magic_cmd=$lt_cv_file_magic_cmd
4745 deplibs_check_method=$lt_cv_deplibs_check_method
4746 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4751 # If no C compiler was specified, use CC.
4754 # If no C compiler flags were specified, use CFLAGS.
4755 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4757 # Allow CC to be a program name with arguments.
4761 # Check whether --enable-libtool-lock was given.
4762 if test "${enable_libtool_lock+set}" = set; then
4763 enableval=$enable_libtool_lock;
4766 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4768 # Some flags need to be propagated to the compiler or linker for good
4772 # Find out which ABI we are using.
4773 echo 'int i;' > conftest.$ac_ext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; then
4779 case `/usr/bin/file conftest.$ac_objext` in
4791 # Find out which ABI we are using.
4792 echo '#line 4792 "configure"' > conftest.$ac_ext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; then
4798 if test "$lt_cv_prog_gnu_ld" = yes; then
4799 case `/usr/bin/file conftest.$ac_objext` in
4801 LD="${LD-ld} -melf32bsmip"
4804 LD="${LD-ld} -melf32bmipn32"
4807 LD="${LD-ld} -melf64bmip"
4811 case `/usr/bin/file conftest.$ac_objext` in
4827 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4828 # Find out which ABI we are using.
4829 echo 'int i;' > conftest.$ac_ext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; then
4835 case `/usr/bin/file conftest.o` in
4839 LD="${LD-ld} -m elf_i386"
4841 ppc64-*linux*|powerpc64-*linux*)
4842 LD="${LD-ld} -m elf32ppclinux"
4845 LD="${LD-ld} -m elf_s390"
4848 LD="${LD-ld} -m elf32_sparc"
4855 LD="${LD-ld} -m elf_x86_64"
4857 ppc*-*linux*|powerpc*-*linux*)
4858 LD="${LD-ld} -m elf64ppc"
4861 LD="${LD-ld} -m elf64_s390"
4864 LD="${LD-ld} -m elf64_sparc"
4874 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4875 SAVE_CFLAGS="$CFLAGS"
4876 CFLAGS="$CFLAGS -belf"
4877 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4878 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4879 if test "${lt_cv_cc_needs_belf+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 ac_cpp='$CPP $CPPFLAGS'
4884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4888 cat >conftest.$ac_ext <<_ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4903 rm -f conftest.$ac_objext conftest$ac_exeext
4904 if { (ac_try="$ac_link"
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4910 (eval "$ac_link") 2>conftest.er1
4912 grep -v '^ *+' conftest.er1 >conftest.err
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4918 { (case "(($ac_try" in
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_try") 2>&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; } &&
4927 { ac_try='test -s conftest$ac_exeext'
4928 { (case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933 (eval "$ac_try") 2>&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4937 lt_cv_cc_needs_belf=yes
4939 echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4942 lt_cv_cc_needs_belf=no
4945 rm -f core conftest.err conftest.$ac_objext \
4946 conftest$ac_exeext conftest.$ac_ext
4948 ac_cpp='$CPP $CPPFLAGS'
4949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4954 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4955 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4956 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4957 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4958 CFLAGS="$SAVE_CFLAGS"
4962 # Find out which ABI we are using.
4963 echo 'int i;' > conftest.$ac_ext
4964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4965 (eval $ac_compile) 2>&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; then
4969 case `/usr/bin/file conftest.o` in
4971 case $lt_cv_prog_gnu_ld in
4972 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4973 *) LD="${LD-ld} -64" ;;
4984 need_locks="$enable_libtool_lock"
4988 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4989 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4990 if test "${ac_cv_header_stdc+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 cat >conftest.$ac_ext <<_ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
5012 rm -f conftest.$ac_objext
5013 if { (ac_try="$ac_compile"
5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016 *) ac_try_echo=$ac_try;;
5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019 (eval "$ac_compile") 2>conftest.er1
5021 grep -v '^ *+' conftest.er1 >conftest.err
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } &&
5026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5027 { (case "(($ac_try" in
5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029 *) ac_try_echo=$ac_try;;
5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032 (eval "$ac_try") 2>&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; } &&
5036 { ac_try='test -s conftest.$ac_objext'
5037 { (case "(($ac_try" in
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042 (eval "$ac_try") 2>&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5046 ac_cv_header_stdc=yes
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5051 ac_cv_header_stdc=no
5054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056 if test $ac_cv_header_stdc = yes; then
5057 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5058 cat >conftest.$ac_ext <<_ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5068 $EGREP "memchr" >/dev/null 2>&1; then
5071 ac_cv_header_stdc=no
5077 if test $ac_cv_header_stdc = yes; then
5078 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5079 cat >conftest.$ac_ext <<_ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5089 $EGREP "free" >/dev/null 2>&1; then
5092 ac_cv_header_stdc=no
5098 if test $ac_cv_header_stdc = yes; then
5099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5100 if test "$cross_compiling" = yes; then
5103 cat >conftest.$ac_ext <<_ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5111 #if ((' ' & 0x0FF) == 0x020)
5112 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5113 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5115 # define ISLOWER(c) \
5116 (('a' <= (c) && (c) <= 'i') \
5117 || ('j' <= (c) && (c) <= 'r') \
5118 || ('s' <= (c) && (c) <= 'z'))
5119 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5122 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5127 for (i = 0; i < 256; i++)
5128 if (XOR (islower (i), ISLOWER (i))
5129 || toupper (i) != TOUPPER (i))
5134 rm -f conftest$ac_exeext
5135 if { (ac_try="$ac_link"
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141 (eval "$ac_link") 2>&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5145 { (case "(($ac_try" in
5146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147 *) ac_try_echo=$ac_try;;
5149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5150 (eval "$ac_try") 2>&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5156 echo "$as_me: program exited with status $ac_status" >&5
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5161 ac_cv_header_stdc=no
5163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5169 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5170 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5171 if test $ac_cv_header_stdc = yes; then
5173 cat >>confdefs.h <<\_ACEOF
5174 #define STDC_HEADERS 1
5179 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5189 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5190 inttypes.h stdint.h unistd.h
5192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 cat >conftest.$ac_ext <<_ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5204 $ac_includes_default
5206 #include <$ac_header>
5208 rm -f conftest.$ac_objext
5209 if { (ac_try="$ac_compile"
5211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212 *) ac_try_echo=$ac_try;;
5214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5215 (eval "$ac_compile") 2>conftest.er1
5217 grep -v '^ *+' conftest.er1 >conftest.err
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } &&
5222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5223 { (case "(($ac_try" in
5224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225 *) ac_try_echo=$ac_try;;
5227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228 (eval "$ac_try") 2>&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; } &&
5232 { ac_try='test -s conftest.$ac_objext'
5233 { (case "(($ac_try" in
5234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235 *) ac_try_echo=$ac_try;;
5237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238 (eval "$ac_try") 2>&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 eval "$as_ac_Header=yes"
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5247 eval "$as_ac_Header=no"
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5252 ac_res=`eval echo '${'$as_ac_Header'}'`
5253 { echo "$as_me:$LINENO: result: $ac_res" >&5
5254 echo "${ECHO_T}$ac_res" >&6; }
5255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5256 cat >>confdefs.h <<_ACEOF
5257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5266 for ac_header in dlfcn.h
5268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 ac_res=`eval echo '${'$as_ac_Header'}'`
5276 { echo "$as_me:$LINENO: result: $ac_res" >&5
5277 echo "${ECHO_T}$ac_res" >&6; }
5279 # Is the header compilable?
5280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5282 cat >conftest.$ac_ext <<_ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5288 $ac_includes_default
5289 #include <$ac_header>
5291 rm -f conftest.$ac_objext
5292 if { (ac_try="$ac_compile"
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298 (eval "$ac_compile") 2>conftest.er1
5300 grep -v '^ *+' conftest.er1 >conftest.err
5302 cat conftest.err >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } &&
5305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5306 { (case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_try") 2>&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; } &&
5315 { ac_try='test -s conftest.$ac_objext'
5316 { (case "(($ac_try" in
5317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318 *) ac_try_echo=$ac_try;;
5320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321 (eval "$ac_try") 2>&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 ac_header_compiler=yes
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5330 ac_header_compiler=no
5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5335 echo "${ECHO_T}$ac_header_compiler" >&6; }
5337 # Is the header present?
5338 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5340 cat >conftest.$ac_ext <<_ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346 #include <$ac_header>
5348 if { (ac_try="$ac_cpp conftest.$ac_ext"
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5356 grep -v '^ *+' conftest.er1 >conftest.err
5358 cat conftest.err >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } >/dev/null; then
5361 if test -s conftest.err; then
5362 ac_cpp_err=$ac_c_preproc_warn_flag
5363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5370 if test -z "$ac_cpp_err"; then
5371 ac_header_preproc=yes
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5376 ac_header_preproc=no
5379 rm -f conftest.err conftest.$ac_ext
5380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5381 echo "${ECHO_T}$ac_header_preproc" >&6; }
5383 # So? What about this header?
5384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5390 ac_header_preproc=yes
5393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5406 ## -------------------------------- ##
5407 ## Report this to adam@indexdata.dk ##
5408 ## -------------------------------- ##
5410 ) | sed "s/^/$as_me: WARNING: /" >&2
5413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 eval "$as_ac_Header=\$ac_header_preproc"
5420 ac_res=`eval echo '${'$as_ac_Header'}'`
5421 { echo "$as_me:$LINENO: result: $ac_res" >&5
5422 echo "${ECHO_T}$ac_res" >&6; }
5425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5426 cat >>confdefs.h <<_ACEOF
5427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5435 ac_cpp='$CXXCPP $CPPFLAGS'
5436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5439 if test -z "$CXX"; then
5440 if test -n "$CCC"; then
5443 if test -n "$ac_tool_prefix"; then
5444 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5450 if test "${ac_cv_prog_CXX+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 if test -n "$CXX"; then
5454 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5463 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 if test -n "$CXX"; then
5475 { echo "$as_me:$LINENO: result: $CXX" >&5
5476 echo "${ECHO_T}$CXX" >&6; }
5478 { echo "$as_me:$LINENO: result: no" >&5
5479 echo "${ECHO_T}no" >&6; }
5483 test -n "$CXX" && break
5486 if test -z "$CXX"; then
5488 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5490 # Extract the first word of "$ac_prog", so it can be a program name with args.
5491 set dummy $ac_prog; ac_word=$2
5492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5494 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 if test -n "$ac_ct_CXX"; then
5498 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5507 ac_cv_prog_ac_ct_CXX="$ac_prog"
5508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5518 if test -n "$ac_ct_CXX"; then
5519 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5520 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5522 { echo "$as_me:$LINENO: result: no" >&5
5523 echo "${ECHO_T}no" >&6; }
5527 test -n "$ac_ct_CXX" && break
5530 if test "x$ac_ct_CXX" = x; then
5533 case $cross_compiling:$ac_tool_warned in
5535 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5536 whose name does not start with the host triplet. If you think this
5537 configuration is useful to you, please write to autoconf@gnu.org." >&5
5538 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5539 whose name does not start with the host triplet. If you think this
5540 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5541 ac_tool_warned=yes ;;
5549 # Provide some information about the compiler.
5550 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5551 ac_compiler=`set X $ac_compile; echo $2`
5552 { (ac_try="$ac_compiler --version >&5"
5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555 *) ac_try_echo=$ac_try;;
5557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5558 (eval "$ac_compiler --version >&5") 2>&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }
5562 { (ac_try="$ac_compiler -v >&5"
5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565 *) ac_try_echo=$ac_try;;
5567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568 (eval "$ac_compiler -v >&5") 2>&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }
5572 { (ac_try="$ac_compiler -V >&5"
5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575 *) ac_try_echo=$ac_try;;
5577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578 (eval "$ac_compiler -V >&5") 2>&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }
5583 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5584 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5585 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 cat >conftest.$ac_ext <<_ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5606 rm -f conftest.$ac_objext
5607 if { (ac_try="$ac_compile"
5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610 *) ac_try_echo=$ac_try;;
5612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613 (eval "$ac_compile") 2>conftest.er1
5615 grep -v '^ *+' conftest.er1 >conftest.err
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } &&
5620 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5621 { (case "(($ac_try" in
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_try") 2>&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; } &&
5630 { ac_try='test -s conftest.$ac_objext'
5631 { (case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_try") 2>&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5652 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5653 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5654 GXX=`test $ac_compiler_gnu = yes && echo yes`
5655 ac_test_CXXFLAGS=${CXXFLAGS+set}
5656 ac_save_CXXFLAGS=$CXXFLAGS
5657 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5658 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5659 if test "${ac_cv_prog_cxx_g+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5663 ac_cxx_werror_flag=yes
5666 cat >conftest.$ac_ext <<_ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_compile") 2>conftest.er1
5690 grep -v '^ *+' conftest.er1 >conftest.err
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } &&
5695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5696 { (case "(($ac_try" in
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701 (eval "$ac_try") 2>&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; } &&
5705 { ac_try='test -s conftest.$ac_objext'
5706 { (case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_try") 2>&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 ac_cv_prog_cxx_g=yes
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5721 cat >conftest.$ac_ext <<_ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5736 rm -f conftest.$ac_objext
5737 if { (ac_try="$ac_compile"
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_compile") 2>conftest.er1
5745 grep -v '^ *+' conftest.er1 >conftest.err
5747 cat conftest.err >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } &&
5750 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5751 { (case "(($ac_try" in
5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753 *) ac_try_echo=$ac_try;;
5755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756 (eval "$ac_try") 2>&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; } &&
5760 { ac_try='test -s conftest.$ac_objext'
5761 { (case "(($ac_try" in
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_try") 2>&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5772 echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5775 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5777 cat >conftest.$ac_ext <<_ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5792 rm -f conftest.$ac_objext
5793 if { (ac_try="$ac_compile"
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_compile") 2>conftest.er1
5801 grep -v '^ *+' conftest.er1 >conftest.err
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } &&
5806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5807 { (case "(($ac_try" in
5808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812 (eval "$ac_try") 2>&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; } &&
5816 { ac_try='test -s conftest.$ac_objext'
5817 { (case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_try") 2>&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
5826 ac_cv_prog_cxx_g=yes
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5843 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5844 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5845 if test "$ac_test_CXXFLAGS" = set; then
5846 CXXFLAGS=$ac_save_CXXFLAGS
5847 elif test $ac_cv_prog_cxx_g = yes; then
5848 if test "$GXX" = yes; then
5854 if test "$GXX" = yes; then
5861 ac_cpp='$CXXCPP $CPPFLAGS'
5862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5866 depcc="$CXX" am_compiler_list=
5868 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5869 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5870 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5874 # We make a subdir and do the tests there. Otherwise we can end up
5875 # making bogus files that we don't know about and never remove. For
5876 # instance it was reported that on HP-UX the gcc test will end up
5877 # making a dummy file named `D' -- because `-MD' means `put the output
5880 # Copy depcomp to subdir because otherwise we won't find it if we're
5881 # using a relative directory.
5882 cp "$am_depcomp" conftest.dir
5884 # We will build objects and dependencies in a subdirectory because
5885 # it helps to detect inapplicable dependency modes. For instance
5886 # both Tru64's cc and ICC support -MD to output dependencies as a
5887 # side effect of compilation, but ICC will put the dependencies in
5888 # the current directory while Tru64 will put them in the object
5892 am_cv_CXX_dependencies_compiler_type=none
5893 if test "$am_compiler_list" = ""; then
5894 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5896 for depmode in $am_compiler_list; do
5897 # Setup a source with many dependencies, because some compilers
5898 # like to wrap large dependency lists on column 80 (with \), and
5899 # we should not choose a depcomp mode which is confused by this.
5901 # We need to recreate these files for each test, as the compiler may
5902 # overwrite some of them when testing with obscure command lines.
5903 # This happens at least with the AIX C compiler.
5905 for i in 1 2 3 4 5 6; do
5906 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5907 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5908 # Solaris 8's {/usr,}/bin/sh.
5909 touch sub/conftst$i.h
5911 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5915 # after this tag, mechanisms are not by side-effect, so they'll
5916 # only be used when explicitly requested
5917 if test "x$enable_dependency_tracking" = xyes; then
5925 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5926 # mode. It turns out that the SunPro C++ compiler does not properly
5927 # handle `-M -o', and we need to detect this.
5928 if depmode=$depmode \
5929 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5930 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5931 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5932 >/dev/null 2>conftest.err &&
5933 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5934 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5935 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5936 # icc doesn't choke on unknown options, it will just issue warnings
5937 # or remarks (even with -Werror). So we grep stderr for any message
5938 # that says an option was ignored or not supported.
5939 # When given -MP, icc 7.0 and 7.1 complain thusly:
5940 # icc: Command line warning: ignoring option '-M'; no argument required
5941 # The diagnosis changed in icc 8.0:
5942 # icc: Command line remark: option '-MP' not supported
5943 if (grep 'ignoring option' conftest.err ||
5944 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5945 am_cv_CXX_dependencies_compiler_type=$depmode
5954 am_cv_CXX_dependencies_compiler_type=none
5958 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5959 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5960 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5965 test "x$enable_dependency_tracking" != xno \
5966 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5967 am__fastdepCXX_TRUE=
5968 am__fastdepCXX_FALSE='#'
5970 am__fastdepCXX_TRUE='#'
5971 am__fastdepCXX_FALSE=
5977 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5978 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5979 (test "X$CXX" != "Xg++"))) ; then
5981 ac_cpp='$CXXCPP $CPPFLAGS'
5982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5985 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5986 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5987 if test -z "$CXXCPP"; then
5988 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 # Double quotes because CXXCPP needs to be expanded
5992 for CXXCPP in "$CXX -E" "/lib/cpp"
5995 for ac_cxx_preproc_warn_flag in '' yes
5997 # Use a header file that comes with gcc, so configuring glibc
5998 # with a fresh cross-compiler works.
5999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6000 # <limits.h> exists even on freestanding compilers.
6001 # On the NeXT, cc -E runs the code through the compiler's parser,
6002 # not just through cpp. "Syntax error" is here to catch this case.
6003 cat >conftest.$ac_ext <<_ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6010 # include <limits.h>
6012 # include <assert.h>
6016 if { (ac_try="$ac_cpp conftest.$ac_ext"
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6024 grep -v '^ *+' conftest.er1 >conftest.err
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } >/dev/null; then
6029 if test -s conftest.err; then
6030 ac_cpp_err=$ac_cxx_preproc_warn_flag
6031 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6038 if test -z "$ac_cpp_err"; then
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6044 # Broken: fails on valid input.
6048 rm -f conftest.err conftest.$ac_ext
6050 # OK, works on sane cases. Now check whether nonexistent headers
6051 # can be detected and how.
6052 cat >conftest.$ac_ext <<_ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 #include <ac_nonexistent.h>
6060 if { (ac_try="$ac_cpp conftest.$ac_ext"
6062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063 *) ac_try_echo=$ac_try;;
6065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6068 grep -v '^ *+' conftest.er1 >conftest.err
6070 cat conftest.err >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } >/dev/null; then
6073 if test -s conftest.err; then
6074 ac_cpp_err=$ac_cxx_preproc_warn_flag
6075 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6082 if test -z "$ac_cpp_err"; then
6083 # Broken: success on invalid input.
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6089 # Passes both tests.
6094 rm -f conftest.err conftest.$ac_ext
6097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6098 rm -f conftest.err conftest.$ac_ext
6099 if $ac_preproc_ok; then
6104 ac_cv_prog_CXXCPP=$CXXCPP
6107 CXXCPP=$ac_cv_prog_CXXCPP
6109 ac_cv_prog_CXXCPP=$CXXCPP
6111 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6112 echo "${ECHO_T}$CXXCPP" >&6; }
6114 for ac_cxx_preproc_warn_flag in '' yes
6116 # Use a header file that comes with gcc, so configuring glibc
6117 # with a fresh cross-compiler works.
6118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6119 # <limits.h> exists even on freestanding compilers.
6120 # On the NeXT, cc -E runs the code through the compiler's parser,
6121 # not just through cpp. "Syntax error" is here to catch this case.
6122 cat >conftest.$ac_ext <<_ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6129 # include <limits.h>
6131 # include <assert.h>
6135 if { (ac_try="$ac_cpp conftest.$ac_ext"
6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138 *) ac_try_echo=$ac_try;;
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6143 grep -v '^ *+' conftest.er1 >conftest.err
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } >/dev/null; then
6148 if test -s conftest.err; then
6149 ac_cpp_err=$ac_cxx_preproc_warn_flag
6150 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6157 if test -z "$ac_cpp_err"; then
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6163 # Broken: fails on valid input.
6167 rm -f conftest.err conftest.$ac_ext
6169 # OK, works on sane cases. Now check whether nonexistent headers
6170 # can be detected and how.
6171 cat >conftest.$ac_ext <<_ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6177 #include <ac_nonexistent.h>
6179 if { (ac_try="$ac_cpp conftest.$ac_ext"
6181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182 *) ac_try_echo=$ac_try;;
6184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6187 grep -v '^ *+' conftest.er1 >conftest.err
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } >/dev/null; then
6192 if test -s conftest.err; then
6193 ac_cpp_err=$ac_cxx_preproc_warn_flag
6194 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6201 if test -z "$ac_cpp_err"; then
6202 # Broken: success on invalid input.
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6208 # Passes both tests.
6213 rm -f conftest.err conftest.$ac_ext
6216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6217 rm -f conftest.err conftest.$ac_ext
6218 if $ac_preproc_ok; then
6221 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6222 See \`config.log' for more details." >&5
6223 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6224 See \`config.log' for more details." >&2;}
6225 { (exit 1); exit 1; }; }
6229 ac_cpp='$CXXCPP $CPPFLAGS'
6230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6238 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6239 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6240 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6241 if test -n "$ac_tool_prefix"; then
6242 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6248 if test "${ac_cv_prog_F77+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 if test -n "$F77"; then
6252 ac_cv_prog_F77="$F77" # Let the user override the test.
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 if test -n "$F77"; then
6273 { echo "$as_me:$LINENO: result: $F77" >&5
6274 echo "${ECHO_T}$F77" >&6; }
6276 { echo "$as_me:$LINENO: result: no" >&5
6277 echo "${ECHO_T}no" >&6; }
6281 test -n "$F77" && break
6284 if test -z "$F77"; then
6286 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6288 # Extract the first word of "$ac_prog", so it can be a program name with args.
6289 set dummy $ac_prog; ac_word=$2
6290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6292 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 if test -n "$ac_ct_F77"; then
6296 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_prog_ac_ct_F77="$ac_prog"
6306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6316 if test -n "$ac_ct_F77"; then
6317 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6318 echo "${ECHO_T}$ac_ct_F77" >&6; }
6320 { echo "$as_me:$LINENO: result: no" >&5
6321 echo "${ECHO_T}no" >&6; }
6325 test -n "$ac_ct_F77" && break
6328 if test "x$ac_ct_F77" = x; then
6331 case $cross_compiling:$ac_tool_warned in
6333 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6334 whose name does not start with the host triplet. If you think this
6335 configuration is useful to you, please write to autoconf@gnu.org." >&5
6336 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6337 whose name does not start with the host triplet. If you think this
6338 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6339 ac_tool_warned=yes ;;
6346 # Provide some information about the compiler.
6347 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6348 ac_compiler=`set X $ac_compile; echo $2`
6349 { (ac_try="$ac_compiler --version >&5"
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 (eval "$ac_compiler --version >&5") 2>&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }
6359 { (ac_try="$ac_compiler -v >&5"
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365 (eval "$ac_compiler -v >&5") 2>&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }
6369 { (ac_try="$ac_compiler -V >&5"
6371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6372 *) ac_try_echo=$ac_try;;
6374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6375 (eval "$ac_compiler -V >&5") 2>&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }
6381 # If we don't use `.F' as extension, the preprocessor is not run on the
6382 # input file. (Note that this only needs to work for GNU compilers.)
6385 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6386 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6387 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 cat >conftest.$ac_ext <<_ACEOF
6398 rm -f conftest.$ac_objext
6399 if { (ac_try="$ac_compile"
6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6405 (eval "$ac_compile") 2>conftest.er1
6407 grep -v '^ *+' conftest.er1 >conftest.err
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6413 { (case "(($ac_try" in
6414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6415 *) ac_try_echo=$ac_try;;
6417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6418 (eval "$ac_try") 2>&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; } &&
6422 { ac_try='test -s conftest.$ac_objext'
6423 { (case "(($ac_try" in
6424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6425 *) ac_try_echo=$ac_try;;
6427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6428 (eval "$ac_try") 2>&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; }; then
6434 echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6444 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6445 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6447 ac_test_FFLAGS=${FFLAGS+set}
6448 ac_save_FFLAGS=$FFLAGS
6450 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6451 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6452 if test "${ac_cv_prog_f77_g+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 cat >conftest.$ac_ext <<_ACEOF
6461 rm -f conftest.$ac_objext
6462 if { (ac_try="$ac_compile"
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468 (eval "$ac_compile") 2>conftest.er1
6470 grep -v '^ *+' conftest.er1 >conftest.err
6472 cat conftest.err >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } &&
6475 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6476 { (case "(($ac_try" in
6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478 *) ac_try_echo=$ac_try;;
6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_try") 2>&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; } &&
6485 { ac_try='test -s conftest.$ac_objext'
6486 { (case "(($ac_try" in
6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6491 (eval "$ac_try") 2>&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; }; then
6495 ac_cv_prog_f77_g=yes
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6507 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6508 if test "$ac_test_FFLAGS" = set; then
6509 FFLAGS=$ac_save_FFLAGS
6510 elif test $ac_cv_prog_f77_g = yes; then
6511 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6517 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6524 G77=`test $ac_compiler_gnu = yes && echo yes`
6526 ac_cpp='$CPP $CPPFLAGS'
6527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6533 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6535 # find the maximum length of command line arguments
6536 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6537 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6538 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 # On DJGPP, this test can blow up pretty badly due to problems in libc
6547 # (any single argument exceeding 2000 bytes causes a buffer overrun
6548 # during glob expansion). Even if it were fixed, the result of this
6549 # check would be larger than it should be.
6550 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6554 # Under GNU Hurd, this test is not required because there is
6555 # no limit to the length of command line arguments.
6556 # Libtool will interpret -1 as no limit whatsoever
6557 lt_cv_sys_max_cmd_len=-1;
6561 # On Win9x/ME, this test blows up -- it succeeds, but takes
6562 # about 5 minutes as the teststring grows exponentially.
6563 # Worse, since 9x/ME are not pre-emptively multitasking,
6564 # you end up with a "frozen" computer, even though with patience
6565 # the test eventually succeeds (with a max line length of 256k).
6566 # Instead, let's just punt: use the minimum linelength reported by
6567 # all of the supported platforms: 8192 (on NT/2K/XP).
6568 lt_cv_sys_max_cmd_len=8192;
6572 # On AmigaOS with pdksh, this test takes hours, literally.
6573 # So we just punt and use a minimum line length of 8192.
6574 lt_cv_sys_max_cmd_len=8192;
6577 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6578 # This has been around since 386BSD, at least. Likely further.
6579 if test -x /sbin/sysctl; then
6580 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6581 elif test -x /usr/sbin/sysctl; then
6582 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6584 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6586 # And add a safety zone
6587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6592 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6593 lt_cv_sys_max_cmd_len=196608
6597 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6598 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6599 # nice to cause kernel panics so lets avoid the loop below.
6600 # First set a reasonable default.
6601 lt_cv_sys_max_cmd_len=16384
6603 if test -x /sbin/sysconfig; then
6604 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6605 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6610 lt_cv_sys_max_cmd_len=102400
6612 sysv5* | sco5v6* | sysv4.2uw2*)
6613 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6614 if test -n "$kargmax"; then
6615 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6617 lt_cv_sys_max_cmd_len=32768
6621 # If test is not a shell built-in, we'll probably end up computing a
6622 # maximum length that is only half of the actual maximum length, but
6624 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6625 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6626 = "XX$teststring") >/dev/null 2>&1 &&
6627 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6628 lt_cv_sys_max_cmd_len=$new_result &&
6629 test $i != 17 # 1/2 MB should be enough
6632 teststring=$teststring$teststring
6635 # Add a significant safety factor because C++ compilers can tack on massive
6636 # amounts of additional arguments before passing them to the linker.
6637 # It appears as though 1/2 is a usable value.
6638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6644 if test -n $lt_cv_sys_max_cmd_len ; then
6645 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6646 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6648 { echo "$as_me:$LINENO: result: none" >&5
6649 echo "${ECHO_T}none" >&6; }
6655 # Check for command to grab the raw symbol name followed by C symbol from nm.
6656 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6657 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6658 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 # These are sane defaults that work on at least a few old systems.
6663 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6665 # Character class describing NM global symbol codes.
6666 symcode='[BCDEGRST]'
6668 # Regexp to match symbols that can be accessed directly from C.
6669 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6671 # Transform an extracted symbol line into a proper C declaration
6672 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6674 # Transform an extracted symbol line into symbol name and symbol address
6675 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'"
6677 # Define system-specific variables.
6682 cygwin* | mingw* | pw32*)
6683 symcode='[ABCDGISTW]'
6685 hpux*) # Its linker distinguishes data from code symbols
6686 if test "$host_cpu" = ia64; then
6687 symcode='[ABCDEGRST]'
6689 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6690 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'"
6692 linux* | k*bsd*-gnu)
6693 if test "$host_cpu" = ia64; then
6694 symcode='[ABCDGIRSTW]'
6695 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6696 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'"
6700 symcode='[BCDEGRST]'
6703 symcode='[BCDEGQRST]'
6714 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6722 # Handle CRLF in mingw tool chain
6726 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6730 # If we're using GNU nm, then use its standard symbol codes.
6731 case `$NM -V 2>&1` in
6732 *GNU* | *'with BFD'*)
6733 symcode='[ABCDGIRSTW]' ;;
6736 # Try without a prefix undercore, then with it.
6737 for ac_symprfx in "" "_"; do
6739 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6740 symxfrm="\\1 $ac_symprfx\\2 \\2"
6742 # Write the raw and C identifiers.
6743 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6745 # Check to see that the pipe works correctly.
6749 cat > conftest.$ac_ext <<EOF
6754 void nm_test_func(){}
6758 int main(){nm_test_var='a';nm_test_func();return(0);}
6761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6762 (eval $ac_compile) 2>&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; then
6766 # Now try to grab the symbols.
6768 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6769 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } && test -s "$nlist"; then
6773 # Try sorting and uniquifying the output.
6774 if sort "$nlist" | uniq > "$nlist"T; then
6775 mv -f "$nlist"T "$nlist"
6780 # Make sure that we snagged all the symbols we need.
6781 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6782 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6783 cat <<EOF > conftest.$ac_ext
6789 # Now generate the symbol file.
6790 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6792 cat <<EOF >> conftest.$ac_ext
6793 #if defined (__STDC__) && __STDC__
6794 # define lt_ptr_t void *
6796 # define lt_ptr_t char *
6800 /* The mapping between symbol names and symbols. */
6805 lt_preloaded_symbols[] =
6808 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6809 cat <<\EOF >> conftest.$ac_ext
6817 # Now try linking the two files.
6818 mv conftest.$ac_objext conftstm.$ac_objext
6819 lt_save_LIBS="$LIBS"
6820 lt_save_CFLAGS="$CFLAGS"
6821 LIBS="conftstm.$ac_objext"
6822 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6824 (eval $ac_link) 2>&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6830 LIBS="$lt_save_LIBS"
6831 CFLAGS="$lt_save_CFLAGS"
6833 echo "cannot find nm_test_func in $nlist" >&5
6836 echo "cannot find nm_test_var in $nlist" >&5
6839 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6842 echo "$progname: failed program was:" >&5
6843 cat conftest.$ac_ext >&5
6845 rm -f conftest* conftst*
6847 # Do not use the global_symbol_pipe unless it works.
6848 if test "$pipe_works" = yes; then
6851 lt_cv_sys_global_symbol_pipe=
6857 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6858 lt_cv_sys_global_symbol_to_cdecl=
6860 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6861 { echo "$as_me:$LINENO: result: failed" >&5
6862 echo "${ECHO_T}failed" >&6; }
6864 { echo "$as_me:$LINENO: result: ok" >&5
6865 echo "${ECHO_T}ok" >&6; }
6868 { echo "$as_me:$LINENO: checking for objdir" >&5
6869 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6870 if test "${lt_cv_objdir+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 rm -f .libs 2>/dev/null
6874 mkdir .libs 2>/dev/null
6875 if test -d .libs; then
6878 # MS-DOS does not allow filenames that begin with a dot.
6881 rmdir .libs 2>/dev/null
6883 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6884 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6885 objdir=$lt_cv_objdir
6893 # AIX sometimes has problems with the GCC collect2 program. For some
6894 # reason, if we set the COLLECT_NAMES environment variable, the problems
6895 # vanish in a puff of smoke.
6896 if test "X${COLLECT_NAMES+set}" != Xset; then
6898 export COLLECT_NAMES
6903 # Sed substitution that helps us do robust quoting. It backslashifies
6904 # metacharacters that are still active within double-quoted strings.
6905 Xsed='sed -e 1s/^X//'
6906 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6908 # Same as above, but do not quote variable references.
6909 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6911 # Sed substitution to delay expansion of an escaped shell variable in a
6912 # double_quote_subst'ed string.
6913 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6915 # Sed substitution to avoid accidental globbing in evaled expressions
6916 no_glob_subst='s/\*/\\\*/g'
6922 default_ofile=libtool
6923 can_build_shared=yes
6925 # All known linkers require a `.a' archive for static linking (except MSVC,
6926 # which needs '.lib').
6928 ltmain="$ac_aux_dir/ltmain.sh"
6929 ofile="$default_ofile"
6930 with_gnu_ld="$lt_cv_prog_gnu_ld"
6932 if test -n "$ac_tool_prefix"; then
6933 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6934 set dummy ${ac_tool_prefix}ar; ac_word=$2
6935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937 if test "${ac_cv_prog_AR+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 if test -n "$AR"; then
6941 ac_cv_prog_AR="$AR" # Let the user override the test.
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6950 ac_cv_prog_AR="${ac_tool_prefix}ar"
6951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 if test -n "$AR"; then
6962 { echo "$as_me:$LINENO: result: $AR" >&5
6963 echo "${ECHO_T}$AR" >&6; }
6965 { echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6; }
6971 if test -z "$ac_cv_prog_AR"; then
6973 # Extract the first word of "ar", so it can be a program name with args.
6974 set dummy ar; ac_word=$2
6975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6977 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 if test -n "$ac_ct_AR"; then
6981 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6990 ac_cv_prog_ac_ct_AR="ar"
6991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7001 if test -n "$ac_ct_AR"; then
7002 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7003 echo "${ECHO_T}$ac_ct_AR" >&6; }
7005 { echo "$as_me:$LINENO: result: no" >&5
7006 echo "${ECHO_T}no" >&6; }
7009 if test "x$ac_ct_AR" = x; then
7012 case $cross_compiling:$ac_tool_warned in
7014 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7015 whose name does not start with the host triplet. If you think this
7016 configuration is useful to you, please write to autoconf@gnu.org." >&5
7017 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7018 whose name does not start with the host triplet. If you think this
7019 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7020 ac_tool_warned=yes ;;
7028 if test -n "$ac_tool_prefix"; then
7029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7030 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_prog_RANLIB+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 if test -n "$RANLIB"; then
7037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7046 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 RANLIB=$ac_cv_prog_RANLIB
7057 if test -n "$RANLIB"; then
7058 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7059 echo "${ECHO_T}$RANLIB" >&6; }
7061 { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7067 if test -z "$ac_cv_prog_RANLIB"; then
7068 ac_ct_RANLIB=$RANLIB
7069 # Extract the first word of "ranlib", so it can be a program name with args.
7070 set dummy ranlib; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 if test -n "$ac_ct_RANLIB"; then
7077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7086 ac_cv_prog_ac_ct_RANLIB="ranlib"
7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7097 if test -n "$ac_ct_RANLIB"; then
7098 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7099 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7101 { echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6; }
7105 if test "x$ac_ct_RANLIB" = x; then
7108 case $cross_compiling:$ac_tool_warned in
7110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7111 whose name does not start with the host triplet. If you think this
7112 configuration is useful to you, please write to autoconf@gnu.org." >&5
7113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7114 whose name does not start with the host triplet. If you think this
7115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7116 ac_tool_warned=yes ;;
7118 RANLIB=$ac_ct_RANLIB
7121 RANLIB="$ac_cv_prog_RANLIB"
7124 if test -n "$ac_tool_prefix"; then
7125 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}strip; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_prog_STRIP+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 if test -n "$STRIP"; then
7133 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 STRIP=$ac_cv_prog_STRIP
7153 if test -n "$STRIP"; then
7154 { echo "$as_me:$LINENO: result: $STRIP" >&5
7155 echo "${ECHO_T}$STRIP" >&6; }
7157 { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7163 if test -z "$ac_cv_prog_STRIP"; then
7165 # Extract the first word of "strip", so it can be a program name with args.
7166 set dummy strip; ac_word=$2
7167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 if test -n "$ac_ct_STRIP"; then
7173 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_prog_ac_ct_STRIP="strip"
7183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7193 if test -n "$ac_ct_STRIP"; then
7194 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7195 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7197 { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7201 if test "x$ac_ct_STRIP" = x; then
7204 case $cross_compiling:$ac_tool_warned in
7206 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7207 whose name does not start with the host triplet. If you think this
7208 configuration is useful to you, please write to autoconf@gnu.org." >&5
7209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7210 whose name does not start with the host triplet. If you think this
7211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7212 ac_tool_warned=yes ;;
7217 STRIP="$ac_cv_prog_STRIP"
7222 old_CFLAGS="$CFLAGS"
7224 # Set sane defaults for various variables
7225 test -z "$AR" && AR=ar
7226 test -z "$AR_FLAGS" && AR_FLAGS=cru
7227 test -z "$AS" && AS=as
7228 test -z "$CC" && CC=cc
7229 test -z "$LTCC" && LTCC=$CC
7230 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7231 test -z "$DLLTOOL" && DLLTOOL=dlltool
7232 test -z "$LD" && LD=ld
7233 test -z "$LN_S" && LN_S="ln -s"
7234 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7235 test -z "$NM" && NM=nm
7236 test -z "$SED" && SED=sed
7237 test -z "$OBJDUMP" && OBJDUMP=objdump
7238 test -z "$RANLIB" && RANLIB=:
7239 test -z "$STRIP" && STRIP=:
7240 test -z "$ac_objext" && ac_objext=o
7242 # Determine commands to create old-style static archives.
7243 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7244 old_postinstall_cmds='chmod 644 $oldlib'
7245 old_postuninstall_cmds=
7247 if test -n "$RANLIB"; then
7250 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7253 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7256 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7259 for cc_temp in $compiler""; do
7261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7267 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7270 # Only perform the check for file, if the check method requires it
7271 case $deplibs_check_method in
7273 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7274 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7275 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7276 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7284 lt_save_MAGIC_CMD="$MAGIC_CMD"
7285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7287 for ac_dir in $ac_dummy; do
7289 test -z "$ac_dir" && ac_dir=.
7290 if test -f $ac_dir/${ac_tool_prefix}file; then
7291 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7292 if test -n "$file_magic_test_file"; then
7293 case $deplibs_check_method in
7295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7298 $EGREP "$file_magic_regex" > /dev/null; then
7303 *** Warning: the command libtool uses to detect shared libraries,
7304 *** $file_magic_cmd, produces output that libtool cannot recognize.
7305 *** The result is that libtool may fail to recognize shared libraries
7306 *** as such. This will affect the creation of libtool libraries that
7307 *** depend on shared libraries, but programs linked with such libtool
7308 *** libraries will work regardless of this problem. Nevertheless, you
7309 *** may want to report the problem to your system manager and/or to
7310 *** bug-libtool@gnu.org
7320 MAGIC_CMD="$lt_save_MAGIC_CMD"
7325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7326 if test -n "$MAGIC_CMD"; then
7327 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7328 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7330 { echo "$as_me:$LINENO: result: no" >&5
7331 echo "${ECHO_T}no" >&6; }
7334 if test -z "$lt_cv_path_MAGIC_CMD"; then
7335 if test -n "$ac_tool_prefix"; then
7336 { echo "$as_me:$LINENO: checking for file" >&5
7337 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7338 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7346 lt_save_MAGIC_CMD="$MAGIC_CMD"
7347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7348 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7349 for ac_dir in $ac_dummy; do
7351 test -z "$ac_dir" && ac_dir=.
7352 if test -f $ac_dir/file; then
7353 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7354 if test -n "$file_magic_test_file"; then
7355 case $deplibs_check_method in
7357 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7359 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7360 $EGREP "$file_magic_regex" > /dev/null; then
7365 *** Warning: the command libtool uses to detect shared libraries,
7366 *** $file_magic_cmd, produces output that libtool cannot recognize.
7367 *** The result is that libtool may fail to recognize shared libraries
7368 *** as such. This will affect the creation of libtool libraries that
7369 *** depend on shared libraries, but programs linked with such libtool
7370 *** libraries will work regardless of this problem. Nevertheless, you
7371 *** may want to report the problem to your system manager and/or to
7372 *** bug-libtool@gnu.org
7382 MAGIC_CMD="$lt_save_MAGIC_CMD"
7387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7388 if test -n "$MAGIC_CMD"; then
7389 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7390 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7392 { echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6; }
7408 # Check whether --enable-libtool-lock was given.
7409 if test "${enable_libtool_lock+set}" = set; then
7410 enableval=$enable_libtool_lock;
7413 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7416 # Check whether --with-pic was given.
7417 if test "${with_pic+set}" = set; then
7418 withval=$with_pic; pic_mode="$withval"
7423 test -z "$pic_mode" && pic_mode=default
7425 # Use C for the default configuration in the libtool script
7429 ac_cpp='$CPP $CPPFLAGS'
7430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7435 # Source file extension for C test sources.
7438 # Object file extension for compiled C test sources.
7442 # Code to be used in simple compile tests
7443 lt_simple_compile_test_code="int some_variable = 0;\n"
7445 # Code to be used in simple link tests
7446 lt_simple_link_test_code='int main(){return(0);}\n'
7449 # If no C compiler was specified, use CC.
7452 # If no C compiler flags were specified, use CFLAGS.
7453 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7455 # Allow CC to be a program name with arguments.
7459 # save warnings/boilerplate of simple test code
7460 ac_outfile=conftest.$ac_objext
7461 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7462 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7463 _lt_compiler_boilerplate=`cat conftest.err`
7466 ac_outfile=conftest.$ac_objext
7467 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7468 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7469 _lt_linker_boilerplate=`cat conftest.err`
7474 lt_prog_compiler_no_builtin_flag=
7476 if test "$GCC" = yes; then
7477 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7480 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7481 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7482 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 lt_cv_prog_compiler_rtti_exceptions=no
7486 ac_outfile=conftest.$ac_objext
7487 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7488 lt_compiler_flag="-fno-rtti -fno-exceptions"
7489 # Insert the option either (1) after the last *FLAGS variable, or
7490 # (2) before a word containing "conftest.", or (3) at the end.
7491 # Note that $ac_compile itself does not contain backslashes and begins
7492 # with a dollar sign (not a hyphen), so the echo should work correctly.
7493 # The option is referenced via a variable to avoid confusing sed.
7494 lt_compile=`echo "$ac_compile" | $SED \
7495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7497 -e 's:$: $lt_compiler_flag:'`
7498 (eval echo "\"\$as_me:7498: $lt_compile\"" >&5)
7499 (eval "$lt_compile" 2>conftest.err)
7501 cat conftest.err >&5
7502 echo "$as_me:7502: \$? = $ac_status" >&5
7503 if (exit $ac_status) && test -s "$ac_outfile"; then
7504 # The compiler can only warn and ignore the option if not recognized
7505 # So say no if there are warnings other than the usual output.
7506 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7508 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7509 lt_cv_prog_compiler_rtti_exceptions=yes
7515 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7516 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7518 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7519 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7526 lt_prog_compiler_wl=
7527 lt_prog_compiler_pic=
7528 lt_prog_compiler_static=
7530 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7531 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7533 if test "$GCC" = yes; then
7534 lt_prog_compiler_wl='-Wl,'
7535 lt_prog_compiler_static='-static'
7539 # All AIX code is PIC.
7540 if test "$host_cpu" = ia64; then
7541 # AIX 5 now supports IA64 processor
7542 lt_prog_compiler_static='-Bstatic'
7547 # FIXME: we need at least 68020 code to build shared libraries, but
7548 # adding the `-m68020' flag to GCC prevents building anything better,
7550 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7553 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7554 # PIC is the default for these OSes.
7557 mingw* | pw32* | os2*)
7558 # This hack is so that the source file can tell whether it is being
7559 # built for inclusion in a dll (and should export symbols for example).
7560 lt_prog_compiler_pic='-DDLL_EXPORT'
7563 darwin* | rhapsody*)
7564 # PIC is the default on this platform
7565 # Common symbols not allowed in MH_DYLIB files
7566 lt_prog_compiler_pic='-fno-common'
7570 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7571 # Instead, we relocate shared libraries at runtime.
7575 # Just because we use GCC doesn't mean we suddenly get shared libraries
7576 # on systems that don't support them.
7577 lt_prog_compiler_can_build_shared=no
7582 if test -d /usr/nec; then
7583 lt_prog_compiler_pic=-Kconform_pic
7588 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7595 lt_prog_compiler_pic='-fPIC'
7601 lt_prog_compiler_pic='-fPIC'
7605 # PORTME Check for flag to pass linker flags through the system compiler.
7608 lt_prog_compiler_wl='-Wl,'
7609 if test "$host_cpu" = ia64; then
7610 # AIX 5 now supports IA64 processor
7611 lt_prog_compiler_static='-Bstatic'
7613 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7617 # PIC is the default on this platform
7618 # Common symbols not allowed in MH_DYLIB files
7619 case $cc_basename in
7621 lt_prog_compiler_pic='-qnocommon'
7622 lt_prog_compiler_wl='-Wl,'
7627 mingw* | pw32* | os2*)
7628 # This hack is so that the source file can tell whether it is being
7629 # built for inclusion in a dll (and should export symbols for example).
7630 lt_prog_compiler_pic='-DDLL_EXPORT'
7633 hpux9* | hpux10* | hpux11*)
7634 lt_prog_compiler_wl='-Wl,'
7635 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7642 lt_prog_compiler_pic='+Z'
7645 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7646 lt_prog_compiler_static='${wl}-a ${wl}archive'
7649 irix5* | irix6* | nonstopux*)
7650 lt_prog_compiler_wl='-Wl,'
7651 # PIC (with -KPIC) is the default.
7652 lt_prog_compiler_static='-non_shared'
7656 lt_prog_compiler_pic='-KPIC'
7657 lt_prog_compiler_static='-Bstatic'
7660 linux* | k*bsd*-gnu)
7661 case $cc_basename in
7663 lt_prog_compiler_wl='-Wl,'
7664 lt_prog_compiler_pic='-KPIC'
7665 lt_prog_compiler_static='-static'
7667 pgcc* | pgf77* | pgf90* | pgf95*)
7668 # Portland Group compilers (*not* the Pentium gcc compiler,
7669 # which looks to be a dead project)
7670 lt_prog_compiler_wl='-Wl,'
7671 lt_prog_compiler_pic='-fpic'
7672 lt_prog_compiler_static='-Bstatic'
7675 lt_prog_compiler_wl='-Wl,'
7676 # All Alpha code is PIC.
7677 lt_prog_compiler_static='-non_shared'
7682 osf3* | osf4* | osf5*)
7683 lt_prog_compiler_wl='-Wl,'
7684 # All OSF/1 code is PIC.
7685 lt_prog_compiler_static='-non_shared'
7689 lt_prog_compiler_pic='-KPIC'
7690 lt_prog_compiler_static='-Bstatic'
7691 case $cc_basename in
7693 lt_prog_compiler_wl='-Qoption ld ';;
7695 lt_prog_compiler_wl='-Wl,';;
7700 lt_prog_compiler_wl='-Qoption ld '
7701 lt_prog_compiler_pic='-PIC'
7702 lt_prog_compiler_static='-Bstatic'
7705 sysv4 | sysv4.2uw2* | sysv4.3*)
7706 lt_prog_compiler_wl='-Wl,'
7707 lt_prog_compiler_pic='-KPIC'
7708 lt_prog_compiler_static='-Bstatic'
7712 if test -d /usr/nec ;then
7713 lt_prog_compiler_pic='-Kconform_pic'
7714 lt_prog_compiler_static='-Bstatic'
7718 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7719 lt_prog_compiler_wl='-Wl,'
7720 lt_prog_compiler_pic='-KPIC'
7721 lt_prog_compiler_static='-Bstatic'
7725 lt_prog_compiler_wl='-Wl,'
7726 lt_prog_compiler_can_build_shared=no
7730 lt_prog_compiler_pic='-pic'
7731 lt_prog_compiler_static='-Bstatic'
7735 lt_prog_compiler_can_build_shared=no
7740 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7741 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7744 # Check to make sure the PIC flag actually works.
7746 if test -n "$lt_prog_compiler_pic"; then
7748 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7749 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7750 if test "${lt_prog_compiler_pic_works+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 lt_prog_compiler_pic_works=no
7754 ac_outfile=conftest.$ac_objext
7755 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7756 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7757 # Insert the option either (1) after the last *FLAGS variable, or
7758 # (2) before a word containing "conftest.", or (3) at the end.
7759 # Note that $ac_compile itself does not contain backslashes and begins
7760 # with a dollar sign (not a hyphen), so the echo should work correctly.
7761 # The option is referenced via a variable to avoid confusing sed.
7762 lt_compile=`echo "$ac_compile" | $SED \
7763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7765 -e 's:$: $lt_compiler_flag:'`
7766 (eval echo "\"\$as_me:7766: $lt_compile\"" >&5)
7767 (eval "$lt_compile" 2>conftest.err)
7769 cat conftest.err >&5
7770 echo "$as_me:7770: \$? = $ac_status" >&5
7771 if (exit $ac_status) && test -s "$ac_outfile"; then
7772 # The compiler can only warn and ignore the option if not recognized
7773 # So say no if there are warnings other than the usual output.
7774 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7776 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7777 lt_prog_compiler_pic_works=yes
7783 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7784 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7786 if test x"$lt_prog_compiler_pic_works" = xyes; then
7787 case $lt_prog_compiler_pic in
7789 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7792 lt_prog_compiler_pic=
7793 lt_prog_compiler_can_build_shared=no
7798 # For platforms which do not support PIC, -DPIC is meaningless:
7800 lt_prog_compiler_pic=
7803 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7808 # Check to make sure the static flag actually works.
7810 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7811 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7812 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7813 if test "${lt_prog_compiler_static_works+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 lt_prog_compiler_static_works=no
7817 save_LDFLAGS="$LDFLAGS"
7818 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7819 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7820 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7821 # The linker can only warn and ignore the option if not recognized
7822 # So say no if there are warnings
7823 if test -s conftest.err; then
7824 # Append any errors to the config.log.
7825 cat conftest.err 1>&5
7826 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7828 if diff conftest.exp conftest.er2 >/dev/null; then
7829 lt_prog_compiler_static_works=yes
7832 lt_prog_compiler_static_works=yes
7836 LDFLAGS="$save_LDFLAGS"
7839 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7840 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7842 if test x"$lt_prog_compiler_static_works" = xyes; then
7845 lt_prog_compiler_static=
7849 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7850 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7851 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7854 lt_cv_prog_compiler_c_o=no
7855 $rm -r conftest 2>/dev/null
7859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7861 lt_compiler_flag="-o out/conftest2.$ac_objext"
7862 # Insert the option either (1) after the last *FLAGS variable, or
7863 # (2) before a word containing "conftest.", or (3) at the end.
7864 # Note that $ac_compile itself does not contain backslashes and begins
7865 # with a dollar sign (not a hyphen), so the echo should work correctly.
7866 lt_compile=`echo "$ac_compile" | $SED \
7867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7869 -e 's:$: $lt_compiler_flag:'`
7870 (eval echo "\"\$as_me:7870: $lt_compile\"" >&5)
7871 (eval "$lt_compile" 2>out/conftest.err)
7873 cat out/conftest.err >&5
7874 echo "$as_me:7874: \$? = $ac_status" >&5
7875 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7877 # The compiler can only warn and ignore the option if not recognized
7878 # So say no if there are warnings
7879 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7880 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7881 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7882 lt_cv_prog_compiler_c_o=yes
7887 # SGI C++ compiler will create directory out/ii_files/ for
7888 # template instantiation
7889 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7890 $rm out/* && rmdir out
7896 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7897 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7900 hard_links="nottested"
7901 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7902 # do not overwrite the value of need_locks provided by the user
7903 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7904 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7909 ln conftest.a conftest.b 2>&5 || hard_links=no
7910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7911 { echo "$as_me:$LINENO: result: $hard_links" >&5
7912 echo "${ECHO_T}$hard_links" >&6; }
7913 if test "$hard_links" = no; then
7914 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7915 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7922 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7923 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7926 allow_undefined_flag=
7927 enable_shared_with_static_runtimes=no
7929 archive_expsym_cmds=
7930 old_archive_From_new_cmds=
7931 old_archive_from_expsyms_cmds=
7932 export_dynamic_flag_spec=
7933 whole_archive_flag_spec=
7934 thread_safe_flag_spec=
7935 hardcode_libdir_flag_spec=
7936 hardcode_libdir_flag_spec_ld=
7937 hardcode_libdir_separator=
7940 hardcode_shlibpath_var=unsupported
7941 link_all_deplibs=unknown
7942 hardcode_automatic=no
7945 always_export_symbols=no
7946 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7947 # include_expsyms should be a list of space-separated symbols to be *always*
7948 # included in the symbol list
7950 # exclude_expsyms can be an extended regexp of symbols to exclude
7951 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7952 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7953 # as well as any symbol that contains `d'.
7954 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7955 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7956 # platforms (ab)use it in PIC code, but their linkers get confused if
7957 # the symbol is explicitly referenced. Since portable code cannot
7958 # rely on this symbol name, it's probably fine to never include it in
7959 # preloaded symbol tables.
7960 extract_expsyms_cmds=
7961 # Just being paranoid about ensuring that cc_basename is set.
7962 for cc_temp in $compiler""; do
7964 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7965 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7970 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7973 cygwin* | mingw* | pw32*)
7974 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7975 # When not using gcc, we currently assume that we are using
7976 # Microsoft Visual C++.
7977 if test "$GCC" != yes; then
7982 # we just hope/assume this is gcc and not c89 (= MSVC++)
7991 if test "$with_gnu_ld" = yes; then
7992 # If archive_cmds runs LD, not CC, wlarc should be empty
7995 # Set some defaults for GNU ld with shared library support. These
7996 # are reset later if shared libraries are not supported. Putting them
7997 # here allows them to be overridden if necessary.
7998 runpath_var=LD_RUN_PATH
7999 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8000 export_dynamic_flag_spec='${wl}--export-dynamic'
8001 # ancient GNU ld didn't support --whole-archive et. al.
8002 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8003 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8005 whole_archive_flag_spec=
8007 supports_anon_versioning=no
8008 case `$LD -v 2>/dev/null` in
8009 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8010 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8011 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8012 *\ 2.11.*) ;; # other 2.11 versions
8013 *) supports_anon_versioning=yes ;;
8016 # See if GNU ld supports shared libraries.
8018 aix3* | aix4* | aix5*)
8019 # On AIX/PPC, the GNU linker is very broken
8020 if test "$host_cpu" != ia64; then
8024 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8025 *** to be unable to reliably create shared libraries on AIX.
8026 *** Therefore, libtool is disabling shared libraries support. If you
8027 *** really care for shared libraries, you may want to modify your PATH
8028 *** so that a non-GNU linker is found, and then restart.
8035 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)'
8036 hardcode_libdir_flag_spec='-L$libdir'
8037 hardcode_minus_L=yes
8039 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8040 # that the semantics of dynamic libraries on AmigaOS, at least up
8041 # to version 4, is to share data among multiple programs linked
8042 # with the same dynamic library. Since this doesn't match the
8043 # behavior of shared libraries on other platforms, we can't use
8049 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8050 allow_undefined_flag=unsupported
8051 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8052 # support --undefined. This deserves some investigation. FIXME
8053 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8059 cygwin* | mingw* | pw32*)
8060 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8061 # as there is no search path for DLLs.
8062 hardcode_libdir_flag_spec='-L$libdir'
8063 allow_undefined_flag=unsupported
8064 always_export_symbols=no
8065 enable_shared_with_static_runtimes=yes
8066 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8068 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8070 # If the export-symbols file already is a .def file (1st line
8071 # is EXPORTS), use it as is; otherwise, prepend...
8072 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8073 cp $export_symbols $output_objdir/$soname.def;
8075 echo EXPORTS > $output_objdir/$soname.def;
8076 cat $export_symbols >> $output_objdir/$soname.def;
8078 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8086 hardcode_shlibpath_var=no
8087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8088 export_dynamic_flag_spec='${wl}-E'
8089 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8090 # Instead, shared libraries are loaded at an image base (0x10000000 by
8091 # default) and relocated if they conflict, which is a slow very memory
8092 # consuming and fragmenting process. To avoid this, we pick a random,
8093 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8094 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8095 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8096 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'
8099 linux* | k*bsd*-gnu)
8100 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8102 case $cc_basename,$host_cpu in
8103 pgcc*) # Portland Group C compiler
8104 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'
8105 tmp_addflag=' $pic_flag'
8107 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8108 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'
8109 tmp_addflag=' $pic_flag -Mnomain' ;;
8110 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8111 tmp_addflag=' -i_dynamic' ;;
8112 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8113 tmp_addflag=' -i_dynamic -nofor_main' ;;
8114 ifc* | ifort*) # Intel Fortran compiler
8115 tmp_addflag=' -nofor_main' ;;
8117 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8119 if test $supports_anon_versioning = yes; then
8120 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8122 $echo "local: *; };" >> $output_objdir/$libname.ver~
8123 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8131 netbsd* | netbsdelf*-gnu)
8132 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8133 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8137 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8142 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8146 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8147 *** create shared libraries on Solaris systems. Therefore, libtool
8148 *** is disabling shared libraries support. We urge you to upgrade GNU
8149 *** binutils to release 2.9.1 or newer. Another option is to modify
8150 *** your PATH or compiler configuration so that the native linker is
8151 *** used, and then restart.
8154 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8156 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8162 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8163 case `$LD -v 2>&1` in
8164 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8168 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8169 *** reliably create shared libraries on SCO systems. Therefore, libtool
8170 *** is disabling shared libraries support. We urge you to upgrade GNU
8171 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8172 *** your PATH or compiler configuration so that the native linker is
8173 *** used, and then restart.
8178 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8179 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8181 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8190 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8193 hardcode_shlibpath_var=no
8197 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8199 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8206 if test "$ld_shlibs" = no; then
8208 hardcode_libdir_flag_spec=
8209 export_dynamic_flag_spec=
8210 whole_archive_flag_spec=
8213 # PORTME fill in a description of your system's linker (not GNU ld)
8216 allow_undefined_flag=unsupported
8217 always_export_symbols=yes
8218 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'
8219 # Note: this linker hardcodes the directories in LIBPATH if there
8220 # are no directories specified by -L.
8221 hardcode_minus_L=yes
8222 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8223 # Neither direct hardcoding nor static linking is supported with a
8225 hardcode_direct=unsupported
8230 if test "$host_cpu" = ia64; then
8231 # On IA64, the linker does run time linking by default, so we don't
8232 # have to do anything special.
8233 aix_use_runtimelinking=no
8234 exp_sym_flag='-Bexport'
8237 # If we're using GNU nm, then we don't want the "-C" option.
8238 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8239 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8240 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'
8242 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'
8244 aix_use_runtimelinking=no
8246 # Test if we are trying to use run time linking or normal
8247 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8248 # need to do runtime linking.
8249 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8250 for ld_flag in $LDFLAGS; do
8251 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8252 aix_use_runtimelinking=yes
8259 exp_sym_flag='-bexport'
8260 no_entry_flag='-bnoentry'
8263 # When large executables or shared objects are built, AIX ld can
8264 # have problems creating the table of contents. If linking a library
8265 # or program results in "error TOC overflow" add -mminimal-toc to
8266 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8267 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8271 hardcode_libdir_separator=':'
8272 link_all_deplibs=yes
8274 if test "$GCC" = yes; then
8275 case $host_os in aix4.[012]|aix4.[012].*)
8276 # We only want to do this on AIX 4.2 and lower, the check
8277 # below for broken collect2 doesn't work under 4.3+
8278 collect2name=`${CC} -print-prog-name=collect2`
8279 if test -f "$collect2name" && \
8280 strings "$collect2name" | grep resolve_lib_name >/dev/null
8282 # We have reworked collect2
8285 # We have old collect2
8286 hardcode_direct=unsupported
8287 # It fails to find uninstalled libraries when the uninstalled
8288 # path is not listed in the libpath. Setting hardcode_minus_L
8289 # to unsupported forces relinking
8290 hardcode_minus_L=yes
8291 hardcode_libdir_flag_spec='-L$libdir'
8292 hardcode_libdir_separator=
8296 shared_flag='-shared'
8297 if test "$aix_use_runtimelinking" = yes; then
8298 shared_flag="$shared_flag "'${wl}-G'
8302 if test "$host_cpu" = ia64; then
8303 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8304 # chokes on -Wl,-G. The following line is correct:
8307 if test "$aix_use_runtimelinking" = yes; then
8308 shared_flag='${wl}-G'
8310 shared_flag='${wl}-bM:SRE'
8315 # It seems that -bexpall does not export symbols beginning with
8316 # underscore (_), so it is better to generate a list of symbols to export.
8317 always_export_symbols=yes
8318 if test "$aix_use_runtimelinking" = yes; then
8319 # Warning - without using the other runtime loading flags (-brtl),
8320 # -berok will link without error, but may produce a broken library.
8321 allow_undefined_flag='-berok'
8322 # Determine the default libpath from the value encoded in an empty executable.
8323 cat >conftest.$ac_ext <<_ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8338 rm -f conftest.$ac_objext conftest$ac_exeext
8339 if { (ac_try="$ac_link"
8341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342 *) ac_try_echo=$ac_try;;
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345 (eval "$ac_link") 2>conftest.er1
8347 grep -v '^ *+' conftest.er1 >conftest.err
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8353 { (case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_try") 2>&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; } &&
8362 { ac_try='test -s conftest$ac_exeext'
8363 { (case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_try") 2>&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
8373 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8375 # Check for a 64-bit object if we didn't find anything.
8376 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8385 rm -f core conftest.err conftest.$ac_objext \
8386 conftest$ac_exeext conftest.$ac_ext
8387 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8389 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8390 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"
8392 if test "$host_cpu" = ia64; then
8393 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8394 allow_undefined_flag="-z nodefs"
8395 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"
8397 # Determine the default libpath from the value encoded in an empty executable.
8398 cat >conftest.$ac_ext <<_ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8413 rm -f conftest.$ac_objext conftest$ac_exeext
8414 if { (ac_try="$ac_link"
8416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_link") 2>conftest.er1
8422 grep -v '^ *+' conftest.er1 >conftest.err
8424 cat conftest.err >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } &&
8427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8428 { (case "(($ac_try" in
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433 (eval "$ac_try") 2>&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; } &&
8437 { ac_try='test -s conftest$ac_exeext'
8438 { (case "(($ac_try" in
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_try") 2>&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; }; then
8448 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8450 # Check for a 64-bit object if we didn't find anything.
8451 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8460 rm -f core conftest.err conftest.$ac_objext \
8461 conftest$ac_exeext conftest.$ac_ext
8462 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8464 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8465 # Warning - without using the other run time loading flags,
8466 # -berok will link without error, but may produce a broken library.
8467 no_undefined_flag=' ${wl}-bernotok'
8468 allow_undefined_flag=' ${wl}-berok'
8469 # Exported symbols can be pulled into shared objects from archives
8470 whole_archive_flag_spec='$convenience'
8471 archive_cmds_need_lc=yes
8472 # This is similar to how AIX traditionally builds its shared libraries.
8473 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'
8479 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)'
8480 hardcode_libdir_flag_spec='-L$libdir'
8481 hardcode_minus_L=yes
8482 # see comment about different semantics on the GNU ld section
8487 export_dynamic_flag_spec=-rdynamic
8490 cygwin* | mingw* | pw32*)
8491 # When not using gcc, we currently assume that we are using
8492 # Microsoft Visual C++.
8493 # hardcode_libdir_flag_spec is actually meaningless, as there is
8494 # no search path for DLLs.
8495 hardcode_libdir_flag_spec=' '
8496 allow_undefined_flag=unsupported
8497 # Tell ltmain to make .lib files, not .a files.
8499 # Tell ltmain to make .dll files, not .so files.
8501 # FIXME: Setting linknames here is a bad hack.
8502 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8503 # The linker will automatically build a .lib file if we build a DLL.
8504 old_archive_From_new_cmds='true'
8505 # FIXME: Should let the user specify the lib program.
8506 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8507 fix_srcfile_path='`cygpath -w "$srcfile"`'
8508 enable_shared_with_static_runtimes=yes
8511 darwin* | rhapsody*)
8513 rhapsody* | darwin1.[012])
8514 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8517 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8518 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8520 case ${MACOSX_DEPLOYMENT_TARGET} in
8522 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8525 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8531 archive_cmds_need_lc=no
8533 hardcode_automatic=yes
8534 hardcode_shlibpath_var=unsupported
8535 whole_archive_flag_spec=''
8536 link_all_deplibs=yes
8537 if test "$GCC" = yes ; then
8538 output_verbose_link_cmd='echo'
8539 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8540 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8541 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8542 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}'
8543 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}'
8545 case $cc_basename in
8547 output_verbose_link_cmd='echo'
8548 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8549 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8550 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8551 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8552 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}'
8562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8563 hardcode_libdir_flag_spec='-L$libdir'
8564 hardcode_shlibpath_var=no
8571 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8572 # support. Future versions do this automatically, but an explicit c++rt0.o
8573 # does not break anything, and helps significantly (at the cost of a little
8576 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8577 hardcode_libdir_flag_spec='-R$libdir'
8579 hardcode_shlibpath_var=no
8582 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8584 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8586 hardcode_minus_L=yes
8587 hardcode_shlibpath_var=no
8590 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8591 freebsd* | dragonfly*)
8592 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8593 hardcode_libdir_flag_spec='-R$libdir'
8595 hardcode_shlibpath_var=no
8599 if test "$GCC" = yes; then
8600 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'
8602 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'
8604 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8605 hardcode_libdir_separator=:
8608 # hardcode_minus_L: Not really in the search PATH,
8609 # but as the default location of the library.
8610 hardcode_minus_L=yes
8611 export_dynamic_flag_spec='${wl}-E'
8615 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8616 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8618 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8620 if test "$with_gnu_ld" = no; then
8621 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8622 hardcode_libdir_separator=:
8625 export_dynamic_flag_spec='${wl}-E'
8627 # hardcode_minus_L: Not really in the search PATH,
8628 # but as the default location of the library.
8629 hardcode_minus_L=yes
8634 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8637 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8640 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8643 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8649 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8652 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8655 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8659 if test "$with_gnu_ld" = no; then
8660 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8661 hardcode_libdir_separator=:
8665 hardcode_libdir_flag_spec_ld='+b $libdir'
8667 hardcode_shlibpath_var=no
8671 export_dynamic_flag_spec='${wl}-E'
8673 # hardcode_minus_L: Not really in the search PATH,
8674 # but as the default location of the library.
8675 hardcode_minus_L=yes
8681 irix5* | irix6* | nonstopux*)
8682 if test "$GCC" = yes; then
8683 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'
8685 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'
8686 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8689 hardcode_libdir_separator=:
8690 link_all_deplibs=yes
8693 netbsd* | netbsdelf*-gnu)
8694 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8695 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8697 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8699 hardcode_libdir_flag_spec='-R$libdir'
8701 hardcode_shlibpath_var=no
8705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8708 hardcode_libdir_separator=:
8709 hardcode_shlibpath_var=no
8714 hardcode_shlibpath_var=no
8715 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8716 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8717 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8718 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8719 export_dynamic_flag_spec='${wl}-E'
8722 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8724 hardcode_libdir_flag_spec='-R$libdir'
8727 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8728 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8735 hardcode_libdir_flag_spec='-L$libdir'
8736 hardcode_minus_L=yes
8737 allow_undefined_flag=unsupported
8738 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'
8739 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8743 if test "$GCC" = yes; then
8744 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8745 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'
8747 allow_undefined_flag=' -expect_unresolved \*'
8748 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'
8750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8751 hardcode_libdir_separator=:
8754 osf4* | osf5*) # as osf3* with the addition of -msym flag
8755 if test "$GCC" = yes; then
8756 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8757 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'
8758 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8760 allow_undefined_flag=' -expect_unresolved \*'
8761 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'
8762 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8763 $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'
8765 # Both c and cxx compiler support -rpath directly
8766 hardcode_libdir_flag_spec='-rpath $libdir'
8768 hardcode_libdir_separator=:
8772 no_undefined_flag=' -z text'
8773 if test "$GCC" = yes; then
8775 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8776 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8777 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8780 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8781 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8782 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8784 hardcode_libdir_flag_spec='-R$libdir'
8785 hardcode_shlibpath_var=no
8787 solaris2.[0-5] | solaris2.[0-5].*) ;;
8789 # The compiler driver will combine linker options so we
8790 # cannot just pass the convience library names through
8791 # without $wl, iff we do not link with $LD.
8792 # Luckily, gcc supports the same syntax we need for Sun Studio.
8793 # Supported since Solaris 2.6 (maybe 2.5.1?)
8796 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8798 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8801 link_all_deplibs=yes
8805 if test "x$host_vendor" = xsequent; then
8806 # Use $CC to link under sequent, because it throws in some extra .o
8807 # files that make .init and .fini sections work.
8808 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8810 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8812 hardcode_libdir_flag_spec='-L$libdir'
8814 hardcode_minus_L=yes
8815 hardcode_shlibpath_var=no
8819 case $host_vendor in
8821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822 hardcode_direct=yes # is this really true???
8825 ## LD is ld it makes a PLAMLIB
8826 ## CC just makes a GrossModule.
8827 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8828 reload_cmds='$CC -r -o $output$reload_objs'
8832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8833 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8836 runpath_var='LD_RUN_PATH'
8837 hardcode_shlibpath_var=no
8841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8842 hardcode_shlibpath_var=no
8843 export_dynamic_flag_spec='-Bexport'
8847 if test -d /usr/nec; then
8848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849 hardcode_shlibpath_var=no
8850 runpath_var=LD_RUN_PATH
8851 hardcode_runpath_var=yes
8856 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8857 no_undefined_flag='${wl}-z,text'
8858 archive_cmds_need_lc=no
8859 hardcode_shlibpath_var=no
8860 runpath_var='LD_RUN_PATH'
8862 if test "$GCC" = yes; then
8863 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8864 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8866 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8867 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8871 sysv5* | sco3.2v5* | sco5v6*)
8872 # Note: We can NOT use -z defs as we might desire, because we do not
8873 # link with -lc, and that would cause any symbols used from libc to
8874 # always be unresolved, which means just about no library would
8875 # ever link correctly. If we're not using GNU ld we use -z text
8876 # though, which does catch some bad symbols but isn't as heavy-handed
8878 no_undefined_flag='${wl}-z,text'
8879 allow_undefined_flag='${wl}-z,nodefs'
8880 archive_cmds_need_lc=no
8881 hardcode_shlibpath_var=no
8882 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8883 hardcode_libdir_separator=':'
8884 link_all_deplibs=yes
8885 export_dynamic_flag_spec='${wl}-Bexport'
8886 runpath_var='LD_RUN_PATH'
8888 if test "$GCC" = yes; then
8889 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8890 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8892 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8893 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8899 hardcode_libdir_flag_spec='-L$libdir'
8900 hardcode_shlibpath_var=no
8909 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8910 echo "${ECHO_T}$ld_shlibs" >&6; }
8911 test "$ld_shlibs" = no && can_build_shared=no
8914 # Do we need to explicitly link libc?
8916 case "x$archive_cmds_need_lc" in
8918 # Assume -lc should be added
8919 archive_cmds_need_lc=yes
8921 if test "$enable_shared" = yes && test "$GCC" = yes; then
8922 case $archive_cmds in
8924 # FIXME: we may have to deal with multi-command sequences.
8927 # Test whether the compiler implicitly links with -lc since on some
8928 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8929 # to ld, don't add -lc before -lgcc.
8930 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8931 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8933 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8936 (eval $ac_compile) 2>&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } 2>conftest.err; then
8942 libobjs=conftest.$ac_objext
8944 wl=$lt_prog_compiler_wl
8945 pic_flag=$lt_prog_compiler_pic
8951 lt_save_allow_undefined_flag=$allow_undefined_flag
8952 allow_undefined_flag=
8953 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8954 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }
8959 archive_cmds_need_lc=no
8961 archive_cmds_need_lc=yes
8963 allow_undefined_flag=$lt_save_allow_undefined_flag
8965 cat conftest.err 1>&5
8968 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8969 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8976 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8977 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8979 libname_spec='lib$name'
8987 shlibpath_overrides_runpath=unknown
8989 dynamic_linker="$host_os ld.so"
8990 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8991 if test "$GCC" = yes; then
8992 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8993 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8994 # if the path contains ";" then we assume it to be the separator
8995 # otherwise default to the standard path separator (i.e. ":") - it is
8996 # assumed that no part of a normal pathname contains ";" but that should
8997 # okay in the real world where ";" in dirpaths is itself problematic.
8998 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9000 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9003 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9005 need_lib_prefix=unknown
9006 hardcode_into_libs=no
9008 # when you set need_version to no, make sure it does not cause -set_version
9009 # flags to be left without arguments
9010 need_version=unknown
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9016 shlibpath_var=LIBPATH
9018 # AIX 3 has no versioning support, so we append a major version to the name.
9019 soname_spec='${libname}${release}${shared_ext}$major'
9026 hardcode_into_libs=yes
9027 if test "$host_cpu" = ia64; then
9028 # AIX 5 supports IA64
9029 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9030 shlibpath_var=LD_LIBRARY_PATH
9032 # With GCC up to 2.95.x, collect2 would create an import file
9033 # for dependence libraries. The import file would start with
9034 # the line `#! .'. This would cause the generated library to
9035 # depend on `.', always an invalid library. This was fixed in
9036 # development snapshots of GCC prior to 3.0.
9038 aix4 | aix4.[01] | aix4.[01].*)
9039 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9041 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9048 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9049 # soname into executable. Probably we can add versioning support to
9050 # collect2, so additional links can be useful in future.
9051 if test "$aix_use_runtimelinking" = yes; then
9052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9053 # instead of lib<name>.a to let people know that these are not
9054 # typical AIX shared libraries.
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057 # We preserve .a as extension for shared libraries through AIX4.2
9058 # and later when we are not doing run time linking.
9059 library_names_spec='${libname}${release}.a $libname.a'
9060 soname_spec='${libname}${release}${shared_ext}$major'
9062 shlibpath_var=LIBPATH
9067 library_names_spec='$libname.ixlibrary $libname.a'
9068 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9069 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'
9073 library_names_spec='${libname}${shared_ext}'
9074 dynamic_linker="$host_os ld.so"
9075 shlibpath_var=LIBRARY_PATH
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9086 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9087 # the default ld.so.conf also contains /usr/contrib/lib and
9088 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9089 # libtool to hard-code these into programs
9092 cygwin* | mingw* | pw32*)
9093 version_type=windows
9098 case $GCC,$host_os in
9099 yes,cygwin* | yes,mingw* | yes,pw32*)
9100 library_names_spec='$libname.dll.a'
9101 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9102 postinstall_cmds='base_file=`basename \${file}`~
9103 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9104 dldir=$destdir/`dirname \$dlpath`~
9105 test -d \$dldir || mkdir -p \$dldir~
9106 $install_prog $dir/$dlname \$dldir/$dlname~
9107 chmod a+x \$dldir/$dlname'
9108 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9109 dlpath=$dir/\$dldll~
9111 shlibpath_overrides_runpath=yes
9115 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9116 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9117 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9120 # MinGW DLLs use traditional 'lib' prefix
9121 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9122 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9123 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9124 # It is most probably a Windows format PATH printed by
9125 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9126 # path with ; separators, and with drive letters. We can handle the
9127 # drive letters (cygwin fileutils understands them), so leave them,
9128 # especially as we might pass files found there to a mingw objdump,
9129 # which wouldn't understand a cygwinified path. Ahh.
9130 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9132 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9136 # pw32 DLLs use 'pw' prefix rather than 'lib'
9137 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9143 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9146 dynamic_linker='Win32 ld.exe'
9147 # FIXME: first we should search . and the directory the executable is in
9151 darwin* | rhapsody*)
9152 dynamic_linker="$host_os dyld"
9156 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9157 soname_spec='${libname}${release}${major}$shared_ext'
9158 shlibpath_overrides_runpath=yes
9159 shlibpath_var=DYLD_LIBRARY_PATH
9160 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9161 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9162 if test "$GCC" = yes; then
9163 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9165 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9167 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9175 soname_spec='${libname}${release}${shared_ext}$major'
9176 shlibpath_var=LD_LIBRARY_PATH
9183 freebsd* | dragonfly*)
9184 # DragonFly does not have aout. When/if they implement a new
9185 # versioning mechanism, adjust this.
9186 if test -x /usr/bin/objformat; then
9187 objformat=`/usr/bin/objformat`
9190 freebsd[123]*) objformat=aout ;;
9194 version_type=freebsd-$objformat
9195 case $version_type in
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9206 shlibpath_var=LD_LIBRARY_PATH
9209 shlibpath_overrides_runpath=yes
9211 freebsd3.[01]* | freebsdelf3.[01]*)
9212 shlibpath_overrides_runpath=yes
9213 hardcode_into_libs=yes
9215 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9216 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9217 shlibpath_overrides_runpath=no
9218 hardcode_into_libs=yes
9220 freebsd*) # from 4.6 on
9221 shlibpath_overrides_runpath=yes
9222 hardcode_into_libs=yes
9231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9232 soname_spec='${libname}${release}${shared_ext}$major'
9233 shlibpath_var=LD_LIBRARY_PATH
9234 hardcode_into_libs=yes
9237 hpux9* | hpux10* | hpux11*)
9238 # Give a soname corresponding to the major version so that dld.sl refuses to
9239 # link against other versions.
9246 hardcode_into_libs=yes
9247 dynamic_linker="$host_os dld.so"
9248 shlibpath_var=LD_LIBRARY_PATH
9249 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9251 soname_spec='${libname}${release}${shared_ext}$major'
9252 if test "X$HPUX_IA64_MODE" = X32; then
9253 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9255 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9261 hardcode_into_libs=yes
9262 dynamic_linker="$host_os dld.sl"
9263 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9264 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266 soname_spec='${libname}${release}${shared_ext}$major'
9267 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9272 dynamic_linker="$host_os dld.sl"
9273 shlibpath_var=SHLIB_PATH
9274 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276 soname_spec='${libname}${release}${shared_ext}$major'
9279 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9280 postinstall_cmds='chmod 555 $lib'
9287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9288 soname_spec='${libname}${release}${shared_ext}$major'
9289 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 shlibpath_overrides_runpath=no
9292 hardcode_into_libs=yes
9295 irix5* | irix6* | nonstopux*)
9297 nonstopux*) version_type=nonstopux ;;
9299 if test "$lt_cv_prog_gnu_ld" = yes; then
9307 soname_spec='${libname}${release}${shared_ext}$major'
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9310 irix5* | nonstopux*)
9314 case $LD in # libtool.m4 will add one of these switches to LD
9315 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9316 libsuff= shlibsuff= libmagic=32-bit;;
9317 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9318 libsuff=32 shlibsuff=N32 libmagic=N32;;
9319 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9320 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9321 *) libsuff= shlibsuff= libmagic=never-match;;
9325 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9326 shlibpath_overrides_runpath=no
9327 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9328 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9329 hardcode_into_libs=yes
9332 # No shared lib support for Linux oldld, aout, or coff.
9333 linux*oldld* | linux*aout* | linux*coff*)
9337 # This must be Linux ELF.
9338 linux* | k*bsd*-gnu)
9342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9343 soname_spec='${libname}${release}${shared_ext}$major'
9344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9345 shlibpath_var=LD_LIBRARY_PATH
9346 shlibpath_overrides_runpath=no
9347 # This implies no fast_install, which is unacceptable.
9348 # Some rework will be needed to allow for fast_install
9349 # before this can be enabled.
9350 hardcode_into_libs=yes
9352 # Append ld.so.conf contents to the search path
9353 if test -f /etc/ld.so.conf; then
9354 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9355 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9358 # We used to test for /lib/ld.so.1 and disable shared libraries on
9359 # powerpc, because MkLinux only supported shared libraries with the
9360 # GNU dynamic linker. Since this was broken with cross compilers,
9361 # most powerpc-linux boxes support dynamic linking these days and
9362 # people can always --disable-shared, the test was removed, and we
9363 # assume the GNU/Linux dynamic linker is in use.
9364 dynamic_linker='GNU/Linux ld.so'
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9372 soname_spec='${libname}${release}${shared_ext}$major'
9373 shlibpath_var=LD_LIBRARY_PATH
9374 shlibpath_overrides_runpath=no
9375 hardcode_into_libs=yes
9376 dynamic_linker='NetBSD ld.elf_so'
9383 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9386 dynamic_linker='NetBSD (a.out) ld.so'
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9389 soname_spec='${libname}${release}${shared_ext}$major'
9390 dynamic_linker='NetBSD ld.elf_so'
9392 shlibpath_var=LD_LIBRARY_PATH
9393 shlibpath_overrides_runpath=yes
9394 hardcode_into_libs=yes
9399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400 shlibpath_var=LD_LIBRARY_PATH
9401 shlibpath_overrides_runpath=yes
9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409 soname_spec='${libname}${release}${shared_ext}$major'
9410 shlibpath_var=LD_LIBRARY_PATH
9411 shlibpath_overrides_runpath=yes
9416 sys_lib_dlsearch_path_spec="/usr/lib"
9418 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9420 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9421 *) need_version=no ;;
9423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9425 shlibpath_var=LD_LIBRARY_PATH
9426 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9428 openbsd2.[89] | openbsd2.[89].*)
9429 shlibpath_overrides_runpath=no
9432 shlibpath_overrides_runpath=yes
9436 shlibpath_overrides_runpath=yes
9441 libname_spec='$name'
9444 library_names_spec='$libname${shared_ext} $libname.a'
9445 dynamic_linker='OS/2 ld.exe'
9446 shlibpath_var=LIBPATH
9449 osf3* | osf4* | osf5*)
9453 soname_spec='${libname}${release}${shared_ext}$major'
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9457 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 shlibpath_overrides_runpath=yes
9468 hardcode_into_libs=yes
9469 # ldd complains unless libraries are executable
9470 postinstall_cmds='chmod +x $lib'
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9476 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9477 shlibpath_var=LD_LIBRARY_PATH
9478 shlibpath_overrides_runpath=yes
9479 if test "$with_gnu_ld" = yes; then
9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488 soname_spec='${libname}${release}${shared_ext}$major'
9489 shlibpath_var=LD_LIBRARY_PATH
9490 case $host_vendor in
9492 shlibpath_overrides_runpath=no
9494 export_dynamic_flag_spec='${wl}-Blargedynsym'
9495 runpath_var=LD_RUN_PATH
9503 shlibpath_overrides_runpath=no
9504 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9510 if test -d /usr/nec ;then
9512 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9513 soname_spec='$libname${shared_ext}.$major'
9514 shlibpath_var=LD_LIBRARY_PATH
9518 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9519 version_type=freebsd-elf
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 shlibpath_var=LD_LIBRARY_PATH
9525 hardcode_into_libs=yes
9526 if test "$with_gnu_ld" = yes; then
9527 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9528 shlibpath_overrides_runpath=no
9530 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9531 shlibpath_overrides_runpath=yes
9534 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9538 sys_lib_dlsearch_path_spec='/usr/lib'
9543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544 soname_spec='${libname}${release}${shared_ext}$major'
9545 shlibpath_var=LD_LIBRARY_PATH
9552 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9553 echo "${ECHO_T}$dynamic_linker" >&6; }
9554 test "$dynamic_linker" = no && can_build_shared=no
9556 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9557 if test "$GCC" = yes; then
9558 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9561 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9562 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9564 if test -n "$hardcode_libdir_flag_spec" || \
9565 test -n "$runpath_var" || \
9566 test "X$hardcode_automatic" = "Xyes" ; then
9568 # We can hardcode non-existant directories.
9569 if test "$hardcode_direct" != no &&
9570 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9571 # have to relink, otherwise we might link with an installed library
9572 # when we should be linking with a yet-to-be-installed one
9573 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9574 test "$hardcode_minus_L" != no; then
9575 # Linking always hardcodes the temporary library directory.
9576 hardcode_action=relink
9578 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9579 hardcode_action=immediate
9582 # We cannot hardcode anything, or else we can only hardcode existing
9584 hardcode_action=unsupported
9586 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9587 echo "${ECHO_T}$hardcode_action" >&6; }
9589 if test "$hardcode_action" = relink; then
9590 # Fast installation is not supported
9591 enable_fast_install=no
9592 elif test "$shlibpath_overrides_runpath" = yes ||
9593 test "$enable_shared" = no; then
9594 # Fast installation is not necessary
9595 enable_fast_install=needless
9600 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9601 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9602 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9603 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9604 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9605 { echo "$as_me:$LINENO: result: yes" >&5
9606 echo "${ECHO_T}yes" >&6; }
9608 # FIXME - insert some real tests, host_os isn't really good enough
9611 if test -n "$STRIP" ; then
9612 striplib="$STRIP -x"
9613 { echo "$as_me:$LINENO: result: yes" >&5
9614 echo "${ECHO_T}yes" >&6; }
9616 { echo "$as_me:$LINENO: result: no" >&5
9617 echo "${ECHO_T}no" >&6; }
9621 { echo "$as_me:$LINENO: result: no" >&5
9622 echo "${ECHO_T}no" >&6; }
9627 if test "x$enable_dlopen" != xyes; then
9628 enable_dlopen=unknown
9629 enable_dlopen_self=unknown
9630 enable_dlopen_self_static=unknown
9637 lt_cv_dlopen="load_add_on"
9639 lt_cv_dlopen_self=yes
9643 lt_cv_dlopen="LoadLibrary"
9648 lt_cv_dlopen="dlopen"
9653 # if libdl is installed we need to link against it
9654 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9655 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9656 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 ac_check_lib_save_LIBS=$LIBS
9661 cat >conftest.$ac_ext <<_ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h. */
9668 /* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (ac_try="$ac_link"
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_link") 2>conftest.er1
9692 grep -v '^ *+' conftest.er1 >conftest.err
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } &&
9697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9698 { (case "(($ac_try" in
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_try") 2>&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; } &&
9707 { ac_try='test -s conftest$ac_exeext'
9708 { (case "(($ac_try" in
9709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710 *) ac_try_echo=$ac_try;;
9712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713 (eval "$ac_try") 2>&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717 ac_cv_lib_dl_dlopen=yes
9719 echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9722 ac_cv_lib_dl_dlopen=no
9725 rm -f core conftest.err conftest.$ac_objext \
9726 conftest$ac_exeext conftest.$ac_ext
9727 LIBS=$ac_check_lib_save_LIBS
9729 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9730 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9731 if test $ac_cv_lib_dl_dlopen = yes; then
9732 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9737 lt_cv_dlopen_self=yes
9744 { echo "$as_me:$LINENO: checking for shl_load" >&5
9745 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9746 if test "${ac_cv_func_shl_load+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 cat >conftest.$ac_ext <<_ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9757 #define shl_load innocuous_shl_load
9759 /* System header to define __stub macros and hopefully few prototypes,
9760 which can conflict with char shl_load (); below.
9761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9762 <limits.h> exists even on freestanding compilers. */
9765 # include <limits.h>
9767 # include <assert.h>
9772 /* Override any GCC internal prototype to avoid an error.
9773 Use char because int might match the return type of a GCC
9774 builtin and then its argument prototype would still apply. */
9779 /* The GNU C library defines this for functions which it implements
9780 to always fail with ENOSYS. Some functions are actually named
9781 something starting with __ and the normal name is an alias. */
9782 #if defined __stub_shl_load || defined __stub___shl_load
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (ac_try="$ac_link"
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_link") 2>conftest.er1
9803 grep -v '^ *+' conftest.er1 >conftest.err
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } &&
9808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9809 { (case "(($ac_try" in
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814 (eval "$ac_try") 2>&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; } &&
9818 { ac_try='test -s conftest$ac_exeext'
9819 { (case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_try") 2>&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; }; then
9828 ac_cv_func_shl_load=yes
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9833 ac_cv_func_shl_load=no
9836 rm -f core conftest.err conftest.$ac_objext \
9837 conftest$ac_exeext conftest.$ac_ext
9839 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9840 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9841 if test $ac_cv_func_shl_load = yes; then
9842 lt_cv_dlopen="shl_load"
9844 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9845 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9846 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 ac_check_lib_save_LIBS=$LIBS
9851 cat >conftest.$ac_ext <<_ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9858 /* Override any GCC internal prototype to avoid an error.
9859 Use char because int might match the return type of a GCC
9860 builtin and then its argument prototype would still apply. */
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (ac_try="$ac_link"
9876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877 *) ac_try_echo=$ac_try;;
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880 (eval "$ac_link") 2>conftest.er1
9882 grep -v '^ *+' conftest.er1 >conftest.err
9884 cat conftest.err >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } &&
9887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9888 { (case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_try") 2>&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; } &&
9897 { ac_try='test -s conftest$ac_exeext'
9898 { (case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_try") 2>&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_cv_lib_dld_shl_load=yes
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9912 ac_cv_lib_dld_shl_load=no
9915 rm -f core conftest.err conftest.$ac_objext \
9916 conftest$ac_exeext conftest.$ac_ext
9917 LIBS=$ac_check_lib_save_LIBS
9919 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9920 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9921 if test $ac_cv_lib_dld_shl_load = yes; then
9922 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9924 { echo "$as_me:$LINENO: checking for dlopen" >&5
9925 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9926 if test "${ac_cv_func_dlopen+set}" = set; then
9927 echo $ECHO_N "(cached) $ECHO_C" >&6
9929 cat >conftest.$ac_ext <<_ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9935 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9937 #define dlopen innocuous_dlopen
9939 /* System header to define __stub macros and hopefully few prototypes,
9940 which can conflict with char dlopen (); below.
9941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9942 <limits.h> exists even on freestanding compilers. */
9945 # include <limits.h>
9947 # include <assert.h>
9952 /* Override any GCC internal prototype to avoid an error.
9953 Use char because int might match the return type of a GCC
9954 builtin and then its argument prototype would still apply. */
9959 /* The GNU C library defines this for functions which it implements
9960 to always fail with ENOSYS. Some functions are actually named
9961 something starting with __ and the normal name is an alias. */
9962 #if defined __stub_dlopen || defined __stub___dlopen
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (ac_try="$ac_link"
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_link") 2>conftest.er1
9983 grep -v '^ *+' conftest.er1 >conftest.err
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } &&
9988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9989 { (case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_try") 2>&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; } &&
9998 { ac_try='test -s conftest$ac_exeext'
9999 { (case "(($ac_try" in
10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001 *) ac_try_echo=$ac_try;;
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004 (eval "$ac_try") 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 ac_cv_func_dlopen=yes
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 ac_cv_func_dlopen=no
10016 rm -f core conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10019 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10020 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10021 if test $ac_cv_func_dlopen = yes; then
10022 lt_cv_dlopen="dlopen"
10024 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10025 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10026 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10029 ac_check_lib_save_LIBS=$LIBS
10031 cat >conftest.$ac_ext <<_ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10038 /* Override any GCC internal prototype to avoid an error.
10039 Use char because int might match the return type of a GCC
10040 builtin and then its argument prototype would still apply. */
10053 rm -f conftest.$ac_objext conftest$ac_exeext
10054 if { (ac_try="$ac_link"
10055 case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060 (eval "$ac_link") 2>conftest.er1
10062 grep -v '^ *+' conftest.er1 >conftest.err
10064 cat conftest.err >&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10068 { (case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_try") 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try='test -s conftest$ac_exeext'
10078 { (case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_try") 2>&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; }; then
10087 ac_cv_lib_dl_dlopen=yes
10089 echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10092 ac_cv_lib_dl_dlopen=no
10095 rm -f core conftest.err conftest.$ac_objext \
10096 conftest$ac_exeext conftest.$ac_ext
10097 LIBS=$ac_check_lib_save_LIBS
10099 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10100 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10101 if test $ac_cv_lib_dl_dlopen = yes; then
10102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10104 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10105 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10106 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 ac_check_lib_save_LIBS=$LIBS
10110 LIBS="-lsvld $LIBS"
10111 cat >conftest.$ac_ext <<_ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10118 /* Override any GCC internal prototype to avoid an error.
10119 Use char because int might match the return type of a GCC
10120 builtin and then its argument prototype would still apply. */
10133 rm -f conftest.$ac_objext conftest$ac_exeext
10134 if { (ac_try="$ac_link"
10135 case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_link") 2>conftest.er1
10142 grep -v '^ *+' conftest.er1 >conftest.err
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10148 { (case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_try") 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; } &&
10157 { ac_try='test -s conftest$ac_exeext'
10158 { (case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_try") 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_cv_lib_svld_dlopen=yes
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10172 ac_cv_lib_svld_dlopen=no
10175 rm -f core conftest.err conftest.$ac_objext \
10176 conftest$ac_exeext conftest.$ac_ext
10177 LIBS=$ac_check_lib_save_LIBS
10179 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10180 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10181 if test $ac_cv_lib_svld_dlopen = yes; then
10182 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10184 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10185 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10186 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 ac_check_lib_save_LIBS=$LIBS
10191 cat >conftest.$ac_ext <<_ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10198 /* Override any GCC internal prototype to avoid an error.
10199 Use char because int might match the return type of a GCC
10200 builtin and then its argument prototype would still apply. */
10208 return dld_link ();
10213 rm -f conftest.$ac_objext conftest$ac_exeext
10214 if { (ac_try="$ac_link"
10215 case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220 (eval "$ac_link") 2>conftest.er1
10222 grep -v '^ *+' conftest.er1 >conftest.err
10224 cat conftest.err >&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } &&
10227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10228 { (case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233 (eval "$ac_try") 2>&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; } &&
10237 { ac_try='test -s conftest$ac_exeext'
10238 { (case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_try") 2>&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; }; then
10247 ac_cv_lib_dld_dld_link=yes
10249 echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10252 ac_cv_lib_dld_dld_link=no
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10257 LIBS=$ac_check_lib_save_LIBS
10259 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10260 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10261 if test $ac_cv_lib_dld_dld_link = yes; then
10262 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10283 if test "x$lt_cv_dlopen" != xno; then
10289 case $lt_cv_dlopen in
10291 save_CPPFLAGS="$CPPFLAGS"
10292 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10294 save_LDFLAGS="$LDFLAGS"
10295 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10298 LIBS="$lt_cv_dlopen_libs $LIBS"
10300 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10301 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10302 if test "${lt_cv_dlopen_self+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 if test "$cross_compiling" = yes; then :
10306 lt_cv_dlopen_self=cross
10308 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10309 lt_status=$lt_dlunknown
10310 cat > conftest.$ac_ext <<EOF
10311 #line 10311 "configure"
10312 #include "confdefs.h"
10321 # define LT_DLGLOBAL RTLD_GLOBAL
10324 # define LT_DLGLOBAL DL_GLOBAL
10326 # define LT_DLGLOBAL 0
10330 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10331 find out it does not work in some platform. */
10332 #ifndef LT_DLLAZY_OR_NOW
10334 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10337 # define LT_DLLAZY_OR_NOW DL_LAZY
10340 # define LT_DLLAZY_OR_NOW RTLD_NOW
10343 # define LT_DLLAZY_OR_NOW DL_NOW
10345 # define LT_DLLAZY_OR_NOW 0
10353 extern "C" void exit (int);
10356 void fnord() { int i=42;}
10359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10360 int status = $lt_dlunknown;
10364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10365 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10366 /* dlclose (self); */
10374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10375 (eval $ac_link) 2>&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10379 (./conftest; exit; ) >&5 2>/dev/null
10381 case x$lt_status in
10382 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10383 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10384 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10387 # compilation failed
10388 lt_cv_dlopen_self=no
10395 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10396 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10398 if test "x$lt_cv_dlopen_self" = xyes; then
10399 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10400 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10401 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10402 if test "${lt_cv_dlopen_self_static+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 if test "$cross_compiling" = yes; then :
10406 lt_cv_dlopen_self_static=cross
10408 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10409 lt_status=$lt_dlunknown
10410 cat > conftest.$ac_ext <<EOF
10411 #line 10411 "configure"
10412 #include "confdefs.h"
10421 # define LT_DLGLOBAL RTLD_GLOBAL
10424 # define LT_DLGLOBAL DL_GLOBAL
10426 # define LT_DLGLOBAL 0
10430 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10431 find out it does not work in some platform. */
10432 #ifndef LT_DLLAZY_OR_NOW
10434 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10437 # define LT_DLLAZY_OR_NOW DL_LAZY
10440 # define LT_DLLAZY_OR_NOW RTLD_NOW
10443 # define LT_DLLAZY_OR_NOW DL_NOW
10445 # define LT_DLLAZY_OR_NOW 0
10453 extern "C" void exit (int);
10456 void fnord() { int i=42;}
10459 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10460 int status = $lt_dlunknown;
10464 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10465 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10466 /* dlclose (self); */
10474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10475 (eval $ac_link) 2>&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10479 (./conftest; exit; ) >&5 2>/dev/null
10481 case x$lt_status in
10482 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10483 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10484 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10487 # compilation failed
10488 lt_cv_dlopen_self_static=no
10495 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10496 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10499 CPPFLAGS="$save_CPPFLAGS"
10500 LDFLAGS="$save_LDFLAGS"
10505 case $lt_cv_dlopen_self in
10506 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10507 *) enable_dlopen_self=unknown ;;
10510 case $lt_cv_dlopen_self_static in
10511 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10512 *) enable_dlopen_self_static=unknown ;;
10517 # Report which library types will actually be built
10518 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10519 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10520 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10521 echo "${ECHO_T}$can_build_shared" >&6; }
10523 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10524 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10525 test "$can_build_shared" = "no" && enable_shared=no
10527 # On AIX, shared libraries and static libraries use the same namespace, and
10528 # are all built from PIC.
10531 test "$enable_shared" = yes && enable_static=no
10532 if test -n "$RANLIB"; then
10533 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10534 postinstall_cmds='$RANLIB $lib'
10539 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10540 test "$enable_shared" = yes && enable_static=no
10544 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10545 echo "${ECHO_T}$enable_shared" >&6; }
10547 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10548 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10549 # Make sure either enable_shared or enable_static is yes.
10550 test "$enable_shared" = yes || enable_static=yes
10551 { echo "$as_me:$LINENO: result: $enable_static" >&5
10552 echo "${ECHO_T}$enable_static" >&6; }
10554 # The else clause should only fire when bootstrapping the
10555 # libtool distribution, otherwise you forgot to ship ltmain.sh
10556 # with your package, and you will get complaints that there are
10557 # no rules to generate ltmain.sh.
10558 if test -f "$ltmain"; then
10559 # See if we are running on zsh, and set the options which allow our commands through
10560 # without removal of \ escapes.
10561 if test -n "${ZSH_VERSION+set}" ; then
10562 setopt NO_GLOB_SUBST
10564 # Now quote all the things that may contain metacharacters while being
10565 # careful not to overquote the AC_SUBSTed values. We take copies of the
10566 # variables and quote the copies for generation of the libtool script.
10567 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10569 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10570 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10571 deplibs_check_method reload_flag reload_cmds need_locks \
10572 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10573 lt_cv_sys_global_symbol_to_c_name_address \
10574 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10575 old_postinstall_cmds old_postuninstall_cmds \
10579 lt_prog_compiler_wl \
10580 lt_prog_compiler_pic \
10581 lt_prog_compiler_static \
10582 lt_prog_compiler_no_builtin_flag \
10583 export_dynamic_flag_spec \
10584 thread_safe_flag_spec \
10585 whole_archive_flag_spec \
10586 enable_shared_with_static_runtimes \
10588 old_archive_from_new_cmds \
10593 compiler_lib_search_path \
10595 archive_expsym_cmds \
10597 postuninstall_cmds \
10598 old_archive_from_expsyms_cmds \
10599 allow_undefined_flag \
10600 no_undefined_flag \
10601 export_symbols_cmds \
10602 hardcode_libdir_flag_spec \
10603 hardcode_libdir_flag_spec_ld \
10604 hardcode_libdir_separator \
10605 hardcode_automatic \
10607 module_expsym_cmds \
10608 lt_cv_prog_compiler_c_o \
10610 include_expsyms; do
10613 old_archive_cmds | \
10614 old_archive_from_new_cmds | \
10616 archive_expsym_cmds | \
10618 module_expsym_cmds | \
10619 old_archive_from_expsyms_cmds | \
10620 export_symbols_cmds | \
10621 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10622 postinstall_cmds | postuninstall_cmds | \
10623 old_postinstall_cmds | old_postuninstall_cmds | \
10624 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10625 # Double-quote double-evaled strings.
10626 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10635 *'\$0 --fallback-echo"')
10636 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10640 cfgfile="${ofile}T"
10641 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10643 { echo "$as_me:$LINENO: creating $ofile" >&5
10644 echo "$as_me: creating $ofile" >&6;}
10646 cat <<__EOF__ >> "$cfgfile"
10649 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10650 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10651 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10653 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10654 # Free Software Foundation, Inc.
10656 # This file is part of GNU Libtool:
10657 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10659 # This program is free software; you can redistribute it and/or modify
10660 # it under the terms of the GNU General Public License as published by
10661 # the Free Software Foundation; either version 2 of the License, or
10662 # (at your option) any later version.
10664 # This program is distributed in the hope that it will be useful, but
10665 # WITHOUT ANY WARRANTY; without even the implied warranty of
10666 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10667 # General Public License for more details.
10669 # You should have received a copy of the GNU General Public License
10670 # along with this program; if not, write to the Free Software
10671 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10673 # As a special exception to the GNU General Public License, if you
10674 # distribute this file as part of a program that contains a
10675 # configuration script generated by Autoconf, you may include it under
10676 # the same distribution terms that you use for the rest of that program.
10678 # A sed program that does not truncate output.
10681 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10682 Xsed="$SED -e 1s/^X//"
10684 # The HP-UX ksh and POSIX shell print the target directory to stdout
10685 # if CDPATH is set.
10686 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10688 # The names of the tagged configurations supported by this script.
10691 # ### BEGIN LIBTOOL CONFIG
10693 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10695 # Shell to use when invoking shell scripts.
10698 # Whether or not to build shared libraries.
10699 build_libtool_libs=$enable_shared
10701 # Whether or not to build static libraries.
10702 build_old_libs=$enable_static
10704 # Whether or not to add -lc for building shared libraries.
10705 build_libtool_need_lc=$archive_cmds_need_lc
10707 # Whether or not to disallow shared libs when runtime libs are static
10708 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10710 # Whether or not to optimize for fast installation.
10711 fast_install=$enable_fast_install
10714 host_alias=$host_alias
10718 # The build system.
10719 build_alias=$build_alias
10723 # An echo program that does not interpret backslashes.
10728 AR_FLAGS=$lt_AR_FLAGS
10733 # LTCC compiler flags.
10734 LTCFLAGS=$lt_LTCFLAGS
10736 # A language-specific compiler.
10739 # Is the compiler the GNU C compiler?
10745 # The linker used to build libraries.
10748 # Whether we need hard or soft links.
10751 # A BSD-compatible nm program.
10754 # A symbol stripping program
10757 # Used to examine libraries when file_magic_cmd begins "file"
10758 MAGIC_CMD=$MAGIC_CMD
10760 # Used on cygwin: DLL creation program.
10763 # Used on cygwin: object dumper.
10766 # Used on cygwin: assembler.
10769 # The name of the directory that contains temporary libtool files.
10772 # How to create reloadable object files.
10773 reload_flag=$lt_reload_flag
10774 reload_cmds=$lt_reload_cmds
10776 # How to pass a linker flag through the compiler.
10777 wl=$lt_lt_prog_compiler_wl
10779 # Object file suffix (normally "o").
10780 objext="$ac_objext"
10782 # Old archive suffix (normally "a").
10785 # Shared library suffix (normally ".so").
10786 shrext_cmds='$shrext_cmds'
10788 # Executable file suffix (normally "").
10791 # Additional compiler flags for building library objects.
10792 pic_flag=$lt_lt_prog_compiler_pic
10795 # What is the maximum length of a command?
10796 max_cmd_len=$lt_cv_sys_max_cmd_len
10798 # Does compiler simultaneously support -c and -o options?
10799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10801 # Must we lock files when doing compilation?
10802 need_locks=$lt_need_locks
10804 # Do we need the lib prefix for modules?
10805 need_lib_prefix=$need_lib_prefix
10807 # Do we need a version for libraries?
10808 need_version=$need_version
10810 # Whether dlopen is supported.
10811 dlopen_support=$enable_dlopen
10813 # Whether dlopen of programs is supported.
10814 dlopen_self=$enable_dlopen_self
10816 # Whether dlopen of statically linked programs is supported.
10817 dlopen_self_static=$enable_dlopen_self_static
10819 # Compiler flag to prevent dynamic linking.
10820 link_static_flag=$lt_lt_prog_compiler_static
10822 # Compiler flag to turn off builtin functions.
10823 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10825 # Compiler flag to allow reflexive dlopens.
10826 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10828 # Compiler flag to generate shared objects directly from archives.
10829 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10831 # Compiler flag to generate thread-safe objects.
10832 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10834 # Library versioning type.
10835 version_type=$version_type
10837 # Format of library name prefix.
10838 libname_spec=$lt_libname_spec
10840 # List of archive names. First name is the real one, the rest are links.
10841 # The last name is the one that the linker finds with -lNAME.
10842 library_names_spec=$lt_library_names_spec
10844 # The coded name of the library, if different from the real name.
10845 soname_spec=$lt_soname_spec
10847 # Commands used to build and install an old-style archive.
10849 old_archive_cmds=$lt_old_archive_cmds
10850 old_postinstall_cmds=$lt_old_postinstall_cmds
10851 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10853 # Create an old-style archive from a shared archive.
10854 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10856 # Create a temporary old-style archive to link instead of a shared archive.
10857 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10859 # Commands used to build and install a shared archive.
10860 archive_cmds=$lt_archive_cmds
10861 archive_expsym_cmds=$lt_archive_expsym_cmds
10862 postinstall_cmds=$lt_postinstall_cmds
10863 postuninstall_cmds=$lt_postuninstall_cmds
10865 # Commands used to build a loadable module (assumed same as above if empty)
10866 module_cmds=$lt_module_cmds
10867 module_expsym_cmds=$lt_module_expsym_cmds
10869 # Commands to strip libraries.
10870 old_striplib=$lt_old_striplib
10871 striplib=$lt_striplib
10873 # Dependencies to place before the objects being linked to create a
10875 predep_objects=$lt_predep_objects
10877 # Dependencies to place after the objects being linked to create a
10879 postdep_objects=$lt_postdep_objects
10881 # Dependencies to place before the objects being linked to create a
10883 predeps=$lt_predeps
10885 # Dependencies to place after the objects being linked to create a
10887 postdeps=$lt_postdeps
10889 # The library search path used internally by the compiler when linking
10890 # a shared library.
10891 compiler_lib_search_path=$lt_compiler_lib_search_path
10893 # Method to check whether dependent libraries are shared objects.
10894 deplibs_check_method=$lt_deplibs_check_method
10896 # Command to use when deplibs_check_method == file_magic.
10897 file_magic_cmd=$lt_file_magic_cmd
10899 # Flag that allows shared libraries with undefined symbols to be built.
10900 allow_undefined_flag=$lt_allow_undefined_flag
10902 # Flag that forces no undefined symbols.
10903 no_undefined_flag=$lt_no_undefined_flag
10905 # Commands used to finish a libtool library installation in a directory.
10906 finish_cmds=$lt_finish_cmds
10908 # Same as above, but a single script fragment to be evaled but not shown.
10909 finish_eval=$lt_finish_eval
10911 # Take the output of nm and produce a listing of raw symbols and C names.
10912 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10914 # Transform the output of nm in a proper C declaration
10915 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10917 # Transform the output of nm in a C name address pair
10918 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10920 # This is the shared library runtime path variable.
10921 runpath_var=$runpath_var
10923 # This is the shared library path variable.
10924 shlibpath_var=$shlibpath_var
10926 # Is shlibpath searched before the hard-coded library search path?
10927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10929 # How to hardcode a shared library path into an executable.
10930 hardcode_action=$hardcode_action
10932 # Whether we should hardcode library paths into libraries.
10933 hardcode_into_libs=$hardcode_into_libs
10935 # Flag to hardcode \$libdir into a binary during linking.
10936 # This must work even if \$libdir does not exist.
10937 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10939 # If ld is used when linking, flag to hardcode \$libdir into
10940 # a binary during linking. This must work even if \$libdir does
10942 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10944 # Whether we need a single -rpath flag with a separated argument.
10945 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10947 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10948 # resulting binary.
10949 hardcode_direct=$hardcode_direct
10951 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10952 # resulting binary.
10953 hardcode_minus_L=$hardcode_minus_L
10955 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10956 # the resulting binary.
10957 hardcode_shlibpath_var=$hardcode_shlibpath_var
10959 # Set to yes if building a shared library automatically hardcodes DIR into the library
10960 # and all subsequent libraries and executables linked against it.
10961 hardcode_automatic=$hardcode_automatic
10963 # Variables whose values should be saved in libtool wrapper scripts and
10964 # restored at relink time.
10965 variables_saved_for_relink="$variables_saved_for_relink"
10967 # Whether libtool must link a program against all its dependency libraries.
10968 link_all_deplibs=$link_all_deplibs
10970 # Compile-time system search path for libraries
10971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10973 # Run-time system search path for libraries
10974 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10976 # Fix the shell variable \$srcfile for the compiler.
10977 fix_srcfile_path="$fix_srcfile_path"
10979 # Set to yes if exported symbols are required.
10980 always_export_symbols=$always_export_symbols
10982 # The commands to list exported symbols.
10983 export_symbols_cmds=$lt_export_symbols_cmds
10985 # The commands to extract the exported symbol list from a shared archive.
10986 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10988 # Symbols that should not be listed in the preloaded symbols.
10989 exclude_expsyms=$lt_exclude_expsyms
10991 # Symbols that must always be exported.
10992 include_expsyms=$lt_include_expsyms
10994 # ### END LIBTOOL CONFIG
11001 cat <<\EOF >> "$cfgfile"
11003 # AIX sometimes has problems with the GCC collect2 program. For some
11004 # reason, if we set the COLLECT_NAMES environment variable, the problems
11005 # vanish in a puff of smoke.
11006 if test "X${COLLECT_NAMES+set}" != Xset; then
11008 export COLLECT_NAMES
11014 # We use sed instead of cat because bash on DJGPP gets confused if
11015 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11016 # text mode, it properly converts lines to CR/LF. This bash problem
11017 # is reportedly fixed, but why not run on old versions too?
11018 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11020 mv -f "$cfgfile" "$ofile" || \
11021 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11025 # If there is no Makefile yet, we rely on a make rule to execute
11026 # `config.status --recheck' to rerun these tests and create the
11027 # libtool script then.
11028 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11029 if test -f "$ltmain_in"; then
11030 test -f Makefile && make "$ltmain"
11036 ac_cpp='$CPP $CPPFLAGS'
11037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11044 # Check whether --with-tags was given.
11045 if test "${with_tags+set}" = set; then
11046 withval=$with_tags; tagnames="$withval"
11050 if test -f "$ltmain" && test -n "$tagnames"; then
11051 if test ! -f "${ofile}"; then
11052 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11053 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11056 if test -z "$LTCC"; then
11057 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11058 if test -z "$LTCC"; then
11059 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11060 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11062 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11063 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11066 if test -z "$LTCFLAGS"; then
11067 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11070 # Extract list of available tagged configurations in $ofile.
11071 # Note that this assumes the entire list is on one line.
11072 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11074 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11075 for tagname in $tagnames; do
11077 # Check whether tagname contains only valid characters
11078 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11080 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11081 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11082 { (exit 1); exit 1; }; }
11086 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11088 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11089 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11090 { (exit 1); exit 1; }; }
11093 # Update the list of available tags.
11094 if test -n "$tagname"; then
11095 echo appending configuration tag \"$tagname\" to $ofile
11099 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11100 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11101 (test "X$CXX" != "Xg++"))) ; then
11103 ac_cpp='$CXXCPP $CPPFLAGS'
11104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11111 archive_cmds_need_lc_CXX=no
11112 allow_undefined_flag_CXX=
11113 always_export_symbols_CXX=no
11114 archive_expsym_cmds_CXX=
11115 export_dynamic_flag_spec_CXX=
11116 hardcode_direct_CXX=no
11117 hardcode_libdir_flag_spec_CXX=
11118 hardcode_libdir_flag_spec_ld_CXX=
11119 hardcode_libdir_separator_CXX=
11120 hardcode_minus_L_CXX=no
11121 hardcode_shlibpath_var_CXX=unsupported
11122 hardcode_automatic_CXX=no
11124 module_expsym_cmds_CXX=
11125 link_all_deplibs_CXX=unknown
11126 old_archive_cmds_CXX=$old_archive_cmds
11127 no_undefined_flag_CXX=
11128 whole_archive_flag_spec_CXX=
11129 enable_shared_with_static_runtimes_CXX=no
11131 # Dependencies to place before and after the object being linked:
11132 predep_objects_CXX=
11133 postdep_objects_CXX=
11136 compiler_lib_search_path_CXX=
11138 # Source file extension for C++ test sources.
11141 # Object file extension for compiled C++ test sources.
11145 # Code to be used in simple compile tests
11146 lt_simple_compile_test_code="int some_variable = 0;\n"
11148 # Code to be used in simple link tests
11149 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11151 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11153 # If no C compiler was specified, use CC.
11156 # If no C compiler flags were specified, use CFLAGS.
11157 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11159 # Allow CC to be a program name with arguments.
11163 # save warnings/boilerplate of simple test code
11164 ac_outfile=conftest.$ac_objext
11165 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11166 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11167 _lt_compiler_boilerplate=`cat conftest.err`
11170 ac_outfile=conftest.$ac_objext
11171 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11172 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11173 _lt_linker_boilerplate=`cat conftest.err`
11177 # Allow CC to be a program name with arguments.
11182 lt_save_with_gnu_ld=$with_gnu_ld
11183 lt_save_path_LD=$lt_cv_path_LD
11184 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11185 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11187 $as_unset lt_cv_prog_gnu_ld
11189 if test -n "${lt_cv_path_LDCXX+set}"; then
11190 lt_cv_path_LD=$lt_cv_path_LDCXX
11192 $as_unset lt_cv_path_LD
11194 test -z "${LDCXX+set}" || LD=$LDCXX
11198 for cc_temp in $compiler""; do
11200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11206 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11209 # We don't want -fno-exception wen compiling C++ code, so set the
11210 # no_builtin_flag separately
11211 if test "$GXX" = yes; then
11212 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11214 lt_prog_compiler_no_builtin_flag_CXX=
11217 if test "$GXX" = yes; then
11218 # Set up default GNU C++ configuration
11221 # Check whether --with-gnu-ld was given.
11222 if test "${with_gnu_ld+set}" = set; then
11223 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11229 if test "$GCC" = yes; then
11230 # Check if gcc -print-prog-name=ld gives a path.
11231 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11232 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11235 # gcc leaves a trailing carriage return which upsets mingw
11236 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11238 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11241 # Accept absolute paths.
11243 re_direlt='/[^/][^/]*/\.\./'
11244 # Canonicalize the pathname of ld
11245 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11246 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11247 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11249 test -z "$LD" && LD="$ac_prog"
11252 # If it fails, then pretend we aren't using GCC.
11256 # If it is relative, then search for the first ld in PATH.
11257 with_gnu_ld=unknown
11260 elif test "$with_gnu_ld" = yes; then
11261 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11262 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11264 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11265 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11267 if test "${lt_cv_path_LD+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 if test -z "$LD"; then
11271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11272 for ac_dir in $PATH; do
11274 test -z "$ac_dir" && ac_dir=.
11275 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11276 lt_cv_path_LD="$ac_dir/$ac_prog"
11277 # Check to see if the program is GNU ld. I'd rather use --version,
11278 # but apparently some variants of GNU ld only accept -v.
11279 # Break only if it was the GNU/non-GNU ld that we prefer.
11280 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11281 *GNU* | *'with BFD'*)
11282 test "$with_gnu_ld" != no && break
11285 test "$with_gnu_ld" != yes && break
11292 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11296 LD="$lt_cv_path_LD"
11297 if test -n "$LD"; then
11298 { echo "$as_me:$LINENO: result: $LD" >&5
11299 echo "${ECHO_T}$LD" >&6; }
11301 { echo "$as_me:$LINENO: result: no" >&5
11302 echo "${ECHO_T}no" >&6; }
11304 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11305 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11306 { (exit 1); exit 1; }; }
11307 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11308 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11309 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11313 case `$LD -v 2>&1 </dev/null` in
11314 *GNU* | *'with BFD'*)
11315 lt_cv_prog_gnu_ld=yes
11318 lt_cv_prog_gnu_ld=no
11322 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11323 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11324 with_gnu_ld=$lt_cv_prog_gnu_ld
11328 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11329 # archiving commands below assume that GNU ld is being used.
11330 if test "$with_gnu_ld" = yes; then
11331 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11332 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'
11334 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11335 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11337 # If archive_cmds runs LD, not CC, wlarc should be empty
11338 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11339 # investigate it a little bit more. (MM)
11342 # ancient GNU ld didn't support --whole-archive et. al.
11343 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11344 grep 'no-whole-archive' > /dev/null; then
11345 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11347 whole_archive_flag_spec_CXX=
11353 # A generic and very simple default shared library creation
11354 # command for GNU C++ for the case where it uses the native
11355 # linker, instead of GNU ld. If possible, this setting should
11356 # overridden to take advantage of the native linker features on
11357 # the platform it is being used on.
11358 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11361 # Commands to make compiler produce verbose output that lists
11362 # what "hidden" libraries, object files and flags are used when
11363 # linking a shared library.
11364 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11372 # PORTME: fill in a description of your system's C++ link characteristics
11373 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11374 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11378 # FIXME: insert proper C++ library support
11382 if test "$host_cpu" = ia64; then
11383 # On IA64, the linker does run time linking by default, so we don't
11384 # have to do anything special.
11385 aix_use_runtimelinking=no
11386 exp_sym_flag='-Bexport'
11389 aix_use_runtimelinking=no
11391 # Test if we are trying to use run time linking or normal
11392 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11393 # need to do runtime linking.
11394 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11395 for ld_flag in $LDFLAGS; do
11398 aix_use_runtimelinking=yes
11406 exp_sym_flag='-bexport'
11407 no_entry_flag='-bnoentry'
11410 # When large executables or shared objects are built, AIX ld can
11411 # have problems creating the table of contents. If linking a library
11412 # or program results in "error TOC overflow" add -mminimal-toc to
11413 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11414 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11416 archive_cmds_CXX=''
11417 hardcode_direct_CXX=yes
11418 hardcode_libdir_separator_CXX=':'
11419 link_all_deplibs_CXX=yes
11421 if test "$GXX" = yes; then
11422 case $host_os in aix4.[012]|aix4.[012].*)
11423 # We only want to do this on AIX 4.2 and lower, the check
11424 # below for broken collect2 doesn't work under 4.3+
11425 collect2name=`${CC} -print-prog-name=collect2`
11426 if test -f "$collect2name" && \
11427 strings "$collect2name" | grep resolve_lib_name >/dev/null
11429 # We have reworked collect2
11430 hardcode_direct_CXX=yes
11432 # We have old collect2
11433 hardcode_direct_CXX=unsupported
11434 # It fails to find uninstalled libraries when the uninstalled
11435 # path is not listed in the libpath. Setting hardcode_minus_L
11436 # to unsupported forces relinking
11437 hardcode_minus_L_CXX=yes
11438 hardcode_libdir_flag_spec_CXX='-L$libdir'
11439 hardcode_libdir_separator_CXX=
11443 shared_flag='-shared'
11444 if test "$aix_use_runtimelinking" = yes; then
11445 shared_flag="$shared_flag "'${wl}-G'
11449 if test "$host_cpu" = ia64; then
11450 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11451 # chokes on -Wl,-G. The following line is correct:
11454 if test "$aix_use_runtimelinking" = yes; then
11455 shared_flag='${wl}-G'
11457 shared_flag='${wl}-bM:SRE'
11462 # It seems that -bexpall does not export symbols beginning with
11463 # underscore (_), so it is better to generate a list of symbols to export.
11464 always_export_symbols_CXX=yes
11465 if test "$aix_use_runtimelinking" = yes; then
11466 # Warning - without using the other runtime loading flags (-brtl),
11467 # -berok will link without error, but may produce a broken library.
11468 allow_undefined_flag_CXX='-berok'
11469 # Determine the default libpath from the value encoded in an empty executable.
11470 cat >conftest.$ac_ext <<_ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11485 rm -f conftest.$ac_objext conftest$ac_exeext
11486 if { (ac_try="$ac_link"
11487 case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_link") 2>conftest.er1
11494 grep -v '^ *+' conftest.er1 >conftest.err
11496 cat conftest.err >&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } &&
11499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11500 { (case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505 (eval "$ac_try") 2>&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; } &&
11509 { ac_try='test -s conftest$ac_exeext'
11510 { (case "(($ac_try" in
11511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512 *) ac_try_echo=$ac_try;;
11514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11515 (eval "$ac_try") 2>&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); }; }; then
11520 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11522 # Check for a 64-bit object if we didn't find anything.
11523 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11526 echo "$as_me: failed program was:" >&5
11527 sed 's/^/| /' conftest.$ac_ext >&5
11532 rm -f core conftest.err conftest.$ac_objext \
11533 conftest$ac_exeext conftest.$ac_ext
11534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11536 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11538 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"
11540 if test "$host_cpu" = ia64; then
11541 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11542 allow_undefined_flag_CXX="-z nodefs"
11543 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"
11545 # Determine the default libpath from the value encoded in an empty executable.
11546 cat >conftest.$ac_ext <<_ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11561 rm -f conftest.$ac_objext conftest$ac_exeext
11562 if { (ac_try="$ac_link"
11563 case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_link") 2>conftest.er1
11570 grep -v '^ *+' conftest.er1 >conftest.err
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } &&
11575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11576 { (case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_try") 2>&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; } &&
11585 { ac_try='test -s conftest$ac_exeext'
11586 { (case "(($ac_try" in
11587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588 *) ac_try_echo=$ac_try;;
11590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591 (eval "$ac_try") 2>&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
11596 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11598 # Check for a 64-bit object if we didn't find anything.
11599 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11602 echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11608 rm -f core conftest.err conftest.$ac_objext \
11609 conftest$ac_exeext conftest.$ac_ext
11610 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11612 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11613 # Warning - without using the other run time loading flags,
11614 # -berok will link without error, but may produce a broken library.
11615 no_undefined_flag_CXX=' ${wl}-bernotok'
11616 allow_undefined_flag_CXX=' ${wl}-berok'
11617 # Exported symbols can be pulled into shared objects from archives
11618 whole_archive_flag_spec_CXX='$convenience'
11619 archive_cmds_need_lc_CXX=yes
11620 # This is similar to how AIX traditionally builds its shared libraries.
11621 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'
11627 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11628 allow_undefined_flag_CXX=unsupported
11629 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11630 # support --undefined. This deserves some investigation. FIXME
11631 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11638 case $cc_basename in
11640 # FIXME: insert proper C++ library support
11646 cygwin* | mingw* | pw32*)
11647 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11648 # as there is no search path for DLLs.
11649 hardcode_libdir_flag_spec_CXX='-L$libdir'
11650 allow_undefined_flag_CXX=unsupported
11651 always_export_symbols_CXX=no
11652 enable_shared_with_static_runtimes_CXX=yes
11654 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11655 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'
11656 # If the export-symbols file already is a .def file (1st line
11657 # is EXPORTS), use it as is; otherwise, prepend...
11658 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11659 cp $export_symbols $output_objdir/$soname.def;
11661 echo EXPORTS > $output_objdir/$soname.def;
11662 cat $export_symbols >> $output_objdir/$soname.def;
11664 $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'
11669 darwin* | rhapsody*)
11671 rhapsody* | darwin1.[012])
11672 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11675 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11676 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11678 case ${MACOSX_DEPLOYMENT_TARGET} in
11680 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11683 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11689 archive_cmds_need_lc_CXX=no
11690 hardcode_direct_CXX=no
11691 hardcode_automatic_CXX=yes
11692 hardcode_shlibpath_var_CXX=unsupported
11693 whole_archive_flag_spec_CXX=''
11694 link_all_deplibs_CXX=yes
11696 if test "$GXX" = yes ; then
11697 lt_int_apple_cc_single_mod=no
11698 output_verbose_link_cmd='echo'
11699 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11700 lt_int_apple_cc_single_mod=yes
11702 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11703 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11705 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'
11707 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11708 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11709 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11710 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}'
11712 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}'
11714 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}'
11716 case $cc_basename in
11718 output_verbose_link_cmd='echo'
11719 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11720 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11721 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11722 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11723 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}'
11733 case $cc_basename in
11735 # FIXME: insert proper C++ library support
11739 # Green Hills C++ Compiler
11740 # FIXME: insert proper C++ library support
11744 # FIXME: insert proper C++ library support
11750 # C++ shared libraries reported to be fairly broken before switch to ELF
11754 archive_cmds_need_lc_CXX=no
11756 freebsd* | dragonfly*)
11757 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11764 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11765 hardcode_libdir_separator_CXX=:
11766 export_dynamic_flag_spec_CXX='${wl}-E'
11767 hardcode_direct_CXX=yes
11768 hardcode_minus_L_CXX=yes # Not in the search PATH,
11769 # but as the default
11770 # location of the library.
11772 case $cc_basename in
11774 # FIXME: insert proper C++ library support
11778 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'
11779 # Commands to make compiler produce verbose output that lists
11780 # what "hidden" libraries, object files and flags are used when
11781 # linking a shared library.
11783 # There doesn't appear to be a way to prevent this compiler from
11784 # explicitly linking system object files so we need to strip them
11785 # from the output so that they don't get included in the library
11787 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'
11790 if test "$GXX" = yes; then
11791 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'
11793 # FIXME: insert proper C++ library support
11800 if test $with_gnu_ld = no; then
11801 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11802 hardcode_libdir_separator_CXX=:
11806 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11809 export_dynamic_flag_spec_CXX='${wl}-E'
11815 hardcode_direct_CXX=no
11816 hardcode_shlibpath_var_CXX=no
11819 hardcode_direct_CXX=yes
11820 hardcode_minus_L_CXX=yes # Not in the search PATH,
11821 # but as the default
11822 # location of the library.
11826 case $cc_basename in
11828 # FIXME: insert proper C++ library support
11834 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11837 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11840 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11843 # Commands to make compiler produce verbose output that lists
11844 # what "hidden" libraries, object files and flags are used when
11845 # linking a shared library.
11847 # There doesn't appear to be a way to prevent this compiler from
11848 # explicitly linking system object files so we need to strip them
11849 # from the output so that they don't get included in the library
11851 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'
11854 if test "$GXX" = yes; then
11855 if test $with_gnu_ld = no; then
11858 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11861 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11864 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'
11869 # FIXME: insert proper C++ library support
11876 hardcode_direct_CXX=no
11877 hardcode_shlibpath_var_CXX=no
11878 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11879 export_dynamic_flag_spec_CXX='${wl}-E'
11880 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11881 # Instead, shared libraries are loaded at an image base (0x10000000 by
11882 # default) and relocated if they conflict, which is a slow very memory
11883 # consuming and fragmenting process. To avoid this, we pick a random,
11884 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11885 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11886 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'
11887 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'
11890 case $cc_basename in
11893 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'
11895 # Archives containing C++ object files must be created using
11896 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11897 # necessary to make sure instantiated templates are included
11899 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11902 if test "$GXX" = yes; then
11903 if test "$with_gnu_ld" = no; then
11904 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'
11906 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'
11909 link_all_deplibs_CXX=yes
11912 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11913 hardcode_libdir_separator_CXX=:
11915 linux* | k*bsd*-gnu)
11916 case $cc_basename in
11918 # Kuck and Associates, Inc. (KAI) C++ Compiler
11920 # KCC will only create a shared library if the output file
11921 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11922 # to its proper name (with version) after linking.
11923 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'
11924 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'
11925 # Commands to make compiler produce verbose output that lists
11926 # what "hidden" libraries, object files and flags are used when
11927 # linking a shared library.
11929 # There doesn't appear to be a way to prevent this compiler from
11930 # explicitly linking system object files so we need to strip them
11931 # from the output so that they don't get included in the library
11933 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'
11935 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11936 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11938 # Archives containing C++ object files must be created using
11939 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11940 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11945 # version 8.0 and above of icpc choke on multiply defined symbols
11946 # if we add $predep_objects and $postdep_objects, however 7.1 and
11947 # earlier do not add the objects themselves.
11948 case `$CC -V 2>&1` in
11950 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11951 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'
11953 *) # Version 8.0 or newer
11956 ia64*) tmp_idyn=' -i_dynamic';;
11958 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11959 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'
11962 archive_cmds_need_lc_CXX=no
11963 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11964 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11965 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11968 # Portland Group C++ compiler
11969 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11970 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'
11972 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11973 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11974 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'
11978 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11979 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'
11981 runpath_var=LD_RUN_PATH
11982 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11983 hardcode_libdir_separator_CXX=:
11985 # Commands to make compiler produce verbose output that lists
11986 # what "hidden" libraries, object files and flags are used when
11987 # linking a shared library.
11989 # There doesn't appear to be a way to prevent this compiler from
11990 # explicitly linking system object files so we need to strip them
11991 # from the output so that they don't get included in the library
11993 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'
11998 # FIXME: insert proper C++ library support
12002 # FIXME: insert proper C++ library support
12006 case $cc_basename in
12008 # FIXME: insert proper C++ library support
12012 # FIXME: insert proper C++ library support
12017 netbsd* | netbsdelf*-gnu)
12018 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12019 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12021 hardcode_libdir_flag_spec_CXX='-R$libdir'
12022 hardcode_direct_CXX=yes
12023 hardcode_shlibpath_var_CXX=no
12025 # Workaround some broken pre-1.5 toolchains
12026 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12029 # C++ shared libraries are fairly broken
12033 hardcode_direct_CXX=yes
12034 hardcode_shlibpath_var_CXX=no
12035 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12036 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12037 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12038 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12039 export_dynamic_flag_spec_CXX='${wl}-E'
12040 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12042 output_verbose_link_cmd='echo'
12045 case $cc_basename in
12047 # Kuck and Associates, Inc. (KAI) C++ Compiler
12049 # KCC will only create a shared library if the output file
12050 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12051 # to its proper name (with version) after linking.
12052 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'
12054 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12055 hardcode_libdir_separator_CXX=:
12057 # Archives containing C++ object files must be created using
12058 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12059 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12063 # Rational C++ 2.4.1
12064 # FIXME: insert proper C++ library support
12068 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12069 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'
12071 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12072 hardcode_libdir_separator_CXX=:
12074 # Commands to make compiler produce verbose output that lists
12075 # what "hidden" libraries, object files and flags are used when
12076 # linking a shared library.
12078 # There doesn't appear to be a way to prevent this compiler from
12079 # explicitly linking system object files so we need to strip them
12080 # from the output so that they don't get included in the library
12082 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'
12085 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12086 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12087 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'
12089 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12090 hardcode_libdir_separator_CXX=:
12092 # Commands to make compiler produce verbose output that lists
12093 # what "hidden" libraries, object files and flags are used when
12094 # linking a shared library.
12095 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12098 # FIXME: insert proper C++ library support
12105 case $cc_basename in
12107 # Kuck and Associates, Inc. (KAI) C++ Compiler
12109 # KCC will only create a shared library if the output file
12110 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12111 # to its proper name (with version) after linking.
12112 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'
12114 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12115 hardcode_libdir_separator_CXX=:
12117 # Archives containing C++ object files must be created using
12118 # the KAI C++ compiler.
12119 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12122 # Rational C++ 2.4.1
12123 # FIXME: insert proper C++ library support
12127 allow_undefined_flag_CXX=' -expect_unresolved \*'
12128 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'
12129 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12130 echo "-hidden">> $lib.exp~
12131 $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~
12134 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12135 hardcode_libdir_separator_CXX=:
12137 # Commands to make compiler produce verbose output that lists
12138 # what "hidden" libraries, object files and flags are used when
12139 # linking a shared library.
12141 # There doesn't appear to be a way to prevent this compiler from
12142 # explicitly linking system object files so we need to strip them
12143 # from the output so that they don't get included in the library
12145 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'
12148 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12149 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12150 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'
12152 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12153 hardcode_libdir_separator_CXX=:
12155 # Commands to make compiler produce verbose output that lists
12156 # what "hidden" libraries, object files and flags are used when
12157 # linking a shared library.
12158 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12161 # FIXME: insert proper C++ library support
12168 # FIXME: insert proper C++ library support
12172 case $cc_basename in
12175 # FIXME: insert proper C++ library support
12180 # FIXME: insert proper C++ library support
12184 # FIXME: insert proper C++ library support
12190 case $cc_basename in
12192 # Sun C++ 4.2, 5.x and Centerline C++
12193 archive_cmds_need_lc_CXX=yes
12194 no_undefined_flag_CXX=' -zdefs'
12195 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12196 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12197 $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'
12199 hardcode_libdir_flag_spec_CXX='-R$libdir'
12200 hardcode_shlibpath_var_CXX=no
12202 solaris2.[0-5] | solaris2.[0-5].*) ;;
12204 # The C++ compiler is used as linker so we must use $wl
12205 # flag to pass the commands to the underlying system
12206 # linker. We must also pass each convience library through
12207 # to the system linker between allextract/defaultextract.
12208 # The C++ compiler will combine linker options so we
12209 # cannot just pass the convience library names through
12211 # Supported since Solaris 2.6 (maybe 2.5.1?)
12212 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12215 link_all_deplibs_CXX=yes
12217 output_verbose_link_cmd='echo'
12219 # Archives containing C++ object files must be created using
12220 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12221 # necessary to make sure instantiated templates are included
12223 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12226 # Green Hills C++ Compiler
12227 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12229 # The C++ compiler must be used to create the archive.
12230 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12233 # GNU C++ compiler with Solaris linker
12234 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12235 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12236 if $CC --version | grep -v '^2\.7' > /dev/null; then
12237 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12238 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12239 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12241 # Commands to make compiler produce verbose output that lists
12242 # what "hidden" libraries, object files and flags are used when
12243 # linking a shared library.
12244 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12246 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12248 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12249 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12250 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12252 # Commands to make compiler produce verbose output that lists
12253 # what "hidden" libraries, object files and flags are used when
12254 # linking a shared library.
12255 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12258 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12263 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12264 no_undefined_flag_CXX='${wl}-z,text'
12265 archive_cmds_need_lc_CXX=no
12266 hardcode_shlibpath_var_CXX=no
12267 runpath_var='LD_RUN_PATH'
12269 case $cc_basename in
12271 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12272 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12275 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12276 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12280 sysv5* | sco3.2v5* | sco5v6*)
12281 # Note: We can NOT use -z defs as we might desire, because we do not
12282 # link with -lc, and that would cause any symbols used from libc to
12283 # always be unresolved, which means just about no library would
12284 # ever link correctly. If we're not using GNU ld we use -z text
12285 # though, which does catch some bad symbols but isn't as heavy-handed
12287 # For security reasons, it is highly recommended that you always
12288 # use absolute paths for naming shared libraries, and exclude the
12289 # DT_RUNPATH tag from executables and libraries. But doing so
12290 # requires that you compile everything twice, which is a pain.
12291 # So that behaviour is only enabled if SCOABSPATH is set to a
12292 # non-empty value in the environment. Most likely only useful for
12293 # creating official distributions of packages.
12294 # This is a hack until libtool officially supports absolute path
12295 # names for shared libraries.
12296 no_undefined_flag_CXX='${wl}-z,text'
12297 allow_undefined_flag_CXX='${wl}-z,nodefs'
12298 archive_cmds_need_lc_CXX=no
12299 hardcode_shlibpath_var_CXX=no
12300 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12301 hardcode_libdir_separator_CXX=':'
12302 link_all_deplibs_CXX=yes
12303 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12304 runpath_var='LD_RUN_PATH'
12306 case $cc_basename in
12308 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12309 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12312 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12313 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12318 case $cc_basename in
12320 # NonStop-UX NCC 3.20
12321 # FIXME: insert proper C++ library support
12325 # FIXME: insert proper C++ library support
12331 # FIXME: insert proper C++ library support
12335 # FIXME: insert proper C++ library support
12339 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12340 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12341 test "$ld_shlibs_CXX" = no && can_build_shared=no
12347 cat > conftest.$ac_ext <<EOF
12351 Foo (void) { a = 0; }
12357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12358 (eval $ac_compile) 2>&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; then
12362 # Parse the compiler output and extract the necessary
12363 # objects, libraries and library flags.
12365 # Sentinel used to keep track of whether or not we are before
12366 # the conftest object file.
12367 pre_test_object_deps_done=no
12369 # The `*' in the case matches for architectures that use `case' in
12370 # $output_verbose_cmd can trigger glob expansion during the loop
12371 # eval without this substitution.
12372 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12374 for p in `eval $output_verbose_link_cmd`; do
12378 # Some compilers place space between "-{L,R}" and the path.
12379 # Remove the space.
12380 if test $p = "-L" \
12381 || test $p = "-R"; then
12388 if test "$pre_test_object_deps_done" = no; then
12391 # Internal compiler library paths should come after those
12392 # provided the user. The postdeps already come after the
12393 # user supplied libs so there is no need to process them.
12394 if test -z "$compiler_lib_search_path_CXX"; then
12395 compiler_lib_search_path_CXX="${prev}${p}"
12397 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12400 # The "-l" case would never come before the object being
12401 # linked, so don't bother handling this case.
12404 if test -z "$postdeps_CXX"; then
12405 postdeps_CXX="${prev}${p}"
12407 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12413 # This assumes that the test object file only shows up
12414 # once in the compiler output.
12415 if test "$p" = "conftest.$objext"; then
12416 pre_test_object_deps_done=yes
12420 if test "$pre_test_object_deps_done" = no; then
12421 if test -z "$predep_objects_CXX"; then
12422 predep_objects_CXX="$p"
12424 predep_objects_CXX="$predep_objects_CXX $p"
12427 if test -z "$postdep_objects_CXX"; then
12428 postdep_objects_CXX="$p"
12430 postdep_objects_CXX="$postdep_objects_CXX $p"
12435 *) ;; # Ignore the rest.
12443 echo "libtool.m4: error: problem compiling CXX test program"
12446 $rm -f confest.$objext
12448 # PORTME: override above test on systems where it is broken
12451 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12452 # hack all around it, let's just trust "g++" to DTRT.
12453 predep_objects_CXX=
12454 postdep_objects_CXX=
12459 case $cc_basename in
12461 # Adding this requires a known-good setup of shared libraries for
12462 # Sun compiler versions before 5.6, else PIC objects from an old
12463 # archive will be linked into the output, leading to subtle bugs.
12464 postdeps_CXX='-lCstd -lCrun'
12471 case " $postdeps_CXX " in
12472 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12475 lt_prog_compiler_wl_CXX=
12476 lt_prog_compiler_pic_CXX=
12477 lt_prog_compiler_static_CXX=
12479 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12480 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12482 # C++ specific cases for pic, static, wl, etc.
12483 if test "$GXX" = yes; then
12484 lt_prog_compiler_wl_CXX='-Wl,'
12485 lt_prog_compiler_static_CXX='-static'
12489 # All AIX code is PIC.
12490 if test "$host_cpu" = ia64; then
12491 # AIX 5 now supports IA64 processor
12492 lt_prog_compiler_static_CXX='-Bstatic'
12496 # FIXME: we need at least 68020 code to build shared libraries, but
12497 # adding the `-m68020' flag to GCC prevents building anything better,
12499 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12501 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12502 # PIC is the default for these OSes.
12504 mingw* | os2* | pw32*)
12505 # This hack is so that the source file can tell whether it is being
12506 # built for inclusion in a dll (and should export symbols for example).
12507 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12509 darwin* | rhapsody*)
12510 # PIC is the default on this platform
12511 # Common symbols not allowed in MH_DYLIB files
12512 lt_prog_compiler_pic_CXX='-fno-common'
12515 # DJGPP does not support shared libraries at all
12516 lt_prog_compiler_pic_CXX=
12519 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12520 # Instead, we relocate shared libraries at runtime.
12523 if test -d /usr/nec; then
12524 lt_prog_compiler_pic_CXX=-Kconform_pic
12528 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12529 # not for PA HP-UX.
12534 lt_prog_compiler_pic_CXX='-fPIC'
12539 lt_prog_compiler_pic_CXX='-fPIC'
12545 # All AIX code is PIC.
12546 if test "$host_cpu" = ia64; then
12547 # AIX 5 now supports IA64 processor
12548 lt_prog_compiler_static_CXX='-Bstatic'
12550 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12554 case $cc_basename in
12556 # Green Hills C++ Compiler
12557 # _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"
12562 # PIC is the default on this platform
12563 # Common symbols not allowed in MH_DYLIB files
12564 case $cc_basename in
12566 lt_prog_compiler_pic_CXX='-qnocommon'
12567 lt_prog_compiler_wl_CXX='-Wl,'
12572 case $cc_basename in
12574 lt_prog_compiler_pic_CXX='-KPIC'
12577 # Green Hills C++ Compiler
12578 lt_prog_compiler_pic_CXX='-pic'
12584 freebsd* | dragonfly*)
12585 # FreeBSD uses GNU C++
12587 hpux9* | hpux10* | hpux11*)
12588 case $cc_basename in
12590 lt_prog_compiler_wl_CXX='-Wl,'
12591 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12592 if test "$host_cpu" != ia64; then
12593 lt_prog_compiler_pic_CXX='+Z'
12597 lt_prog_compiler_wl_CXX='-Wl,'
12598 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12604 lt_prog_compiler_pic_CXX='+Z'
12613 # This is c89, which is MS Visual C++ (no shared libs)
12614 # Anyone wants to do a port?
12616 irix5* | irix6* | nonstopux*)
12617 case $cc_basename in
12619 lt_prog_compiler_wl_CXX='-Wl,'
12620 lt_prog_compiler_static_CXX='-non_shared'
12621 # CC pic flag -KPIC is the default.
12627 linux* | k*bsd*-gnu)
12628 case $cc_basename in
12631 lt_prog_compiler_wl_CXX='--backend -Wl,'
12632 lt_prog_compiler_pic_CXX='-fPIC'
12636 lt_prog_compiler_wl_CXX='-Wl,'
12637 lt_prog_compiler_pic_CXX='-KPIC'
12638 lt_prog_compiler_static_CXX='-static'
12641 # Portland Group C++ compiler.
12642 lt_prog_compiler_wl_CXX='-Wl,'
12643 lt_prog_compiler_pic_CXX='-fpic'
12644 lt_prog_compiler_static_CXX='-Bstatic'
12648 # Make sure the PIC flag is empty. It appears that all Alpha
12649 # Linux and Compaq Tru64 Unix objects are PIC.
12650 lt_prog_compiler_pic_CXX=
12651 lt_prog_compiler_static_CXX='-non_shared'
12662 case $cc_basename in
12664 lt_prog_compiler_pic_CXX='-W c,exportall'
12670 netbsd* | netbsdelf*-gnu)
12672 osf3* | osf4* | osf5*)
12673 case $cc_basename in
12675 lt_prog_compiler_wl_CXX='--backend -Wl,'
12678 # Rational C++ 2.4.1
12679 lt_prog_compiler_pic_CXX='-pic'
12682 # Digital/Compaq C++
12683 lt_prog_compiler_wl_CXX='-Wl,'
12684 # Make sure the PIC flag is empty. It appears that all Alpha
12685 # Linux and Compaq Tru64 Unix objects are PIC.
12686 lt_prog_compiler_pic_CXX=
12687 lt_prog_compiler_static_CXX='-non_shared'
12696 case $cc_basename in
12698 # Sun C++ 4.2, 5.x and Centerline C++
12699 lt_prog_compiler_pic_CXX='-KPIC'
12700 lt_prog_compiler_static_CXX='-Bstatic'
12701 lt_prog_compiler_wl_CXX='-Qoption ld '
12704 # Green Hills C++ Compiler
12705 lt_prog_compiler_pic_CXX='-PIC'
12712 case $cc_basename in
12715 lt_prog_compiler_pic_CXX='-pic'
12716 lt_prog_compiler_static_CXX='-Bstatic'
12720 lt_prog_compiler_pic_CXX='-pic'
12727 case $cc_basename in
12729 # NonStop-UX NCC 3.20
12730 lt_prog_compiler_pic_CXX='-KPIC'
12736 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12737 case $cc_basename in
12739 lt_prog_compiler_wl_CXX='-Wl,'
12740 lt_prog_compiler_pic_CXX='-KPIC'
12741 lt_prog_compiler_static_CXX='-Bstatic'
12748 lt_prog_compiler_can_build_shared_CXX=no
12753 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12754 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12757 # Check to make sure the PIC flag actually works.
12759 if test -n "$lt_prog_compiler_pic_CXX"; then
12761 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12762 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12763 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 lt_prog_compiler_pic_works_CXX=no
12767 ac_outfile=conftest.$ac_objext
12768 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12769 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12770 # Insert the option either (1) after the last *FLAGS variable, or
12771 # (2) before a word containing "conftest.", or (3) at the end.
12772 # Note that $ac_compile itself does not contain backslashes and begins
12773 # with a dollar sign (not a hyphen), so the echo should work correctly.
12774 # The option is referenced via a variable to avoid confusing sed.
12775 lt_compile=`echo "$ac_compile" | $SED \
12776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12778 -e 's:$: $lt_compiler_flag:'`
12779 (eval echo "\"\$as_me:12779: $lt_compile\"" >&5)
12780 (eval "$lt_compile" 2>conftest.err)
12782 cat conftest.err >&5
12783 echo "$as_me:12783: \$? = $ac_status" >&5
12784 if (exit $ac_status) && test -s "$ac_outfile"; then
12785 # The compiler can only warn and ignore the option if not recognized
12786 # So say no if there are warnings other than the usual output.
12787 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12789 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12790 lt_prog_compiler_pic_works_CXX=yes
12796 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12797 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12799 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12800 case $lt_prog_compiler_pic_CXX in
12802 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12805 lt_prog_compiler_pic_CXX=
12806 lt_prog_compiler_can_build_shared_CXX=no
12811 # For platforms which do not support PIC, -DPIC is meaningless:
12813 lt_prog_compiler_pic_CXX=
12816 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12821 # Check to make sure the static flag actually works.
12823 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12824 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12825 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12826 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 lt_prog_compiler_static_works_CXX=no
12830 save_LDFLAGS="$LDFLAGS"
12831 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12832 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12833 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12834 # The linker can only warn and ignore the option if not recognized
12835 # So say no if there are warnings
12836 if test -s conftest.err; then
12837 # Append any errors to the config.log.
12838 cat conftest.err 1>&5
12839 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12840 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12841 if diff conftest.exp conftest.er2 >/dev/null; then
12842 lt_prog_compiler_static_works_CXX=yes
12845 lt_prog_compiler_static_works_CXX=yes
12849 LDFLAGS="$save_LDFLAGS"
12852 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12853 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12855 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12858 lt_prog_compiler_static_CXX=
12862 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12863 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12864 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12867 lt_cv_prog_compiler_c_o_CXX=no
12868 $rm -r conftest 2>/dev/null
12872 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12874 lt_compiler_flag="-o out/conftest2.$ac_objext"
12875 # Insert the option either (1) after the last *FLAGS variable, or
12876 # (2) before a word containing "conftest.", or (3) at the end.
12877 # Note that $ac_compile itself does not contain backslashes and begins
12878 # with a dollar sign (not a hyphen), so the echo should work correctly.
12879 lt_compile=`echo "$ac_compile" | $SED \
12880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12882 -e 's:$: $lt_compiler_flag:'`
12883 (eval echo "\"\$as_me:12883: $lt_compile\"" >&5)
12884 (eval "$lt_compile" 2>out/conftest.err)
12886 cat out/conftest.err >&5
12887 echo "$as_me:12887: \$? = $ac_status" >&5
12888 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12890 # The compiler can only warn and ignore the option if not recognized
12891 # So say no if there are warnings
12892 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12893 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12894 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12895 lt_cv_prog_compiler_c_o_CXX=yes
12900 # SGI C++ compiler will create directory out/ii_files/ for
12901 # template instantiation
12902 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12903 $rm out/* && rmdir out
12909 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12910 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12913 hard_links="nottested"
12914 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12915 # do not overwrite the value of need_locks provided by the user
12916 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12917 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12920 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12922 ln conftest.a conftest.b 2>&5 || hard_links=no
12923 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12924 { echo "$as_me:$LINENO: result: $hard_links" >&5
12925 echo "${ECHO_T}$hard_links" >&6; }
12926 if test "$hard_links" = no; then
12927 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12928 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12935 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12936 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12938 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12941 # If we're using GNU nm, then we don't want the "-C" option.
12942 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12943 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12944 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'
12946 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'
12950 export_symbols_cmds_CXX="$ltdll_cmds"
12953 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'
12955 linux* | k*bsd*-gnu)
12956 link_all_deplibs_CXX=no
12959 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12963 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12964 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12965 test "$ld_shlibs_CXX" = no && can_build_shared=no
12968 # Do we need to explicitly link libc?
12970 case "x$archive_cmds_need_lc_CXX" in
12972 # Assume -lc should be added
12973 archive_cmds_need_lc_CXX=yes
12975 if test "$enable_shared" = yes && test "$GCC" = yes; then
12976 case $archive_cmds_CXX in
12978 # FIXME: we may have to deal with multi-command sequences.
12981 # Test whether the compiler implicitly links with -lc since on some
12982 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12983 # to ld, don't add -lc before -lgcc.
12984 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12985 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12987 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12990 (eval $ac_compile) 2>&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } 2>conftest.err; then
12996 libobjs=conftest.$ac_objext
12998 wl=$lt_prog_compiler_wl_CXX
12999 pic_flag=$lt_prog_compiler_pic_CXX
13005 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13006 allow_undefined_flag_CXX=
13007 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13008 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }
13013 archive_cmds_need_lc_CXX=no
13015 archive_cmds_need_lc_CXX=yes
13017 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13019 cat conftest.err 1>&5
13022 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13023 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13030 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13031 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13032 library_names_spec=
13033 libname_spec='lib$name'
13037 postuninstall_cmds=
13041 shlibpath_overrides_runpath=unknown
13043 dynamic_linker="$host_os ld.so"
13044 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13045 if test "$GCC" = yes; then
13046 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13047 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13048 # if the path contains ";" then we assume it to be the separator
13049 # otherwise default to the standard path separator (i.e. ":") - it is
13050 # assumed that no part of a normal pathname contains ";" but that should
13051 # okay in the real world where ";" in dirpaths is itself problematic.
13052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13054 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13057 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13059 need_lib_prefix=unknown
13060 hardcode_into_libs=no
13062 # when you set need_version to no, make sure it does not cause -set_version
13063 # flags to be left without arguments
13064 need_version=unknown
13069 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13070 shlibpath_var=LIBPATH
13072 # AIX 3 has no versioning support, so we append a major version to the name.
13073 soname_spec='${libname}${release}${shared_ext}$major'
13080 hardcode_into_libs=yes
13081 if test "$host_cpu" = ia64; then
13082 # AIX 5 supports IA64
13083 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13084 shlibpath_var=LD_LIBRARY_PATH
13086 # With GCC up to 2.95.x, collect2 would create an import file
13087 # for dependence libraries. The import file would start with
13088 # the line `#! .'. This would cause the generated library to
13089 # depend on `.', always an invalid library. This was fixed in
13090 # development snapshots of GCC prior to 3.0.
13092 aix4 | aix4.[01] | aix4.[01].*)
13093 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13095 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13098 can_build_shared=no
13102 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13103 # soname into executable. Probably we can add versioning support to
13104 # collect2, so additional links can be useful in future.
13105 if test "$aix_use_runtimelinking" = yes; then
13106 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13107 # instead of lib<name>.a to let people know that these are not
13108 # typical AIX shared libraries.
13109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13111 # We preserve .a as extension for shared libraries through AIX4.2
13112 # and later when we are not doing run time linking.
13113 library_names_spec='${libname}${release}.a $libname.a'
13114 soname_spec='${libname}${release}${shared_ext}$major'
13116 shlibpath_var=LIBPATH
13121 library_names_spec='$libname.ixlibrary $libname.a'
13122 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13123 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'
13127 library_names_spec='${libname}${shared_ext}'
13128 dynamic_linker="$host_os ld.so"
13129 shlibpath_var=LIBRARY_PATH
13135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13136 soname_spec='${libname}${release}${shared_ext}$major'
13137 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13138 shlibpath_var=LD_LIBRARY_PATH
13139 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13140 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13141 # the default ld.so.conf also contains /usr/contrib/lib and
13142 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13143 # libtool to hard-code these into programs
13146 cygwin* | mingw* | pw32*)
13147 version_type=windows
13152 case $GCC,$host_os in
13153 yes,cygwin* | yes,mingw* | yes,pw32*)
13154 library_names_spec='$libname.dll.a'
13155 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13156 postinstall_cmds='base_file=`basename \${file}`~
13157 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13158 dldir=$destdir/`dirname \$dlpath`~
13159 test -d \$dldir || mkdir -p \$dldir~
13160 $install_prog $dir/$dlname \$dldir/$dlname~
13161 chmod a+x \$dldir/$dlname'
13162 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13163 dlpath=$dir/\$dldll~
13165 shlibpath_overrides_runpath=yes
13169 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13170 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13171 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13174 # MinGW DLLs use traditional 'lib' prefix
13175 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13176 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13177 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13178 # It is most probably a Windows format PATH printed by
13179 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13180 # path with ; separators, and with drive letters. We can handle the
13181 # drive letters (cygwin fileutils understands them), so leave them,
13182 # especially as we might pass files found there to a mingw objdump,
13183 # which wouldn't understand a cygwinified path. Ahh.
13184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13186 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13190 # pw32 DLLs use 'pw' prefix rather than 'lib'
13191 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13197 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13200 dynamic_linker='Win32 ld.exe'
13201 # FIXME: first we should search . and the directory the executable is in
13205 darwin* | rhapsody*)
13206 dynamic_linker="$host_os dyld"
13207 version_type=darwin
13210 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13211 soname_spec='${libname}${release}${major}$shared_ext'
13212 shlibpath_overrides_runpath=yes
13213 shlibpath_var=DYLD_LIBRARY_PATH
13214 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13215 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13216 if test "$GCC" = yes; then
13217 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13219 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13221 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13229 soname_spec='${libname}${release}${shared_ext}$major'
13230 shlibpath_var=LD_LIBRARY_PATH
13237 freebsd* | dragonfly*)
13238 # DragonFly does not have aout. When/if they implement a new
13239 # versioning mechanism, adjust this.
13240 if test -x /usr/bin/objformat; then
13241 objformat=`/usr/bin/objformat`
13244 freebsd[123]*) objformat=aout ;;
13245 *) objformat=elf ;;
13248 version_type=freebsd-$objformat
13249 case $version_type in
13251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13260 shlibpath_var=LD_LIBRARY_PATH
13263 shlibpath_overrides_runpath=yes
13265 freebsd3.[01]* | freebsdelf3.[01]*)
13266 shlibpath_overrides_runpath=yes
13267 hardcode_into_libs=yes
13269 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13270 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13271 shlibpath_overrides_runpath=no
13272 hardcode_into_libs=yes
13274 freebsd*) # from 4.6 on
13275 shlibpath_overrides_runpath=yes
13276 hardcode_into_libs=yes
13285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13286 soname_spec='${libname}${release}${shared_ext}$major'
13287 shlibpath_var=LD_LIBRARY_PATH
13288 hardcode_into_libs=yes
13291 hpux9* | hpux10* | hpux11*)
13292 # Give a soname corresponding to the major version so that dld.sl refuses to
13293 # link against other versions.
13300 hardcode_into_libs=yes
13301 dynamic_linker="$host_os dld.so"
13302 shlibpath_var=LD_LIBRARY_PATH
13303 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13305 soname_spec='${libname}${release}${shared_ext}$major'
13306 if test "X$HPUX_IA64_MODE" = X32; then
13307 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13309 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13315 hardcode_into_libs=yes
13316 dynamic_linker="$host_os dld.sl"
13317 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13320 soname_spec='${libname}${release}${shared_ext}$major'
13321 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13322 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13326 dynamic_linker="$host_os dld.sl"
13327 shlibpath_var=SHLIB_PATH
13328 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13330 soname_spec='${libname}${release}${shared_ext}$major'
13333 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13334 postinstall_cmds='chmod 555 $lib'
13341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13342 soname_spec='${libname}${release}${shared_ext}$major'
13343 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13344 shlibpath_var=LD_LIBRARY_PATH
13345 shlibpath_overrides_runpath=no
13346 hardcode_into_libs=yes
13349 irix5* | irix6* | nonstopux*)
13351 nonstopux*) version_type=nonstopux ;;
13353 if test "$lt_cv_prog_gnu_ld" = yes; then
13361 soname_spec='${libname}${release}${shared_ext}$major'
13362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13364 irix5* | nonstopux*)
13365 libsuff= shlibsuff=
13368 case $LD in # libtool.m4 will add one of these switches to LD
13369 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13370 libsuff= shlibsuff= libmagic=32-bit;;
13371 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13372 libsuff=32 shlibsuff=N32 libmagic=N32;;
13373 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13374 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13375 *) libsuff= shlibsuff= libmagic=never-match;;
13379 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13380 shlibpath_overrides_runpath=no
13381 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13382 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13383 hardcode_into_libs=yes
13386 # No shared lib support for Linux oldld, aout, or coff.
13387 linux*oldld* | linux*aout* | linux*coff*)
13391 # This must be Linux ELF.
13392 linux* | k*bsd*-gnu)
13396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13397 soname_spec='${libname}${release}${shared_ext}$major'
13398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13399 shlibpath_var=LD_LIBRARY_PATH
13400 shlibpath_overrides_runpath=no
13401 # This implies no fast_install, which is unacceptable.
13402 # Some rework will be needed to allow for fast_install
13403 # before this can be enabled.
13404 hardcode_into_libs=yes
13406 # Append ld.so.conf contents to the search path
13407 if test -f /etc/ld.so.conf; then
13408 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13409 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13412 # We used to test for /lib/ld.so.1 and disable shared libraries on
13413 # powerpc, because MkLinux only supported shared libraries with the
13414 # GNU dynamic linker. Since this was broken with cross compilers,
13415 # most powerpc-linux boxes support dynamic linking these days and
13416 # people can always --disable-shared, the test was removed, and we
13417 # assume the GNU/Linux dynamic linker is in use.
13418 dynamic_linker='GNU/Linux ld.so'
13425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13426 soname_spec='${libname}${release}${shared_ext}$major'
13427 shlibpath_var=LD_LIBRARY_PATH
13428 shlibpath_overrides_runpath=no
13429 hardcode_into_libs=yes
13430 dynamic_linker='NetBSD ld.elf_so'
13437 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13440 dynamic_linker='NetBSD (a.out) ld.so'
13442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13443 soname_spec='${libname}${release}${shared_ext}$major'
13444 dynamic_linker='NetBSD ld.elf_so'
13446 shlibpath_var=LD_LIBRARY_PATH
13447 shlibpath_overrides_runpath=yes
13448 hardcode_into_libs=yes
13453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13454 shlibpath_var=LD_LIBRARY_PATH
13455 shlibpath_overrides_runpath=yes
13462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13463 soname_spec='${libname}${release}${shared_ext}$major'
13464 shlibpath_var=LD_LIBRARY_PATH
13465 shlibpath_overrides_runpath=yes
13470 sys_lib_dlsearch_path_spec="/usr/lib"
13472 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13474 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13475 *) need_version=no ;;
13477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13479 shlibpath_var=LD_LIBRARY_PATH
13480 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13482 openbsd2.[89] | openbsd2.[89].*)
13483 shlibpath_overrides_runpath=no
13486 shlibpath_overrides_runpath=yes
13490 shlibpath_overrides_runpath=yes
13495 libname_spec='$name'
13498 library_names_spec='$libname${shared_ext} $libname.a'
13499 dynamic_linker='OS/2 ld.exe'
13500 shlibpath_var=LIBPATH
13503 osf3* | osf4* | osf5*)
13507 soname_spec='${libname}${release}${shared_ext}$major'
13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13509 shlibpath_var=LD_LIBRARY_PATH
13510 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13511 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13519 soname_spec='${libname}${release}${shared_ext}$major'
13520 shlibpath_var=LD_LIBRARY_PATH
13521 shlibpath_overrides_runpath=yes
13522 hardcode_into_libs=yes
13523 # ldd complains unless libraries are executable
13524 postinstall_cmds='chmod +x $lib'
13529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13530 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13531 shlibpath_var=LD_LIBRARY_PATH
13532 shlibpath_overrides_runpath=yes
13533 if test "$with_gnu_ld" = yes; then
13541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13542 soname_spec='${libname}${release}${shared_ext}$major'
13543 shlibpath_var=LD_LIBRARY_PATH
13544 case $host_vendor in
13546 shlibpath_overrides_runpath=no
13548 export_dynamic_flag_spec='${wl}-Blargedynsym'
13549 runpath_var=LD_RUN_PATH
13557 shlibpath_overrides_runpath=no
13558 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13564 if test -d /usr/nec ;then
13566 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13567 soname_spec='$libname${shared_ext}.$major'
13568 shlibpath_var=LD_LIBRARY_PATH
13572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13573 version_type=freebsd-elf
13576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13577 soname_spec='${libname}${release}${shared_ext}$major'
13578 shlibpath_var=LD_LIBRARY_PATH
13579 hardcode_into_libs=yes
13580 if test "$with_gnu_ld" = yes; then
13581 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13582 shlibpath_overrides_runpath=no
13584 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13585 shlibpath_overrides_runpath=yes
13588 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13592 sys_lib_dlsearch_path_spec='/usr/lib'
13597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13598 soname_spec='${libname}${release}${shared_ext}$major'
13599 shlibpath_var=LD_LIBRARY_PATH
13606 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13607 echo "${ECHO_T}$dynamic_linker" >&6; }
13608 test "$dynamic_linker" = no && can_build_shared=no
13610 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13611 if test "$GCC" = yes; then
13612 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13615 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13616 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13617 hardcode_action_CXX=
13618 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13619 test -n "$runpath_var_CXX" || \
13620 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13622 # We can hardcode non-existant directories.
13623 if test "$hardcode_direct_CXX" != no &&
13624 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13625 # have to relink, otherwise we might link with an installed library
13626 # when we should be linking with a yet-to-be-installed one
13627 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13628 test "$hardcode_minus_L_CXX" != no; then
13629 # Linking always hardcodes the temporary library directory.
13630 hardcode_action_CXX=relink
13632 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13633 hardcode_action_CXX=immediate
13636 # We cannot hardcode anything, or else we can only hardcode existing
13638 hardcode_action_CXX=unsupported
13640 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13641 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13643 if test "$hardcode_action_CXX" = relink; then
13644 # Fast installation is not supported
13645 enable_fast_install=no
13646 elif test "$shlibpath_overrides_runpath" = yes ||
13647 test "$enable_shared" = no; then
13648 # Fast installation is not necessary
13649 enable_fast_install=needless
13653 # The else clause should only fire when bootstrapping the
13654 # libtool distribution, otherwise you forgot to ship ltmain.sh
13655 # with your package, and you will get complaints that there are
13656 # no rules to generate ltmain.sh.
13657 if test -f "$ltmain"; then
13658 # See if we are running on zsh, and set the options which allow our commands through
13659 # without removal of \ escapes.
13660 if test -n "${ZSH_VERSION+set}" ; then
13661 setopt NO_GLOB_SUBST
13663 # Now quote all the things that may contain metacharacters while being
13664 # careful not to overquote the AC_SUBSTed values. We take copies of the
13665 # variables and quote the copies for generation of the libtool script.
13666 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13668 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13669 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13670 deplibs_check_method reload_flag reload_cmds need_locks \
13671 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13672 lt_cv_sys_global_symbol_to_c_name_address \
13673 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13674 old_postinstall_cmds old_postuninstall_cmds \
13678 lt_prog_compiler_wl_CXX \
13679 lt_prog_compiler_pic_CXX \
13680 lt_prog_compiler_static_CXX \
13681 lt_prog_compiler_no_builtin_flag_CXX \
13682 export_dynamic_flag_spec_CXX \
13683 thread_safe_flag_spec_CXX \
13684 whole_archive_flag_spec_CXX \
13685 enable_shared_with_static_runtimes_CXX \
13686 old_archive_cmds_CXX \
13687 old_archive_from_new_cmds_CXX \
13688 predep_objects_CXX \
13689 postdep_objects_CXX \
13692 compiler_lib_search_path_CXX \
13694 archive_expsym_cmds_CXX \
13695 postinstall_cmds_CXX \
13696 postuninstall_cmds_CXX \
13697 old_archive_from_expsyms_cmds_CXX \
13698 allow_undefined_flag_CXX \
13699 no_undefined_flag_CXX \
13700 export_symbols_cmds_CXX \
13701 hardcode_libdir_flag_spec_CXX \
13702 hardcode_libdir_flag_spec_ld_CXX \
13703 hardcode_libdir_separator_CXX \
13704 hardcode_automatic_CXX \
13706 module_expsym_cmds_CXX \
13707 lt_cv_prog_compiler_c_o_CXX \
13708 exclude_expsyms_CXX \
13709 include_expsyms_CXX; do
13712 old_archive_cmds_CXX | \
13713 old_archive_from_new_cmds_CXX | \
13714 archive_cmds_CXX | \
13715 archive_expsym_cmds_CXX | \
13716 module_cmds_CXX | \
13717 module_expsym_cmds_CXX | \
13718 old_archive_from_expsyms_cmds_CXX | \
13719 export_symbols_cmds_CXX | \
13720 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13721 postinstall_cmds | postuninstall_cmds | \
13722 old_postinstall_cmds | old_postuninstall_cmds | \
13723 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13724 # Double-quote double-evaled strings.
13725 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13728 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13734 *'\$0 --fallback-echo"')
13735 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13741 cat <<__EOF__ >> "$cfgfile"
13742 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13744 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13746 # Shell to use when invoking shell scripts.
13749 # Whether or not to build shared libraries.
13750 build_libtool_libs=$enable_shared
13752 # Whether or not to build static libraries.
13753 build_old_libs=$enable_static
13755 # Whether or not to add -lc for building shared libraries.
13756 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13758 # Whether or not to disallow shared libs when runtime libs are static
13759 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13761 # Whether or not to optimize for fast installation.
13762 fast_install=$enable_fast_install
13765 host_alias=$host_alias
13769 # The build system.
13770 build_alias=$build_alias
13774 # An echo program that does not interpret backslashes.
13779 AR_FLAGS=$lt_AR_FLAGS
13784 # LTCC compiler flags.
13785 LTCFLAGS=$lt_LTCFLAGS
13787 # A language-specific compiler.
13788 CC=$lt_compiler_CXX
13790 # Is the compiler the GNU C compiler?
13796 # The linker used to build libraries.
13799 # Whether we need hard or soft links.
13802 # A BSD-compatible nm program.
13805 # A symbol stripping program
13808 # Used to examine libraries when file_magic_cmd begins "file"
13809 MAGIC_CMD=$MAGIC_CMD
13811 # Used on cygwin: DLL creation program.
13814 # Used on cygwin: object dumper.
13817 # Used on cygwin: assembler.
13820 # The name of the directory that contains temporary libtool files.
13823 # How to create reloadable object files.
13824 reload_flag=$lt_reload_flag
13825 reload_cmds=$lt_reload_cmds
13827 # How to pass a linker flag through the compiler.
13828 wl=$lt_lt_prog_compiler_wl_CXX
13830 # Object file suffix (normally "o").
13831 objext="$ac_objext"
13833 # Old archive suffix (normally "a").
13836 # Shared library suffix (normally ".so").
13837 shrext_cmds='$shrext_cmds'
13839 # Executable file suffix (normally "").
13842 # Additional compiler flags for building library objects.
13843 pic_flag=$lt_lt_prog_compiler_pic_CXX
13846 # What is the maximum length of a command?
13847 max_cmd_len=$lt_cv_sys_max_cmd_len
13849 # Does compiler simultaneously support -c and -o options?
13850 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13852 # Must we lock files when doing compilation?
13853 need_locks=$lt_need_locks
13855 # Do we need the lib prefix for modules?
13856 need_lib_prefix=$need_lib_prefix
13858 # Do we need a version for libraries?
13859 need_version=$need_version
13861 # Whether dlopen is supported.
13862 dlopen_support=$enable_dlopen
13864 # Whether dlopen of programs is supported.
13865 dlopen_self=$enable_dlopen_self
13867 # Whether dlopen of statically linked programs is supported.
13868 dlopen_self_static=$enable_dlopen_self_static
13870 # Compiler flag to prevent dynamic linking.
13871 link_static_flag=$lt_lt_prog_compiler_static_CXX
13873 # Compiler flag to turn off builtin functions.
13874 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13876 # Compiler flag to allow reflexive dlopens.
13877 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13879 # Compiler flag to generate shared objects directly from archives.
13880 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13882 # Compiler flag to generate thread-safe objects.
13883 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13885 # Library versioning type.
13886 version_type=$version_type
13888 # Format of library name prefix.
13889 libname_spec=$lt_libname_spec
13891 # List of archive names. First name is the real one, the rest are links.
13892 # The last name is the one that the linker finds with -lNAME.
13893 library_names_spec=$lt_library_names_spec
13895 # The coded name of the library, if different from the real name.
13896 soname_spec=$lt_soname_spec
13898 # Commands used to build and install an old-style archive.
13900 old_archive_cmds=$lt_old_archive_cmds_CXX
13901 old_postinstall_cmds=$lt_old_postinstall_cmds
13902 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13904 # Create an old-style archive from a shared archive.
13905 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13907 # Create a temporary old-style archive to link instead of a shared archive.
13908 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13910 # Commands used to build and install a shared archive.
13911 archive_cmds=$lt_archive_cmds_CXX
13912 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13913 postinstall_cmds=$lt_postinstall_cmds
13914 postuninstall_cmds=$lt_postuninstall_cmds
13916 # Commands used to build a loadable module (assumed same as above if empty)
13917 module_cmds=$lt_module_cmds_CXX
13918 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13920 # Commands to strip libraries.
13921 old_striplib=$lt_old_striplib
13922 striplib=$lt_striplib
13924 # Dependencies to place before the objects being linked to create a
13926 predep_objects=$lt_predep_objects_CXX
13928 # Dependencies to place after the objects being linked to create a
13930 postdep_objects=$lt_postdep_objects_CXX
13932 # Dependencies to place before the objects being linked to create a
13934 predeps=$lt_predeps_CXX
13936 # Dependencies to place after the objects being linked to create a
13938 postdeps=$lt_postdeps_CXX
13940 # The library search path used internally by the compiler when linking
13941 # a shared library.
13942 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13944 # Method to check whether dependent libraries are shared objects.
13945 deplibs_check_method=$lt_deplibs_check_method
13947 # Command to use when deplibs_check_method == file_magic.
13948 file_magic_cmd=$lt_file_magic_cmd
13950 # Flag that allows shared libraries with undefined symbols to be built.
13951 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13953 # Flag that forces no undefined symbols.
13954 no_undefined_flag=$lt_no_undefined_flag_CXX
13956 # Commands used to finish a libtool library installation in a directory.
13957 finish_cmds=$lt_finish_cmds
13959 # Same as above, but a single script fragment to be evaled but not shown.
13960 finish_eval=$lt_finish_eval
13962 # Take the output of nm and produce a listing of raw symbols and C names.
13963 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13965 # Transform the output of nm in a proper C declaration
13966 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13968 # Transform the output of nm in a C name address pair
13969 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13971 # This is the shared library runtime path variable.
13972 runpath_var=$runpath_var
13974 # This is the shared library path variable.
13975 shlibpath_var=$shlibpath_var
13977 # Is shlibpath searched before the hard-coded library search path?
13978 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13980 # How to hardcode a shared library path into an executable.
13981 hardcode_action=$hardcode_action_CXX
13983 # Whether we should hardcode library paths into libraries.
13984 hardcode_into_libs=$hardcode_into_libs
13986 # Flag to hardcode \$libdir into a binary during linking.
13987 # This must work even if \$libdir does not exist.
13988 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13990 # If ld is used when linking, flag to hardcode \$libdir into
13991 # a binary during linking. This must work even if \$libdir does
13993 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13995 # Whether we need a single -rpath flag with a separated argument.
13996 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13998 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13999 # resulting binary.
14000 hardcode_direct=$hardcode_direct_CXX
14002 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14003 # resulting binary.
14004 hardcode_minus_L=$hardcode_minus_L_CXX
14006 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14007 # the resulting binary.
14008 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14010 # Set to yes if building a shared library automatically hardcodes DIR into the library
14011 # and all subsequent libraries and executables linked against it.
14012 hardcode_automatic=$hardcode_automatic_CXX
14014 # Variables whose values should be saved in libtool wrapper scripts and
14015 # restored at relink time.
14016 variables_saved_for_relink="$variables_saved_for_relink"
14018 # Whether libtool must link a program against all its dependency libraries.
14019 link_all_deplibs=$link_all_deplibs_CXX
14021 # Compile-time system search path for libraries
14022 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14024 # Run-time system search path for libraries
14025 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14027 # Fix the shell variable \$srcfile for the compiler.
14028 fix_srcfile_path="$fix_srcfile_path_CXX"
14030 # Set to yes if exported symbols are required.
14031 always_export_symbols=$always_export_symbols_CXX
14033 # The commands to list exported symbols.
14034 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14036 # The commands to extract the exported symbol list from a shared archive.
14037 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14039 # Symbols that should not be listed in the preloaded symbols.
14040 exclude_expsyms=$lt_exclude_expsyms_CXX
14042 # Symbols that must always be exported.
14043 include_expsyms=$lt_include_expsyms_CXX
14045 # ### END LIBTOOL TAG CONFIG: $tagname
14051 # If there is no Makefile yet, we rely on a make rule to execute
14052 # `config.status --recheck' to rerun these tests and create the
14053 # libtool script then.
14054 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14055 if test -f "$ltmain_in"; then
14056 test -f Makefile && make "$ltmain"
14062 ac_cpp='$CPP $CPPFLAGS'
14063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14071 with_gnu_ldcxx=$with_gnu_ld
14072 with_gnu_ld=$lt_save_with_gnu_ld
14073 lt_cv_path_LDCXX=$lt_cv_path_LD
14074 lt_cv_path_LD=$lt_save_path_LD
14075 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14076 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14084 if test -n "$F77" && test "X$F77" != "Xno"; then
14087 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14088 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14089 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14092 archive_cmds_need_lc_F77=no
14093 allow_undefined_flag_F77=
14094 always_export_symbols_F77=no
14095 archive_expsym_cmds_F77=
14096 export_dynamic_flag_spec_F77=
14097 hardcode_direct_F77=no
14098 hardcode_libdir_flag_spec_F77=
14099 hardcode_libdir_flag_spec_ld_F77=
14100 hardcode_libdir_separator_F77=
14101 hardcode_minus_L_F77=no
14102 hardcode_automatic_F77=no
14104 module_expsym_cmds_F77=
14105 link_all_deplibs_F77=unknown
14106 old_archive_cmds_F77=$old_archive_cmds
14107 no_undefined_flag_F77=
14108 whole_archive_flag_spec_F77=
14109 enable_shared_with_static_runtimes_F77=no
14111 # Source file extension for f77 test sources.
14114 # Object file extension for compiled f77 test sources.
14118 # Code to be used in simple compile tests
14119 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14121 # Code to be used in simple link tests
14122 lt_simple_link_test_code=" program t\n end\n"
14124 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14126 # If no C compiler was specified, use CC.
14129 # If no C compiler flags were specified, use CFLAGS.
14130 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14132 # Allow CC to be a program name with arguments.
14136 # save warnings/boilerplate of simple test code
14137 ac_outfile=conftest.$ac_objext
14138 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14139 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14140 _lt_compiler_boilerplate=`cat conftest.err`
14143 ac_outfile=conftest.$ac_objext
14144 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14145 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14146 _lt_linker_boilerplate=`cat conftest.err`
14150 # Allow CC to be a program name with arguments.
14155 for cc_temp in $compiler""; do
14157 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14158 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14163 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14166 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14167 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14168 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14169 echo "${ECHO_T}$can_build_shared" >&6; }
14171 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14172 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14173 test "$can_build_shared" = "no" && enable_shared=no
14175 # On AIX, shared libraries and static libraries use the same namespace, and
14176 # are all built from PIC.
14179 test "$enable_shared" = yes && enable_static=no
14180 if test -n "$RANLIB"; then
14181 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14182 postinstall_cmds='$RANLIB $lib'
14186 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14187 test "$enable_shared" = yes && enable_static=no
14191 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14192 echo "${ECHO_T}$enable_shared" >&6; }
14194 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14195 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14196 # Make sure either enable_shared or enable_static is yes.
14197 test "$enable_shared" = yes || enable_static=yes
14198 { echo "$as_me:$LINENO: result: $enable_static" >&5
14199 echo "${ECHO_T}$enable_static" >&6; }
14204 lt_prog_compiler_wl_F77=
14205 lt_prog_compiler_pic_F77=
14206 lt_prog_compiler_static_F77=
14208 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14209 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14211 if test "$GCC" = yes; then
14212 lt_prog_compiler_wl_F77='-Wl,'
14213 lt_prog_compiler_static_F77='-static'
14217 # All AIX code is PIC.
14218 if test "$host_cpu" = ia64; then
14219 # AIX 5 now supports IA64 processor
14220 lt_prog_compiler_static_F77='-Bstatic'
14225 # FIXME: we need at least 68020 code to build shared libraries, but
14226 # adding the `-m68020' flag to GCC prevents building anything better,
14228 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14231 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14232 # PIC is the default for these OSes.
14235 mingw* | pw32* | os2*)
14236 # This hack is so that the source file can tell whether it is being
14237 # built for inclusion in a dll (and should export symbols for example).
14238 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14241 darwin* | rhapsody*)
14242 # PIC is the default on this platform
14243 # Common symbols not allowed in MH_DYLIB files
14244 lt_prog_compiler_pic_F77='-fno-common'
14248 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14249 # Instead, we relocate shared libraries at runtime.
14253 # Just because we use GCC doesn't mean we suddenly get shared libraries
14254 # on systems that don't support them.
14255 lt_prog_compiler_can_build_shared_F77=no
14260 if test -d /usr/nec; then
14261 lt_prog_compiler_pic_F77=-Kconform_pic
14266 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14267 # not for PA HP-UX.
14273 lt_prog_compiler_pic_F77='-fPIC'
14279 lt_prog_compiler_pic_F77='-fPIC'
14283 # PORTME Check for flag to pass linker flags through the system compiler.
14286 lt_prog_compiler_wl_F77='-Wl,'
14287 if test "$host_cpu" = ia64; then
14288 # AIX 5 now supports IA64 processor
14289 lt_prog_compiler_static_F77='-Bstatic'
14291 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14295 # PIC is the default on this platform
14296 # Common symbols not allowed in MH_DYLIB files
14297 case $cc_basename in
14299 lt_prog_compiler_pic_F77='-qnocommon'
14300 lt_prog_compiler_wl_F77='-Wl,'
14305 mingw* | pw32* | os2*)
14306 # This hack is so that the source file can tell whether it is being
14307 # built for inclusion in a dll (and should export symbols for example).
14308 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14311 hpux9* | hpux10* | hpux11*)
14312 lt_prog_compiler_wl_F77='-Wl,'
14313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14314 # not for PA HP-UX.
14320 lt_prog_compiler_pic_F77='+Z'
14323 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14324 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14327 irix5* | irix6* | nonstopux*)
14328 lt_prog_compiler_wl_F77='-Wl,'
14329 # PIC (with -KPIC) is the default.
14330 lt_prog_compiler_static_F77='-non_shared'
14334 lt_prog_compiler_pic_F77='-KPIC'
14335 lt_prog_compiler_static_F77='-Bstatic'
14338 linux* | k*bsd*-gnu)
14339 case $cc_basename in
14341 lt_prog_compiler_wl_F77='-Wl,'
14342 lt_prog_compiler_pic_F77='-KPIC'
14343 lt_prog_compiler_static_F77='-static'
14345 pgcc* | pgf77* | pgf90* | pgf95*)
14346 # Portland Group compilers (*not* the Pentium gcc compiler,
14347 # which looks to be a dead project)
14348 lt_prog_compiler_wl_F77='-Wl,'
14349 lt_prog_compiler_pic_F77='-fpic'
14350 lt_prog_compiler_static_F77='-Bstatic'
14353 lt_prog_compiler_wl_F77='-Wl,'
14354 # All Alpha code is PIC.
14355 lt_prog_compiler_static_F77='-non_shared'
14360 osf3* | osf4* | osf5*)
14361 lt_prog_compiler_wl_F77='-Wl,'
14362 # All OSF/1 code is PIC.
14363 lt_prog_compiler_static_F77='-non_shared'
14367 lt_prog_compiler_pic_F77='-KPIC'
14368 lt_prog_compiler_static_F77='-Bstatic'
14369 case $cc_basename in
14370 f77* | f90* | f95*)
14371 lt_prog_compiler_wl_F77='-Qoption ld ';;
14373 lt_prog_compiler_wl_F77='-Wl,';;
14378 lt_prog_compiler_wl_F77='-Qoption ld '
14379 lt_prog_compiler_pic_F77='-PIC'
14380 lt_prog_compiler_static_F77='-Bstatic'
14383 sysv4 | sysv4.2uw2* | sysv4.3*)
14384 lt_prog_compiler_wl_F77='-Wl,'
14385 lt_prog_compiler_pic_F77='-KPIC'
14386 lt_prog_compiler_static_F77='-Bstatic'
14390 if test -d /usr/nec ;then
14391 lt_prog_compiler_pic_F77='-Kconform_pic'
14392 lt_prog_compiler_static_F77='-Bstatic'
14396 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14397 lt_prog_compiler_wl_F77='-Wl,'
14398 lt_prog_compiler_pic_F77='-KPIC'
14399 lt_prog_compiler_static_F77='-Bstatic'
14403 lt_prog_compiler_wl_F77='-Wl,'
14404 lt_prog_compiler_can_build_shared_F77=no
14408 lt_prog_compiler_pic_F77='-pic'
14409 lt_prog_compiler_static_F77='-Bstatic'
14413 lt_prog_compiler_can_build_shared_F77=no
14418 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14419 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14422 # Check to make sure the PIC flag actually works.
14424 if test -n "$lt_prog_compiler_pic_F77"; then
14426 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14427 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14428 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14431 lt_prog_compiler_pic_works_F77=no
14432 ac_outfile=conftest.$ac_objext
14433 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14434 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14435 # Insert the option either (1) after the last *FLAGS variable, or
14436 # (2) before a word containing "conftest.", or (3) at the end.
14437 # Note that $ac_compile itself does not contain backslashes and begins
14438 # with a dollar sign (not a hyphen), so the echo should work correctly.
14439 # The option is referenced via a variable to avoid confusing sed.
14440 lt_compile=`echo "$ac_compile" | $SED \
14441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14443 -e 's:$: $lt_compiler_flag:'`
14444 (eval echo "\"\$as_me:14444: $lt_compile\"" >&5)
14445 (eval "$lt_compile" 2>conftest.err)
14447 cat conftest.err >&5
14448 echo "$as_me:14448: \$? = $ac_status" >&5
14449 if (exit $ac_status) && test -s "$ac_outfile"; then
14450 # The compiler can only warn and ignore the option if not recognized
14451 # So say no if there are warnings other than the usual output.
14452 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14454 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14455 lt_prog_compiler_pic_works_F77=yes
14461 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14462 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14464 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14465 case $lt_prog_compiler_pic_F77 in
14467 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14470 lt_prog_compiler_pic_F77=
14471 lt_prog_compiler_can_build_shared_F77=no
14476 # For platforms which do not support PIC, -DPIC is meaningless:
14478 lt_prog_compiler_pic_F77=
14481 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14486 # Check to make sure the static flag actually works.
14488 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14489 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14490 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14491 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 lt_prog_compiler_static_works_F77=no
14495 save_LDFLAGS="$LDFLAGS"
14496 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14497 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14498 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14499 # The linker can only warn and ignore the option if not recognized
14500 # So say no if there are warnings
14501 if test -s conftest.err; then
14502 # Append any errors to the config.log.
14503 cat conftest.err 1>&5
14504 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14506 if diff conftest.exp conftest.er2 >/dev/null; then
14507 lt_prog_compiler_static_works_F77=yes
14510 lt_prog_compiler_static_works_F77=yes
14514 LDFLAGS="$save_LDFLAGS"
14517 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14518 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14520 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14523 lt_prog_compiler_static_F77=
14527 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14528 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14529 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14532 lt_cv_prog_compiler_c_o_F77=no
14533 $rm -r conftest 2>/dev/null
14537 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14539 lt_compiler_flag="-o out/conftest2.$ac_objext"
14540 # Insert the option either (1) after the last *FLAGS variable, or
14541 # (2) before a word containing "conftest.", or (3) at the end.
14542 # Note that $ac_compile itself does not contain backslashes and begins
14543 # with a dollar sign (not a hyphen), so the echo should work correctly.
14544 lt_compile=`echo "$ac_compile" | $SED \
14545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14547 -e 's:$: $lt_compiler_flag:'`
14548 (eval echo "\"\$as_me:14548: $lt_compile\"" >&5)
14549 (eval "$lt_compile" 2>out/conftest.err)
14551 cat out/conftest.err >&5
14552 echo "$as_me:14552: \$? = $ac_status" >&5
14553 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14555 # The compiler can only warn and ignore the option if not recognized
14556 # So say no if there are warnings
14557 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14558 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14559 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14560 lt_cv_prog_compiler_c_o_F77=yes
14565 # SGI C++ compiler will create directory out/ii_files/ for
14566 # template instantiation
14567 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14568 $rm out/* && rmdir out
14574 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14575 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14578 hard_links="nottested"
14579 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14580 # do not overwrite the value of need_locks provided by the user
14581 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14582 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14585 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14587 ln conftest.a conftest.b 2>&5 || hard_links=no
14588 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14589 { echo "$as_me:$LINENO: result: $hard_links" >&5
14590 echo "${ECHO_T}$hard_links" >&6; }
14591 if test "$hard_links" = no; then
14592 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14593 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14600 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14601 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14604 allow_undefined_flag_F77=
14605 enable_shared_with_static_runtimes_F77=no
14607 archive_expsym_cmds_F77=
14608 old_archive_From_new_cmds_F77=
14609 old_archive_from_expsyms_cmds_F77=
14610 export_dynamic_flag_spec_F77=
14611 whole_archive_flag_spec_F77=
14612 thread_safe_flag_spec_F77=
14613 hardcode_libdir_flag_spec_F77=
14614 hardcode_libdir_flag_spec_ld_F77=
14615 hardcode_libdir_separator_F77=
14616 hardcode_direct_F77=no
14617 hardcode_minus_L_F77=no
14618 hardcode_shlibpath_var_F77=unsupported
14619 link_all_deplibs_F77=unknown
14620 hardcode_automatic_F77=no
14622 module_expsym_cmds_F77=
14623 always_export_symbols_F77=no
14624 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14625 # include_expsyms should be a list of space-separated symbols to be *always*
14626 # included in the symbol list
14627 include_expsyms_F77=
14628 # exclude_expsyms can be an extended regexp of symbols to exclude
14629 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14630 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14631 # as well as any symbol that contains `d'.
14632 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14633 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14634 # platforms (ab)use it in PIC code, but their linkers get confused if
14635 # the symbol is explicitly referenced. Since portable code cannot
14636 # rely on this symbol name, it's probably fine to never include it in
14637 # preloaded symbol tables.
14638 extract_expsyms_cmds=
14639 # Just being paranoid about ensuring that cc_basename is set.
14640 for cc_temp in $compiler""; do
14642 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14643 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14648 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14651 cygwin* | mingw* | pw32*)
14652 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14653 # When not using gcc, we currently assume that we are using
14654 # Microsoft Visual C++.
14655 if test "$GCC" != yes; then
14660 # we just hope/assume this is gcc and not c89 (= MSVC++)
14669 if test "$with_gnu_ld" = yes; then
14670 # If archive_cmds runs LD, not CC, wlarc should be empty
14673 # Set some defaults for GNU ld with shared library support. These
14674 # are reset later if shared libraries are not supported. Putting them
14675 # here allows them to be overridden if necessary.
14676 runpath_var=LD_RUN_PATH
14677 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14678 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14679 # ancient GNU ld didn't support --whole-archive et. al.
14680 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14681 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14683 whole_archive_flag_spec_F77=
14685 supports_anon_versioning=no
14686 case `$LD -v 2>/dev/null` in
14687 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14688 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14689 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14690 *\ 2.11.*) ;; # other 2.11 versions
14691 *) supports_anon_versioning=yes ;;
14694 # See if GNU ld supports shared libraries.
14696 aix3* | aix4* | aix5*)
14697 # On AIX/PPC, the GNU linker is very broken
14698 if test "$host_cpu" != ia64; then
14702 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14703 *** to be unable to reliably create shared libraries on AIX.
14704 *** Therefore, libtool is disabling shared libraries support. If you
14705 *** really care for shared libraries, you may want to modify your PATH
14706 *** so that a non-GNU linker is found, and then restart.
14713 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)'
14714 hardcode_libdir_flag_spec_F77='-L$libdir'
14715 hardcode_minus_L_F77=yes
14717 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14718 # that the semantics of dynamic libraries on AmigaOS, at least up
14719 # to version 4, is to share data among multiple programs linked
14720 # with the same dynamic library. Since this doesn't match the
14721 # behavior of shared libraries on other platforms, we can't use
14727 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14728 allow_undefined_flag_F77=unsupported
14729 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14730 # support --undefined. This deserves some investigation. FIXME
14731 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14737 cygwin* | mingw* | pw32*)
14738 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14739 # as there is no search path for DLLs.
14740 hardcode_libdir_flag_spec_F77='-L$libdir'
14741 allow_undefined_flag_F77=unsupported
14742 always_export_symbols_F77=no
14743 enable_shared_with_static_runtimes_F77=yes
14744 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14746 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14747 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14748 # If the export-symbols file already is a .def file (1st line
14749 # is EXPORTS), use it as is; otherwise, prepend...
14750 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14751 cp $export_symbols $output_objdir/$soname.def;
14753 echo EXPORTS > $output_objdir/$soname.def;
14754 cat $export_symbols >> $output_objdir/$soname.def;
14756 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14763 hardcode_direct_F77=no
14764 hardcode_shlibpath_var_F77=no
14765 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14766 export_dynamic_flag_spec_F77='${wl}-E'
14767 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14768 # Instead, shared libraries are loaded at an image base (0x10000000 by
14769 # default) and relocated if they conflict, which is a slow very memory
14770 # consuming and fragmenting process. To avoid this, we pick a random,
14771 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14772 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14773 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'
14774 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'
14777 linux* | k*bsd*-gnu)
14778 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14780 case $cc_basename,$host_cpu in
14781 pgcc*) # Portland Group C compiler
14782 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'
14783 tmp_addflag=' $pic_flag'
14785 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14786 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'
14787 tmp_addflag=' $pic_flag -Mnomain' ;;
14788 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14789 tmp_addflag=' -i_dynamic' ;;
14790 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14791 tmp_addflag=' -i_dynamic -nofor_main' ;;
14792 ifc* | ifort*) # Intel Fortran compiler
14793 tmp_addflag=' -nofor_main' ;;
14795 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14797 if test $supports_anon_versioning = yes; then
14798 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14799 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14800 $echo "local: *; };" >> $output_objdir/$libname.ver~
14801 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14803 link_all_deplibs_F77=no
14809 netbsd* | netbsdelf*-gnu)
14810 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14811 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14814 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14815 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14820 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14824 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14825 *** create shared libraries on Solaris systems. Therefore, libtool
14826 *** is disabling shared libraries support. We urge you to upgrade GNU
14827 *** binutils to release 2.9.1 or newer. Another option is to modify
14828 *** your PATH or compiler configuration so that the native linker is
14829 *** used, and then restart.
14832 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14833 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14834 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14841 case `$LD -v 2>&1` in
14842 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14846 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14847 *** reliably create shared libraries on SCO systems. Therefore, libtool
14848 *** is disabling shared libraries support. We urge you to upgrade GNU
14849 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14850 *** your PATH or compiler configuration so that the native linker is
14851 *** used, and then restart.
14856 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14857 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14858 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14859 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14868 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14870 hardcode_direct_F77=yes
14871 hardcode_shlibpath_var_F77=no
14875 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14876 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14877 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14884 if test "$ld_shlibs_F77" = no; then
14886 hardcode_libdir_flag_spec_F77=
14887 export_dynamic_flag_spec_F77=
14888 whole_archive_flag_spec_F77=
14891 # PORTME fill in a description of your system's linker (not GNU ld)
14894 allow_undefined_flag_F77=unsupported
14895 always_export_symbols_F77=yes
14896 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'
14897 # Note: this linker hardcodes the directories in LIBPATH if there
14898 # are no directories specified by -L.
14899 hardcode_minus_L_F77=yes
14900 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14901 # Neither direct hardcoding nor static linking is supported with a
14903 hardcode_direct_F77=unsupported
14908 if test "$host_cpu" = ia64; then
14909 # On IA64, the linker does run time linking by default, so we don't
14910 # have to do anything special.
14911 aix_use_runtimelinking=no
14912 exp_sym_flag='-Bexport'
14915 # If we're using GNU nm, then we don't want the "-C" option.
14916 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14917 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14918 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'
14920 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'
14922 aix_use_runtimelinking=no
14924 # Test if we are trying to use run time linking or normal
14925 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14926 # need to do runtime linking.
14927 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14928 for ld_flag in $LDFLAGS; do
14929 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14930 aix_use_runtimelinking=yes
14937 exp_sym_flag='-bexport'
14938 no_entry_flag='-bnoentry'
14941 # When large executables or shared objects are built, AIX ld can
14942 # have problems creating the table of contents. If linking a library
14943 # or program results in "error TOC overflow" add -mminimal-toc to
14944 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14945 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14947 archive_cmds_F77=''
14948 hardcode_direct_F77=yes
14949 hardcode_libdir_separator_F77=':'
14950 link_all_deplibs_F77=yes
14952 if test "$GCC" = yes; then
14953 case $host_os in aix4.[012]|aix4.[012].*)
14954 # We only want to do this on AIX 4.2 and lower, the check
14955 # below for broken collect2 doesn't work under 4.3+
14956 collect2name=`${CC} -print-prog-name=collect2`
14957 if test -f "$collect2name" && \
14958 strings "$collect2name" | grep resolve_lib_name >/dev/null
14960 # We have reworked collect2
14961 hardcode_direct_F77=yes
14963 # We have old collect2
14964 hardcode_direct_F77=unsupported
14965 # It fails to find uninstalled libraries when the uninstalled
14966 # path is not listed in the libpath. Setting hardcode_minus_L
14967 # to unsupported forces relinking
14968 hardcode_minus_L_F77=yes
14969 hardcode_libdir_flag_spec_F77='-L$libdir'
14970 hardcode_libdir_separator_F77=
14974 shared_flag='-shared'
14975 if test "$aix_use_runtimelinking" = yes; then
14976 shared_flag="$shared_flag "'${wl}-G'
14980 if test "$host_cpu" = ia64; then
14981 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14982 # chokes on -Wl,-G. The following line is correct:
14985 if test "$aix_use_runtimelinking" = yes; then
14986 shared_flag='${wl}-G'
14988 shared_flag='${wl}-bM:SRE'
14993 # It seems that -bexpall does not export symbols beginning with
14994 # underscore (_), so it is better to generate a list of symbols to export.
14995 always_export_symbols_F77=yes
14996 if test "$aix_use_runtimelinking" = yes; then
14997 # Warning - without using the other runtime loading flags (-brtl),
14998 # -berok will link without error, but may produce a broken library.
14999 allow_undefined_flag_F77='-berok'
15000 # Determine the default libpath from the value encoded in an empty executable.
15001 cat >conftest.$ac_ext <<_ACEOF
15006 rm -f conftest.$ac_objext conftest$ac_exeext
15007 if { (ac_try="$ac_link"
15008 case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_link") 2>conftest.er1
15015 grep -v '^ *+' conftest.er1 >conftest.err
15017 cat conftest.err >&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
15020 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15021 { (case "(($ac_try" in
15022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15023 *) ac_try_echo=$ac_try;;
15025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15026 (eval "$ac_try") 2>&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; } &&
15030 { ac_try='test -s conftest$ac_exeext'
15031 { (case "(($ac_try" in
15032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033 *) ac_try_echo=$ac_try;;
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036 (eval "$ac_try") 2>&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15041 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15043 # Check for a 64-bit object if we didn't find anything.
15044 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15047 echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15053 rm -f core conftest.err conftest.$ac_objext \
15054 conftest$ac_exeext conftest.$ac_ext
15055 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15057 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15058 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"
15060 if test "$host_cpu" = ia64; then
15061 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15062 allow_undefined_flag_F77="-z nodefs"
15063 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"
15065 # Determine the default libpath from the value encoded in an empty executable.
15066 cat >conftest.$ac_ext <<_ACEOF
15071 rm -f conftest.$ac_objext conftest$ac_exeext
15072 if { (ac_try="$ac_link"
15073 case "(($ac_try" in
15074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075 *) ac_try_echo=$ac_try;;
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078 (eval "$ac_link") 2>conftest.er1
15080 grep -v '^ *+' conftest.er1 >conftest.err
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15086 { (case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_try") 2>&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; } &&
15095 { ac_try='test -s conftest$ac_exeext'
15096 { (case "(($ac_try" in
15097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098 *) ac_try_echo=$ac_try;;
15100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15101 (eval "$ac_try") 2>&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15106 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15108 # Check for a 64-bit object if we didn't find anything.
15109 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15118 rm -f core conftest.err conftest.$ac_objext \
15119 conftest$ac_exeext conftest.$ac_ext
15120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15122 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15123 # Warning - without using the other run time loading flags,
15124 # -berok will link without error, but may produce a broken library.
15125 no_undefined_flag_F77=' ${wl}-bernotok'
15126 allow_undefined_flag_F77=' ${wl}-berok'
15127 # Exported symbols can be pulled into shared objects from archives
15128 whole_archive_flag_spec_F77='$convenience'
15129 archive_cmds_need_lc_F77=yes
15130 # This is similar to how AIX traditionally builds its shared libraries.
15131 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'
15137 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)'
15138 hardcode_libdir_flag_spec_F77='-L$libdir'
15139 hardcode_minus_L_F77=yes
15140 # see comment about different semantics on the GNU ld section
15145 export_dynamic_flag_spec_F77=-rdynamic
15148 cygwin* | mingw* | pw32*)
15149 # When not using gcc, we currently assume that we are using
15150 # Microsoft Visual C++.
15151 # hardcode_libdir_flag_spec is actually meaningless, as there is
15152 # no search path for DLLs.
15153 hardcode_libdir_flag_spec_F77=' '
15154 allow_undefined_flag_F77=unsupported
15155 # Tell ltmain to make .lib files, not .a files.
15157 # Tell ltmain to make .dll files, not .so files.
15159 # FIXME: Setting linknames here is a bad hack.
15160 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15161 # The linker will automatically build a .lib file if we build a DLL.
15162 old_archive_From_new_cmds_F77='true'
15163 # FIXME: Should let the user specify the lib program.
15164 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15165 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15166 enable_shared_with_static_runtimes_F77=yes
15169 darwin* | rhapsody*)
15171 rhapsody* | darwin1.[012])
15172 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15175 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15176 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15178 case ${MACOSX_DEPLOYMENT_TARGET} in
15180 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15183 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15189 archive_cmds_need_lc_F77=no
15190 hardcode_direct_F77=no
15191 hardcode_automatic_F77=yes
15192 hardcode_shlibpath_var_F77=unsupported
15193 whole_archive_flag_spec_F77=''
15194 link_all_deplibs_F77=yes
15195 if test "$GCC" = yes ; then
15196 output_verbose_link_cmd='echo'
15197 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15198 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15199 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15200 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}'
15201 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}'
15203 case $cc_basename in
15205 output_verbose_link_cmd='echo'
15206 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15207 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15208 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15209 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15210 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}'
15220 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15221 hardcode_libdir_flag_spec_F77='-L$libdir'
15222 hardcode_shlibpath_var_F77=no
15229 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15230 # support. Future versions do this automatically, but an explicit c++rt0.o
15231 # does not break anything, and helps significantly (at the cost of a little
15234 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15235 hardcode_libdir_flag_spec_F77='-R$libdir'
15236 hardcode_direct_F77=yes
15237 hardcode_shlibpath_var_F77=no
15240 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15242 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15243 hardcode_direct_F77=yes
15244 hardcode_minus_L_F77=yes
15245 hardcode_shlibpath_var_F77=no
15248 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15249 freebsd* | dragonfly*)
15250 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15251 hardcode_libdir_flag_spec_F77='-R$libdir'
15252 hardcode_direct_F77=yes
15253 hardcode_shlibpath_var_F77=no
15257 if test "$GCC" = yes; then
15258 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'
15260 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'
15262 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15263 hardcode_libdir_separator_F77=:
15264 hardcode_direct_F77=yes
15266 # hardcode_minus_L: Not really in the search PATH,
15267 # but as the default location of the library.
15268 hardcode_minus_L_F77=yes
15269 export_dynamic_flag_spec_F77='${wl}-E'
15273 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15274 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15276 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15278 if test "$with_gnu_ld" = no; then
15279 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15280 hardcode_libdir_separator_F77=:
15282 hardcode_direct_F77=yes
15283 export_dynamic_flag_spec_F77='${wl}-E'
15285 # hardcode_minus_L: Not really in the search PATH,
15286 # but as the default location of the library.
15287 hardcode_minus_L_F77=yes
15292 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15295 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15298 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15301 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15307 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15310 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15313 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15317 if test "$with_gnu_ld" = no; then
15318 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15319 hardcode_libdir_separator_F77=:
15323 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15324 hardcode_direct_F77=no
15325 hardcode_shlibpath_var_F77=no
15328 hardcode_direct_F77=yes
15329 export_dynamic_flag_spec_F77='${wl}-E'
15331 # hardcode_minus_L: Not really in the search PATH,
15332 # but as the default location of the library.
15333 hardcode_minus_L_F77=yes
15339 irix5* | irix6* | nonstopux*)
15340 if test "$GCC" = yes; then
15341 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'
15343 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'
15344 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15346 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15347 hardcode_libdir_separator_F77=:
15348 link_all_deplibs_F77=yes
15351 netbsd* | netbsdelf*-gnu)
15352 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15353 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15355 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15357 hardcode_libdir_flag_spec_F77='-R$libdir'
15358 hardcode_direct_F77=yes
15359 hardcode_shlibpath_var_F77=no
15363 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15364 hardcode_direct_F77=yes
15365 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15366 hardcode_libdir_separator_F77=:
15367 hardcode_shlibpath_var_F77=no
15371 hardcode_direct_F77=yes
15372 hardcode_shlibpath_var_F77=no
15373 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15374 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15375 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15376 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15377 export_dynamic_flag_spec_F77='${wl}-E'
15380 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15381 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15382 hardcode_libdir_flag_spec_F77='-R$libdir'
15385 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15386 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15393 hardcode_libdir_flag_spec_F77='-L$libdir'
15394 hardcode_minus_L_F77=yes
15395 allow_undefined_flag_F77=unsupported
15396 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'
15397 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15401 if test "$GCC" = yes; then
15402 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15403 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'
15405 allow_undefined_flag_F77=' -expect_unresolved \*'
15406 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'
15408 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15409 hardcode_libdir_separator_F77=:
15412 osf4* | osf5*) # as osf3* with the addition of -msym flag
15413 if test "$GCC" = yes; then
15414 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15415 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'
15416 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15418 allow_undefined_flag_F77=' -expect_unresolved \*'
15419 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'
15420 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~
15421 $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'
15423 # Both c and cxx compiler support -rpath directly
15424 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15426 hardcode_libdir_separator_F77=:
15430 no_undefined_flag_F77=' -z text'
15431 if test "$GCC" = yes; then
15433 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15434 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15435 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15438 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15439 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15440 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15442 hardcode_libdir_flag_spec_F77='-R$libdir'
15443 hardcode_shlibpath_var_F77=no
15445 solaris2.[0-5] | solaris2.[0-5].*) ;;
15447 # The compiler driver will combine linker options so we
15448 # cannot just pass the convience library names through
15449 # without $wl, iff we do not link with $LD.
15450 # Luckily, gcc supports the same syntax we need for Sun Studio.
15451 # Supported since Solaris 2.6 (maybe 2.5.1?)
15454 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15456 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15459 link_all_deplibs_F77=yes
15463 if test "x$host_vendor" = xsequent; then
15464 # Use $CC to link under sequent, because it throws in some extra .o
15465 # files that make .init and .fini sections work.
15466 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15468 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15470 hardcode_libdir_flag_spec_F77='-L$libdir'
15471 hardcode_direct_F77=yes
15472 hardcode_minus_L_F77=yes
15473 hardcode_shlibpath_var_F77=no
15477 case $host_vendor in
15479 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15480 hardcode_direct_F77=yes # is this really true???
15483 ## LD is ld it makes a PLAMLIB
15484 ## CC just makes a GrossModule.
15485 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15486 reload_cmds_F77='$CC -r -o $output$reload_objs'
15487 hardcode_direct_F77=no
15490 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15491 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15494 runpath_var='LD_RUN_PATH'
15495 hardcode_shlibpath_var_F77=no
15499 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15500 hardcode_shlibpath_var_F77=no
15501 export_dynamic_flag_spec_F77='-Bexport'
15505 if test -d /usr/nec; then
15506 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15507 hardcode_shlibpath_var_F77=no
15508 runpath_var=LD_RUN_PATH
15509 hardcode_runpath_var=yes
15514 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15515 no_undefined_flag_F77='${wl}-z,text'
15516 archive_cmds_need_lc_F77=no
15517 hardcode_shlibpath_var_F77=no
15518 runpath_var='LD_RUN_PATH'
15520 if test "$GCC" = yes; then
15521 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15522 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15524 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15525 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15529 sysv5* | sco3.2v5* | sco5v6*)
15530 # Note: We can NOT use -z defs as we might desire, because we do not
15531 # link with -lc, and that would cause any symbols used from libc to
15532 # always be unresolved, which means just about no library would
15533 # ever link correctly. If we're not using GNU ld we use -z text
15534 # though, which does catch some bad symbols but isn't as heavy-handed
15536 no_undefined_flag_F77='${wl}-z,text'
15537 allow_undefined_flag_F77='${wl}-z,nodefs'
15538 archive_cmds_need_lc_F77=no
15539 hardcode_shlibpath_var_F77=no
15540 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15541 hardcode_libdir_separator_F77=':'
15542 link_all_deplibs_F77=yes
15543 export_dynamic_flag_spec_F77='${wl}-Bexport'
15544 runpath_var='LD_RUN_PATH'
15546 if test "$GCC" = yes; then
15547 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15548 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15550 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15551 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15556 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15557 hardcode_libdir_flag_spec_F77='-L$libdir'
15558 hardcode_shlibpath_var_F77=no
15567 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15568 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15569 test "$ld_shlibs_F77" = no && can_build_shared=no
15572 # Do we need to explicitly link libc?
15574 case "x$archive_cmds_need_lc_F77" in
15576 # Assume -lc should be added
15577 archive_cmds_need_lc_F77=yes
15579 if test "$enable_shared" = yes && test "$GCC" = yes; then
15580 case $archive_cmds_F77 in
15582 # FIXME: we may have to deal with multi-command sequences.
15585 # Test whether the compiler implicitly links with -lc since on some
15586 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15587 # to ld, don't add -lc before -lgcc.
15588 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15589 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15594 (eval $ac_compile) 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } 2>conftest.err; then
15600 libobjs=conftest.$ac_objext
15602 wl=$lt_prog_compiler_wl_F77
15603 pic_flag=$lt_prog_compiler_pic_F77
15609 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15610 allow_undefined_flag_F77=
15611 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15612 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }
15617 archive_cmds_need_lc_F77=no
15619 archive_cmds_need_lc_F77=yes
15621 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15623 cat conftest.err 1>&5
15626 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15627 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15634 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15635 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15636 library_names_spec=
15637 libname_spec='lib$name'
15641 postuninstall_cmds=
15645 shlibpath_overrides_runpath=unknown
15647 dynamic_linker="$host_os ld.so"
15648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15649 if test "$GCC" = yes; then
15650 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15651 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15652 # if the path contains ";" then we assume it to be the separator
15653 # otherwise default to the standard path separator (i.e. ":") - it is
15654 # assumed that no part of a normal pathname contains ";" but that should
15655 # okay in the real world where ";" in dirpaths is itself problematic.
15656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15658 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15661 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15663 need_lib_prefix=unknown
15664 hardcode_into_libs=no
15666 # when you set need_version to no, make sure it does not cause -set_version
15667 # flags to be left without arguments
15668 need_version=unknown
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15674 shlibpath_var=LIBPATH
15676 # AIX 3 has no versioning support, so we append a major version to the name.
15677 soname_spec='${libname}${release}${shared_ext}$major'
15684 hardcode_into_libs=yes
15685 if test "$host_cpu" = ia64; then
15686 # AIX 5 supports IA64
15687 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15688 shlibpath_var=LD_LIBRARY_PATH
15690 # With GCC up to 2.95.x, collect2 would create an import file
15691 # for dependence libraries. The import file would start with
15692 # the line `#! .'. This would cause the generated library to
15693 # depend on `.', always an invalid library. This was fixed in
15694 # development snapshots of GCC prior to 3.0.
15696 aix4 | aix4.[01] | aix4.[01].*)
15697 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15699 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15702 can_build_shared=no
15706 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15707 # soname into executable. Probably we can add versioning support to
15708 # collect2, so additional links can be useful in future.
15709 if test "$aix_use_runtimelinking" = yes; then
15710 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15711 # instead of lib<name>.a to let people know that these are not
15712 # typical AIX shared libraries.
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15715 # We preserve .a as extension for shared libraries through AIX4.2
15716 # and later when we are not doing run time linking.
15717 library_names_spec='${libname}${release}.a $libname.a'
15718 soname_spec='${libname}${release}${shared_ext}$major'
15720 shlibpath_var=LIBPATH
15725 library_names_spec='$libname.ixlibrary $libname.a'
15726 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15727 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'
15731 library_names_spec='${libname}${shared_ext}'
15732 dynamic_linker="$host_os ld.so"
15733 shlibpath_var=LIBRARY_PATH
15739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15740 soname_spec='${libname}${release}${shared_ext}$major'
15741 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15742 shlibpath_var=LD_LIBRARY_PATH
15743 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15744 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15745 # the default ld.so.conf also contains /usr/contrib/lib and
15746 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15747 # libtool to hard-code these into programs
15750 cygwin* | mingw* | pw32*)
15751 version_type=windows
15756 case $GCC,$host_os in
15757 yes,cygwin* | yes,mingw* | yes,pw32*)
15758 library_names_spec='$libname.dll.a'
15759 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15760 postinstall_cmds='base_file=`basename \${file}`~
15761 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15762 dldir=$destdir/`dirname \$dlpath`~
15763 test -d \$dldir || mkdir -p \$dldir~
15764 $install_prog $dir/$dlname \$dldir/$dlname~
15765 chmod a+x \$dldir/$dlname'
15766 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15767 dlpath=$dir/\$dldll~
15769 shlibpath_overrides_runpath=yes
15773 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15774 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15775 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15778 # MinGW DLLs use traditional 'lib' prefix
15779 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15780 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15781 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15782 # It is most probably a Windows format PATH printed by
15783 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15784 # path with ; separators, and with drive letters. We can handle the
15785 # drive letters (cygwin fileutils understands them), so leave them,
15786 # especially as we might pass files found there to a mingw objdump,
15787 # which wouldn't understand a cygwinified path. Ahh.
15788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15794 # pw32 DLLs use 'pw' prefix rather than 'lib'
15795 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15801 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15804 dynamic_linker='Win32 ld.exe'
15805 # FIXME: first we should search . and the directory the executable is in
15809 darwin* | rhapsody*)
15810 dynamic_linker="$host_os dyld"
15811 version_type=darwin
15814 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15815 soname_spec='${libname}${release}${major}$shared_ext'
15816 shlibpath_overrides_runpath=yes
15817 shlibpath_var=DYLD_LIBRARY_PATH
15818 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15819 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15820 if test "$GCC" = yes; then
15821 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15823 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15825 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15833 soname_spec='${libname}${release}${shared_ext}$major'
15834 shlibpath_var=LD_LIBRARY_PATH
15841 freebsd* | dragonfly*)
15842 # DragonFly does not have aout. When/if they implement a new
15843 # versioning mechanism, adjust this.
15844 if test -x /usr/bin/objformat; then
15845 objformat=`/usr/bin/objformat`
15848 freebsd[123]*) objformat=aout ;;
15849 *) objformat=elf ;;
15852 version_type=freebsd-$objformat
15853 case $version_type in
15855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15864 shlibpath_var=LD_LIBRARY_PATH
15867 shlibpath_overrides_runpath=yes
15869 freebsd3.[01]* | freebsdelf3.[01]*)
15870 shlibpath_overrides_runpath=yes
15871 hardcode_into_libs=yes
15873 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15874 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15875 shlibpath_overrides_runpath=no
15876 hardcode_into_libs=yes
15878 freebsd*) # from 4.6 on
15879 shlibpath_overrides_runpath=yes
15880 hardcode_into_libs=yes
15889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15890 soname_spec='${libname}${release}${shared_ext}$major'
15891 shlibpath_var=LD_LIBRARY_PATH
15892 hardcode_into_libs=yes
15895 hpux9* | hpux10* | hpux11*)
15896 # Give a soname corresponding to the major version so that dld.sl refuses to
15897 # link against other versions.
15904 hardcode_into_libs=yes
15905 dynamic_linker="$host_os dld.so"
15906 shlibpath_var=LD_LIBRARY_PATH
15907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15909 soname_spec='${libname}${release}${shared_ext}$major'
15910 if test "X$HPUX_IA64_MODE" = X32; then
15911 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15913 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15919 hardcode_into_libs=yes
15920 dynamic_linker="$host_os dld.sl"
15921 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15924 soname_spec='${libname}${release}${shared_ext}$major'
15925 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15926 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15930 dynamic_linker="$host_os dld.sl"
15931 shlibpath_var=SHLIB_PATH
15932 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15934 soname_spec='${libname}${release}${shared_ext}$major'
15937 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15938 postinstall_cmds='chmod 555 $lib'
15945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15946 soname_spec='${libname}${release}${shared_ext}$major'
15947 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15948 shlibpath_var=LD_LIBRARY_PATH
15949 shlibpath_overrides_runpath=no
15950 hardcode_into_libs=yes
15953 irix5* | irix6* | nonstopux*)
15955 nonstopux*) version_type=nonstopux ;;
15957 if test "$lt_cv_prog_gnu_ld" = yes; then
15965 soname_spec='${libname}${release}${shared_ext}$major'
15966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15968 irix5* | nonstopux*)
15969 libsuff= shlibsuff=
15972 case $LD in # libtool.m4 will add one of these switches to LD
15973 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15974 libsuff= shlibsuff= libmagic=32-bit;;
15975 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15976 libsuff=32 shlibsuff=N32 libmagic=N32;;
15977 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15978 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15979 *) libsuff= shlibsuff= libmagic=never-match;;
15983 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15984 shlibpath_overrides_runpath=no
15985 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15986 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15987 hardcode_into_libs=yes
15990 # No shared lib support for Linux oldld, aout, or coff.
15991 linux*oldld* | linux*aout* | linux*coff*)
15995 # This must be Linux ELF.
15996 linux* | k*bsd*-gnu)
16000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16001 soname_spec='${libname}${release}${shared_ext}$major'
16002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16003 shlibpath_var=LD_LIBRARY_PATH
16004 shlibpath_overrides_runpath=no
16005 # This implies no fast_install, which is unacceptable.
16006 # Some rework will be needed to allow for fast_install
16007 # before this can be enabled.
16008 hardcode_into_libs=yes
16010 # Append ld.so.conf contents to the search path
16011 if test -f /etc/ld.so.conf; then
16012 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16013 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16016 # We used to test for /lib/ld.so.1 and disable shared libraries on
16017 # powerpc, because MkLinux only supported shared libraries with the
16018 # GNU dynamic linker. Since this was broken with cross compilers,
16019 # most powerpc-linux boxes support dynamic linking these days and
16020 # people can always --disable-shared, the test was removed, and we
16021 # assume the GNU/Linux dynamic linker is in use.
16022 dynamic_linker='GNU/Linux ld.so'
16029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16030 soname_spec='${libname}${release}${shared_ext}$major'
16031 shlibpath_var=LD_LIBRARY_PATH
16032 shlibpath_overrides_runpath=no
16033 hardcode_into_libs=yes
16034 dynamic_linker='NetBSD ld.elf_so'
16041 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16044 dynamic_linker='NetBSD (a.out) ld.so'
16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16047 soname_spec='${libname}${release}${shared_ext}$major'
16048 dynamic_linker='NetBSD ld.elf_so'
16050 shlibpath_var=LD_LIBRARY_PATH
16051 shlibpath_overrides_runpath=yes
16052 hardcode_into_libs=yes
16057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058 shlibpath_var=LD_LIBRARY_PATH
16059 shlibpath_overrides_runpath=yes
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16067 soname_spec='${libname}${release}${shared_ext}$major'
16068 shlibpath_var=LD_LIBRARY_PATH
16069 shlibpath_overrides_runpath=yes
16074 sys_lib_dlsearch_path_spec="/usr/lib"
16076 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16078 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16079 *) need_version=no ;;
16081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16083 shlibpath_var=LD_LIBRARY_PATH
16084 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16086 openbsd2.[89] | openbsd2.[89].*)
16087 shlibpath_overrides_runpath=no
16090 shlibpath_overrides_runpath=yes
16094 shlibpath_overrides_runpath=yes
16099 libname_spec='$name'
16102 library_names_spec='$libname${shared_ext} $libname.a'
16103 dynamic_linker='OS/2 ld.exe'
16104 shlibpath_var=LIBPATH
16107 osf3* | osf4* | osf5*)
16111 soname_spec='${libname}${release}${shared_ext}$major'
16112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16113 shlibpath_var=LD_LIBRARY_PATH
16114 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16115 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16123 soname_spec='${libname}${release}${shared_ext}$major'
16124 shlibpath_var=LD_LIBRARY_PATH
16125 shlibpath_overrides_runpath=yes
16126 hardcode_into_libs=yes
16127 # ldd complains unless libraries are executable
16128 postinstall_cmds='chmod +x $lib'
16133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16134 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16135 shlibpath_var=LD_LIBRARY_PATH
16136 shlibpath_overrides_runpath=yes
16137 if test "$with_gnu_ld" = yes; then
16145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16146 soname_spec='${libname}${release}${shared_ext}$major'
16147 shlibpath_var=LD_LIBRARY_PATH
16148 case $host_vendor in
16150 shlibpath_overrides_runpath=no
16152 export_dynamic_flag_spec='${wl}-Blargedynsym'
16153 runpath_var=LD_RUN_PATH
16161 shlibpath_overrides_runpath=no
16162 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16168 if test -d /usr/nec ;then
16170 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16171 soname_spec='$libname${shared_ext}.$major'
16172 shlibpath_var=LD_LIBRARY_PATH
16176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16177 version_type=freebsd-elf
16180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16181 soname_spec='${libname}${release}${shared_ext}$major'
16182 shlibpath_var=LD_LIBRARY_PATH
16183 hardcode_into_libs=yes
16184 if test "$with_gnu_ld" = yes; then
16185 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16186 shlibpath_overrides_runpath=no
16188 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16189 shlibpath_overrides_runpath=yes
16192 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16196 sys_lib_dlsearch_path_spec='/usr/lib'
16201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16202 soname_spec='${libname}${release}${shared_ext}$major'
16203 shlibpath_var=LD_LIBRARY_PATH
16210 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16211 echo "${ECHO_T}$dynamic_linker" >&6; }
16212 test "$dynamic_linker" = no && can_build_shared=no
16214 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16215 if test "$GCC" = yes; then
16216 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16219 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16220 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16221 hardcode_action_F77=
16222 if test -n "$hardcode_libdir_flag_spec_F77" || \
16223 test -n "$runpath_var_F77" || \
16224 test "X$hardcode_automatic_F77" = "Xyes" ; then
16226 # We can hardcode non-existant directories.
16227 if test "$hardcode_direct_F77" != no &&
16228 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16229 # have to relink, otherwise we might link with an installed library
16230 # when we should be linking with a yet-to-be-installed one
16231 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16232 test "$hardcode_minus_L_F77" != no; then
16233 # Linking always hardcodes the temporary library directory.
16234 hardcode_action_F77=relink
16236 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16237 hardcode_action_F77=immediate
16240 # We cannot hardcode anything, or else we can only hardcode existing
16242 hardcode_action_F77=unsupported
16244 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16245 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16247 if test "$hardcode_action_F77" = relink; then
16248 # Fast installation is not supported
16249 enable_fast_install=no
16250 elif test "$shlibpath_overrides_runpath" = yes ||
16251 test "$enable_shared" = no; then
16252 # Fast installation is not necessary
16253 enable_fast_install=needless
16257 # The else clause should only fire when bootstrapping the
16258 # libtool distribution, otherwise you forgot to ship ltmain.sh
16259 # with your package, and you will get complaints that there are
16260 # no rules to generate ltmain.sh.
16261 if test -f "$ltmain"; then
16262 # See if we are running on zsh, and set the options which allow our commands through
16263 # without removal of \ escapes.
16264 if test -n "${ZSH_VERSION+set}" ; then
16265 setopt NO_GLOB_SUBST
16267 # Now quote all the things that may contain metacharacters while being
16268 # careful not to overquote the AC_SUBSTed values. We take copies of the
16269 # variables and quote the copies for generation of the libtool script.
16270 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16272 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16273 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16274 deplibs_check_method reload_flag reload_cmds need_locks \
16275 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16276 lt_cv_sys_global_symbol_to_c_name_address \
16277 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16278 old_postinstall_cmds old_postuninstall_cmds \
16282 lt_prog_compiler_wl_F77 \
16283 lt_prog_compiler_pic_F77 \
16284 lt_prog_compiler_static_F77 \
16285 lt_prog_compiler_no_builtin_flag_F77 \
16286 export_dynamic_flag_spec_F77 \
16287 thread_safe_flag_spec_F77 \
16288 whole_archive_flag_spec_F77 \
16289 enable_shared_with_static_runtimes_F77 \
16290 old_archive_cmds_F77 \
16291 old_archive_from_new_cmds_F77 \
16292 predep_objects_F77 \
16293 postdep_objects_F77 \
16296 compiler_lib_search_path_F77 \
16298 archive_expsym_cmds_F77 \
16299 postinstall_cmds_F77 \
16300 postuninstall_cmds_F77 \
16301 old_archive_from_expsyms_cmds_F77 \
16302 allow_undefined_flag_F77 \
16303 no_undefined_flag_F77 \
16304 export_symbols_cmds_F77 \
16305 hardcode_libdir_flag_spec_F77 \
16306 hardcode_libdir_flag_spec_ld_F77 \
16307 hardcode_libdir_separator_F77 \
16308 hardcode_automatic_F77 \
16310 module_expsym_cmds_F77 \
16311 lt_cv_prog_compiler_c_o_F77 \
16312 exclude_expsyms_F77 \
16313 include_expsyms_F77; do
16316 old_archive_cmds_F77 | \
16317 old_archive_from_new_cmds_F77 | \
16318 archive_cmds_F77 | \
16319 archive_expsym_cmds_F77 | \
16320 module_cmds_F77 | \
16321 module_expsym_cmds_F77 | \
16322 old_archive_from_expsyms_cmds_F77 | \
16323 export_symbols_cmds_F77 | \
16324 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16325 postinstall_cmds | postuninstall_cmds | \
16326 old_postinstall_cmds | old_postuninstall_cmds | \
16327 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16328 # Double-quote double-evaled strings.
16329 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16332 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16338 *'\$0 --fallback-echo"')
16339 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16345 cat <<__EOF__ >> "$cfgfile"
16346 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16348 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16350 # Shell to use when invoking shell scripts.
16353 # Whether or not to build shared libraries.
16354 build_libtool_libs=$enable_shared
16356 # Whether or not to build static libraries.
16357 build_old_libs=$enable_static
16359 # Whether or not to add -lc for building shared libraries.
16360 build_libtool_need_lc=$archive_cmds_need_lc_F77
16362 # Whether or not to disallow shared libs when runtime libs are static
16363 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16365 # Whether or not to optimize for fast installation.
16366 fast_install=$enable_fast_install
16369 host_alias=$host_alias
16373 # The build system.
16374 build_alias=$build_alias
16378 # An echo program that does not interpret backslashes.
16383 AR_FLAGS=$lt_AR_FLAGS
16388 # LTCC compiler flags.
16389 LTCFLAGS=$lt_LTCFLAGS
16391 # A language-specific compiler.
16392 CC=$lt_compiler_F77
16394 # Is the compiler the GNU C compiler?
16400 # The linker used to build libraries.
16403 # Whether we need hard or soft links.
16406 # A BSD-compatible nm program.
16409 # A symbol stripping program
16412 # Used to examine libraries when file_magic_cmd begins "file"
16413 MAGIC_CMD=$MAGIC_CMD
16415 # Used on cygwin: DLL creation program.
16418 # Used on cygwin: object dumper.
16421 # Used on cygwin: assembler.
16424 # The name of the directory that contains temporary libtool files.
16427 # How to create reloadable object files.
16428 reload_flag=$lt_reload_flag
16429 reload_cmds=$lt_reload_cmds
16431 # How to pass a linker flag through the compiler.
16432 wl=$lt_lt_prog_compiler_wl_F77
16434 # Object file suffix (normally "o").
16435 objext="$ac_objext"
16437 # Old archive suffix (normally "a").
16440 # Shared library suffix (normally ".so").
16441 shrext_cmds='$shrext_cmds'
16443 # Executable file suffix (normally "").
16446 # Additional compiler flags for building library objects.
16447 pic_flag=$lt_lt_prog_compiler_pic_F77
16450 # What is the maximum length of a command?
16451 max_cmd_len=$lt_cv_sys_max_cmd_len
16453 # Does compiler simultaneously support -c and -o options?
16454 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16456 # Must we lock files when doing compilation?
16457 need_locks=$lt_need_locks
16459 # Do we need the lib prefix for modules?
16460 need_lib_prefix=$need_lib_prefix
16462 # Do we need a version for libraries?
16463 need_version=$need_version
16465 # Whether dlopen is supported.
16466 dlopen_support=$enable_dlopen
16468 # Whether dlopen of programs is supported.
16469 dlopen_self=$enable_dlopen_self
16471 # Whether dlopen of statically linked programs is supported.
16472 dlopen_self_static=$enable_dlopen_self_static
16474 # Compiler flag to prevent dynamic linking.
16475 link_static_flag=$lt_lt_prog_compiler_static_F77
16477 # Compiler flag to turn off builtin functions.
16478 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16480 # Compiler flag to allow reflexive dlopens.
16481 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16483 # Compiler flag to generate shared objects directly from archives.
16484 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16486 # Compiler flag to generate thread-safe objects.
16487 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16489 # Library versioning type.
16490 version_type=$version_type
16492 # Format of library name prefix.
16493 libname_spec=$lt_libname_spec
16495 # List of archive names. First name is the real one, the rest are links.
16496 # The last name is the one that the linker finds with -lNAME.
16497 library_names_spec=$lt_library_names_spec
16499 # The coded name of the library, if different from the real name.
16500 soname_spec=$lt_soname_spec
16502 # Commands used to build and install an old-style archive.
16504 old_archive_cmds=$lt_old_archive_cmds_F77
16505 old_postinstall_cmds=$lt_old_postinstall_cmds
16506 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16508 # Create an old-style archive from a shared archive.
16509 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16511 # Create a temporary old-style archive to link instead of a shared archive.
16512 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16514 # Commands used to build and install a shared archive.
16515 archive_cmds=$lt_archive_cmds_F77
16516 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16517 postinstall_cmds=$lt_postinstall_cmds
16518 postuninstall_cmds=$lt_postuninstall_cmds
16520 # Commands used to build a loadable module (assumed same as above if empty)
16521 module_cmds=$lt_module_cmds_F77
16522 module_expsym_cmds=$lt_module_expsym_cmds_F77
16524 # Commands to strip libraries.
16525 old_striplib=$lt_old_striplib
16526 striplib=$lt_striplib
16528 # Dependencies to place before the objects being linked to create a
16530 predep_objects=$lt_predep_objects_F77
16532 # Dependencies to place after the objects being linked to create a
16534 postdep_objects=$lt_postdep_objects_F77
16536 # Dependencies to place before the objects being linked to create a
16538 predeps=$lt_predeps_F77
16540 # Dependencies to place after the objects being linked to create a
16542 postdeps=$lt_postdeps_F77
16544 # The library search path used internally by the compiler when linking
16545 # a shared library.
16546 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16548 # Method to check whether dependent libraries are shared objects.
16549 deplibs_check_method=$lt_deplibs_check_method
16551 # Command to use when deplibs_check_method == file_magic.
16552 file_magic_cmd=$lt_file_magic_cmd
16554 # Flag that allows shared libraries with undefined symbols to be built.
16555 allow_undefined_flag=$lt_allow_undefined_flag_F77
16557 # Flag that forces no undefined symbols.
16558 no_undefined_flag=$lt_no_undefined_flag_F77
16560 # Commands used to finish a libtool library installation in a directory.
16561 finish_cmds=$lt_finish_cmds
16563 # Same as above, but a single script fragment to be evaled but not shown.
16564 finish_eval=$lt_finish_eval
16566 # Take the output of nm and produce a listing of raw symbols and C names.
16567 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16569 # Transform the output of nm in a proper C declaration
16570 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16572 # Transform the output of nm in a C name address pair
16573 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16575 # This is the shared library runtime path variable.
16576 runpath_var=$runpath_var
16578 # This is the shared library path variable.
16579 shlibpath_var=$shlibpath_var
16581 # Is shlibpath searched before the hard-coded library search path?
16582 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16584 # How to hardcode a shared library path into an executable.
16585 hardcode_action=$hardcode_action_F77
16587 # Whether we should hardcode library paths into libraries.
16588 hardcode_into_libs=$hardcode_into_libs
16590 # Flag to hardcode \$libdir into a binary during linking.
16591 # This must work even if \$libdir does not exist.
16592 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16594 # If ld is used when linking, flag to hardcode \$libdir into
16595 # a binary during linking. This must work even if \$libdir does
16597 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16599 # Whether we need a single -rpath flag with a separated argument.
16600 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16602 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16603 # resulting binary.
16604 hardcode_direct=$hardcode_direct_F77
16606 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16607 # resulting binary.
16608 hardcode_minus_L=$hardcode_minus_L_F77
16610 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16611 # the resulting binary.
16612 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16614 # Set to yes if building a shared library automatically hardcodes DIR into the library
16615 # and all subsequent libraries and executables linked against it.
16616 hardcode_automatic=$hardcode_automatic_F77
16618 # Variables whose values should be saved in libtool wrapper scripts and
16619 # restored at relink time.
16620 variables_saved_for_relink="$variables_saved_for_relink"
16622 # Whether libtool must link a program against all its dependency libraries.
16623 link_all_deplibs=$link_all_deplibs_F77
16625 # Compile-time system search path for libraries
16626 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16628 # Run-time system search path for libraries
16629 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16631 # Fix the shell variable \$srcfile for the compiler.
16632 fix_srcfile_path="$fix_srcfile_path_F77"
16634 # Set to yes if exported symbols are required.
16635 always_export_symbols=$always_export_symbols_F77
16637 # The commands to list exported symbols.
16638 export_symbols_cmds=$lt_export_symbols_cmds_F77
16640 # The commands to extract the exported symbol list from a shared archive.
16641 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16643 # Symbols that should not be listed in the preloaded symbols.
16644 exclude_expsyms=$lt_exclude_expsyms_F77
16646 # Symbols that must always be exported.
16647 include_expsyms=$lt_include_expsyms_F77
16649 # ### END LIBTOOL TAG CONFIG: $tagname
16655 # If there is no Makefile yet, we rely on a make rule to execute
16656 # `config.status --recheck' to rerun these tests and create the
16657 # libtool script then.
16658 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16659 if test -f "$ltmain_in"; then
16660 test -f Makefile && make "$ltmain"
16666 ac_cpp='$CPP $CPPFLAGS'
16667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16679 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16682 # Source file extension for Java test sources.
16685 # Object file extension for compiled Java test sources.
16689 # Code to be used in simple compile tests
16690 lt_simple_compile_test_code="class foo {}\n"
16692 # Code to be used in simple link tests
16693 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16695 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16697 # If no C compiler was specified, use CC.
16700 # If no C compiler flags were specified, use CFLAGS.
16701 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16703 # Allow CC to be a program name with arguments.
16707 # save warnings/boilerplate of simple test code
16708 ac_outfile=conftest.$ac_objext
16709 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16710 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16711 _lt_compiler_boilerplate=`cat conftest.err`
16714 ac_outfile=conftest.$ac_objext
16715 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16716 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16717 _lt_linker_boilerplate=`cat conftest.err`
16721 # Allow CC to be a program name with arguments.
16726 for cc_temp in $compiler""; do
16728 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16729 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16734 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16737 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16738 archive_cmds_need_lc_GCJ=no
16740 old_archive_cmds_GCJ=$old_archive_cmds
16743 lt_prog_compiler_no_builtin_flag_GCJ=
16745 if test "$GCC" = yes; then
16746 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16749 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16750 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16751 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16752 echo $ECHO_N "(cached) $ECHO_C" >&6
16754 lt_cv_prog_compiler_rtti_exceptions=no
16755 ac_outfile=conftest.$ac_objext
16756 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16757 lt_compiler_flag="-fno-rtti -fno-exceptions"
16758 # Insert the option either (1) after the last *FLAGS variable, or
16759 # (2) before a word containing "conftest.", or (3) at the end.
16760 # Note that $ac_compile itself does not contain backslashes and begins
16761 # with a dollar sign (not a hyphen), so the echo should work correctly.
16762 # The option is referenced via a variable to avoid confusing sed.
16763 lt_compile=`echo "$ac_compile" | $SED \
16764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16766 -e 's:$: $lt_compiler_flag:'`
16767 (eval echo "\"\$as_me:16767: $lt_compile\"" >&5)
16768 (eval "$lt_compile" 2>conftest.err)
16770 cat conftest.err >&5
16771 echo "$as_me:16771: \$? = $ac_status" >&5
16772 if (exit $ac_status) && test -s "$ac_outfile"; then
16773 # The compiler can only warn and ignore the option if not recognized
16774 # So say no if there are warnings other than the usual output.
16775 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16777 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16778 lt_cv_prog_compiler_rtti_exceptions=yes
16784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16785 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16787 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16788 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16795 lt_prog_compiler_wl_GCJ=
16796 lt_prog_compiler_pic_GCJ=
16797 lt_prog_compiler_static_GCJ=
16799 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16800 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16802 if test "$GCC" = yes; then
16803 lt_prog_compiler_wl_GCJ='-Wl,'
16804 lt_prog_compiler_static_GCJ='-static'
16808 # All AIX code is PIC.
16809 if test "$host_cpu" = ia64; then
16810 # AIX 5 now supports IA64 processor
16811 lt_prog_compiler_static_GCJ='-Bstatic'
16816 # FIXME: we need at least 68020 code to build shared libraries, but
16817 # adding the `-m68020' flag to GCC prevents building anything better,
16819 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16822 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16823 # PIC is the default for these OSes.
16826 mingw* | pw32* | os2*)
16827 # This hack is so that the source file can tell whether it is being
16828 # built for inclusion in a dll (and should export symbols for example).
16829 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16832 darwin* | rhapsody*)
16833 # PIC is the default on this platform
16834 # Common symbols not allowed in MH_DYLIB files
16835 lt_prog_compiler_pic_GCJ='-fno-common'
16839 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16840 # Instead, we relocate shared libraries at runtime.
16844 # Just because we use GCC doesn't mean we suddenly get shared libraries
16845 # on systems that don't support them.
16846 lt_prog_compiler_can_build_shared_GCJ=no
16851 if test -d /usr/nec; then
16852 lt_prog_compiler_pic_GCJ=-Kconform_pic
16857 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16858 # not for PA HP-UX.
16864 lt_prog_compiler_pic_GCJ='-fPIC'
16870 lt_prog_compiler_pic_GCJ='-fPIC'
16874 # PORTME Check for flag to pass linker flags through the system compiler.
16877 lt_prog_compiler_wl_GCJ='-Wl,'
16878 if test "$host_cpu" = ia64; then
16879 # AIX 5 now supports IA64 processor
16880 lt_prog_compiler_static_GCJ='-Bstatic'
16882 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16886 # PIC is the default on this platform
16887 # Common symbols not allowed in MH_DYLIB files
16888 case $cc_basename in
16890 lt_prog_compiler_pic_GCJ='-qnocommon'
16891 lt_prog_compiler_wl_GCJ='-Wl,'
16896 mingw* | pw32* | os2*)
16897 # This hack is so that the source file can tell whether it is being
16898 # built for inclusion in a dll (and should export symbols for example).
16899 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16902 hpux9* | hpux10* | hpux11*)
16903 lt_prog_compiler_wl_GCJ='-Wl,'
16904 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16905 # not for PA HP-UX.
16911 lt_prog_compiler_pic_GCJ='+Z'
16914 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16915 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16918 irix5* | irix6* | nonstopux*)
16919 lt_prog_compiler_wl_GCJ='-Wl,'
16920 # PIC (with -KPIC) is the default.
16921 lt_prog_compiler_static_GCJ='-non_shared'
16925 lt_prog_compiler_pic_GCJ='-KPIC'
16926 lt_prog_compiler_static_GCJ='-Bstatic'
16929 linux* | k*bsd*-gnu)
16930 case $cc_basename in
16932 lt_prog_compiler_wl_GCJ='-Wl,'
16933 lt_prog_compiler_pic_GCJ='-KPIC'
16934 lt_prog_compiler_static_GCJ='-static'
16936 pgcc* | pgf77* | pgf90* | pgf95*)
16937 # Portland Group compilers (*not* the Pentium gcc compiler,
16938 # which looks to be a dead project)
16939 lt_prog_compiler_wl_GCJ='-Wl,'
16940 lt_prog_compiler_pic_GCJ='-fpic'
16941 lt_prog_compiler_static_GCJ='-Bstatic'
16944 lt_prog_compiler_wl_GCJ='-Wl,'
16945 # All Alpha code is PIC.
16946 lt_prog_compiler_static_GCJ='-non_shared'
16951 osf3* | osf4* | osf5*)
16952 lt_prog_compiler_wl_GCJ='-Wl,'
16953 # All OSF/1 code is PIC.
16954 lt_prog_compiler_static_GCJ='-non_shared'
16958 lt_prog_compiler_pic_GCJ='-KPIC'
16959 lt_prog_compiler_static_GCJ='-Bstatic'
16960 case $cc_basename in
16961 f77* | f90* | f95*)
16962 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16964 lt_prog_compiler_wl_GCJ='-Wl,';;
16969 lt_prog_compiler_wl_GCJ='-Qoption ld '
16970 lt_prog_compiler_pic_GCJ='-PIC'
16971 lt_prog_compiler_static_GCJ='-Bstatic'
16974 sysv4 | sysv4.2uw2* | sysv4.3*)
16975 lt_prog_compiler_wl_GCJ='-Wl,'
16976 lt_prog_compiler_pic_GCJ='-KPIC'
16977 lt_prog_compiler_static_GCJ='-Bstatic'
16981 if test -d /usr/nec ;then
16982 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16983 lt_prog_compiler_static_GCJ='-Bstatic'
16987 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16988 lt_prog_compiler_wl_GCJ='-Wl,'
16989 lt_prog_compiler_pic_GCJ='-KPIC'
16990 lt_prog_compiler_static_GCJ='-Bstatic'
16994 lt_prog_compiler_wl_GCJ='-Wl,'
16995 lt_prog_compiler_can_build_shared_GCJ=no
16999 lt_prog_compiler_pic_GCJ='-pic'
17000 lt_prog_compiler_static_GCJ='-Bstatic'
17004 lt_prog_compiler_can_build_shared_GCJ=no
17009 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17010 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17013 # Check to make sure the PIC flag actually works.
17015 if test -n "$lt_prog_compiler_pic_GCJ"; then
17017 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17018 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17019 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17022 lt_prog_compiler_pic_works_GCJ=no
17023 ac_outfile=conftest.$ac_objext
17024 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17025 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17026 # Insert the option either (1) after the last *FLAGS variable, or
17027 # (2) before a word containing "conftest.", or (3) at the end.
17028 # Note that $ac_compile itself does not contain backslashes and begins
17029 # with a dollar sign (not a hyphen), so the echo should work correctly.
17030 # The option is referenced via a variable to avoid confusing sed.
17031 lt_compile=`echo "$ac_compile" | $SED \
17032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17034 -e 's:$: $lt_compiler_flag:'`
17035 (eval echo "\"\$as_me:17035: $lt_compile\"" >&5)
17036 (eval "$lt_compile" 2>conftest.err)
17038 cat conftest.err >&5
17039 echo "$as_me:17039: \$? = $ac_status" >&5
17040 if (exit $ac_status) && test -s "$ac_outfile"; then
17041 # The compiler can only warn and ignore the option if not recognized
17042 # So say no if there are warnings other than the usual output.
17043 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17045 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17046 lt_prog_compiler_pic_works_GCJ=yes
17052 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17053 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17055 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17056 case $lt_prog_compiler_pic_GCJ in
17058 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17061 lt_prog_compiler_pic_GCJ=
17062 lt_prog_compiler_can_build_shared_GCJ=no
17067 # For platforms which do not support PIC, -DPIC is meaningless:
17069 lt_prog_compiler_pic_GCJ=
17072 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17077 # Check to make sure the static flag actually works.
17079 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17080 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17081 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17082 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
17085 lt_prog_compiler_static_works_GCJ=no
17086 save_LDFLAGS="$LDFLAGS"
17087 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17088 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17089 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17090 # The linker can only warn and ignore the option if not recognized
17091 # So say no if there are warnings
17092 if test -s conftest.err; then
17093 # Append any errors to the config.log.
17094 cat conftest.err 1>&5
17095 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17097 if diff conftest.exp conftest.er2 >/dev/null; then
17098 lt_prog_compiler_static_works_GCJ=yes
17101 lt_prog_compiler_static_works_GCJ=yes
17105 LDFLAGS="$save_LDFLAGS"
17108 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17109 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17111 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17114 lt_prog_compiler_static_GCJ=
17118 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17119 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17120 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17121 echo $ECHO_N "(cached) $ECHO_C" >&6
17123 lt_cv_prog_compiler_c_o_GCJ=no
17124 $rm -r conftest 2>/dev/null
17128 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17130 lt_compiler_flag="-o out/conftest2.$ac_objext"
17131 # Insert the option either (1) after the last *FLAGS variable, or
17132 # (2) before a word containing "conftest.", or (3) at the end.
17133 # Note that $ac_compile itself does not contain backslashes and begins
17134 # with a dollar sign (not a hyphen), so the echo should work correctly.
17135 lt_compile=`echo "$ac_compile" | $SED \
17136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17138 -e 's:$: $lt_compiler_flag:'`
17139 (eval echo "\"\$as_me:17139: $lt_compile\"" >&5)
17140 (eval "$lt_compile" 2>out/conftest.err)
17142 cat out/conftest.err >&5
17143 echo "$as_me:17143: \$? = $ac_status" >&5
17144 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17146 # The compiler can only warn and ignore the option if not recognized
17147 # So say no if there are warnings
17148 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17149 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17150 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17151 lt_cv_prog_compiler_c_o_GCJ=yes
17156 # SGI C++ compiler will create directory out/ii_files/ for
17157 # template instantiation
17158 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17159 $rm out/* && rmdir out
17165 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17166 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17169 hard_links="nottested"
17170 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17171 # do not overwrite the value of need_locks provided by the user
17172 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17173 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17178 ln conftest.a conftest.b 2>&5 || hard_links=no
17179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17180 { echo "$as_me:$LINENO: result: $hard_links" >&5
17181 echo "${ECHO_T}$hard_links" >&6; }
17182 if test "$hard_links" = no; then
17183 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17184 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17191 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17192 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17195 allow_undefined_flag_GCJ=
17196 enable_shared_with_static_runtimes_GCJ=no
17198 archive_expsym_cmds_GCJ=
17199 old_archive_From_new_cmds_GCJ=
17200 old_archive_from_expsyms_cmds_GCJ=
17201 export_dynamic_flag_spec_GCJ=
17202 whole_archive_flag_spec_GCJ=
17203 thread_safe_flag_spec_GCJ=
17204 hardcode_libdir_flag_spec_GCJ=
17205 hardcode_libdir_flag_spec_ld_GCJ=
17206 hardcode_libdir_separator_GCJ=
17207 hardcode_direct_GCJ=no
17208 hardcode_minus_L_GCJ=no
17209 hardcode_shlibpath_var_GCJ=unsupported
17210 link_all_deplibs_GCJ=unknown
17211 hardcode_automatic_GCJ=no
17213 module_expsym_cmds_GCJ=
17214 always_export_symbols_GCJ=no
17215 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17216 # include_expsyms should be a list of space-separated symbols to be *always*
17217 # included in the symbol list
17218 include_expsyms_GCJ=
17219 # exclude_expsyms can be an extended regexp of symbols to exclude
17220 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17221 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17222 # as well as any symbol that contains `d'.
17223 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17224 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17225 # platforms (ab)use it in PIC code, but their linkers get confused if
17226 # the symbol is explicitly referenced. Since portable code cannot
17227 # rely on this symbol name, it's probably fine to never include it in
17228 # preloaded symbol tables.
17229 extract_expsyms_cmds=
17230 # Just being paranoid about ensuring that cc_basename is set.
17231 for cc_temp in $compiler""; do
17233 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17234 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17239 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17242 cygwin* | mingw* | pw32*)
17243 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17244 # When not using gcc, we currently assume that we are using
17245 # Microsoft Visual C++.
17246 if test "$GCC" != yes; then
17251 # we just hope/assume this is gcc and not c89 (= MSVC++)
17260 if test "$with_gnu_ld" = yes; then
17261 # If archive_cmds runs LD, not CC, wlarc should be empty
17264 # Set some defaults for GNU ld with shared library support. These
17265 # are reset later if shared libraries are not supported. Putting them
17266 # here allows them to be overridden if necessary.
17267 runpath_var=LD_RUN_PATH
17268 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17269 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17270 # ancient GNU ld didn't support --whole-archive et. al.
17271 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17272 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17274 whole_archive_flag_spec_GCJ=
17276 supports_anon_versioning=no
17277 case `$LD -v 2>/dev/null` in
17278 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17279 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17280 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17281 *\ 2.11.*) ;; # other 2.11 versions
17282 *) supports_anon_versioning=yes ;;
17285 # See if GNU ld supports shared libraries.
17287 aix3* | aix4* | aix5*)
17288 # On AIX/PPC, the GNU linker is very broken
17289 if test "$host_cpu" != ia64; then
17293 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17294 *** to be unable to reliably create shared libraries on AIX.
17295 *** Therefore, libtool is disabling shared libraries support. If you
17296 *** really care for shared libraries, you may want to modify your PATH
17297 *** so that a non-GNU linker is found, and then restart.
17304 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)'
17305 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17306 hardcode_minus_L_GCJ=yes
17308 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17309 # that the semantics of dynamic libraries on AmigaOS, at least up
17310 # to version 4, is to share data among multiple programs linked
17311 # with the same dynamic library. Since this doesn't match the
17312 # behavior of shared libraries on other platforms, we can't use
17318 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17319 allow_undefined_flag_GCJ=unsupported
17320 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17321 # support --undefined. This deserves some investigation. FIXME
17322 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17328 cygwin* | mingw* | pw32*)
17329 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17330 # as there is no search path for DLLs.
17331 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17332 allow_undefined_flag_GCJ=unsupported
17333 always_export_symbols_GCJ=no
17334 enable_shared_with_static_runtimes_GCJ=yes
17335 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17337 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17338 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17339 # If the export-symbols file already is a .def file (1st line
17340 # is EXPORTS), use it as is; otherwise, prepend...
17341 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17342 cp $export_symbols $output_objdir/$soname.def;
17344 echo EXPORTS > $output_objdir/$soname.def;
17345 cat $export_symbols >> $output_objdir/$soname.def;
17347 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17354 hardcode_direct_GCJ=no
17355 hardcode_shlibpath_var_GCJ=no
17356 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17357 export_dynamic_flag_spec_GCJ='${wl}-E'
17358 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17359 # Instead, shared libraries are loaded at an image base (0x10000000 by
17360 # default) and relocated if they conflict, which is a slow very memory
17361 # consuming and fragmenting process. To avoid this, we pick a random,
17362 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17363 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17364 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'
17365 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'
17368 linux* | k*bsd*-gnu)
17369 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17371 case $cc_basename,$host_cpu in
17372 pgcc*) # Portland Group C compiler
17373 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'
17374 tmp_addflag=' $pic_flag'
17376 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17377 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'
17378 tmp_addflag=' $pic_flag -Mnomain' ;;
17379 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17380 tmp_addflag=' -i_dynamic' ;;
17381 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17382 tmp_addflag=' -i_dynamic -nofor_main' ;;
17383 ifc* | ifort*) # Intel Fortran compiler
17384 tmp_addflag=' -nofor_main' ;;
17386 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17388 if test $supports_anon_versioning = yes; then
17389 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17390 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17391 $echo "local: *; };" >> $output_objdir/$libname.ver~
17392 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17394 link_all_deplibs_GCJ=no
17400 netbsd* | netbsdelf*-gnu)
17401 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17402 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17405 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17406 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17411 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17415 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17416 *** create shared libraries on Solaris systems. Therefore, libtool
17417 *** is disabling shared libraries support. We urge you to upgrade GNU
17418 *** binutils to release 2.9.1 or newer. Another option is to modify
17419 *** your PATH or compiler configuration so that the native linker is
17420 *** used, and then restart.
17423 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17424 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17425 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17431 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17432 case `$LD -v 2>&1` in
17433 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17437 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17438 *** reliably create shared libraries on SCO systems. Therefore, libtool
17439 *** is disabling shared libraries support. We urge you to upgrade GNU
17440 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17441 *** your PATH or compiler configuration so that the native linker is
17442 *** used, and then restart.
17447 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17448 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17449 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17450 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17459 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17461 hardcode_direct_GCJ=yes
17462 hardcode_shlibpath_var_GCJ=no
17466 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17467 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17468 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17475 if test "$ld_shlibs_GCJ" = no; then
17477 hardcode_libdir_flag_spec_GCJ=
17478 export_dynamic_flag_spec_GCJ=
17479 whole_archive_flag_spec_GCJ=
17482 # PORTME fill in a description of your system's linker (not GNU ld)
17485 allow_undefined_flag_GCJ=unsupported
17486 always_export_symbols_GCJ=yes
17487 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'
17488 # Note: this linker hardcodes the directories in LIBPATH if there
17489 # are no directories specified by -L.
17490 hardcode_minus_L_GCJ=yes
17491 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17492 # Neither direct hardcoding nor static linking is supported with a
17494 hardcode_direct_GCJ=unsupported
17499 if test "$host_cpu" = ia64; then
17500 # On IA64, the linker does run time linking by default, so we don't
17501 # have to do anything special.
17502 aix_use_runtimelinking=no
17503 exp_sym_flag='-Bexport'
17506 # If we're using GNU nm, then we don't want the "-C" option.
17507 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17508 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17509 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'
17511 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'
17513 aix_use_runtimelinking=no
17515 # Test if we are trying to use run time linking or normal
17516 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17517 # need to do runtime linking.
17518 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17519 for ld_flag in $LDFLAGS; do
17520 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17521 aix_use_runtimelinking=yes
17528 exp_sym_flag='-bexport'
17529 no_entry_flag='-bnoentry'
17532 # When large executables or shared objects are built, AIX ld can
17533 # have problems creating the table of contents. If linking a library
17534 # or program results in "error TOC overflow" add -mminimal-toc to
17535 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17536 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17538 archive_cmds_GCJ=''
17539 hardcode_direct_GCJ=yes
17540 hardcode_libdir_separator_GCJ=':'
17541 link_all_deplibs_GCJ=yes
17543 if test "$GCC" = yes; then
17544 case $host_os in aix4.[012]|aix4.[012].*)
17545 # We only want to do this on AIX 4.2 and lower, the check
17546 # below for broken collect2 doesn't work under 4.3+
17547 collect2name=`${CC} -print-prog-name=collect2`
17548 if test -f "$collect2name" && \
17549 strings "$collect2name" | grep resolve_lib_name >/dev/null
17551 # We have reworked collect2
17552 hardcode_direct_GCJ=yes
17554 # We have old collect2
17555 hardcode_direct_GCJ=unsupported
17556 # It fails to find uninstalled libraries when the uninstalled
17557 # path is not listed in the libpath. Setting hardcode_minus_L
17558 # to unsupported forces relinking
17559 hardcode_minus_L_GCJ=yes
17560 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17561 hardcode_libdir_separator_GCJ=
17565 shared_flag='-shared'
17566 if test "$aix_use_runtimelinking" = yes; then
17567 shared_flag="$shared_flag "'${wl}-G'
17571 if test "$host_cpu" = ia64; then
17572 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17573 # chokes on -Wl,-G. The following line is correct:
17576 if test "$aix_use_runtimelinking" = yes; then
17577 shared_flag='${wl}-G'
17579 shared_flag='${wl}-bM:SRE'
17584 # It seems that -bexpall does not export symbols beginning with
17585 # underscore (_), so it is better to generate a list of symbols to export.
17586 always_export_symbols_GCJ=yes
17587 if test "$aix_use_runtimelinking" = yes; then
17588 # Warning - without using the other runtime loading flags (-brtl),
17589 # -berok will link without error, but may produce a broken library.
17590 allow_undefined_flag_GCJ='-berok'
17591 # Determine the default libpath from the value encoded in an empty executable.
17592 cat >conftest.$ac_ext <<_ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17607 rm -f conftest.$ac_objext conftest$ac_exeext
17608 if { (ac_try="$ac_link"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_link") 2>conftest.er1
17616 grep -v '^ *+' conftest.er1 >conftest.err
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
17621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17622 { (case "(($ac_try" in
17623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624 *) ac_try_echo=$ac_try;;
17626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17627 (eval "$ac_try") 2>&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; } &&
17631 { ac_try='test -s conftest$ac_exeext'
17632 { (case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_try") 2>&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); }; }; then
17642 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17644 # Check for a 64-bit object if we didn't find anything.
17645 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17654 rm -f core conftest.err conftest.$ac_objext \
17655 conftest$ac_exeext conftest.$ac_ext
17656 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17658 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17659 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"
17661 if test "$host_cpu" = ia64; then
17662 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17663 allow_undefined_flag_GCJ="-z nodefs"
17664 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"
17666 # Determine the default libpath from the value encoded in an empty executable.
17667 cat >conftest.$ac_ext <<_ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17682 rm -f conftest.$ac_objext conftest$ac_exeext
17683 if { (ac_try="$ac_link"
17684 case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_link") 2>conftest.er1
17691 grep -v '^ *+' conftest.er1 >conftest.err
17693 cat conftest.err >&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } &&
17696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17697 { (case "(($ac_try" in
17698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699 *) ac_try_echo=$ac_try;;
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702 (eval "$ac_try") 2>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; } &&
17706 { ac_try='test -s conftest$ac_exeext'
17707 { (case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712 (eval "$ac_try") 2>&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; }; then
17717 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17719 # Check for a 64-bit object if we didn't find anything.
17720 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17723 echo "$as_me: failed program was:" >&5
17724 sed 's/^/| /' conftest.$ac_ext >&5
17729 rm -f core conftest.err conftest.$ac_objext \
17730 conftest$ac_exeext conftest.$ac_ext
17731 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17733 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17734 # Warning - without using the other run time loading flags,
17735 # -berok will link without error, but may produce a broken library.
17736 no_undefined_flag_GCJ=' ${wl}-bernotok'
17737 allow_undefined_flag_GCJ=' ${wl}-berok'
17738 # Exported symbols can be pulled into shared objects from archives
17739 whole_archive_flag_spec_GCJ='$convenience'
17740 archive_cmds_need_lc_GCJ=yes
17741 # This is similar to how AIX traditionally builds its shared libraries.
17742 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'
17748 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)'
17749 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17750 hardcode_minus_L_GCJ=yes
17751 # see comment about different semantics on the GNU ld section
17756 export_dynamic_flag_spec_GCJ=-rdynamic
17759 cygwin* | mingw* | pw32*)
17760 # When not using gcc, we currently assume that we are using
17761 # Microsoft Visual C++.
17762 # hardcode_libdir_flag_spec is actually meaningless, as there is
17763 # no search path for DLLs.
17764 hardcode_libdir_flag_spec_GCJ=' '
17765 allow_undefined_flag_GCJ=unsupported
17766 # Tell ltmain to make .lib files, not .a files.
17768 # Tell ltmain to make .dll files, not .so files.
17770 # FIXME: Setting linknames here is a bad hack.
17771 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17772 # The linker will automatically build a .lib file if we build a DLL.
17773 old_archive_From_new_cmds_GCJ='true'
17774 # FIXME: Should let the user specify the lib program.
17775 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17776 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17777 enable_shared_with_static_runtimes_GCJ=yes
17780 darwin* | rhapsody*)
17782 rhapsody* | darwin1.[012])
17783 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17786 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17787 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17789 case ${MACOSX_DEPLOYMENT_TARGET} in
17791 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17794 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17800 archive_cmds_need_lc_GCJ=no
17801 hardcode_direct_GCJ=no
17802 hardcode_automatic_GCJ=yes
17803 hardcode_shlibpath_var_GCJ=unsupported
17804 whole_archive_flag_spec_GCJ=''
17805 link_all_deplibs_GCJ=yes
17806 if test "$GCC" = yes ; then
17807 output_verbose_link_cmd='echo'
17808 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17809 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17810 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17811 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}'
17812 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}'
17814 case $cc_basename in
17816 output_verbose_link_cmd='echo'
17817 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17818 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17819 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17820 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17821 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}'
17831 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17832 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17833 hardcode_shlibpath_var_GCJ=no
17840 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17841 # support. Future versions do this automatically, but an explicit c++rt0.o
17842 # does not break anything, and helps significantly (at the cost of a little
17845 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17846 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17847 hardcode_direct_GCJ=yes
17848 hardcode_shlibpath_var_GCJ=no
17851 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17853 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17854 hardcode_direct_GCJ=yes
17855 hardcode_minus_L_GCJ=yes
17856 hardcode_shlibpath_var_GCJ=no
17859 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17860 freebsd* | dragonfly*)
17861 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17862 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17863 hardcode_direct_GCJ=yes
17864 hardcode_shlibpath_var_GCJ=no
17868 if test "$GCC" = yes; then
17869 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'
17871 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'
17873 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17874 hardcode_libdir_separator_GCJ=:
17875 hardcode_direct_GCJ=yes
17877 # hardcode_minus_L: Not really in the search PATH,
17878 # but as the default location of the library.
17879 hardcode_minus_L_GCJ=yes
17880 export_dynamic_flag_spec_GCJ='${wl}-E'
17884 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17885 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17887 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17889 if test "$with_gnu_ld" = no; then
17890 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17891 hardcode_libdir_separator_GCJ=:
17893 hardcode_direct_GCJ=yes
17894 export_dynamic_flag_spec_GCJ='${wl}-E'
17896 # hardcode_minus_L: Not really in the search PATH,
17897 # but as the default location of the library.
17898 hardcode_minus_L_GCJ=yes
17903 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17906 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17909 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17912 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17918 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17921 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17924 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17928 if test "$with_gnu_ld" = no; then
17929 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17930 hardcode_libdir_separator_GCJ=:
17934 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17935 hardcode_direct_GCJ=no
17936 hardcode_shlibpath_var_GCJ=no
17939 hardcode_direct_GCJ=yes
17940 export_dynamic_flag_spec_GCJ='${wl}-E'
17942 # hardcode_minus_L: Not really in the search PATH,
17943 # but as the default location of the library.
17944 hardcode_minus_L_GCJ=yes
17950 irix5* | irix6* | nonstopux*)
17951 if test "$GCC" = yes; then
17952 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'
17954 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'
17955 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17957 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17958 hardcode_libdir_separator_GCJ=:
17959 link_all_deplibs_GCJ=yes
17962 netbsd* | netbsdelf*-gnu)
17963 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17964 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17966 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17968 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17969 hardcode_direct_GCJ=yes
17970 hardcode_shlibpath_var_GCJ=no
17974 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17975 hardcode_direct_GCJ=yes
17976 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17977 hardcode_libdir_separator_GCJ=:
17978 hardcode_shlibpath_var_GCJ=no
17982 hardcode_direct_GCJ=yes
17983 hardcode_shlibpath_var_GCJ=no
17984 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17985 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17986 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17987 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17988 export_dynamic_flag_spec_GCJ='${wl}-E'
17991 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17992 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17993 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17996 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17997 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18004 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18005 hardcode_minus_L_GCJ=yes
18006 allow_undefined_flag_GCJ=unsupported
18007 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'
18008 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18012 if test "$GCC" = yes; then
18013 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18014 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'
18016 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18017 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'
18019 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18020 hardcode_libdir_separator_GCJ=:
18023 osf4* | osf5*) # as osf3* with the addition of -msym flag
18024 if test "$GCC" = yes; then
18025 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18026 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'
18027 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18029 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18030 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'
18031 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~
18032 $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'
18034 # Both c and cxx compiler support -rpath directly
18035 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18037 hardcode_libdir_separator_GCJ=:
18041 no_undefined_flag_GCJ=' -z text'
18042 if test "$GCC" = yes; then
18044 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18045 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18046 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18049 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18050 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18051 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18053 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18054 hardcode_shlibpath_var_GCJ=no
18056 solaris2.[0-5] | solaris2.[0-5].*) ;;
18058 # The compiler driver will combine linker options so we
18059 # cannot just pass the convience library names through
18060 # without $wl, iff we do not link with $LD.
18061 # Luckily, gcc supports the same syntax we need for Sun Studio.
18062 # Supported since Solaris 2.6 (maybe 2.5.1?)
18065 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18067 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18070 link_all_deplibs_GCJ=yes
18074 if test "x$host_vendor" = xsequent; then
18075 # Use $CC to link under sequent, because it throws in some extra .o
18076 # files that make .init and .fini sections work.
18077 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18079 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18081 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18082 hardcode_direct_GCJ=yes
18083 hardcode_minus_L_GCJ=yes
18084 hardcode_shlibpath_var_GCJ=no
18088 case $host_vendor in
18090 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18091 hardcode_direct_GCJ=yes # is this really true???
18094 ## LD is ld it makes a PLAMLIB
18095 ## CC just makes a GrossModule.
18096 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18097 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18098 hardcode_direct_GCJ=no
18101 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18102 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18105 runpath_var='LD_RUN_PATH'
18106 hardcode_shlibpath_var_GCJ=no
18110 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18111 hardcode_shlibpath_var_GCJ=no
18112 export_dynamic_flag_spec_GCJ='-Bexport'
18116 if test -d /usr/nec; then
18117 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18118 hardcode_shlibpath_var_GCJ=no
18119 runpath_var=LD_RUN_PATH
18120 hardcode_runpath_var=yes
18125 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18126 no_undefined_flag_GCJ='${wl}-z,text'
18127 archive_cmds_need_lc_GCJ=no
18128 hardcode_shlibpath_var_GCJ=no
18129 runpath_var='LD_RUN_PATH'
18131 if test "$GCC" = yes; then
18132 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18133 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18135 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18136 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18140 sysv5* | sco3.2v5* | sco5v6*)
18141 # Note: We can NOT use -z defs as we might desire, because we do not
18142 # link with -lc, and that would cause any symbols used from libc to
18143 # always be unresolved, which means just about no library would
18144 # ever link correctly. If we're not using GNU ld we use -z text
18145 # though, which does catch some bad symbols but isn't as heavy-handed
18147 no_undefined_flag_GCJ='${wl}-z,text'
18148 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18149 archive_cmds_need_lc_GCJ=no
18150 hardcode_shlibpath_var_GCJ=no
18151 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18152 hardcode_libdir_separator_GCJ=':'
18153 link_all_deplibs_GCJ=yes
18154 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18155 runpath_var='LD_RUN_PATH'
18157 if test "$GCC" = yes; then
18158 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18159 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18161 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18162 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18167 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18168 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18169 hardcode_shlibpath_var_GCJ=no
18178 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18179 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18180 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18183 # Do we need to explicitly link libc?
18185 case "x$archive_cmds_need_lc_GCJ" in
18187 # Assume -lc should be added
18188 archive_cmds_need_lc_GCJ=yes
18190 if test "$enable_shared" = yes && test "$GCC" = yes; then
18191 case $archive_cmds_GCJ in
18193 # FIXME: we may have to deal with multi-command sequences.
18196 # Test whether the compiler implicitly links with -lc since on some
18197 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18198 # to ld, don't add -lc before -lgcc.
18199 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18200 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18202 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18205 (eval $ac_compile) 2>&5
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); } 2>conftest.err; then
18211 libobjs=conftest.$ac_objext
18213 wl=$lt_prog_compiler_wl_GCJ
18214 pic_flag=$lt_prog_compiler_pic_GCJ
18220 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18221 allow_undefined_flag_GCJ=
18222 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18223 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }
18228 archive_cmds_need_lc_GCJ=no
18230 archive_cmds_need_lc_GCJ=yes
18232 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18234 cat conftest.err 1>&5
18237 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18238 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18245 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18246 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18247 library_names_spec=
18248 libname_spec='lib$name'
18252 postuninstall_cmds=
18256 shlibpath_overrides_runpath=unknown
18258 dynamic_linker="$host_os ld.so"
18259 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18260 if test "$GCC" = yes; then
18261 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18262 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18263 # if the path contains ";" then we assume it to be the separator
18264 # otherwise default to the standard path separator (i.e. ":") - it is
18265 # assumed that no part of a normal pathname contains ";" but that should
18266 # okay in the real world where ";" in dirpaths is itself problematic.
18267 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18272 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18274 need_lib_prefix=unknown
18275 hardcode_into_libs=no
18277 # when you set need_version to no, make sure it does not cause -set_version
18278 # flags to be left without arguments
18279 need_version=unknown
18284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18285 shlibpath_var=LIBPATH
18287 # AIX 3 has no versioning support, so we append a major version to the name.
18288 soname_spec='${libname}${release}${shared_ext}$major'
18295 hardcode_into_libs=yes
18296 if test "$host_cpu" = ia64; then
18297 # AIX 5 supports IA64
18298 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18299 shlibpath_var=LD_LIBRARY_PATH
18301 # With GCC up to 2.95.x, collect2 would create an import file
18302 # for dependence libraries. The import file would start with
18303 # the line `#! .'. This would cause the generated library to
18304 # depend on `.', always an invalid library. This was fixed in
18305 # development snapshots of GCC prior to 3.0.
18307 aix4 | aix4.[01] | aix4.[01].*)
18308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18310 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18313 can_build_shared=no
18317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18318 # soname into executable. Probably we can add versioning support to
18319 # collect2, so additional links can be useful in future.
18320 if test "$aix_use_runtimelinking" = yes; then
18321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18322 # instead of lib<name>.a to let people know that these are not
18323 # typical AIX shared libraries.
18324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18326 # We preserve .a as extension for shared libraries through AIX4.2
18327 # and later when we are not doing run time linking.
18328 library_names_spec='${libname}${release}.a $libname.a'
18329 soname_spec='${libname}${release}${shared_ext}$major'
18331 shlibpath_var=LIBPATH
18336 library_names_spec='$libname.ixlibrary $libname.a'
18337 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18338 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'
18342 library_names_spec='${libname}${shared_ext}'
18343 dynamic_linker="$host_os ld.so"
18344 shlibpath_var=LIBRARY_PATH
18350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18351 soname_spec='${libname}${release}${shared_ext}$major'
18352 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18353 shlibpath_var=LD_LIBRARY_PATH
18354 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18355 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18356 # the default ld.so.conf also contains /usr/contrib/lib and
18357 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18358 # libtool to hard-code these into programs
18361 cygwin* | mingw* | pw32*)
18362 version_type=windows
18367 case $GCC,$host_os in
18368 yes,cygwin* | yes,mingw* | yes,pw32*)
18369 library_names_spec='$libname.dll.a'
18370 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18371 postinstall_cmds='base_file=`basename \${file}`~
18372 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18373 dldir=$destdir/`dirname \$dlpath`~
18374 test -d \$dldir || mkdir -p \$dldir~
18375 $install_prog $dir/$dlname \$dldir/$dlname~
18376 chmod a+x \$dldir/$dlname'
18377 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18378 dlpath=$dir/\$dldll~
18380 shlibpath_overrides_runpath=yes
18384 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18385 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18386 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18389 # MinGW DLLs use traditional 'lib' prefix
18390 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18391 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18392 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18393 # It is most probably a Windows format PATH printed by
18394 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18395 # path with ; separators, and with drive letters. We can handle the
18396 # drive letters (cygwin fileutils understands them), so leave them,
18397 # especially as we might pass files found there to a mingw objdump,
18398 # which wouldn't understand a cygwinified path. Ahh.
18399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18405 # pw32 DLLs use 'pw' prefix rather than 'lib'
18406 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18412 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18415 dynamic_linker='Win32 ld.exe'
18416 # FIXME: first we should search . and the directory the executable is in
18420 darwin* | rhapsody*)
18421 dynamic_linker="$host_os dyld"
18422 version_type=darwin
18425 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18426 soname_spec='${libname}${release}${major}$shared_ext'
18427 shlibpath_overrides_runpath=yes
18428 shlibpath_var=DYLD_LIBRARY_PATH
18429 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18430 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18431 if test "$GCC" = yes; then
18432 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18434 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18436 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18444 soname_spec='${libname}${release}${shared_ext}$major'
18445 shlibpath_var=LD_LIBRARY_PATH
18452 freebsd* | dragonfly*)
18453 # DragonFly does not have aout. When/if they implement a new
18454 # versioning mechanism, adjust this.
18455 if test -x /usr/bin/objformat; then
18456 objformat=`/usr/bin/objformat`
18459 freebsd[123]*) objformat=aout ;;
18460 *) objformat=elf ;;
18463 version_type=freebsd-$objformat
18464 case $version_type in
18466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18475 shlibpath_var=LD_LIBRARY_PATH
18478 shlibpath_overrides_runpath=yes
18480 freebsd3.[01]* | freebsdelf3.[01]*)
18481 shlibpath_overrides_runpath=yes
18482 hardcode_into_libs=yes
18484 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18485 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18486 shlibpath_overrides_runpath=no
18487 hardcode_into_libs=yes
18489 freebsd*) # from 4.6 on
18490 shlibpath_overrides_runpath=yes
18491 hardcode_into_libs=yes
18500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18501 soname_spec='${libname}${release}${shared_ext}$major'
18502 shlibpath_var=LD_LIBRARY_PATH
18503 hardcode_into_libs=yes
18506 hpux9* | hpux10* | hpux11*)
18507 # Give a soname corresponding to the major version so that dld.sl refuses to
18508 # link against other versions.
18515 hardcode_into_libs=yes
18516 dynamic_linker="$host_os dld.so"
18517 shlibpath_var=LD_LIBRARY_PATH
18518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18520 soname_spec='${libname}${release}${shared_ext}$major'
18521 if test "X$HPUX_IA64_MODE" = X32; then
18522 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18524 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18530 hardcode_into_libs=yes
18531 dynamic_linker="$host_os dld.sl"
18532 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18533 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18535 soname_spec='${libname}${release}${shared_ext}$major'
18536 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18541 dynamic_linker="$host_os dld.sl"
18542 shlibpath_var=SHLIB_PATH
18543 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18545 soname_spec='${libname}${release}${shared_ext}$major'
18548 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18549 postinstall_cmds='chmod 555 $lib'
18556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18557 soname_spec='${libname}${release}${shared_ext}$major'
18558 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18559 shlibpath_var=LD_LIBRARY_PATH
18560 shlibpath_overrides_runpath=no
18561 hardcode_into_libs=yes
18564 irix5* | irix6* | nonstopux*)
18566 nonstopux*) version_type=nonstopux ;;
18568 if test "$lt_cv_prog_gnu_ld" = yes; then
18576 soname_spec='${libname}${release}${shared_ext}$major'
18577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18579 irix5* | nonstopux*)
18580 libsuff= shlibsuff=
18583 case $LD in # libtool.m4 will add one of these switches to LD
18584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18585 libsuff= shlibsuff= libmagic=32-bit;;
18586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18587 libsuff=32 shlibsuff=N32 libmagic=N32;;
18588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18589 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18590 *) libsuff= shlibsuff= libmagic=never-match;;
18594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18595 shlibpath_overrides_runpath=no
18596 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18597 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18598 hardcode_into_libs=yes
18601 # No shared lib support for Linux oldld, aout, or coff.
18602 linux*oldld* | linux*aout* | linux*coff*)
18606 # This must be Linux ELF.
18607 linux* | k*bsd*-gnu)
18611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18612 soname_spec='${libname}${release}${shared_ext}$major'
18613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18614 shlibpath_var=LD_LIBRARY_PATH
18615 shlibpath_overrides_runpath=no
18616 # This implies no fast_install, which is unacceptable.
18617 # Some rework will be needed to allow for fast_install
18618 # before this can be enabled.
18619 hardcode_into_libs=yes
18621 # Append ld.so.conf contents to the search path
18622 if test -f /etc/ld.so.conf; then
18623 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18624 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18627 # We used to test for /lib/ld.so.1 and disable shared libraries on
18628 # powerpc, because MkLinux only supported shared libraries with the
18629 # GNU dynamic linker. Since this was broken with cross compilers,
18630 # most powerpc-linux boxes support dynamic linking these days and
18631 # people can always --disable-shared, the test was removed, and we
18632 # assume the GNU/Linux dynamic linker is in use.
18633 dynamic_linker='GNU/Linux ld.so'
18640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18641 soname_spec='${libname}${release}${shared_ext}$major'
18642 shlibpath_var=LD_LIBRARY_PATH
18643 shlibpath_overrides_runpath=no
18644 hardcode_into_libs=yes
18645 dynamic_linker='NetBSD ld.elf_so'
18652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18655 dynamic_linker='NetBSD (a.out) ld.so'
18657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18658 soname_spec='${libname}${release}${shared_ext}$major'
18659 dynamic_linker='NetBSD ld.elf_so'
18661 shlibpath_var=LD_LIBRARY_PATH
18662 shlibpath_overrides_runpath=yes
18663 hardcode_into_libs=yes
18668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18669 shlibpath_var=LD_LIBRARY_PATH
18670 shlibpath_overrides_runpath=yes
18677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18678 soname_spec='${libname}${release}${shared_ext}$major'
18679 shlibpath_var=LD_LIBRARY_PATH
18680 shlibpath_overrides_runpath=yes
18685 sys_lib_dlsearch_path_spec="/usr/lib"
18687 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18689 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18690 *) need_version=no ;;
18692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18694 shlibpath_var=LD_LIBRARY_PATH
18695 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18697 openbsd2.[89] | openbsd2.[89].*)
18698 shlibpath_overrides_runpath=no
18701 shlibpath_overrides_runpath=yes
18705 shlibpath_overrides_runpath=yes
18710 libname_spec='$name'
18713 library_names_spec='$libname${shared_ext} $libname.a'
18714 dynamic_linker='OS/2 ld.exe'
18715 shlibpath_var=LIBPATH
18718 osf3* | osf4* | osf5*)
18722 soname_spec='${libname}${release}${shared_ext}$major'
18723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18724 shlibpath_var=LD_LIBRARY_PATH
18725 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18726 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18734 soname_spec='${libname}${release}${shared_ext}$major'
18735 shlibpath_var=LD_LIBRARY_PATH
18736 shlibpath_overrides_runpath=yes
18737 hardcode_into_libs=yes
18738 # ldd complains unless libraries are executable
18739 postinstall_cmds='chmod +x $lib'
18744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18745 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18746 shlibpath_var=LD_LIBRARY_PATH
18747 shlibpath_overrides_runpath=yes
18748 if test "$with_gnu_ld" = yes; then
18756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18757 soname_spec='${libname}${release}${shared_ext}$major'
18758 shlibpath_var=LD_LIBRARY_PATH
18759 case $host_vendor in
18761 shlibpath_overrides_runpath=no
18763 export_dynamic_flag_spec='${wl}-Blargedynsym'
18764 runpath_var=LD_RUN_PATH
18772 shlibpath_overrides_runpath=no
18773 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18779 if test -d /usr/nec ;then
18781 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18782 soname_spec='$libname${shared_ext}.$major'
18783 shlibpath_var=LD_LIBRARY_PATH
18787 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18788 version_type=freebsd-elf
18791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18792 soname_spec='${libname}${release}${shared_ext}$major'
18793 shlibpath_var=LD_LIBRARY_PATH
18794 hardcode_into_libs=yes
18795 if test "$with_gnu_ld" = yes; then
18796 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18797 shlibpath_overrides_runpath=no
18799 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18800 shlibpath_overrides_runpath=yes
18803 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18807 sys_lib_dlsearch_path_spec='/usr/lib'
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 shlibpath_var=LD_LIBRARY_PATH
18821 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18822 echo "${ECHO_T}$dynamic_linker" >&6; }
18823 test "$dynamic_linker" = no && can_build_shared=no
18825 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18826 if test "$GCC" = yes; then
18827 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18830 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18831 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18832 hardcode_action_GCJ=
18833 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18834 test -n "$runpath_var_GCJ" || \
18835 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18837 # We can hardcode non-existant directories.
18838 if test "$hardcode_direct_GCJ" != no &&
18839 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18840 # have to relink, otherwise we might link with an installed library
18841 # when we should be linking with a yet-to-be-installed one
18842 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18843 test "$hardcode_minus_L_GCJ" != no; then
18844 # Linking always hardcodes the temporary library directory.
18845 hardcode_action_GCJ=relink
18847 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18848 hardcode_action_GCJ=immediate
18851 # We cannot hardcode anything, or else we can only hardcode existing
18853 hardcode_action_GCJ=unsupported
18855 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18856 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18858 if test "$hardcode_action_GCJ" = relink; then
18859 # Fast installation is not supported
18860 enable_fast_install=no
18861 elif test "$shlibpath_overrides_runpath" = yes ||
18862 test "$enable_shared" = no; then
18863 # Fast installation is not necessary
18864 enable_fast_install=needless
18868 # The else clause should only fire when bootstrapping the
18869 # libtool distribution, otherwise you forgot to ship ltmain.sh
18870 # with your package, and you will get complaints that there are
18871 # no rules to generate ltmain.sh.
18872 if test -f "$ltmain"; then
18873 # See if we are running on zsh, and set the options which allow our commands through
18874 # without removal of \ escapes.
18875 if test -n "${ZSH_VERSION+set}" ; then
18876 setopt NO_GLOB_SUBST
18878 # Now quote all the things that may contain metacharacters while being
18879 # careful not to overquote the AC_SUBSTed values. We take copies of the
18880 # variables and quote the copies for generation of the libtool script.
18881 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18883 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18884 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18885 deplibs_check_method reload_flag reload_cmds need_locks \
18886 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18887 lt_cv_sys_global_symbol_to_c_name_address \
18888 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18889 old_postinstall_cmds old_postuninstall_cmds \
18893 lt_prog_compiler_wl_GCJ \
18894 lt_prog_compiler_pic_GCJ \
18895 lt_prog_compiler_static_GCJ \
18896 lt_prog_compiler_no_builtin_flag_GCJ \
18897 export_dynamic_flag_spec_GCJ \
18898 thread_safe_flag_spec_GCJ \
18899 whole_archive_flag_spec_GCJ \
18900 enable_shared_with_static_runtimes_GCJ \
18901 old_archive_cmds_GCJ \
18902 old_archive_from_new_cmds_GCJ \
18903 predep_objects_GCJ \
18904 postdep_objects_GCJ \
18907 compiler_lib_search_path_GCJ \
18909 archive_expsym_cmds_GCJ \
18910 postinstall_cmds_GCJ \
18911 postuninstall_cmds_GCJ \
18912 old_archive_from_expsyms_cmds_GCJ \
18913 allow_undefined_flag_GCJ \
18914 no_undefined_flag_GCJ \
18915 export_symbols_cmds_GCJ \
18916 hardcode_libdir_flag_spec_GCJ \
18917 hardcode_libdir_flag_spec_ld_GCJ \
18918 hardcode_libdir_separator_GCJ \
18919 hardcode_automatic_GCJ \
18921 module_expsym_cmds_GCJ \
18922 lt_cv_prog_compiler_c_o_GCJ \
18923 exclude_expsyms_GCJ \
18924 include_expsyms_GCJ; do
18927 old_archive_cmds_GCJ | \
18928 old_archive_from_new_cmds_GCJ | \
18929 archive_cmds_GCJ | \
18930 archive_expsym_cmds_GCJ | \
18931 module_cmds_GCJ | \
18932 module_expsym_cmds_GCJ | \
18933 old_archive_from_expsyms_cmds_GCJ | \
18934 export_symbols_cmds_GCJ | \
18935 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18936 postinstall_cmds | postuninstall_cmds | \
18937 old_postinstall_cmds | old_postuninstall_cmds | \
18938 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18939 # Double-quote double-evaled strings.
18940 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18943 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18949 *'\$0 --fallback-echo"')
18950 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18956 cat <<__EOF__ >> "$cfgfile"
18957 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18959 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18961 # Shell to use when invoking shell scripts.
18964 # Whether or not to build shared libraries.
18965 build_libtool_libs=$enable_shared
18967 # Whether or not to build static libraries.
18968 build_old_libs=$enable_static
18970 # Whether or not to add -lc for building shared libraries.
18971 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18973 # Whether or not to disallow shared libs when runtime libs are static
18974 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18976 # Whether or not to optimize for fast installation.
18977 fast_install=$enable_fast_install
18980 host_alias=$host_alias
18984 # The build system.
18985 build_alias=$build_alias
18989 # An echo program that does not interpret backslashes.
18994 AR_FLAGS=$lt_AR_FLAGS
18999 # LTCC compiler flags.
19000 LTCFLAGS=$lt_LTCFLAGS
19002 # A language-specific compiler.
19003 CC=$lt_compiler_GCJ
19005 # Is the compiler the GNU C compiler?
19011 # The linker used to build libraries.
19014 # Whether we need hard or soft links.
19017 # A BSD-compatible nm program.
19020 # A symbol stripping program
19023 # Used to examine libraries when file_magic_cmd begins "file"
19024 MAGIC_CMD=$MAGIC_CMD
19026 # Used on cygwin: DLL creation program.
19029 # Used on cygwin: object dumper.
19032 # Used on cygwin: assembler.
19035 # The name of the directory that contains temporary libtool files.
19038 # How to create reloadable object files.
19039 reload_flag=$lt_reload_flag
19040 reload_cmds=$lt_reload_cmds
19042 # How to pass a linker flag through the compiler.
19043 wl=$lt_lt_prog_compiler_wl_GCJ
19045 # Object file suffix (normally "o").
19046 objext="$ac_objext"
19048 # Old archive suffix (normally "a").
19051 # Shared library suffix (normally ".so").
19052 shrext_cmds='$shrext_cmds'
19054 # Executable file suffix (normally "").
19057 # Additional compiler flags for building library objects.
19058 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19061 # What is the maximum length of a command?
19062 max_cmd_len=$lt_cv_sys_max_cmd_len
19064 # Does compiler simultaneously support -c and -o options?
19065 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19067 # Must we lock files when doing compilation?
19068 need_locks=$lt_need_locks
19070 # Do we need the lib prefix for modules?
19071 need_lib_prefix=$need_lib_prefix
19073 # Do we need a version for libraries?
19074 need_version=$need_version
19076 # Whether dlopen is supported.
19077 dlopen_support=$enable_dlopen
19079 # Whether dlopen of programs is supported.
19080 dlopen_self=$enable_dlopen_self
19082 # Whether dlopen of statically linked programs is supported.
19083 dlopen_self_static=$enable_dlopen_self_static
19085 # Compiler flag to prevent dynamic linking.
19086 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19088 # Compiler flag to turn off builtin functions.
19089 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19091 # Compiler flag to allow reflexive dlopens.
19092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19094 # Compiler flag to generate shared objects directly from archives.
19095 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19097 # Compiler flag to generate thread-safe objects.
19098 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19100 # Library versioning type.
19101 version_type=$version_type
19103 # Format of library name prefix.
19104 libname_spec=$lt_libname_spec
19106 # List of archive names. First name is the real one, the rest are links.
19107 # The last name is the one that the linker finds with -lNAME.
19108 library_names_spec=$lt_library_names_spec
19110 # The coded name of the library, if different from the real name.
19111 soname_spec=$lt_soname_spec
19113 # Commands used to build and install an old-style archive.
19115 old_archive_cmds=$lt_old_archive_cmds_GCJ
19116 old_postinstall_cmds=$lt_old_postinstall_cmds
19117 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19119 # Create an old-style archive from a shared archive.
19120 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19122 # Create a temporary old-style archive to link instead of a shared archive.
19123 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19125 # Commands used to build and install a shared archive.
19126 archive_cmds=$lt_archive_cmds_GCJ
19127 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19128 postinstall_cmds=$lt_postinstall_cmds
19129 postuninstall_cmds=$lt_postuninstall_cmds
19131 # Commands used to build a loadable module (assumed same as above if empty)
19132 module_cmds=$lt_module_cmds_GCJ
19133 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19135 # Commands to strip libraries.
19136 old_striplib=$lt_old_striplib
19137 striplib=$lt_striplib
19139 # Dependencies to place before the objects being linked to create a
19141 predep_objects=$lt_predep_objects_GCJ
19143 # Dependencies to place after the objects being linked to create a
19145 postdep_objects=$lt_postdep_objects_GCJ
19147 # Dependencies to place before the objects being linked to create a
19149 predeps=$lt_predeps_GCJ
19151 # Dependencies to place after the objects being linked to create a
19153 postdeps=$lt_postdeps_GCJ
19155 # The library search path used internally by the compiler when linking
19156 # a shared library.
19157 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19159 # Method to check whether dependent libraries are shared objects.
19160 deplibs_check_method=$lt_deplibs_check_method
19162 # Command to use when deplibs_check_method == file_magic.
19163 file_magic_cmd=$lt_file_magic_cmd
19165 # Flag that allows shared libraries with undefined symbols to be built.
19166 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19168 # Flag that forces no undefined symbols.
19169 no_undefined_flag=$lt_no_undefined_flag_GCJ
19171 # Commands used to finish a libtool library installation in a directory.
19172 finish_cmds=$lt_finish_cmds
19174 # Same as above, but a single script fragment to be evaled but not shown.
19175 finish_eval=$lt_finish_eval
19177 # Take the output of nm and produce a listing of raw symbols and C names.
19178 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19180 # Transform the output of nm in a proper C declaration
19181 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19183 # Transform the output of nm in a C name address pair
19184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19186 # This is the shared library runtime path variable.
19187 runpath_var=$runpath_var
19189 # This is the shared library path variable.
19190 shlibpath_var=$shlibpath_var
19192 # Is shlibpath searched before the hard-coded library search path?
19193 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19195 # How to hardcode a shared library path into an executable.
19196 hardcode_action=$hardcode_action_GCJ
19198 # Whether we should hardcode library paths into libraries.
19199 hardcode_into_libs=$hardcode_into_libs
19201 # Flag to hardcode \$libdir into a binary during linking.
19202 # This must work even if \$libdir does not exist.
19203 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19205 # If ld is used when linking, flag to hardcode \$libdir into
19206 # a binary during linking. This must work even if \$libdir does
19208 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19210 # Whether we need a single -rpath flag with a separated argument.
19211 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19213 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19214 # resulting binary.
19215 hardcode_direct=$hardcode_direct_GCJ
19217 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19218 # resulting binary.
19219 hardcode_minus_L=$hardcode_minus_L_GCJ
19221 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19222 # the resulting binary.
19223 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19225 # Set to yes if building a shared library automatically hardcodes DIR into the library
19226 # and all subsequent libraries and executables linked against it.
19227 hardcode_automatic=$hardcode_automatic_GCJ
19229 # Variables whose values should be saved in libtool wrapper scripts and
19230 # restored at relink time.
19231 variables_saved_for_relink="$variables_saved_for_relink"
19233 # Whether libtool must link a program against all its dependency libraries.
19234 link_all_deplibs=$link_all_deplibs_GCJ
19236 # Compile-time system search path for libraries
19237 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19239 # Run-time system search path for libraries
19240 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19242 # Fix the shell variable \$srcfile for the compiler.
19243 fix_srcfile_path="$fix_srcfile_path_GCJ"
19245 # Set to yes if exported symbols are required.
19246 always_export_symbols=$always_export_symbols_GCJ
19248 # The commands to list exported symbols.
19249 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19251 # The commands to extract the exported symbol list from a shared archive.
19252 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19254 # Symbols that should not be listed in the preloaded symbols.
19255 exclude_expsyms=$lt_exclude_expsyms_GCJ
19257 # Symbols that must always be exported.
19258 include_expsyms=$lt_include_expsyms_GCJ
19260 # ### END LIBTOOL TAG CONFIG: $tagname
19266 # If there is no Makefile yet, we rely on a make rule to execute
19267 # `config.status --recheck' to rerun these tests and create the
19268 # libtool script then.
19269 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19270 if test -f "$ltmain_in"; then
19271 test -f Makefile && make "$ltmain"
19277 ac_cpp='$CPP $CPPFLAGS'
19278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19292 # Source file extension for RC test sources.
19295 # Object file extension for compiled RC test sources.
19299 # Code to be used in simple compile tests
19300 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19302 # Code to be used in simple link tests
19303 lt_simple_link_test_code="$lt_simple_compile_test_code"
19305 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19307 # If no C compiler was specified, use CC.
19310 # If no C compiler flags were specified, use CFLAGS.
19311 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19313 # Allow CC to be a program name with arguments.
19317 # save warnings/boilerplate of simple test code
19318 ac_outfile=conftest.$ac_objext
19319 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19320 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19321 _lt_compiler_boilerplate=`cat conftest.err`
19324 ac_outfile=conftest.$ac_objext
19325 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19326 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19327 _lt_linker_boilerplate=`cat conftest.err`
19331 # Allow CC to be a program name with arguments.
19336 for cc_temp in $compiler""; do
19338 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19339 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19344 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19346 lt_cv_prog_compiler_c_o_RC=yes
19348 # The else clause should only fire when bootstrapping the
19349 # libtool distribution, otherwise you forgot to ship ltmain.sh
19350 # with your package, and you will get complaints that there are
19351 # no rules to generate ltmain.sh.
19352 if test -f "$ltmain"; then
19353 # See if we are running on zsh, and set the options which allow our commands through
19354 # without removal of \ escapes.
19355 if test -n "${ZSH_VERSION+set}" ; then
19356 setopt NO_GLOB_SUBST
19358 # Now quote all the things that may contain metacharacters while being
19359 # careful not to overquote the AC_SUBSTed values. We take copies of the
19360 # variables and quote the copies for generation of the libtool script.
19361 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19363 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19364 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19365 deplibs_check_method reload_flag reload_cmds need_locks \
19366 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19367 lt_cv_sys_global_symbol_to_c_name_address \
19368 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19369 old_postinstall_cmds old_postuninstall_cmds \
19373 lt_prog_compiler_wl_RC \
19374 lt_prog_compiler_pic_RC \
19375 lt_prog_compiler_static_RC \
19376 lt_prog_compiler_no_builtin_flag_RC \
19377 export_dynamic_flag_spec_RC \
19378 thread_safe_flag_spec_RC \
19379 whole_archive_flag_spec_RC \
19380 enable_shared_with_static_runtimes_RC \
19381 old_archive_cmds_RC \
19382 old_archive_from_new_cmds_RC \
19383 predep_objects_RC \
19384 postdep_objects_RC \
19387 compiler_lib_search_path_RC \
19389 archive_expsym_cmds_RC \
19390 postinstall_cmds_RC \
19391 postuninstall_cmds_RC \
19392 old_archive_from_expsyms_cmds_RC \
19393 allow_undefined_flag_RC \
19394 no_undefined_flag_RC \
19395 export_symbols_cmds_RC \
19396 hardcode_libdir_flag_spec_RC \
19397 hardcode_libdir_flag_spec_ld_RC \
19398 hardcode_libdir_separator_RC \
19399 hardcode_automatic_RC \
19401 module_expsym_cmds_RC \
19402 lt_cv_prog_compiler_c_o_RC \
19403 exclude_expsyms_RC \
19404 include_expsyms_RC; do
19407 old_archive_cmds_RC | \
19408 old_archive_from_new_cmds_RC | \
19409 archive_cmds_RC | \
19410 archive_expsym_cmds_RC | \
19412 module_expsym_cmds_RC | \
19413 old_archive_from_expsyms_cmds_RC | \
19414 export_symbols_cmds_RC | \
19415 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19416 postinstall_cmds | postuninstall_cmds | \
19417 old_postinstall_cmds | old_postuninstall_cmds | \
19418 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19419 # Double-quote double-evaled strings.
19420 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19423 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19429 *'\$0 --fallback-echo"')
19430 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19436 cat <<__EOF__ >> "$cfgfile"
19437 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19439 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19441 # Shell to use when invoking shell scripts.
19444 # Whether or not to build shared libraries.
19445 build_libtool_libs=$enable_shared
19447 # Whether or not to build static libraries.
19448 build_old_libs=$enable_static
19450 # Whether or not to add -lc for building shared libraries.
19451 build_libtool_need_lc=$archive_cmds_need_lc_RC
19453 # Whether or not to disallow shared libs when runtime libs are static
19454 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19456 # Whether or not to optimize for fast installation.
19457 fast_install=$enable_fast_install
19460 host_alias=$host_alias
19464 # The build system.
19465 build_alias=$build_alias
19469 # An echo program that does not interpret backslashes.
19474 AR_FLAGS=$lt_AR_FLAGS
19479 # LTCC compiler flags.
19480 LTCFLAGS=$lt_LTCFLAGS
19482 # A language-specific compiler.
19485 # Is the compiler the GNU C compiler?
19491 # The linker used to build libraries.
19494 # Whether we need hard or soft links.
19497 # A BSD-compatible nm program.
19500 # A symbol stripping program
19503 # Used to examine libraries when file_magic_cmd begins "file"
19504 MAGIC_CMD=$MAGIC_CMD
19506 # Used on cygwin: DLL creation program.
19509 # Used on cygwin: object dumper.
19512 # Used on cygwin: assembler.
19515 # The name of the directory that contains temporary libtool files.
19518 # How to create reloadable object files.
19519 reload_flag=$lt_reload_flag
19520 reload_cmds=$lt_reload_cmds
19522 # How to pass a linker flag through the compiler.
19523 wl=$lt_lt_prog_compiler_wl_RC
19525 # Object file suffix (normally "o").
19526 objext="$ac_objext"
19528 # Old archive suffix (normally "a").
19531 # Shared library suffix (normally ".so").
19532 shrext_cmds='$shrext_cmds'
19534 # Executable file suffix (normally "").
19537 # Additional compiler flags for building library objects.
19538 pic_flag=$lt_lt_prog_compiler_pic_RC
19541 # What is the maximum length of a command?
19542 max_cmd_len=$lt_cv_sys_max_cmd_len
19544 # Does compiler simultaneously support -c and -o options?
19545 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19547 # Must we lock files when doing compilation?
19548 need_locks=$lt_need_locks
19550 # Do we need the lib prefix for modules?
19551 need_lib_prefix=$need_lib_prefix
19553 # Do we need a version for libraries?
19554 need_version=$need_version
19556 # Whether dlopen is supported.
19557 dlopen_support=$enable_dlopen
19559 # Whether dlopen of programs is supported.
19560 dlopen_self=$enable_dlopen_self
19562 # Whether dlopen of statically linked programs is supported.
19563 dlopen_self_static=$enable_dlopen_self_static
19565 # Compiler flag to prevent dynamic linking.
19566 link_static_flag=$lt_lt_prog_compiler_static_RC
19568 # Compiler flag to turn off builtin functions.
19569 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19571 # Compiler flag to allow reflexive dlopens.
19572 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19574 # Compiler flag to generate shared objects directly from archives.
19575 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19577 # Compiler flag to generate thread-safe objects.
19578 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19580 # Library versioning type.
19581 version_type=$version_type
19583 # Format of library name prefix.
19584 libname_spec=$lt_libname_spec
19586 # List of archive names. First name is the real one, the rest are links.
19587 # The last name is the one that the linker finds with -lNAME.
19588 library_names_spec=$lt_library_names_spec
19590 # The coded name of the library, if different from the real name.
19591 soname_spec=$lt_soname_spec
19593 # Commands used to build and install an old-style archive.
19595 old_archive_cmds=$lt_old_archive_cmds_RC
19596 old_postinstall_cmds=$lt_old_postinstall_cmds
19597 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19599 # Create an old-style archive from a shared archive.
19600 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19602 # Create a temporary old-style archive to link instead of a shared archive.
19603 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19605 # Commands used to build and install a shared archive.
19606 archive_cmds=$lt_archive_cmds_RC
19607 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19608 postinstall_cmds=$lt_postinstall_cmds
19609 postuninstall_cmds=$lt_postuninstall_cmds
19611 # Commands used to build a loadable module (assumed same as above if empty)
19612 module_cmds=$lt_module_cmds_RC
19613 module_expsym_cmds=$lt_module_expsym_cmds_RC
19615 # Commands to strip libraries.
19616 old_striplib=$lt_old_striplib
19617 striplib=$lt_striplib
19619 # Dependencies to place before the objects being linked to create a
19621 predep_objects=$lt_predep_objects_RC
19623 # Dependencies to place after the objects being linked to create a
19625 postdep_objects=$lt_postdep_objects_RC
19627 # Dependencies to place before the objects being linked to create a
19629 predeps=$lt_predeps_RC
19631 # Dependencies to place after the objects being linked to create a
19633 postdeps=$lt_postdeps_RC
19635 # The library search path used internally by the compiler when linking
19636 # a shared library.
19637 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19639 # Method to check whether dependent libraries are shared objects.
19640 deplibs_check_method=$lt_deplibs_check_method
19642 # Command to use when deplibs_check_method == file_magic.
19643 file_magic_cmd=$lt_file_magic_cmd
19645 # Flag that allows shared libraries with undefined symbols to be built.
19646 allow_undefined_flag=$lt_allow_undefined_flag_RC
19648 # Flag that forces no undefined symbols.
19649 no_undefined_flag=$lt_no_undefined_flag_RC
19651 # Commands used to finish a libtool library installation in a directory.
19652 finish_cmds=$lt_finish_cmds
19654 # Same as above, but a single script fragment to be evaled but not shown.
19655 finish_eval=$lt_finish_eval
19657 # Take the output of nm and produce a listing of raw symbols and C names.
19658 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19660 # Transform the output of nm in a proper C declaration
19661 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19663 # Transform the output of nm in a C name address pair
19664 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19666 # This is the shared library runtime path variable.
19667 runpath_var=$runpath_var
19669 # This is the shared library path variable.
19670 shlibpath_var=$shlibpath_var
19672 # Is shlibpath searched before the hard-coded library search path?
19673 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19675 # How to hardcode a shared library path into an executable.
19676 hardcode_action=$hardcode_action_RC
19678 # Whether we should hardcode library paths into libraries.
19679 hardcode_into_libs=$hardcode_into_libs
19681 # Flag to hardcode \$libdir into a binary during linking.
19682 # This must work even if \$libdir does not exist.
19683 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19685 # If ld is used when linking, flag to hardcode \$libdir into
19686 # a binary during linking. This must work even if \$libdir does
19688 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19690 # Whether we need a single -rpath flag with a separated argument.
19691 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19693 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19694 # resulting binary.
19695 hardcode_direct=$hardcode_direct_RC
19697 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19698 # resulting binary.
19699 hardcode_minus_L=$hardcode_minus_L_RC
19701 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19702 # the resulting binary.
19703 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19705 # Set to yes if building a shared library automatically hardcodes DIR into the library
19706 # and all subsequent libraries and executables linked against it.
19707 hardcode_automatic=$hardcode_automatic_RC
19709 # Variables whose values should be saved in libtool wrapper scripts and
19710 # restored at relink time.
19711 variables_saved_for_relink="$variables_saved_for_relink"
19713 # Whether libtool must link a program against all its dependency libraries.
19714 link_all_deplibs=$link_all_deplibs_RC
19716 # Compile-time system search path for libraries
19717 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19719 # Run-time system search path for libraries
19720 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19722 # Fix the shell variable \$srcfile for the compiler.
19723 fix_srcfile_path="$fix_srcfile_path_RC"
19725 # Set to yes if exported symbols are required.
19726 always_export_symbols=$always_export_symbols_RC
19728 # The commands to list exported symbols.
19729 export_symbols_cmds=$lt_export_symbols_cmds_RC
19731 # The commands to extract the exported symbol list from a shared archive.
19732 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19734 # Symbols that should not be listed in the preloaded symbols.
19735 exclude_expsyms=$lt_exclude_expsyms_RC
19737 # Symbols that must always be exported.
19738 include_expsyms=$lt_include_expsyms_RC
19740 # ### END LIBTOOL TAG CONFIG: $tagname
19746 # If there is no Makefile yet, we rely on a make rule to execute
19747 # `config.status --recheck' to rerun these tests and create the
19748 # libtool script then.
19749 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19750 if test -f "$ltmain_in"; then
19751 test -f Makefile && make "$ltmain"
19757 ac_cpp='$CPP $CPPFLAGS'
19758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19767 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19768 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19769 { (exit 1); exit 1; }; }
19773 # Append the new tag name to the list of available tags.
19774 if test -n "$tagname" ; then
19775 available_tags="$available_tags $tagname"
19781 # Now substitute the updated list of available tags.
19782 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19783 mv "${ofile}T" "$ofile"
19787 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19788 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19789 { (exit 1); exit 1; }; }
19795 # This can be used to rebuild libtool when needed
19796 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19798 # Always use our own libtool.
19799 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19801 # Prevent multiple expansion
19822 # Extract the first word of "pkg-config", so it can be a program name with args.
19823 set dummy pkg-config; ac_word=$2
19824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19826 if test "${ac_cv_path_pkgconfigpath+set}" = set; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19829 case $pkgconfigpath in
19831 ac_cv_path_pkgconfigpath="$pkgconfigpath" # Let the user override the test with a path.
19834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19835 for as_dir in $PATH
19838 test -z "$as_dir" && as_dir=.
19839 for ac_exec_ext in '' $ac_executable_extensions; do
19840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19841 ac_cv_path_pkgconfigpath="$as_dir/$ac_word$ac_exec_ext"
19842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19849 test -z "$ac_cv_path_pkgconfigpath" && ac_cv_path_pkgconfigpath="NONE"
19853 pkgconfigpath=$ac_cv_path_pkgconfigpath
19854 if test -n "$pkgconfigpath"; then
19855 { echo "$as_me:$LINENO: result: $pkgconfigpath" >&5
19856 echo "${ECHO_T}$pkgconfigpath" >&6; }
19858 { echo "$as_me:$LINENO: result: no" >&5
19859 echo "${ECHO_T}no" >&6; }
19865 XSLTPROC_COMPILE='xsltproc -path ".:$(srcdir)"'
19867 MAN_COMPILE='$(XSLTPROC_COMPILE) common/id.man.xsl'
19869 HTML_COMPILE='$(XSLTPROC_COMPILE) common/id.htmlhelp.xsl'
19871 TKL_COMPILE='$(XSLTPROC_COMPILE) common/id.tkl.xsl'
19875 # Check whether --with-docbook-dtd was given.
19876 if test "${with_docbook_dtd+set}" = set; then
19877 withval=$with_docbook_dtd;
19878 if test -f "$withval/docbookx.dtd"; then
19884 { echo "$as_me:$LINENO: checking for docbookx.dtd" >&5
19885 echo $ECHO_N "checking for docbookx.dtd... $ECHO_C" >&6; }
19887 for d in /usr/lib/sgml/dtd/docbook-xml \
19888 /usr/share/sgml/docbook/dtd/4.2 \
19889 /usr/share/sgml/docbook/dtd/xml/4.* \
19890 /usr/share/sgml/docbook/xml-dtd-4.* \
19891 /usr/local/share/xml/docbook/4.*
19893 if test -f $d/docbookx.dtd; then
19897 if test -z "$DTD_DIR"; then
19898 { echo "$as_me:$LINENO: result: Not found" >&5
19899 echo "${ECHO_T}Not found" >&6; }
19901 { echo "$as_me:$LINENO: result: $d" >&5
19902 echo "${ECHO_T}$d" >&6; }
19909 # Check whether --with-docbook-dsssl was given.
19910 if test "${with_docbook_dsssl+set}" = set; then
19911 withval=$with_docbook_dsssl;
19912 if test -f "$withval/html/docbook.dsl"; then
19918 { echo "$as_me:$LINENO: checking for docbook.dsl" >&5
19919 echo $ECHO_N "checking for docbook.dsl... $ECHO_C" >&6; }
19921 for d in /usr/share/sgml/docbook/stylesheet/dsssl/modular \
19922 /usr/share/sgml/docbook/dsssl-stylesheets-1.* \
19923 /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh \
19924 /usr/local/share/sgml/docbook/dsssl/modular
19926 if test -f $d/html/docbook.dsl; then
19927 { echo "$as_me:$LINENO: result: $d" >&5
19928 echo "${ECHO_T}$d" >&6; }
19933 if test -z "$DSSSL_DIR"; then
19934 { echo "$as_me:$LINENO: result: Not found" >&5
19935 echo "${ECHO_T}Not found" >&6; }
19942 # Check whether --with-docbook-xsl was given.
19943 if test "${with_docbook_xsl+set}" = set; then
19944 withval=$with_docbook_xsl;
19945 if test -f "$withval/htmlhelp/htmlhelp.xsl"; then
19951 { echo "$as_me:$LINENO: checking for htmlhelp.xsl" >&5
19952 echo $ECHO_N "checking for htmlhelp.xsl... $ECHO_C" >&6; }
19953 for d in /usr/share/sgml/docbook/stylesheet/xsl/nwalsh \
19954 /usr/local/share/xsl/docbook \
19955 /usr/share/sgml/docbook/xsl-stylesheets-1.*
19957 if test -f $d/htmlhelp/htmlhelp.xsl; then
19958 { echo "$as_me:$LINENO: result: $d" >&5
19959 echo "${ECHO_T}$d" >&6; }
19964 if test -z "$XSL_DIR"; then
19965 { echo "$as_me:$LINENO: result: Not found" >&5
19966 echo "${ECHO_T}Not found" >&6; }
19986 for ac_header in dirent.h fnmatch.h wchar.h locale.h langinfo.h pwd.h sys/select.h sys/socket.h sys/stat.h sys/time.h sys/types.h sys/un.h sys/wait.h unistd.h
19988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 ac_res=`eval echo '${'$as_ac_Header'}'`
19996 { echo "$as_me:$LINENO: result: $ac_res" >&5
19997 echo "${ECHO_T}$ac_res" >&6; }
19999 # Is the header compilable?
20000 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20002 cat >conftest.$ac_ext <<_ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20008 $ac_includes_default
20009 #include <$ac_header>
20011 rm -f conftest.$ac_objext
20012 if { (ac_try="$ac_compile"
20013 case "(($ac_try" in
20014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015 *) ac_try_echo=$ac_try;;
20017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018 (eval "$ac_compile") 2>conftest.er1
20020 grep -v '^ *+' conftest.er1 >conftest.err
20022 cat conftest.err >&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } &&
20025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20026 { (case "(($ac_try" in
20027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028 *) ac_try_echo=$ac_try;;
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031 (eval "$ac_try") 2>&5
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; } &&
20035 { ac_try='test -s conftest.$ac_objext'
20036 { (case "(($ac_try" in
20037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_try") 2>&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; }; then
20045 ac_header_compiler=yes
20047 echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20050 ac_header_compiler=no
20053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20055 echo "${ECHO_T}$ac_header_compiler" >&6; }
20057 # Is the header present?
20058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20060 cat >conftest.$ac_ext <<_ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20066 #include <$ac_header>
20068 if { (ac_try="$ac_cpp conftest.$ac_ext"
20069 case "(($ac_try" in
20070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071 *) ac_try_echo=$ac_try;;
20073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20076 grep -v '^ *+' conftest.er1 >conftest.err
20078 cat conftest.err >&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } >/dev/null; then
20081 if test -s conftest.err; then
20082 ac_cpp_err=$ac_c_preproc_warn_flag
20083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20090 if test -z "$ac_cpp_err"; then
20091 ac_header_preproc=yes
20093 echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20096 ac_header_preproc=no
20099 rm -f conftest.err conftest.$ac_ext
20100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20101 echo "${ECHO_T}$ac_header_preproc" >&6; }
20103 # So? What about this header?
20104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20110 ac_header_preproc=yes
20113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20120 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20126 ## -------------------------------- ##
20127 ## Report this to adam@indexdata.dk ##
20128 ## -------------------------------- ##
20130 ) | sed "s/^/$as_me: WARNING: /" >&2
20133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 eval "$as_ac_Header=\$ac_header_preproc"
20140 ac_res=`eval echo '${'$as_ac_Header'}'`
20141 { echo "$as_me:$LINENO: result: $ac_res" >&5
20142 echo "${ECHO_T}$ac_res" >&6; }
20145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20146 cat >>confdefs.h <<_ACEOF
20147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20154 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20155 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20156 if test "${ac_cv_header_stdc+set}" = set; then
20157 echo $ECHO_N "(cached) $ECHO_C" >&6
20159 cat >conftest.$ac_ext <<_ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h. */
20165 #include <stdlib.h>
20166 #include <stdarg.h>
20167 #include <string.h>
20178 rm -f conftest.$ac_objext
20179 if { (ac_try="$ac_compile"
20180 case "(($ac_try" in
20181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182 *) ac_try_echo=$ac_try;;
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185 (eval "$ac_compile") 2>conftest.er1
20187 grep -v '^ *+' conftest.er1 >conftest.err
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
20192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20193 { (case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198 (eval "$ac_try") 2>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; } &&
20202 { ac_try='test -s conftest.$ac_objext'
20203 { (case "(($ac_try" in
20204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205 *) ac_try_echo=$ac_try;;
20207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20208 (eval "$ac_try") 2>&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; }; then
20212 ac_cv_header_stdc=yes
20214 echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20217 ac_cv_header_stdc=no
20220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20222 if test $ac_cv_header_stdc = yes; then
20223 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20224 cat >conftest.$ac_ext <<_ACEOF
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h. */
20230 #include <string.h>
20233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20234 $EGREP "memchr" >/dev/null 2>&1; then
20237 ac_cv_header_stdc=no
20243 if test $ac_cv_header_stdc = yes; then
20244 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20245 cat >conftest.$ac_ext <<_ACEOF
20248 cat confdefs.h >>conftest.$ac_ext
20249 cat >>conftest.$ac_ext <<_ACEOF
20250 /* end confdefs.h. */
20251 #include <stdlib.h>
20254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20255 $EGREP "free" >/dev/null 2>&1; then
20258 ac_cv_header_stdc=no
20264 if test $ac_cv_header_stdc = yes; then
20265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20266 if test "$cross_compiling" = yes; then
20269 cat >conftest.$ac_ext <<_ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20276 #include <stdlib.h>
20277 #if ((' ' & 0x0FF) == 0x020)
20278 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20279 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20281 # define ISLOWER(c) \
20282 (('a' <= (c) && (c) <= 'i') \
20283 || ('j' <= (c) && (c) <= 'r') \
20284 || ('s' <= (c) && (c) <= 'z'))
20285 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20288 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20293 for (i = 0; i < 256; i++)
20294 if (XOR (islower (i), ISLOWER (i))
20295 || toupper (i) != TOUPPER (i))
20300 rm -f conftest$ac_exeext
20301 if { (ac_try="$ac_link"
20302 case "(($ac_try" in
20303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20304 *) ac_try_echo=$ac_try;;
20306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20307 (eval "$ac_link") 2>&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20311 { (case "(($ac_try" in
20312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313 *) ac_try_echo=$ac_try;;
20315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316 (eval "$ac_try") 2>&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; }; then
20322 echo "$as_me: program exited with status $ac_status" >&5
20323 echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20326 ( exit $ac_status )
20327 ac_cv_header_stdc=no
20329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20335 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20336 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20337 if test $ac_cv_header_stdc = yes; then
20339 cat >>confdefs.h <<\_ACEOF
20340 #define STDC_HEADERS 1
20345 if test "$ac_cv_header_stdc" = "no"; then
20346 { echo "$as_me:$LINENO: WARNING: Your system doesn not seem to support ANSI C" >&5
20347 echo "$as_me: WARNING: Your system doesn not seem to support ANSI C" >&2;}
20349 { echo "$as_me:$LINENO: checking for long long" >&5
20350 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
20351 if test "${ac_cv_type_long_long+set}" = set; then
20352 echo $ECHO_N "(cached) $ECHO_C" >&6
20354 cat >conftest.$ac_ext <<_ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h. */
20360 $ac_includes_default
20361 typedef long long ac__type_new_;
20365 if ((ac__type_new_ *) 0)
20367 if (sizeof (ac__type_new_))
20373 rm -f conftest.$ac_objext
20374 if { (ac_try="$ac_compile"
20375 case "(($ac_try" in
20376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377 *) ac_try_echo=$ac_try;;
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380 (eval "$ac_compile") 2>conftest.er1
20382 grep -v '^ *+' conftest.er1 >conftest.err
20384 cat conftest.err >&5
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); } &&
20387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20388 { (case "(($ac_try" in
20389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390 *) ac_try_echo=$ac_try;;
20392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20393 (eval "$ac_try") 2>&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; } &&
20397 { ac_try='test -s conftest.$ac_objext'
20398 { (case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_try") 2>&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; }; then
20407 ac_cv_type_long_long=yes
20409 echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20412 ac_cv_type_long_long=no
20415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20417 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20418 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
20419 if test $ac_cv_type_long_long = yes; then
20421 cat >>confdefs.h <<_ACEOF
20422 #define HAVE_LONG_LONG 1
20429 { echo "$as_me:$LINENO: checking for connect" >&5
20430 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20431 if test "${ac_cv_func_connect+set}" = set; then
20432 echo $ECHO_N "(cached) $ECHO_C" >&6
20434 cat >conftest.$ac_ext <<_ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h. */
20440 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20442 #define connect innocuous_connect
20444 /* System header to define __stub macros and hopefully few prototypes,
20445 which can conflict with char connect (); below.
20446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20447 <limits.h> exists even on freestanding compilers. */
20450 # include <limits.h>
20452 # include <assert.h>
20457 /* Override any GCC internal prototype to avoid an error.
20458 Use char because int might match the return type of a GCC
20459 builtin and then its argument prototype would still apply. */
20464 /* The GNU C library defines this for functions which it implements
20465 to always fail with ENOSYS. Some functions are actually named
20466 something starting with __ and the normal name is an alias. */
20467 #if defined __stub_connect || defined __stub___connect
20479 rm -f conftest.$ac_objext conftest$ac_exeext
20480 if { (ac_try="$ac_link"
20481 case "(($ac_try" in
20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483 *) ac_try_echo=$ac_try;;
20485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20486 (eval "$ac_link") 2>conftest.er1
20488 grep -v '^ *+' conftest.er1 >conftest.err
20490 cat conftest.err >&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } &&
20493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20494 { (case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_try") 2>&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; } &&
20503 { ac_try='test -s conftest$ac_exeext'
20504 { (case "(($ac_try" in
20505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506 *) ac_try_echo=$ac_try;;
20508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509 (eval "$ac_try") 2>&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; }; then
20513 ac_cv_func_connect=yes
20515 echo "$as_me: failed program was:" >&5
20516 sed 's/^/| /' conftest.$ac_ext >&5
20518 ac_cv_func_connect=no
20521 rm -f core conftest.err conftest.$ac_objext \
20522 conftest$ac_exeext conftest.$ac_ext
20524 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20525 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20527 if test "$ac_cv_func_connect" = "no"; then
20528 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
20529 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
20530 if test "${ac_cv_lib_socket_main+set}" = set; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
20533 ac_check_lib_save_LIBS=$LIBS
20534 LIBS="-lsocket $LIBS"
20535 cat >conftest.$ac_ext <<_ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20551 rm -f conftest.$ac_objext conftest$ac_exeext
20552 if { (ac_try="$ac_link"
20553 case "(($ac_try" in
20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20558 (eval "$ac_link") 2>conftest.er1
20560 grep -v '^ *+' conftest.er1 >conftest.err
20562 cat conftest.err >&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } &&
20565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20566 { (case "(($ac_try" in
20567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568 *) ac_try_echo=$ac_try;;
20570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571 (eval "$ac_try") 2>&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; } &&
20575 { ac_try='test -s conftest$ac_exeext'
20576 { (case "(($ac_try" in
20577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578 *) ac_try_echo=$ac_try;;
20580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20581 (eval "$ac_try") 2>&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); }; }; then
20585 ac_cv_lib_socket_main=yes
20587 echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20590 ac_cv_lib_socket_main=no
20593 rm -f core conftest.err conftest.$ac_objext \
20594 conftest$ac_exeext conftest.$ac_ext
20595 LIBS=$ac_check_lib_save_LIBS
20597 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
20598 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
20599 if test $ac_cv_lib_socket_main = yes; then
20600 LIBS="$LIBS -lsocket"
20606 if test "$checkBoth" = "1"; then
20608 LIBS="$LIBS -lsocket -lnsl"
20609 { echo "$as_me:$LINENO: checking for accept" >&5
20610 echo $ECHO_N "checking for accept... $ECHO_C" >&6; }
20611 if test "${ac_cv_func_accept+set}" = set; then
20612 echo $ECHO_N "(cached) $ECHO_C" >&6
20614 cat >conftest.$ac_ext <<_ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20620 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
20621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20622 #define accept innocuous_accept
20624 /* System header to define __stub macros and hopefully few prototypes,
20625 which can conflict with char accept (); below.
20626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20627 <limits.h> exists even on freestanding compilers. */
20630 # include <limits.h>
20632 # include <assert.h>
20637 /* Override any GCC internal prototype to avoid an error.
20638 Use char because int might match the return type of a GCC
20639 builtin and then its argument prototype would still apply. */
20644 /* The GNU C library defines this for functions which it implements
20645 to always fail with ENOSYS. Some functions are actually named
20646 something starting with __ and the normal name is an alias. */
20647 #if defined __stub_accept || defined __stub___accept
20659 rm -f conftest.$ac_objext conftest$ac_exeext
20660 if { (ac_try="$ac_link"
20661 case "(($ac_try" in
20662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663 *) ac_try_echo=$ac_try;;
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666 (eval "$ac_link") 2>conftest.er1
20668 grep -v '^ *+' conftest.er1 >conftest.err
20670 cat conftest.err >&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); } &&
20673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20674 { (case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679 (eval "$ac_try") 2>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; } &&
20683 { ac_try='test -s conftest$ac_exeext'
20684 { (case "(($ac_try" in
20685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20686 *) ac_try_echo=$ac_try;;
20688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20689 (eval "$ac_try") 2>&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); }; }; then
20693 ac_cv_func_accept=yes
20695 echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20698 ac_cv_func_accept=no
20701 rm -f core conftest.err conftest.$ac_objext \
20702 conftest$ac_exeext conftest.$ac_ext
20704 { echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
20705 echo "${ECHO_T}$ac_cv_func_accept" >&6; }
20706 if test $ac_cv_func_accept = yes; then
20713 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20714 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20715 if test "${ac_cv_func_gethostbyname+set}" = set; then
20716 echo $ECHO_N "(cached) $ECHO_C" >&6
20718 cat >conftest.$ac_ext <<_ACEOF
20721 cat confdefs.h >>conftest.$ac_ext
20722 cat >>conftest.$ac_ext <<_ACEOF
20723 /* end confdefs.h. */
20724 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20726 #define gethostbyname innocuous_gethostbyname
20728 /* System header to define __stub macros and hopefully few prototypes,
20729 which can conflict with char gethostbyname (); below.
20730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20731 <limits.h> exists even on freestanding compilers. */
20734 # include <limits.h>
20736 # include <assert.h>
20739 #undef gethostbyname
20741 /* Override any GCC internal prototype to avoid an error.
20742 Use char because int might match the return type of a GCC
20743 builtin and then its argument prototype would still apply. */
20747 char gethostbyname ();
20748 /* The GNU C library defines this for functions which it implements
20749 to always fail with ENOSYS. Some functions are actually named
20750 something starting with __ and the normal name is an alias. */
20751 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20758 return gethostbyname ();
20763 rm -f conftest.$ac_objext conftest$ac_exeext
20764 if { (ac_try="$ac_link"
20765 case "(($ac_try" in
20766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767 *) ac_try_echo=$ac_try;;
20769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770 (eval "$ac_link") 2>conftest.er1
20772 grep -v '^ *+' conftest.er1 >conftest.err
20774 cat conftest.err >&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); } &&
20777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20778 { (case "(($ac_try" in
20779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780 *) ac_try_echo=$ac_try;;
20782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783 (eval "$ac_try") 2>&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); }; } &&
20787 { ac_try='test -s conftest$ac_exeext'
20788 { (case "(($ac_try" in
20789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790 *) ac_try_echo=$ac_try;;
20792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20793 (eval "$ac_try") 2>&5
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); }; }; then
20797 ac_cv_func_gethostbyname=yes
20799 echo "$as_me: failed program was:" >&5
20800 sed 's/^/| /' conftest.$ac_ext >&5
20802 ac_cv_func_gethostbyname=no
20805 rm -f core conftest.err conftest.$ac_objext \
20806 conftest$ac_exeext conftest.$ac_ext
20808 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20809 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20810 if test $ac_cv_func_gethostbyname = yes; then
20813 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
20814 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
20815 if test "${ac_cv_lib_nsl_main+set}" = set; then
20816 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 ac_check_lib_save_LIBS=$LIBS
20820 cat >conftest.$ac_ext <<_ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h. */
20836 rm -f conftest.$ac_objext conftest$ac_exeext
20837 if { (ac_try="$ac_link"
20838 case "(($ac_try" in
20839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_link") 2>conftest.er1
20845 grep -v '^ *+' conftest.er1 >conftest.err
20847 cat conftest.err >&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } &&
20850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20851 { (case "(($ac_try" in
20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853 *) ac_try_echo=$ac_try;;
20855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20856 (eval "$ac_try") 2>&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); }; } &&
20860 { ac_try='test -s conftest$ac_exeext'
20861 { (case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_try") 2>&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; }; then
20870 ac_cv_lib_nsl_main=yes
20872 echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20875 ac_cv_lib_nsl_main=no
20878 rm -f core conftest.err conftest.$ac_objext \
20879 conftest$ac_exeext conftest.$ac_ext
20880 LIBS=$ac_check_lib_save_LIBS
20882 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
20883 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
20884 if test $ac_cv_lib_nsl_main = yes; then
20893 # Check whether --with-openssl was given.
20894 if test "${with_openssl+set}" = set; then
20895 withval=$with_openssl; openssl=$withval
20900 if test "$openssl" != "no"; then
20902 if test "$openssl" != "yes" -a "$openssl" != "default"; then
20903 if test -x $openssl/bin/pkg-config; then
20904 if $openssl/bin/pkg-config --exists openssl; then
20905 SSL_CFLAGS=`$openssl/bin/pkg-config --cflags openssl`
20906 LIBS="$LIBS `$openssl/bin/pkg-config --libs openssl`"
20907 sslver=`$openssl/bin/pkg-config --modversion openssl`
20910 if test "$sslver" = "no"; then
20911 SSL_CFLAGS="-I$openssl/include -I$openssl/include/openssl"
20912 SSL_LIBPATH="-L$openssl/lib"
20915 if test "$pkgconfigpath" != "NONE"; then
20916 if $pkgconfigpath --exists openssl; then
20917 SSL_CFLAGS=`$pkgconfigpath --cflags openssl`
20918 LIBS="$LIBS `$pkgconfigpath --libs openssl`"
20919 sslver=`$pkgconfigpath --modversion openssl`
20922 if test "$sslver" = "no"; then
20923 SSL_CFLAGS="-I/usr/include/openssl"
20926 if test "$sslver" = "no"; then
20928 xCPPFLAGS="$CPPFLAGS";
20929 CPPFLAGS="$CPPFLAGS $SSL_CFLAGS $SSL_LIBPATH"
20931 { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
20932 echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
20933 if test "${ac_cv_lib_crypto_main+set}" = set; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
20936 ac_check_lib_save_LIBS=$LIBS
20937 LIBS="-lcrypto $LIBS"
20938 cat >conftest.$ac_ext <<_ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h. */
20954 rm -f conftest.$ac_objext conftest$ac_exeext
20955 if { (ac_try="$ac_link"
20956 case "(($ac_try" in
20957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20958 *) ac_try_echo=$ac_try;;
20960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20961 (eval "$ac_link") 2>conftest.er1
20963 grep -v '^ *+' conftest.er1 >conftest.err
20965 cat conftest.err >&5
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } &&
20968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20969 { (case "(($ac_try" in
20970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971 *) ac_try_echo=$ac_try;;
20973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974 (eval "$ac_try") 2>&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; } &&
20978 { ac_try='test -s conftest$ac_exeext'
20979 { (case "(($ac_try" in
20980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20981 *) ac_try_echo=$ac_try;;
20983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20984 (eval "$ac_try") 2>&5
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); }; }; then
20988 ac_cv_lib_crypto_main=yes
20990 echo "$as_me: failed program was:" >&5
20991 sed 's/^/| /' conftest.$ac_ext >&5
20993 ac_cv_lib_crypto_main=no
20996 rm -f core conftest.err conftest.$ac_objext \
20997 conftest$ac_exeext conftest.$ac_ext
20998 LIBS=$ac_check_lib_save_LIBS
21000 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
21001 echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
21002 if test $ac_cv_lib_crypto_main = yes; then
21003 cat >>confdefs.h <<_ACEOF
21004 #define HAVE_LIBCRYPTO 1
21007 LIBS="-lcrypto $LIBS"
21012 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21013 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21014 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21015 echo $ECHO_N "(cached) $ECHO_C" >&6
21017 ac_check_lib_save_LIBS=$LIBS
21019 cat >conftest.$ac_ext <<_ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h. */
21026 /* Override any GCC internal prototype to avoid an error.
21027 Use char because int might match the return type of a GCC
21028 builtin and then its argument prototype would still apply. */
21041 rm -f conftest.$ac_objext conftest$ac_exeext
21042 if { (ac_try="$ac_link"
21043 case "(($ac_try" in
21044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045 *) ac_try_echo=$ac_try;;
21047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21048 (eval "$ac_link") 2>conftest.er1
21050 grep -v '^ *+' conftest.er1 >conftest.err
21052 cat conftest.err >&5
21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); } &&
21055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21056 { (case "(($ac_try" in
21057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058 *) ac_try_echo=$ac_try;;
21060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21061 (eval "$ac_try") 2>&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); }; } &&
21065 { ac_try='test -s conftest$ac_exeext'
21066 { (case "(($ac_try" in
21067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21068 *) ac_try_echo=$ac_try;;
21070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21071 (eval "$ac_try") 2>&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; }; then
21075 ac_cv_lib_ssl_SSL_new=yes
21077 echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21080 ac_cv_lib_ssl_SSL_new=no
21083 rm -f core conftest.err conftest.$ac_objext \
21084 conftest$ac_exeext conftest.$ac_ext
21085 LIBS=$ac_check_lib_save_LIBS
21087 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21088 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21089 if test $ac_cv_lib_ssl_SSL_new = yes; then
21090 cat >>confdefs.h <<_ACEOF
21091 #define HAVE_LIBSSL 1
21098 if test "$ac_cv_lib_ssl_SSL_new" = "yes"; then
21099 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
21100 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
21101 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
21102 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
21103 echo $ECHO_N "(cached) $ECHO_C" >&6
21105 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
21106 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
21108 # Is the header compilable?
21109 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
21110 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
21111 cat >conftest.$ac_ext <<_ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h. */
21117 $ac_includes_default
21118 #include <openssl/ssl.h>
21120 rm -f conftest.$ac_objext
21121 if { (ac_try="$ac_compile"
21122 case "(($ac_try" in
21123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124 *) ac_try_echo=$ac_try;;
21126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21127 (eval "$ac_compile") 2>conftest.er1
21129 grep -v '^ *+' conftest.er1 >conftest.err
21131 cat conftest.err >&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } &&
21134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; } &&
21144 { ac_try='test -s conftest.$ac_objext'
21145 { (case "(($ac_try" in
21146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147 *) ac_try_echo=$ac_try;;
21149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21150 (eval "$ac_try") 2>&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); }; }; then
21154 ac_header_compiler=yes
21156 echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21159 ac_header_compiler=no
21162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21164 echo "${ECHO_T}$ac_header_compiler" >&6; }
21166 # Is the header present?
21167 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
21168 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
21169 cat >conftest.$ac_ext <<_ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h. */
21175 #include <openssl/ssl.h>
21177 if { (ac_try="$ac_cpp conftest.$ac_ext"
21178 case "(($ac_try" in
21179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21180 *) ac_try_echo=$ac_try;;
21182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21185 grep -v '^ *+' conftest.er1 >conftest.err
21187 cat conftest.err >&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } >/dev/null; then
21190 if test -s conftest.err; then
21191 ac_cpp_err=$ac_c_preproc_warn_flag
21192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21199 if test -z "$ac_cpp_err"; then
21200 ac_header_preproc=yes
21202 echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21205 ac_header_preproc=no
21208 rm -f conftest.err conftest.$ac_ext
21209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21210 echo "${ECHO_T}$ac_header_preproc" >&6; }
21212 # So? What about this header?
21213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21215 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21216 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21217 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
21218 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
21219 ac_header_preproc=yes
21222 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
21223 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
21224 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
21225 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
21226 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
21227 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
21228 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
21229 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21230 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
21231 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
21232 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
21233 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
21235 ## -------------------------------- ##
21236 ## Report this to adam@indexdata.dk ##
21237 ## -------------------------------- ##
21239 ) | sed "s/^/$as_me: WARNING: /" >&2
21242 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
21243 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
21244 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21247 ac_cv_header_openssl_ssl_h=$ac_header_preproc
21249 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
21250 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
21253 if test $ac_cv_header_openssl_ssl_h = yes; then
21258 LIBS="$SSL_LIBPATH $LIBS"
21260 if test "$sslver" != "yes"; then
21263 CPPFLAGS="$xCPPFLAGS"
21265 { echo "$as_me:$LINENO: checking for SSL" >&5
21266 echo $ECHO_N "checking for SSL... $ECHO_C" >&6; }
21267 if test "$sslver" != "no"; then
21268 SSL_CFLAGS="-DHAVE_OPENSSL_SSL_H=1 $SSL_CFLAGS"
21269 { echo "$as_me:$LINENO: result: $sslver" >&5
21270 echo "${ECHO_T}$sslver" >&6; }
21273 { echo "$as_me:$LINENO: result: None" >&5
21274 echo "${ECHO_T}None" >&6; }
21275 if test "$openssl" != "default"; then
21276 { { echo "$as_me:$LINENO: error: OpenSSL development libraries missing" >&5
21277 echo "$as_me: error: OpenSSL development libraries missing" >&2;}
21278 { (exit 1); exit 1; }; }
21282 READLINE_SHARED_LIBADD=""
21283 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
21284 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
21285 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
21286 echo $ECHO_N "(cached) $ECHO_C" >&6
21288 ac_check_lib_save_LIBS=$LIBS
21289 LIBS="-lncurses $LIBS"
21290 cat >conftest.$ac_ext <<_ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21297 /* Override any GCC internal prototype to avoid an error.
21298 Use char because int might match the return type of a GCC
21299 builtin and then its argument prototype would still apply. */
21312 rm -f conftest.$ac_objext conftest$ac_exeext
21313 if { (ac_try="$ac_link"
21314 case "(($ac_try" in
21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316 *) ac_try_echo=$ac_try;;
21318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319 (eval "$ac_link") 2>conftest.er1
21321 grep -v '^ *+' conftest.er1 >conftest.err
21323 cat conftest.err >&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); } &&
21326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21327 { (case "(($ac_try" in
21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332 (eval "$ac_try") 2>&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; } &&
21336 { ac_try='test -s conftest$ac_exeext'
21337 { (case "(($ac_try" in
21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342 (eval "$ac_try") 2>&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; }; then
21346 ac_cv_lib_ncurses_tgetent=yes
21348 echo "$as_me: failed program was:" >&5
21349 sed 's/^/| /' conftest.$ac_ext >&5
21351 ac_cv_lib_ncurses_tgetent=no
21354 rm -f core conftest.err conftest.$ac_objext \
21355 conftest$ac_exeext conftest.$ac_ext
21356 LIBS=$ac_check_lib_save_LIBS
21358 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
21359 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
21360 if test $ac_cv_lib_ncurses_tgetent = yes; then
21361 READLINE_SHARED_LIBADD="-lncurses"
21363 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
21364 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
21365 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
21368 ac_check_lib_save_LIBS=$LIBS
21369 LIBS="-ltermcap $LIBS"
21370 cat >conftest.$ac_ext <<_ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h. */
21377 /* Override any GCC internal prototype to avoid an error.
21378 Use char because int might match the return type of a GCC
21379 builtin and then its argument prototype would still apply. */
21392 rm -f conftest.$ac_objext conftest$ac_exeext
21393 if { (ac_try="$ac_link"
21394 case "(($ac_try" in
21395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396 *) ac_try_echo=$ac_try;;
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399 (eval "$ac_link") 2>conftest.er1
21401 grep -v '^ *+' conftest.er1 >conftest.err
21403 cat conftest.err >&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } &&
21406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21407 { (case "(($ac_try" in
21408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409 *) ac_try_echo=$ac_try;;
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_try") 2>&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }; } &&
21416 { ac_try='test -s conftest$ac_exeext'
21417 { (case "(($ac_try" in
21418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419 *) ac_try_echo=$ac_try;;
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422 (eval "$ac_try") 2>&5
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); }; }; then
21426 ac_cv_lib_termcap_tgetent=yes
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21431 ac_cv_lib_termcap_tgetent=no
21434 rm -f core conftest.err conftest.$ac_objext \
21435 conftest$ac_exeext conftest.$ac_ext
21436 LIBS=$ac_check_lib_save_LIBS
21438 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
21439 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
21440 if test $ac_cv_lib_termcap_tgetent = yes; then
21441 READLINE_SHARED_LIBADD="-ltermcap"
21448 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
21449 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
21450 if test "${ac_cv_lib_readline_readline+set}" = set; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
21453 ac_check_lib_save_LIBS=$LIBS
21454 LIBS="-lreadline $READLINE_SHARED_LIBADD $LIBS"
21455 cat >conftest.$ac_ext <<_ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21462 /* Override any GCC internal prototype to avoid an error.
21463 Use char because int might match the return type of a GCC
21464 builtin and then its argument prototype would still apply. */
21472 return readline ();
21477 rm -f conftest.$ac_objext conftest$ac_exeext
21478 if { (ac_try="$ac_link"
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_link") 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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21492 { (case "(($ac_try" in
21493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21494 *) ac_try_echo=$ac_try;;
21496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21497 (eval "$ac_try") 2>&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; } &&
21501 { ac_try='test -s conftest$ac_exeext'
21502 { (case "(($ac_try" in
21503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504 *) ac_try_echo=$ac_try;;
21506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21507 (eval "$ac_try") 2>&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; }; then
21511 ac_cv_lib_readline_readline=yes
21513 echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21516 ac_cv_lib_readline_readline=no
21519 rm -f core conftest.err conftest.$ac_objext \
21520 conftest$ac_exeext conftest.$ac_ext
21521 LIBS=$ac_check_lib_save_LIBS
21523 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
21524 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
21525 if test $ac_cv_lib_readline_readline = yes; then
21526 READLINE_LIBS="$READLINE_LIBS -lreadline $READLINE_SHARED_LIBADD"
21529 { echo "$as_me:$LINENO: checking for add_history in -lhistory" >&5
21530 echo $ECHO_N "checking for add_history in -lhistory... $ECHO_C" >&6; }
21531 if test "${ac_cv_lib_history_add_history+set}" = set; then
21532 echo $ECHO_N "(cached) $ECHO_C" >&6
21534 ac_check_lib_save_LIBS=$LIBS
21535 LIBS="-lhistory $LIBS"
21536 cat >conftest.$ac_ext <<_ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21543 /* Override any GCC internal prototype to avoid an error.
21544 Use char because int might match the return type of a GCC
21545 builtin and then its argument prototype would still apply. */
21549 char add_history ();
21553 return add_history ();
21558 rm -f conftest.$ac_objext conftest$ac_exeext
21559 if { (ac_try="$ac_link"
21560 case "(($ac_try" in
21561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21562 *) ac_try_echo=$ac_try;;
21564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21565 (eval "$ac_link") 2>conftest.er1
21567 grep -v '^ *+' conftest.er1 >conftest.err
21569 cat conftest.err >&5
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); } &&
21572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21573 { (case "(($ac_try" in
21574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575 *) ac_try_echo=$ac_try;;
21577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21578 (eval "$ac_try") 2>&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; } &&
21582 { ac_try='test -s conftest$ac_exeext'
21583 { (case "(($ac_try" in
21584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21585 *) ac_try_echo=$ac_try;;
21587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21588 (eval "$ac_try") 2>&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; }; then
21592 ac_cv_lib_history_add_history=yes
21594 echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21597 ac_cv_lib_history_add_history=no
21600 rm -f core conftest.err conftest.$ac_objext \
21601 conftest$ac_exeext conftest.$ac_ext
21602 LIBS=$ac_check_lib_save_LIBS
21604 { echo "$as_me:$LINENO: result: $ac_cv_lib_history_add_history" >&5
21605 echo "${ECHO_T}$ac_cv_lib_history_add_history" >&6; }
21606 if test $ac_cv_lib_history_add_history = yes; then
21607 READLINE_LIBS="$READLINE_LIBS -lhistory"
21610 if test "$ac_cv_lib_readline_readline" = "yes"; then
21613 for ac_header in readline/readline.h readline/history.h
21615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21620 echo $ECHO_N "(cached) $ECHO_C" >&6
21622 ac_res=`eval echo '${'$as_ac_Header'}'`
21623 { echo "$as_me:$LINENO: result: $ac_res" >&5
21624 echo "${ECHO_T}$ac_res" >&6; }
21626 # Is the header compilable?
21627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21629 cat >conftest.$ac_ext <<_ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h. */
21635 $ac_includes_default
21636 #include <$ac_header>
21638 rm -f conftest.$ac_objext
21639 if { (ac_try="$ac_compile"
21640 case "(($ac_try" in
21641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642 *) ac_try_echo=$ac_try;;
21644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21645 (eval "$ac_compile") 2>conftest.er1
21647 grep -v '^ *+' conftest.er1 >conftest.err
21649 cat conftest.err >&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } &&
21652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21653 { (case "(($ac_try" in
21654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655 *) ac_try_echo=$ac_try;;
21657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21658 (eval "$ac_try") 2>&5
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); }; } &&
21662 { ac_try='test -s conftest.$ac_objext'
21663 { (case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668 (eval "$ac_try") 2>&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); }; }; then
21672 ac_header_compiler=yes
21674 echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21677 ac_header_compiler=no
21680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21682 echo "${ECHO_T}$ac_header_compiler" >&6; }
21684 # Is the header present?
21685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21687 cat >conftest.$ac_ext <<_ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h. */
21693 #include <$ac_header>
21695 if { (ac_try="$ac_cpp conftest.$ac_ext"
21696 case "(($ac_try" in
21697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21698 *) ac_try_echo=$ac_try;;
21700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21703 grep -v '^ *+' conftest.er1 >conftest.err
21705 cat conftest.err >&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } >/dev/null; then
21708 if test -s conftest.err; then
21709 ac_cpp_err=$ac_c_preproc_warn_flag
21710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21717 if test -z "$ac_cpp_err"; then
21718 ac_header_preproc=yes
21720 echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21723 ac_header_preproc=no
21726 rm -f conftest.err conftest.$ac_ext
21727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21728 echo "${ECHO_T}$ac_header_preproc" >&6; }
21730 # So? What about this header?
21731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21737 ac_header_preproc=yes
21740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21753 ## -------------------------------- ##
21754 ## Report this to adam@indexdata.dk ##
21755 ## -------------------------------- ##
21757 ) | sed "s/^/$as_me: WARNING: /" >&2
21760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21763 echo $ECHO_N "(cached) $ECHO_C" >&6
21765 eval "$as_ac_Header=\$ac_header_preproc"
21767 ac_res=`eval echo '${'$as_ac_Header'}'`
21768 { echo "$as_me:$LINENO: result: $ac_res" >&5
21769 echo "${ECHO_T}$ac_res" >&6; }
21772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21773 cat >>confdefs.h <<_ACEOF
21774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21782 LIBS="$LIBS $READLINE_LIBS"
21783 cat >conftest.$ac_ext <<_ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21791 #include <readline/readline.h>
21797 rl_attempted_completion_over = 0;
21803 rm -f conftest.$ac_objext conftest$ac_exeext
21804 if { (ac_try="$ac_link"
21805 case "(($ac_try" in
21806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807 *) ac_try_echo=$ac_try;;
21809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810 (eval "$ac_link") 2>conftest.er1
21812 grep -v '^ *+' conftest.er1 >conftest.err
21814 cat conftest.err >&5
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); } &&
21817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21818 { (case "(($ac_try" in
21819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21820 *) ac_try_echo=$ac_try;;
21822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21823 (eval "$ac_try") 2>&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; } &&
21827 { ac_try='test -s conftest$ac_exeext'
21828 { (case "(($ac_try" in
21829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21830 *) ac_try_echo=$ac_try;;
21832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21833 (eval "$ac_try") 2>&5
21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); }; }; then
21837 cat >>confdefs.h <<\_ACEOF
21838 #define HAVE_READLINE_COMPLETION_OVER 1
21842 echo "$as_me: failed program was:" >&5
21843 sed 's/^/| /' conftest.$ac_ext >&5
21848 rm -f core conftest.err conftest.$ac_objext \
21849 conftest$ac_exeext conftest.$ac_ext
21850 cat >conftest.$ac_ext <<_ACEOF
21853 cat confdefs.h >>conftest.$ac_ext
21854 cat >>conftest.$ac_ext <<_ACEOF
21855 /* end confdefs.h. */
21858 #include <readline/readline.h>
21864 rl_completion_matches (0, 0);
21870 rm -f conftest.$ac_objext conftest$ac_exeext
21871 if { (ac_try="$ac_link"
21872 case "(($ac_try" in
21873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874 *) ac_try_echo=$ac_try;;
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877 (eval "$ac_link") 2>conftest.er1
21879 grep -v '^ *+' conftest.er1 >conftest.err
21881 cat conftest.err >&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } &&
21884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21885 { (case "(($ac_try" in
21886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21887 *) ac_try_echo=$ac_try;;
21889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21890 (eval "$ac_try") 2>&5
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); }; } &&
21894 { ac_try='test -s conftest$ac_exeext'
21895 { (case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900 (eval "$ac_try") 2>&5
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); }; }; then
21904 cat >>confdefs.h <<\_ACEOF
21905 #define HAVE_READLINE_RL_COMPLETION_MATCHES 1
21909 echo "$as_me: failed program was:" >&5
21910 sed 's/^/| /' conftest.$ac_ext >&5
21915 rm -f core conftest.err conftest.$ac_objext \
21916 conftest$ac_exeext conftest.$ac_ext
21920 # Check whether --with-iconv was given.
21921 if test "${with_iconv+set}" = set; then
21922 withval=$with_iconv;
21925 if test "$with_iconv" != "no"; then
21926 { echo "$as_me:$LINENO: checking for iconv" >&5
21927 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
21929 oldCPPFLAGS="${CPPFLAGS}"
21930 if test "$with_iconv" != "yes" -a "$with_iconv" != ""; then
21931 LIBS="$LIBS -L${with_iconv}/lib"
21932 CPPFLAGS="${CPPFLAGS} -I${with_iconv}/include"
21934 cat >conftest.$ac_ext <<_ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h. */
21947 iconv_t t = iconv_open("", "");
21953 rm -f conftest.$ac_objext conftest$ac_exeext
21954 if { (ac_try="$ac_link"
21955 case "(($ac_try" in
21956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21957 *) ac_try_echo=$ac_try;;
21959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21960 (eval "$ac_link") 2>conftest.er1
21962 grep -v '^ *+' conftest.er1 >conftest.err
21964 cat conftest.err >&5
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); } &&
21967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21968 { (case "(($ac_try" in
21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970 *) ac_try_echo=$ac_try;;
21972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973 (eval "$ac_try") 2>&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; } &&
21977 { ac_try='test -s conftest$ac_exeext'
21978 { (case "(($ac_try" in
21979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980 *) ac_try_echo=$ac_try;;
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983 (eval "$ac_try") 2>&5
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); }; }; then
21988 cat >>confdefs.h <<\_ACEOF
21989 #define HAVE_ICONV_H 1
21992 { echo "$as_me:$LINENO: result: yes" >&5
21993 echo "${ECHO_T}yes" >&6; }
21996 echo "$as_me: failed program was:" >&5
21997 sed 's/^/| /' conftest.$ac_ext >&5
22000 LIBS="$LIBS -liconv"
22001 cat >conftest.$ac_ext <<_ACEOF
22004 cat confdefs.h >>conftest.$ac_ext
22005 cat >>conftest.$ac_ext <<_ACEOF
22006 /* end confdefs.h. */
22014 iconv_t t = iconv_open("", "");
22020 rm -f conftest.$ac_objext conftest$ac_exeext
22021 if { (ac_try="$ac_link"
22022 case "(($ac_try" in
22023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024 *) ac_try_echo=$ac_try;;
22026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027 (eval "$ac_link") 2>conftest.er1
22029 grep -v '^ *+' conftest.er1 >conftest.err
22031 cat conftest.err >&5
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); } &&
22034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22035 { (case "(($ac_try" in
22036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037 *) ac_try_echo=$ac_try;;
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040 (eval "$ac_try") 2>&5
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); }; } &&
22044 { ac_try='test -s conftest$ac_exeext'
22045 { (case "(($ac_try" in
22046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047 *) ac_try_echo=$ac_try;;
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050 (eval "$ac_try") 2>&5
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); }; }; then
22055 cat >>confdefs.h <<\_ACEOF
22056 #define HAVE_ICONV_H 1
22059 { echo "$as_me:$LINENO: result: yes" >&5
22060 echo "${ECHO_T}yes" >&6; }
22063 echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22068 CPPFLAGS="$oldCPPFLAGS"
22069 { echo "$as_me:$LINENO: result: no" >&5
22070 echo "${ECHO_T}no" >&6; }
22074 rm -f core conftest.err conftest.$ac_objext \
22075 conftest$ac_exeext conftest.$ac_ext
22079 rm -f core conftest.err conftest.$ac_objext \
22080 conftest$ac_exeext conftest.$ac_ext
22090 for ac_func in getaddrinfo vsnprintf gettimeofday poll strerror_r localtime_r usleep fopen64
22092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22096 echo $ECHO_N "(cached) $ECHO_C" >&6
22098 cat >conftest.$ac_ext <<_ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h. */
22104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22106 #define $ac_func innocuous_$ac_func
22108 /* System header to define __stub macros and hopefully few prototypes,
22109 which can conflict with char $ac_func (); below.
22110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22111 <limits.h> exists even on freestanding compilers. */
22114 # include <limits.h>
22116 # include <assert.h>
22121 /* Override any GCC internal prototype to avoid an error.
22122 Use char because int might match the return type of a GCC
22123 builtin and then its argument prototype would still apply. */
22128 /* The GNU C library defines this for functions which it implements
22129 to always fail with ENOSYS. Some functions are actually named
22130 something starting with __ and the normal name is an alias. */
22131 #if defined __stub_$ac_func || defined __stub___$ac_func
22138 return $ac_func ();
22143 rm -f conftest.$ac_objext conftest$ac_exeext
22144 if { (ac_try="$ac_link"
22145 case "(($ac_try" in
22146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147 *) ac_try_echo=$ac_try;;
22149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22150 (eval "$ac_link") 2>conftest.er1
22152 grep -v '^ *+' conftest.er1 >conftest.err
22154 cat conftest.err >&5
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); } &&
22157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22158 { (case "(($ac_try" in
22159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160 *) ac_try_echo=$ac_try;;
22162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22163 (eval "$ac_try") 2>&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); }; } &&
22167 { ac_try='test -s conftest$ac_exeext'
22168 { (case "(($ac_try" in
22169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170 *) ac_try_echo=$ac_try;;
22172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22173 (eval "$ac_try") 2>&5
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); }; }; then
22177 eval "$as_ac_var=yes"
22179 echo "$as_me: failed program was:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22182 eval "$as_ac_var=no"
22185 rm -f core conftest.err conftest.$ac_objext \
22186 conftest$ac_exeext conftest.$ac_ext
22188 ac_res=`eval echo '${'$as_ac_var'}'`
22189 { echo "$as_me:$LINENO: result: $ac_res" >&5
22190 echo "${ECHO_T}$ac_res" >&6; }
22191 if test `eval echo '${'$as_ac_var'}'` = yes; then
22192 cat >>confdefs.h <<_ACEOF
22193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22208 if test "$ac_cv_func_poll" = "yes" -a "$trypoll" = "yes"; then
22210 for ac_header in sys/poll.h
22212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22217 echo $ECHO_N "(cached) $ECHO_C" >&6
22219 ac_res=`eval echo '${'$as_ac_Header'}'`
22220 { echo "$as_me:$LINENO: result: $ac_res" >&5
22221 echo "${ECHO_T}$ac_res" >&6; }
22223 # Is the header compilable?
22224 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22226 cat >conftest.$ac_ext <<_ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h. */
22232 $ac_includes_default
22233 #include <$ac_header>
22235 rm -f conftest.$ac_objext
22236 if { (ac_try="$ac_compile"
22237 case "(($ac_try" in
22238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239 *) ac_try_echo=$ac_try;;
22241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22242 (eval "$ac_compile") 2>conftest.er1
22244 grep -v '^ *+' conftest.er1 >conftest.err
22246 cat conftest.err >&5
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); } &&
22249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22250 { (case "(($ac_try" in
22251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252 *) ac_try_echo=$ac_try;;
22254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255 (eval "$ac_try") 2>&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; } &&
22259 { ac_try='test -s conftest.$ac_objext'
22260 { (case "(($ac_try" in
22261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22262 *) ac_try_echo=$ac_try;;
22264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22265 (eval "$ac_try") 2>&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); }; }; then
22269 ac_header_compiler=yes
22271 echo "$as_me: failed program was:" >&5
22272 sed 's/^/| /' conftest.$ac_ext >&5
22274 ac_header_compiler=no
22277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22279 echo "${ECHO_T}$ac_header_compiler" >&6; }
22281 # Is the header present?
22282 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22284 cat >conftest.$ac_ext <<_ACEOF
22287 cat confdefs.h >>conftest.$ac_ext
22288 cat >>conftest.$ac_ext <<_ACEOF
22289 /* end confdefs.h. */
22290 #include <$ac_header>
22292 if { (ac_try="$ac_cpp conftest.$ac_ext"
22293 case "(($ac_try" in
22294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22295 *) ac_try_echo=$ac_try;;
22297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22300 grep -v '^ *+' conftest.er1 >conftest.err
22302 cat conftest.err >&5
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); } >/dev/null; then
22305 if test -s conftest.err; then
22306 ac_cpp_err=$ac_c_preproc_warn_flag
22307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22314 if test -z "$ac_cpp_err"; then
22315 ac_header_preproc=yes
22317 echo "$as_me: failed program was:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22320 ac_header_preproc=no
22323 rm -f conftest.err conftest.$ac_ext
22324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22325 echo "${ECHO_T}$ac_header_preproc" >&6; }
22327 # So? What about this header?
22328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22334 ac_header_preproc=yes
22337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22344 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22350 ## -------------------------------- ##
22351 ## Report this to adam@indexdata.dk ##
22352 ## -------------------------------- ##
22354 ) | sed "s/^/$as_me: WARNING: /" >&2
22357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22360 echo $ECHO_N "(cached) $ECHO_C" >&6
22362 eval "$as_ac_Header=\$ac_header_preproc"
22364 ac_res=`eval echo '${'$as_ac_Header'}'`
22365 { echo "$as_me:$LINENO: result: $ac_res" >&5
22366 echo "${ECHO_T}$ac_res" >&6; }
22369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22370 cat >>confdefs.h <<_ACEOF
22371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22379 { echo "$as_me:$LINENO: checking for socklen_t" >&5
22380 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22381 if test "${ac_cv_check_socklen_t+set}" = set; then
22382 echo $ECHO_N "(cached) $ECHO_C" >&6
22384 ac_cv_check_socklen_t=''
22385 cat >conftest.$ac_ext <<_ACEOF
22388 cat confdefs.h >>conftest.$ac_ext
22389 cat >>conftest.$ac_ext <<_ACEOF
22390 /* end confdefs.h. */
22392 #include <sys/types.h>
22393 #include <sys/socket.h>
22404 extern int accept(int, struct sockaddr *, socklen_t *);
22418 rm -f conftest.$ac_objext
22419 if { (ac_try="$ac_compile"
22420 case "(($ac_try" in
22421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22422 *) ac_try_echo=$ac_try;;
22424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22425 (eval "$ac_compile") 2>conftest.er1
22427 grep -v '^ *+' conftest.er1 >conftest.err
22429 cat conftest.err >&5
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); } &&
22432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22433 { (case "(($ac_try" in
22434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22435 *) ac_try_echo=$ac_try;;
22437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22438 (eval "$ac_try") 2>&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); }; } &&
22442 { ac_try='test -s conftest.$ac_objext'
22443 { (case "(($ac_try" in
22444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22445 *) ac_try_echo=$ac_try;;
22447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22448 (eval "$ac_try") 2>&5
22450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); }; }; then
22452 ac_cv_check_socklen_t=socklen_t
22454 echo "$as_me: failed program was:" >&5
22455 sed 's/^/| /' conftest.$ac_ext >&5
22458 cat >conftest.$ac_ext <<_ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h. */
22465 #include <sys/types.h>
22466 #include <sys/socket.h>
22477 extern int accept(int, struct sockaddr *, size_t t *);
22491 rm -f conftest.$ac_objext
22492 if { (ac_try="$ac_compile"
22493 case "(($ac_try" in
22494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495 *) ac_try_echo=$ac_try;;
22497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22498 (eval "$ac_compile") 2>conftest.er1
22500 grep -v '^ *+' conftest.er1 >conftest.err
22502 cat conftest.err >&5
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); } &&
22505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22506 { (case "(($ac_try" in
22507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22508 *) ac_try_echo=$ac_try;;
22510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22511 (eval "$ac_try") 2>&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); }; } &&
22515 { ac_try='test -s conftest.$ac_objext'
22516 { (case "(($ac_try" in
22517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22518 *) ac_try_echo=$ac_try;;
22520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22521 (eval "$ac_try") 2>&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); }; }; then
22525 ac_cv_check_socklen_t=size_t
22527 echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22530 ac_cv_check_socklen_t=int
22533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22541 { echo "$as_me:$LINENO: result: $ac_cv_check_socklen_t" >&5
22542 echo "${ECHO_T}$ac_cv_check_socklen_t" >&6; }
22543 cat >>confdefs.h <<_ACEOF
22544 #define YAZ_SOCKLEN_T $ac_cv_check_socklen_t
22547 cat >>confdefs.h <<\_ACEOF
22548 #define YAZ_USE_NEW_LOG 1
22551 # Check whether --enable-tcpd was given.
22552 if test "${enable_tcpd+set}" = set; then
22553 enableval=$enable_tcpd;
22556 if test "$enable_tcpd" -a "$enable_tcpd" != "no"; then
22558 oldCPPFLAGS=$CPPFLAGS
22559 if test "$enable_tcpd" != "yes"; then
22560 LIBS="$LIBS -L$enable_tcpd/lib"
22561 CPPFLAGS="$CPPFLAGS -I$enable_tcpd/include"
22563 { echo "$as_me:$LINENO: checking for working tcpd.h" >&5
22564 echo $ECHO_N "checking for working tcpd.h... $ECHO_C" >&6; }
22565 LIBS="$LIBS -lwrap -lnsl"
22566 cat >conftest.$ac_ext <<_ACEOF
22569 cat confdefs.h >>conftest.$ac_ext
22570 cat >>conftest.$ac_ext <<_ACEOF
22571 /* end confdefs.h. */
22572 #include <syslog.h>
22574 int allow_severity = LOG_INFO;
22575 int deny_severity = LOG_WARNING;
22579 struct request_info request_info; int i;
22580 i = hosts_access(&request_info);
22585 rm -f conftest.$ac_objext conftest$ac_exeext
22586 if { (ac_try="$ac_link"
22587 case "(($ac_try" in
22588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22589 *) ac_try_echo=$ac_try;;
22591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22592 (eval "$ac_link") 2>conftest.er1
22594 grep -v '^ *+' conftest.er1 >conftest.err
22596 cat conftest.err >&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); } &&
22599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22600 { (case "(($ac_try" in
22601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22602 *) ac_try_echo=$ac_try;;
22604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22605 (eval "$ac_try") 2>&5
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); }; } &&
22609 { ac_try='test -s conftest$ac_exeext'
22610 { (case "(($ac_try" in
22611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612 *) ac_try_echo=$ac_try;;
22614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615 (eval "$ac_try") 2>&5
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); }; }; then
22621 echo "$as_me: failed program was:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22627 rm -f core conftest.err conftest.$ac_objext \
22628 conftest$ac_exeext conftest.$ac_ext
22629 if test "$tcpd_ok" = "0"; then
22630 { echo "$as_me:$LINENO: result: no" >&5
22631 echo "${ECHO_T}no" >&6; }
22632 { { echo "$as_me:$LINENO: error: tcpd development libraries missing" >&5
22633 echo "$as_me: error: tcpd development libraries missing" >&2;}
22634 { (exit 1); exit 1; }; }
22636 CPPFLAGS=$oldCPPFLAGS
22638 { echo "$as_me:$LINENO: result: yes" >&5
22639 echo "${ECHO_T}yes" >&6; }
22640 cat >>confdefs.h <<\_ACEOF
22641 #define HAVE_TCPD_H 1
22650 # Check whether --enable-pth was given.
22651 if test "${enable_pth+set}" = set; then
22652 enableval=$enable_pth; enable_pth=$enableval
22658 if test "$enable_pth" = "yes"; then
22661 { echo "$as_me:$LINENO: checking for main in -lpth" >&5
22662 echo $ECHO_N "checking for main in -lpth... $ECHO_C" >&6; }
22663 if test "${ac_cv_lib_pth_main+set}" = set; then
22664 echo $ECHO_N "(cached) $ECHO_C" >&6
22666 ac_check_lib_save_LIBS=$LIBS
22668 cat >conftest.$ac_ext <<_ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22684 rm -f conftest.$ac_objext conftest$ac_exeext
22685 if { (ac_try="$ac_link"
22686 case "(($ac_try" in
22687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688 *) ac_try_echo=$ac_try;;
22690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691 (eval "$ac_link") 2>conftest.er1
22693 grep -v '^ *+' conftest.er1 >conftest.err
22695 cat conftest.err >&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } &&
22698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22699 { (case "(($ac_try" in
22700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701 *) ac_try_echo=$ac_try;;
22703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22704 (eval "$ac_try") 2>&5
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); }; } &&
22708 { ac_try='test -s conftest$ac_exeext'
22709 { (case "(($ac_try" in
22710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22711 *) ac_try_echo=$ac_try;;
22713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22714 (eval "$ac_try") 2>&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); }; }; then
22718 ac_cv_lib_pth_main=yes
22720 echo "$as_me: failed program was:" >&5
22721 sed 's/^/| /' conftest.$ac_ext >&5
22723 ac_cv_lib_pth_main=no
22726 rm -f core conftest.err conftest.$ac_objext \
22727 conftest$ac_exeext conftest.$ac_ext
22728 LIBS=$ac_check_lib_save_LIBS
22730 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_main" >&5
22731 echo "${ECHO_T}$ac_cv_lib_pth_main" >&6; }
22732 if test $ac_cv_lib_pth_main = yes; then
22733 cat >>confdefs.h <<_ACEOF
22734 #define HAVE_LIBPTH 1
22741 if test "$ac_cv_lib_pth_main" = "yes"; then
22743 for ac_header in pth.h
22745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22747 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22750 echo $ECHO_N "(cached) $ECHO_C" >&6
22752 ac_res=`eval echo '${'$as_ac_Header'}'`
22753 { echo "$as_me:$LINENO: result: $ac_res" >&5
22754 echo "${ECHO_T}$ac_res" >&6; }
22756 # Is the header compilable?
22757 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22759 cat >conftest.$ac_ext <<_ACEOF
22762 cat confdefs.h >>conftest.$ac_ext
22763 cat >>conftest.$ac_ext <<_ACEOF
22764 /* end confdefs.h. */
22765 $ac_includes_default
22766 #include <$ac_header>
22768 rm -f conftest.$ac_objext
22769 if { (ac_try="$ac_compile"
22770 case "(($ac_try" in
22771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22772 *) ac_try_echo=$ac_try;;
22774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22775 (eval "$ac_compile") 2>conftest.er1
22777 grep -v '^ *+' conftest.er1 >conftest.err
22779 cat conftest.err >&5
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); } &&
22782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22783 { (case "(($ac_try" in
22784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785 *) ac_try_echo=$ac_try;;
22787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788 (eval "$ac_try") 2>&5
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); }; } &&
22792 { ac_try='test -s conftest.$ac_objext'
22793 { (case "(($ac_try" in
22794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795 *) ac_try_echo=$ac_try;;
22797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22798 (eval "$ac_try") 2>&5
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); }; }; then
22802 ac_header_compiler=yes
22804 echo "$as_me: failed program was:" >&5
22805 sed 's/^/| /' conftest.$ac_ext >&5
22807 ac_header_compiler=no
22810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22812 echo "${ECHO_T}$ac_header_compiler" >&6; }
22814 # Is the header present?
22815 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22817 cat >conftest.$ac_ext <<_ACEOF
22820 cat confdefs.h >>conftest.$ac_ext
22821 cat >>conftest.$ac_ext <<_ACEOF
22822 /* end confdefs.h. */
22823 #include <$ac_header>
22825 if { (ac_try="$ac_cpp conftest.$ac_ext"
22826 case "(($ac_try" in
22827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828 *) ac_try_echo=$ac_try;;
22830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22833 grep -v '^ *+' conftest.er1 >conftest.err
22835 cat conftest.err >&5
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); } >/dev/null; then
22838 if test -s conftest.err; then
22839 ac_cpp_err=$ac_c_preproc_warn_flag
22840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22847 if test -z "$ac_cpp_err"; then
22848 ac_header_preproc=yes
22850 echo "$as_me: failed program was:" >&5
22851 sed 's/^/| /' conftest.$ac_ext >&5
22853 ac_header_preproc=no
22856 rm -f conftest.err conftest.$ac_ext
22857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22858 echo "${ECHO_T}$ac_header_preproc" >&6; }
22860 # So? What about this header?
22861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22867 ac_header_preproc=yes
22870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22883 ## -------------------------------- ##
22884 ## Report this to adam@indexdata.dk ##
22885 ## -------------------------------- ##
22887 ) | sed "s/^/$as_me: WARNING: /" >&2
22890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22893 echo $ECHO_N "(cached) $ECHO_C" >&6
22895 eval "$as_ac_Header=\$ac_header_preproc"
22897 ac_res=`eval echo '${'$as_ac_Header'}'`
22898 { echo "$as_me:$LINENO: result: $ac_res" >&5
22899 echo "${ECHO_T}$ac_res" >&6; }
22902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22903 cat >>confdefs.h <<_ACEOF
22904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22911 if test "$ac_cv_header_pth_h" = "yes"; then
22913 THREAD_CFLAGS="-DYAZ_GNU_THREADS=1"
22917 LIBS="$OLIBS $LIBTHREAD"
22919 # Check whether --enable-threads was given.
22920 if test "${enable_threads+set}" = set; then
22921 enableval=$enable_threads; enable_threads=$enableval
22926 if test "$enable_threads" = "yes" -a "$HAVETHREADS" = "0"; then
22930 { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
22931 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
22932 if test "${ac_cv_lib_pthread_main+set}" = set; then
22933 echo $ECHO_N "(cached) $ECHO_C" >&6
22935 ac_check_lib_save_LIBS=$LIBS
22936 LIBS="-lpthread $LIBS"
22937 cat >conftest.$ac_ext <<_ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h. */
22953 rm -f conftest.$ac_objext conftest$ac_exeext
22954 if { (ac_try="$ac_link"
22955 case "(($ac_try" in
22956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22957 *) ac_try_echo=$ac_try;;
22959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22960 (eval "$ac_link") 2>conftest.er1
22962 grep -v '^ *+' conftest.er1 >conftest.err
22964 cat conftest.err >&5
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); } &&
22967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22968 { (case "(($ac_try" in
22969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970 *) ac_try_echo=$ac_try;;
22972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973 (eval "$ac_try") 2>&5
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; } &&
22977 { ac_try='test -s conftest$ac_exeext'
22978 { (case "(($ac_try" in
22979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22980 *) ac_try_echo=$ac_try;;
22982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22983 (eval "$ac_try") 2>&5
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); }; }; then
22987 ac_cv_lib_pthread_main=yes
22989 echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22992 ac_cv_lib_pthread_main=no
22995 rm -f core conftest.err conftest.$ac_objext \
22996 conftest$ac_exeext conftest.$ac_ext
22997 LIBS=$ac_check_lib_save_LIBS
22999 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
23000 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
23001 if test $ac_cv_lib_pthread_main = yes; then
23002 cat >>confdefs.h <<_ACEOF
23003 #define HAVE_LIBPTHREAD 1
23006 LIBS="-lpthread $LIBS"
23010 { echo "$as_me:$LINENO: checking for working POSIX Threads" >&5
23011 echo $ECHO_N "checking for working POSIX Threads... $ECHO_C" >&6; }
23012 cat >conftest.$ac_ext <<_ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h. */
23018 #include <pthread.h>
23019 void *func(void *p) { return 0; }
23025 pthread_t pthread_id;
23026 pthread_create (&pthread_id, 0, func, 0);
23031 rm -f conftest.$ac_objext conftest$ac_exeext
23032 if { (ac_try="$ac_link"
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_link") 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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23046 { (case "(($ac_try" in
23047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23048 *) ac_try_echo=$ac_try;;
23050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23051 (eval "$ac_try") 2>&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); }; } &&
23055 { ac_try='test -s conftest$ac_exeext'
23056 { (case "(($ac_try" in
23057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058 *) ac_try_echo=$ac_try;;
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061 (eval "$ac_try") 2>&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); }; }; then
23067 echo "$as_me: failed program was:" >&5
23068 sed 's/^/| /' conftest.$ac_ext >&5
23073 rm -f core conftest.err conftest.$ac_objext \
23074 conftest$ac_exeext conftest.$ac_ext
23075 if test "$thread_ok" = "yes"; then
23076 { echo "$as_me:$LINENO: result: yes" >&5
23077 echo "${ECHO_T}yes" >&6; }
23078 LIBTHREAD="-lpthread"
23079 THREAD_CFLAGS="-DYAZ_POSIX_THREADS=1 -D_REENTRANT"
23083 cat >conftest.$ac_ext <<_ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23089 #include <pthread.h>
23090 void *func(void *p) { return 0; }
23096 pthread_t pthread_id;
23097 pthread_create (&pthread_id, 0, func, 0);
23102 rm -f conftest.$ac_objext conftest$ac_exeext
23103 if { (ac_try="$ac_link"
23104 case "(($ac_try" in
23105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23106 *) ac_try_echo=$ac_try;;
23108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23109 (eval "$ac_link") 2>conftest.er1
23111 grep -v '^ *+' conftest.er1 >conftest.err
23113 cat conftest.err >&5
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); } &&
23116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23117 { (case "(($ac_try" in
23118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23119 *) ac_try_echo=$ac_try;;
23121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23122 (eval "$ac_try") 2>&5
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); }; } &&
23126 { ac_try='test -s conftest$ac_exeext'
23127 { (case "(($ac_try" in
23128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129 *) ac_try_echo=$ac_try;;
23131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23132 (eval "$ac_try") 2>&5
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; }; then
23138 echo "$as_me: failed program was:" >&5
23139 sed 's/^/| /' conftest.$ac_ext >&5
23144 rm -f core conftest.err conftest.$ac_objext \
23145 conftest$ac_exeext conftest.$ac_ext
23146 if test "$thread_ok" = "yes"; then
23147 { echo "$as_me:$LINENO: result: yes,BSD" >&5
23148 echo "${ECHO_T}yes,BSD" >&6; }
23149 THREAD_CFLAGS="-pthread -DYAZ_POSIX_THREADS=1 -D_REENTRANT"
23150 LIBTHREAD="-pthread"
23154 if test "$thread_ok" = "no"; then
23155 { echo "$as_me:$LINENO: result: no" >&5
23156 echo "${ECHO_T}no" >&6; }
23159 LIBS="$OLIBS $LIBTHREAD"
23164 YAZ_CONFIG_CFLAGS=""
23167 # Extract the first word of "pkg-config", so it can be a program name with args.
23168 set dummy pkg-config; ac_word=$2
23169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23171 if test "${ac_cv_path_pkgconfigpath+set}" = set; then
23172 echo $ECHO_N "(cached) $ECHO_C" >&6
23174 case $pkgconfigpath in
23176 ac_cv_path_pkgconfigpath="$pkgconfigpath" # Let the user override the test with a path.
23179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23180 for as_dir in $PATH
23183 test -z "$as_dir" && as_dir=.
23184 for ac_exec_ext in '' $ac_executable_extensions; do
23185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
23186 ac_cv_path_pkgconfigpath="$as_dir/$ac_word$ac_exec_ext"
23187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23194 test -z "$ac_cv_path_pkgconfigpath" && ac_cv_path_pkgconfigpath="NONE"
23198 pkgconfigpath=$ac_cv_path_pkgconfigpath
23199 if test -n "$pkgconfigpath"; then
23200 { echo "$as_me:$LINENO: result: $pkgconfigpath" >&5
23201 echo "${ECHO_T}$pkgconfigpath" >&6; }
23203 { echo "$as_me:$LINENO: result: no" >&5
23204 echo "${ECHO_T}no" >&6; }
23211 # Check whether --with-xml2 was given.
23212 if test "${with_xml2+set}" = set; then
23213 withval=$with_xml2; xml2dir=$withval
23216 if test "$xml2dir" = "yes" -o "$xml2dir" = "default"; then
23217 if test "$pkgconfigpath" != "NONE"; then
23218 if $pkgconfigpath --exists libxml-2.0; then
23219 pkgmodule="libxml-2.0"
23222 if test -z "$pkgmodule"; then
23223 for d in /usr /usr/local; do
23224 if test -x $d/bin/xml2-config; then
23230 if test "$xml2dir" != "no"; then
23231 { echo "$as_me:$LINENO: checking for libXML2" >&5
23232 echo $ECHO_N "checking for libXML2... $ECHO_C" >&6; }
23233 if test "$pkgmodule"; then
23234 XML2_LIBS=`$pkgconfigpath --libs $pkgmodule`
23235 XML2_CFLAGS=`$pkgconfigpath --cflags $pkgmodule`
23236 XML2_VER=`$pkgconfigpath --modversion $pkgmodule`
23237 { echo "$as_me:$LINENO: result: $XML2_VER" >&5
23238 echo "${ECHO_T}$XML2_VER" >&6; }
23240 cat >>confdefs.h <<\_ACEOF
23241 #define YAZ_HAVE_XML2 1
23244 YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_HAVE_XML2=1"
23247 elif test -x $xml2dir/bin/xml2-config; then
23248 XML2_LIBS=`$xml2dir/bin/xml2-config --libs`
23249 XML2_CFLAGS=`$xml2dir/bin/xml2-config --cflags`
23250 XML2_VER=`$xml2dir/bin/xml2-config --version`
23251 { echo "$as_me:$LINENO: result: $XML2_VER" >&5
23252 echo "${ECHO_T}$XML2_VER" >&6; }
23254 cat >>confdefs.h <<\_ACEOF
23255 #define YAZ_HAVE_XML2 1
23258 YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_HAVE_XML2=1"
23262 { echo "$as_me:$LINENO: result: Not found" >&5
23263 echo "${ECHO_T}Not found" >&6; }
23264 if test "$xml2dir" = "default"; then
23265 { echo "$as_me:$LINENO: WARNING: libxml2 development libraries not found." >&5
23266 echo "$as_me: WARNING: libxml2 development libraries not found." >&2;}
23267 { echo "$as_me:$LINENO: WARNING: There will be no support for SRU." >&5
23268 echo "$as_me: WARNING: There will be no support for SRU." >&2;}
23270 { { echo "$as_me:$LINENO: error: libxml2 development libraries not found." >&5
23271 echo "$as_me: error: libxml2 development libraries not found." >&2;}
23272 { (exit 1); exit 1; }; }
23283 # Check whether --with-xslt was given.
23284 if test "${with_xslt+set}" = set; then
23285 withval=$with_xslt; xsltdir=$withval
23289 if test "$xsltdir" = "yes" -o "$xsltdir" = "default"; then
23290 if test "$pkgconfigpath" != "NONE"; then
23291 # pkg-config on woody reports bad CFLAGS which does
23292 # not include libxml2 CFLAGS, so avoid it..
23293 if $pkgconfigpath --atleast-version 1.1.0 libxslt; then
23294 pkgmodule="libxslt"
23297 if test -z "$pkgmodule"; then
23298 for d in /usr /usr/local; do
23299 if test -x $d/bin/xslt-config; then
23305 if test "$xsltdir" != "no"; then
23306 { echo "$as_me:$LINENO: checking for libXSLT" >&5
23307 echo $ECHO_N "checking for libXSLT... $ECHO_C" >&6; }
23308 if test "$pkgmodule"; then
23309 XML2_LIBS=`$pkgconfigpath --libs $pkgmodule`
23310 XML2_CFLAGS=`$pkgconfigpath --cflags $pkgmodule`
23311 XSLT_VER=`$pkgconfigpath --modversion $pkgmodule`
23312 { echo "$as_me:$LINENO: result: $XSLT_VER" >&5
23313 echo "${ECHO_T}$XSLT_VER" >&6; }
23315 cat >>confdefs.h <<\_ACEOF
23316 #define YAZ_HAVE_XSLT 1
23319 YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_HAVE_XSLT=1"
23322 elif test -x $xsltdir/bin/xslt-config; then
23323 XML2_LIBS=`$xsltdir/bin/xslt-config --libs`
23324 XML2_CFLAGS=`$xsltdir/bin/xslt-config --cflags`
23325 XSLT_VER=`$xsltdir/bin/xslt-config --version`
23326 { echo "$as_me:$LINENO: result: $XSLT_VER" >&5
23327 echo "${ECHO_T}$XSLT_VER" >&6; }
23329 cat >>confdefs.h <<\_ACEOF
23330 #define YAZ_HAVE_XSLT 1
23333 YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_HAVE_XSLT=1"
23337 { echo "$as_me:$LINENO: result: Not found" >&5
23338 echo "${ECHO_T}Not found" >&6; }
23340 if test "$xsltdir" = "default"; then
23341 { echo "$as_me:$LINENO: WARNING: libXSLT development libraries not found." >&5
23342 echo "$as_me: WARNING: libXSLT development libraries not found." >&2;}
23344 { { echo "$as_me:$LINENO: error: libXSLT development libraries not found." >&5
23345 echo "$as_me: error: libXSLT development libraries not found." >&2;}
23346 { (exit 1); exit 1; }; }
23356 # Check whether --with-exslt was given.
23357 if test "${with_exslt+set}" = set; then
23358 withval=$with_exslt; exsltdir=$withval
23361 if test "$exsltdir" = "yes" -o "$exsltdir" = "default"; then
23362 if test "$pkgconfigpath" != "NONE"; then
23363 if $pkgconfigpath --exists libexslt; then
23364 pkgmodule="libexslt"
23368 if test "$exsltdir" != "no"; then
23369 { echo "$as_me:$LINENO: checking for libEXSLT" >&5
23370 echo $ECHO_N "checking for libEXSLT... $ECHO_C" >&6; }
23371 if test "$pkgmodule"; then
23372 XML2_LIBS=`$pkgconfigpath --libs $pkgmodule`
23373 XML2_CFLAGS=`$pkgconfigpath --cflags $pkgmodule`
23374 EXSLT_VER=`$pkgconfigpath --modversion $pkgmodule`
23375 { echo "$as_me:$LINENO: result: $EXSLT_VER" >&5
23376 echo "${ECHO_T}$EXSLT_VER" >&6; }
23378 cat >>confdefs.h <<\_ACEOF
23379 #define YAZ_HAVE_EXSLT 1
23382 YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_HAVE_EXSLT=1"
23386 { echo "$as_me:$LINENO: result: Not found" >&5
23387 echo "${ECHO_T}Not found" >&6; }
23389 if test "$pkgconfigpath" = "NONE"; then
23390 extra="libEXSLT not enabled. pkg-config not found."
23392 extra="libEXSLT development libraries not found."
23395 if test "$exsltdir" = "default"; then
23396 { echo "$as_me:$LINENO: WARNING: $extra" >&5
23397 echo "$as_me: WARNING: $extra" >&2;}
23399 { { echo "$as_me:$LINENO: error: $extra" >&5
23400 echo "$as_me: error: $extra" >&2;}
23401 { (exit 1); exit 1; }; }
23406 LIBS="$LIBS $XML2_LIBS"
23408 for ac_func in xsltSaveResultToString
23410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23414 echo $ECHO_N "(cached) $ECHO_C" >&6
23416 cat >conftest.$ac_ext <<_ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h. */
23422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23424 #define $ac_func innocuous_$ac_func
23426 /* System header to define __stub macros and hopefully few prototypes,
23427 which can conflict with char $ac_func (); below.
23428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23429 <limits.h> exists even on freestanding compilers. */
23432 # include <limits.h>
23434 # include <assert.h>
23439 /* Override any GCC internal prototype to avoid an error.
23440 Use char because int might match the return type of a GCC
23441 builtin and then its argument prototype would still apply. */
23446 /* The GNU C library defines this for functions which it implements
23447 to always fail with ENOSYS. Some functions are actually named
23448 something starting with __ and the normal name is an alias. */
23449 #if defined __stub_$ac_func || defined __stub___$ac_func
23456 return $ac_func ();
23461 rm -f conftest.$ac_objext conftest$ac_exeext
23462 if { (ac_try="$ac_link"
23463 case "(($ac_try" in
23464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465 *) ac_try_echo=$ac_try;;
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468 (eval "$ac_link") 2>conftest.er1
23470 grep -v '^ *+' conftest.er1 >conftest.err
23472 cat conftest.err >&5
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); } &&
23475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23476 { (case "(($ac_try" in
23477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23478 *) ac_try_echo=$ac_try;;
23480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23481 (eval "$ac_try") 2>&5
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); }; } &&
23485 { ac_try='test -s conftest$ac_exeext'
23486 { (case "(($ac_try" in
23487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488 *) ac_try_echo=$ac_try;;
23490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23491 (eval "$ac_try") 2>&5
23493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494 (exit $ac_status); }; }; then
23495 eval "$as_ac_var=yes"
23497 echo "$as_me: failed program was:" >&5
23498 sed 's/^/| /' conftest.$ac_ext >&5
23500 eval "$as_ac_var=no"
23503 rm -f core conftest.err conftest.$ac_objext \
23504 conftest$ac_exeext conftest.$ac_ext
23506 ac_res=`eval echo '${'$as_ac_var'}'`
23507 { echo "$as_me:$LINENO: result: $ac_res" >&5
23508 echo "${ECHO_T}$ac_res" >&6; }
23509 if test `eval echo '${'$as_ac_var'}'` = yes; then
23510 cat >>confdefs.h <<_ACEOF
23511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23520 YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS $XML2_CFLAGS"
23522 if test "$XML2_LIBS"; then
23523 LIBS="$XML2_LIBS $LIBS"
23526 # Check whether --enable-memdebug was given.
23527 if test "${enable_memdebug+set}" = set; then
23528 enableval=$enable_memdebug; enable_memdebug=$enableval
23530 enable_memdebug=none
23533 if test "$enable_memdebug" = "yes"; then
23534 cat >>confdefs.h <<\_ACEOF
23535 #define TRACE_XMALLOC 2
23538 elif test "$enable_memdebug" = "no"; then
23539 cat >>confdefs.h <<\_ACEOF
23540 #define TRACE_XMALLOC 0
23546 YAZ_SRC_ROOT=`cd ${srcdir}; pwd`
23547 YAZ_BUILD_ROOT=`pwd`
23548 ac_config_files="$ac_config_files Makefile yaz.spec src/Makefile test/Makefile util/Makefile include/Makefile include/yaz/Makefile client/Makefile ztest/Makefile zoom/Makefile doc/Makefile doc/local.ent doc/common/Makefile doc/common/print.dsl etc/Makefile yaz-config Doxyfile"
23550 ac_config_commands="$ac_config_commands default"
23552 cat >confcache <<\_ACEOF
23553 # This file is a shell script that caches the results of configure
23554 # tests run on this system so they can be shared between configure
23555 # scripts and configure runs, see configure's option --config-cache.
23556 # It is not useful on other systems. If it contains results you don't
23557 # want to keep, you may remove or edit it.
23559 # config.status only pays attention to the cache file if you give it
23560 # the --recheck option to rerun configure.
23562 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23563 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23564 # following values.
23568 # The following way of writing the cache mishandles newlines in values,
23569 # but we know of no workaround that is simple, portable, and efficient.
23570 # So, we kill variables containing newlines.
23571 # Ultrix sh set writes to stderr and can't be redirected directly,
23572 # and sets the high bit in the cache file unless we assign to the vars.
23574 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23575 eval ac_val=\$$ac_var
23579 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23580 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23583 _ | IFS | as_nl) ;; #(
23584 *) $as_unset $ac_var ;;
23590 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23591 *${as_nl}ac_space=\ *)
23592 # `set' does not quote correctly, so add quotes (double-quote
23593 # substitution turns \\\\ into \\, and sed turns \\ into \).
23596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23599 # `set' quotes correctly as required by POSIX, so do not add quotes.
23600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23609 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23611 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23613 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23614 if test -w "$cache_file"; then
23615 test "x$cache_file" != "x/dev/null" &&
23616 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23617 echo "$as_me: updating cache $cache_file" >&6;}
23618 cat confcache >$cache_file
23620 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23621 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23626 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23627 # Let make expand exec_prefix.
23628 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23630 # Transform confdefs.h into DEFS.
23631 # Protect against shell expansion while executing Makefile rules.
23632 # Protect against Makefile macro expansion.
23634 # If the first sed substitution is executed (which looks for macros that
23635 # take arguments), then branch to the quote section. Otherwise,
23636 # look for a macro that doesn't take arguments.
23640 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
23642 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
23646 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
23659 DEFS=`sed -n "$ac_script" confdefs.h`
23664 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23665 # 1. Remove the extension, and $U if already installed.
23666 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23667 ac_i=`echo "$ac_i" | sed "$ac_script"`
23668 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23669 # will be set to the directory where LIBOBJS objects are built.
23670 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23671 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23673 LIBOBJS=$ac_libobjs
23675 LTLIBOBJS=$ac_ltlibobjs
23678 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23679 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23680 Usually this means the macro was only invoked conditionally." >&5
23681 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23682 Usually this means the macro was only invoked conditionally." >&2;}
23683 { (exit 1); exit 1; }; }
23685 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23686 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23687 Usually this means the macro was only invoked conditionally." >&5
23688 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23689 Usually this means the macro was only invoked conditionally." >&2;}
23690 { (exit 1); exit 1; }; }
23692 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23693 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23694 Usually this means the macro was only invoked conditionally." >&5
23695 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23696 Usually this means the macro was only invoked conditionally." >&2;}
23697 { (exit 1); exit 1; }; }
23700 : ${CONFIG_STATUS=./config.status}
23701 ac_clean_files_save=$ac_clean_files
23702 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23703 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23704 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23705 cat >$CONFIG_STATUS <<_ACEOF
23707 # Generated by $as_me.
23708 # Run this file to recreate the current configuration.
23709 # Compiler output produced by configure, useful for debugging
23710 # configure, is in config.log if it exists.
23713 ac_cs_recheck=false
23715 SHELL=\${CONFIG_SHELL-$SHELL}
23718 cat >>$CONFIG_STATUS <<\_ACEOF
23719 ## --------------------- ##
23720 ## M4sh Initialization. ##
23721 ## --------------------- ##
23723 # Be Bourne compatible
23724 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23727 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23728 # is contrary to our usage. Disable this feature.
23729 alias -g '${1+"$@"}'='"$@"'
23730 setopt NO_GLOB_SUBST
23732 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23734 BIN_SH=xpg4; export BIN_SH # for Tru64
23735 DUALCASE=1; export DUALCASE # for MKS sh
23739 # Avoid depending upon Character Ranges.
23740 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23741 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23742 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23743 as_cr_digits='0123456789'
23744 as_cr_alnum=$as_cr_Letters$as_cr_digits
23746 # The user is always right.
23747 if test "${PATH_SEPARATOR+set}" != set; then
23748 echo "#! /bin/sh" >conf$$.sh
23749 echo "exit 0" >>conf$$.sh
23751 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23759 # Support unset when possible.
23760 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23768 # We need space, tab and new line, in precisely that order. Quoting is
23769 # there to prevent editors from complaining about space-tab.
23770 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23771 # splitting by setting IFS to empty value.)
23776 # Find who we are. Look in the path if we contain no directory separator.
23778 *[\\/]* ) as_myself=$0 ;;
23779 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23780 for as_dir in $PATH
23783 test -z "$as_dir" && as_dir=.
23784 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23790 # We did not find ourselves, most probably we were run as `sh COMMAND'
23791 # in which case we are not to be found in the path.
23792 if test "x$as_myself" = x; then
23795 if test ! -f "$as_myself"; then
23796 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23797 { (exit 1); exit 1; }
23800 # Work around bugs in pre-3.0 UWIN ksh.
23801 for as_var in ENV MAIL MAILPATH
23802 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23810 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23811 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23812 LC_TELEPHONE LC_TIME
23814 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23815 eval $as_var=C; export $as_var
23817 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23821 # Required to use basename.
23822 if expr a : '\(a\)' >/dev/null 2>&1 &&
23823 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23829 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23830 as_basename=basename
23836 # Name of the executable.
23837 as_me=`$as_basename -- "$0" ||
23838 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23839 X"$0" : 'X\(//\)$' \| \
23840 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23842 sed '/^.*\/\([^/][^/]*\)\/*$/{
23861 as_lineno_1=$LINENO
23862 as_lineno_2=$LINENO
23863 test "x$as_lineno_1" != "x$as_lineno_2" &&
23864 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23866 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23867 # uniformly replaced by the line number. The first 'sed' inserts a
23868 # line-number line after each line using $LINENO; the second 'sed'
23869 # does the real work. The second script uses 'N' to pair each
23870 # line-number line with the line containing $LINENO, and appends
23871 # trailing '-' during substitution so that $LINENO is not a special
23872 # case at line end.
23873 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23874 # scripts with optimization help from Paolo Bonzini. Blame Lee
23875 # E. McMahon (1931-1989) for sed's syntax. :-)
23887 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23890 ' >$as_me.lineno &&
23891 chmod +x "$as_me.lineno" ||
23892 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23893 { (exit 1); exit 1; }; }
23895 # Don't try to exec as it changes $[0], causing all sort of problems
23896 # (the dirname of $[0] is not the place where we might find the
23897 # original and so on. Autoconf is especially sensitive to this).
23898 . "./$as_me.lineno"
23899 # Exit status is that of the last command.
23904 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23910 ECHO_C= ECHO_N= ECHO_T=
23911 case `echo -n x` in
23913 case `echo 'x\c'` in
23914 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23921 if expr a : '\(a\)' >/dev/null 2>&1 &&
23922 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23928 rm -f conf$$ conf$$.exe conf$$.file
23929 if test -d conf$$.dir; then
23930 rm -f conf$$.dir/conf$$.file
23936 if ln -s conf$$.file conf$$ 2>/dev/null; then
23938 # ... but there are two gotchas:
23939 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23940 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23941 # In both cases, we have to default to `cp -p'.
23942 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23944 elif ln conf$$.file conf$$ 2>/dev/null; then
23949 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23950 rmdir conf$$.dir 2>/dev/null
23952 if mkdir -p . 2>/dev/null; then
23955 test -d ./-p && rmdir ./-p
23959 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23960 # systems may use methods other than mode bits to determine executability.
23961 cat >conf$$.file <<_ASEOF
23965 chmod +x conf$$.file
23966 if test -x conf$$.file >/dev/null 2>&1; then
23967 as_executable_p="test -x"
23973 # Sed expression to map a string onto a valid CPP name.
23974 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23976 # Sed expression to map a string onto a valid variable name.
23977 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23982 # Save the log message, to keep $[0] and so on meaningful, and to
23983 # report actual input values of CONFIG_FILES etc. instead of their
23984 # values after options handling.
23986 This file was extended by yaz $as_me 2.1.28, which was
23987 generated by GNU Autoconf 2.60. Invocation command line was
23989 CONFIG_FILES = $CONFIG_FILES
23990 CONFIG_HEADERS = $CONFIG_HEADERS
23991 CONFIG_LINKS = $CONFIG_LINKS
23992 CONFIG_COMMANDS = $CONFIG_COMMANDS
23995 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24000 cat >>$CONFIG_STATUS <<_ACEOF
24001 # Files that config.status was made for.
24002 config_files="$ac_config_files"
24003 config_commands="$ac_config_commands"
24007 cat >>$CONFIG_STATUS <<\_ACEOF
24009 \`$as_me' instantiates files from templates according to the
24010 current configuration.
24012 Usage: $0 [OPTIONS] [FILE]...
24014 -h, --help print this help, then exit
24015 -V, --version print version number, then exit
24016 -q, --quiet do not print progress messages
24017 -d, --debug don't remove temporary files
24018 --recheck update $as_me by reconfiguring in the same conditions
24019 --file=FILE[:TEMPLATE]
24020 instantiate the configuration file FILE
24022 Configuration files:
24025 Configuration commands:
24028 Report bugs to <bug-autoconf@gnu.org>."
24031 cat >>$CONFIG_STATUS <<_ACEOF
24033 yaz config.status 2.1.28
24034 configured by $0, generated by GNU Autoconf 2.60,
24035 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24037 Copyright (C) 2006 Free Software Foundation, Inc.
24038 This config.status script is free software; the Free Software Foundation
24039 gives unlimited permission to copy, distribute and modify it."
24046 cat >>$CONFIG_STATUS <<\_ACEOF
24047 # If no file are specified by the user, then we need to provide default
24048 # value. By we need to know if files were specified by the user.
24054 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24055 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24066 # Handling of the options.
24067 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24069 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24070 echo "$ac_cs_version"; exit ;;
24071 --debug | --debu | --deb | --de | --d | -d )
24073 --file | --fil | --fi | --f )
24075 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24076 ac_need_defaults=false;;
24077 --he | --h | --help | --hel | -h )
24078 echo "$ac_cs_usage"; exit ;;
24079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24080 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24083 # This is an error.
24084 -*) { echo "$as_me: error: unrecognized option: $1
24085 Try \`$0 --help' for more information." >&2
24086 { (exit 1); exit 1; }; } ;;
24088 *) ac_config_targets="$ac_config_targets $1"
24089 ac_need_defaults=false ;;
24095 ac_configure_extra_args=
24097 if $ac_cs_silent; then
24099 ac_configure_extra_args="$ac_configure_extra_args --silent"
24103 cat >>$CONFIG_STATUS <<_ACEOF
24104 if \$ac_cs_recheck; then
24105 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24106 CONFIG_SHELL=$SHELL
24107 export CONFIG_SHELL
24108 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24112 cat >>$CONFIG_STATUS <<\_ACEOF
24116 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24117 ## Running $as_me. ##
24123 cat >>$CONFIG_STATUS <<_ACEOF
24127 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24131 cat >>$CONFIG_STATUS <<\_ACEOF
24133 # Handling of arguments.
24134 for ac_config_target in $ac_config_targets
24136 case $ac_config_target in
24137 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24138 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24139 "yaz.spec") CONFIG_FILES="$CONFIG_FILES yaz.spec" ;;
24140 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24141 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
24142 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
24143 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24144 "include/yaz/Makefile") CONFIG_FILES="$CONFIG_FILES include/yaz/Makefile" ;;
24145 "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
24146 "ztest/Makefile") CONFIG_FILES="$CONFIG_FILES ztest/Makefile" ;;
24147 "zoom/Makefile") CONFIG_FILES="$CONFIG_FILES zoom/Makefile" ;;
24148 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24149 "doc/local.ent") CONFIG_FILES="$CONFIG_FILES doc/local.ent" ;;
24150 "doc/common/Makefile") CONFIG_FILES="$CONFIG_FILES doc/common/Makefile" ;;
24151 "doc/common/print.dsl") CONFIG_FILES="$CONFIG_FILES doc/common/print.dsl" ;;
24152 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
24153 "yaz-config") CONFIG_FILES="$CONFIG_FILES yaz-config" ;;
24154 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
24155 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24157 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24158 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24159 { (exit 1); exit 1; }; };;
24164 # If the user did not use the arguments to specify the items to instantiate,
24165 # then the envvar interface is used. Set only those that are not.
24166 # We use the long form for the default assignment because of an extremely
24167 # bizarre bug on SunOS 4.1.3.
24168 if $ac_need_defaults; then
24169 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24170 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24173 # Have a temporary directory for convenience. Make it in the build tree
24174 # simply because there is no reason against having it here, and in addition,
24175 # creating and moving files from /tmp can sometimes cause problems.
24176 # Hook for its removal unless debugging.
24177 # Note that there is a small window in which the directory will not be cleaned:
24178 # after its creation but before its name has been assigned to `$tmp'.
24182 trap 'exit_status=$?
24183 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24185 trap '{ (exit 1); exit 1; }' 1 2 13 15
24187 # Create a (secure) tmp directory for tmp files.
24190 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24191 test -n "$tmp" && test -d "$tmp"
24194 tmp=./conf$$-$RANDOM
24195 (umask 077 && mkdir "$tmp")
24198 echo "$me: cannot create a temporary directory in ." >&2
24199 { (exit 1); exit 1; }
24203 # Set up the sed scripts for CONFIG_FILES section.
24206 # No need to generate the scripts if there are no CONFIG_FILES.
24207 # This happens for instance when ./config.status config.h
24208 if test -n "$CONFIG_FILES"; then
24215 for ac_last_try in false false false false false :; do
24216 cat >conf$$subs.sed <<_ACEOF
24217 SHELL!$SHELL$ac_delim
24218 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24219 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24220 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24221 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24222 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24223 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24224 exec_prefix!$exec_prefix$ac_delim
24225 prefix!$prefix$ac_delim
24226 program_transform_name!$program_transform_name$ac_delim
24227 bindir!$bindir$ac_delim
24228 sbindir!$sbindir$ac_delim
24229 libexecdir!$libexecdir$ac_delim
24230 datarootdir!$datarootdir$ac_delim
24231 datadir!$datadir$ac_delim
24232 sysconfdir!$sysconfdir$ac_delim
24233 sharedstatedir!$sharedstatedir$ac_delim
24234 localstatedir!$localstatedir$ac_delim
24235 includedir!$includedir$ac_delim
24236 oldincludedir!$oldincludedir$ac_delim
24237 docdir!$docdir$ac_delim
24238 infodir!$infodir$ac_delim
24239 htmldir!$htmldir$ac_delim
24240 dvidir!$dvidir$ac_delim
24241 pdfdir!$pdfdir$ac_delim
24242 psdir!$psdir$ac_delim
24243 libdir!$libdir$ac_delim
24244 localedir!$localedir$ac_delim
24245 mandir!$mandir$ac_delim
24246 DEFS!$DEFS$ac_delim
24247 ECHO_C!$ECHO_C$ac_delim
24248 ECHO_N!$ECHO_N$ac_delim
24249 ECHO_T!$ECHO_T$ac_delim
24250 LIBS!$LIBS$ac_delim
24251 build_alias!$build_alias$ac_delim
24252 host_alias!$host_alias$ac_delim
24253 target_alias!$target_alias$ac_delim
24254 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24255 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24256 INSTALL_DATA!$INSTALL_DATA$ac_delim
24257 CYGPATH_W!$CYGPATH_W$ac_delim
24258 PACKAGE!$PACKAGE$ac_delim
24259 VERSION!$VERSION$ac_delim
24260 ACLOCAL!$ACLOCAL$ac_delim
24261 AUTOCONF!$AUTOCONF$ac_delim
24262 AUTOMAKE!$AUTOMAKE$ac_delim
24263 AUTOHEADER!$AUTOHEADER$ac_delim
24264 MAKEINFO!$MAKEINFO$ac_delim
24265 AMTAR!$AMTAR$ac_delim
24266 install_sh!$install_sh$ac_delim
24267 STRIP!$STRIP$ac_delim
24268 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24269 mkdir_p!$mkdir_p$ac_delim
24271 SET_MAKE!$SET_MAKE$ac_delim
24272 am__leading_dot!$am__leading_dot$ac_delim
24273 READLINE_LIBS!$READLINE_LIBS$ac_delim
24274 YAZ_CONF_CFLAGS!$YAZ_CONF_CFLAGS$ac_delim
24276 CFLAGS!$CFLAGS$ac_delim
24277 LDFLAGS!$LDFLAGS$ac_delim
24278 CPPFLAGS!$CPPFLAGS$ac_delim
24279 ac_ct_CC!$ac_ct_CC$ac_delim
24280 EXEEXT!$EXEEXT$ac_delim
24281 OBJEXT!$OBJEXT$ac_delim
24282 DEPDIR!$DEPDIR$ac_delim
24283 am__include!$am__include$ac_delim
24284 am__quote!$am__quote$ac_delim
24285 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24286 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24287 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24288 CCDEPMODE!$CCDEPMODE$ac_delim
24289 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24290 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24292 YACC!$YACC$ac_delim
24293 TCLSH!$TCLSH$ac_delim
24294 build!$build$ac_delim
24295 build_cpu!$build_cpu$ac_delim
24296 build_vendor!$build_vendor$ac_delim
24297 build_os!$build_os$ac_delim
24298 host!$host$ac_delim
24299 host_cpu!$host_cpu$ac_delim
24300 host_vendor!$host_vendor$ac_delim
24301 host_os!$host_os$ac_delim
24302 GREP!$GREP$ac_delim
24303 EGREP!$EGREP$ac_delim
24304 LN_S!$LN_S$ac_delim
24305 ECHO!$ECHO$ac_delim
24307 RANLIB!$RANLIB$ac_delim
24309 CXXFLAGS!$CXXFLAGS$ac_delim
24310 ac_ct_CXX!$ac_ct_CXX$ac_delim
24311 CXXDEPMODE!$CXXDEPMODE$ac_delim
24312 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24313 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24316 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24318 elif $ac_last_try; then
24319 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24320 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24321 { (exit 1); exit 1; }; }
24323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24327 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24328 if test -n "$ac_eof"; then
24329 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24330 ac_eof=`expr $ac_eof + 1`
24333 cat >>$CONFIG_STATUS <<_ACEOF
24334 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24335 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24338 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24339 s/^/s,@/; s/!/@,|#_!!_#|/
24342 s/'"$ac_delim"'$/,g/; t
24344 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24345 ' >>$CONFIG_STATUS <conf$$subs.sed
24346 rm -f conf$$subs.sed
24347 cat >>$CONFIG_STATUS <<_ACEOF
24353 for ac_last_try in false false false false false :; do
24354 cat >conf$$subs.sed <<_ACEOF
24355 CXXCPP!$CXXCPP$ac_delim
24357 FFLAGS!$FFLAGS$ac_delim
24358 ac_ct_F77!$ac_ct_F77$ac_delim
24359 LIBTOOL!$LIBTOOL$ac_delim
24360 pkgconfigpath!$pkgconfigpath$ac_delim
24361 XSLTPROC_COMPILE!$XSLTPROC_COMPILE$ac_delim
24362 MAN_COMPILE!$MAN_COMPILE$ac_delim
24363 HTML_COMPILE!$HTML_COMPILE$ac_delim
24364 TKL_COMPILE!$TKL_COMPILE$ac_delim
24365 DTD_DIR!$DTD_DIR$ac_delim
24366 DSSSL_DIR!$DSSSL_DIR$ac_delim
24367 XSL_DIR!$XSL_DIR$ac_delim
24368 SSL_CFLAGS!$SSL_CFLAGS$ac_delim
24369 THREAD_CFLAGS!$THREAD_CFLAGS$ac_delim
24370 LIBPTH!$LIBPTH$ac_delim
24371 XML2_CFLAGS!$XML2_CFLAGS$ac_delim
24372 YAZ_CONFIG_CFLAGS!$YAZ_CONFIG_CFLAGS$ac_delim
24373 YAZ_SRC_ROOT!$YAZ_SRC_ROOT$ac_delim
24374 YAZ_BUILD_ROOT!$YAZ_BUILD_ROOT$ac_delim
24375 LIBOBJS!$LIBOBJS$ac_delim
24376 LTLIBOBJS!$LTLIBOBJS$ac_delim
24379 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24381 elif $ac_last_try; then
24382 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24383 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24384 { (exit 1); exit 1; }; }
24386 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24390 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24391 if test -n "$ac_eof"; then
24392 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24393 ac_eof=`expr $ac_eof + 1`
24396 cat >>$CONFIG_STATUS <<_ACEOF
24397 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24398 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24401 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24402 s/^/s,@/; s/!/@,|#_!!_#|/
24405 s/'"$ac_delim"'$/,g/; t
24407 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24408 ' >>$CONFIG_STATUS <conf$$subs.sed
24409 rm -f conf$$subs.sed
24410 cat >>$CONFIG_STATUS <<_ACEOF
24417 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24418 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24419 # trailing colons and then remove the whole line if VPATH becomes empty
24420 # (actually we leave an empty line to preserve line numbers).
24421 if test "x$srcdir" = x.; then
24422 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24423 s/:*\$(srcdir):*/:/
24424 s/:*\${srcdir}:*/:/
24426 s/^\([^=]*=[ ]*\):*/\1/
24432 cat >>$CONFIG_STATUS <<\_ACEOF
24433 fi # test -n "$CONFIG_FILES"
24436 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
24439 :[FHLC]) ac_mode=$ac_tag; continue;;
24441 case $ac_mode$ac_tag in
24443 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24444 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24445 { (exit 1); exit 1; }; };;
24446 :[FH]-) ac_tag=-:-;;
24447 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24464 -) ac_f="$tmp/stdin";;
24465 *) # Look for the file first in the build tree, then in the source tree
24466 # (if the path is not absolute). The absolute path cannot be DOS-style,
24467 # because $ac_f cannot contain `:'.
24471 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24473 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24474 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24475 { (exit 1); exit 1; }; };;
24477 ac_file_inputs="$ac_file_inputs $ac_f"
24480 # Let's still pretend it is `configure' which instantiates (i.e., don't
24481 # use $as_me), people would be surprised to read:
24482 # /* config.h. Generated by config.status. */
24483 configure_input="Generated from "`IFS=:
24484 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24485 if test x"$ac_file" != x-; then
24486 configure_input="$ac_file. $configure_input"
24487 { echo "$as_me:$LINENO: creating $ac_file" >&5
24488 echo "$as_me: creating $ac_file" >&6;}
24492 *:-:* | *:-) cat >"$tmp/stdin";;
24497 ac_dir=`$as_dirname -- "$ac_file" ||
24498 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24499 X"$ac_file" : 'X\(//\)[^/]' \| \
24500 X"$ac_file" : 'X\(//\)$' \| \
24501 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24507 /^X\(\/\/\)[^/].*/{
24522 -*) as_dir=./$as_dir;;
24524 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24528 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24529 *) as_qdir=$as_dir;;
24531 as_dirs="'$as_qdir' $as_dirs"
24532 as_dir=`$as_dirname -- "$as_dir" ||
24533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24534 X"$as_dir" : 'X\(//\)[^/]' \| \
24535 X"$as_dir" : 'X\(//\)$' \| \
24536 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24542 /^X\(\/\/\)[^/].*/{
24555 test -d "$as_dir" && break
24557 test -z "$as_dirs" || eval "mkdir $as_dirs"
24558 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24559 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24560 { (exit 1); exit 1; }; }; }
24564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24566 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24567 # A ".." for each directory in $ac_dir_suffix.
24568 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24569 case $ac_top_builddir_sub in
24570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24574 ac_abs_top_builddir=$ac_pwd
24575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24576 # for backward compatibility:
24577 ac_top_builddir=$ac_top_build_prefix
24580 .) # We are building in place.
24582 ac_top_srcdir=$ac_top_builddir_sub
24583 ac_abs_top_srcdir=$ac_pwd ;;
24584 [\\/]* | ?:[\\/]* ) # Absolute name.
24585 ac_srcdir=$srcdir$ac_dir_suffix;
24586 ac_top_srcdir=$srcdir
24587 ac_abs_top_srcdir=$srcdir ;;
24588 *) # Relative name.
24589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24590 ac_top_srcdir=$ac_top_build_prefix$srcdir
24591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24603 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24604 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24608 cat >>$CONFIG_STATUS <<\_ACEOF
24609 # If the template does not know about datarootdir, expand it.
24610 # FIXME: This hack should be removed a few years after 2.60.
24611 ac_datarootdir_hack=; ac_datarootdir_seen=
24613 case `sed -n '/datarootdir/ {
24622 ' $ac_file_inputs` in
24623 *datarootdir*) ac_datarootdir_seen=yes;;
24624 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24625 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24626 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24628 cat >>$CONFIG_STATUS <<_ACEOF
24629 ac_datarootdir_hack='
24630 s&@datadir@&$datadir&g
24631 s&@docdir@&$docdir&g
24632 s&@infodir@&$infodir&g
24633 s&@localedir@&$localedir&g
24634 s&@mandir@&$mandir&g
24635 s&\\\${datarootdir}&$datarootdir&g' ;;
24639 # Neutralize VPATH when `$srcdir' = `.'.
24640 # Shell code in configure.ac might set extrasub.
24641 # FIXME: do we really want to maintain this feature?
24642 cat >>$CONFIG_STATUS <<_ACEOF
24646 cat >>$CONFIG_STATUS <<\_ACEOF
24648 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24649 s&@configure_input@&$configure_input&;t t
24650 s&@top_builddir@&$ac_top_builddir_sub&;t t
24651 s&@srcdir@&$ac_srcdir&;t t
24652 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24653 s&@top_srcdir@&$ac_top_srcdir&;t t
24654 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24655 s&@builddir@&$ac_builddir&;t t
24656 s&@abs_builddir@&$ac_abs_builddir&;t t
24657 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24658 s&@INSTALL@&$ac_INSTALL&;t t
24659 $ac_datarootdir_hack
24660 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24662 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24663 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24664 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24665 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24666 which seems to be undefined. Please make sure it is defined." >&5
24667 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24668 which seems to be undefined. Please make sure it is defined." >&2;}
24672 -) cat "$tmp/out"; rm -f "$tmp/out";;
24673 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24678 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24679 echo "$as_me: executing $ac_file commands" >&6;}
24684 case $ac_file$ac_mode in
24685 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24686 # Strip MF so we end up with the name of the file.
24687 mf=`echo "$mf" | sed -e 's/:.*$//'`
24688 # Check whether this is an Automake generated Makefile or not.
24689 # We used to match only the files named `Makefile.in', but
24690 # some people rename them; so instead we look at the file content.
24691 # Grep'ing the first line is not enough: some people post-process
24692 # each Makefile.in and add a new line on top of each file to say so.
24693 # So let's grep whole file.
24694 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24695 dirpart=`$as_dirname -- "$mf" ||
24696 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24697 X"$mf" : 'X\(//\)[^/]' \| \
24698 X"$mf" : 'X\(//\)$' \| \
24699 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24705 /^X\(\/\/\)[^/].*/{
24721 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24722 # Extract the definition of DEP_FILES from the Makefile without
24724 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24725 test -z "$DEPDIR" && continue
24726 # When using ansi2knr, U may be empty or an underscore; expand it
24727 U=`sed -n 's/^U = //p' < "$mf"`
24728 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24729 # We invoke sed twice because it is the simplest approach to
24730 # changing $(DEPDIR) to its actual value in the expansion.
24731 for file in `sed -n '
24732 /^DEP_FILES = .*\\\\$/ {
24741 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24742 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24743 # Make sure the directory exists.
24744 test -f "$dirpart/$file" && continue
24745 fdir=`$as_dirname -- "$file" ||
24746 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24747 X"$file" : 'X\(//\)[^/]' \| \
24748 X"$file" : 'X\(//\)$' \| \
24749 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24755 /^X\(\/\/\)[^/].*/{
24768 { as_dir=$dirpart/$fdir
24770 -*) as_dir=./$as_dir;;
24772 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24776 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24777 *) as_qdir=$as_dir;;
24779 as_dirs="'$as_qdir' $as_dirs"
24780 as_dir=`$as_dirname -- "$as_dir" ||
24781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24782 X"$as_dir" : 'X\(//\)[^/]' \| \
24783 X"$as_dir" : 'X\(//\)$' \| \
24784 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24790 /^X\(\/\/\)[^/].*/{
24803 test -d "$as_dir" && break
24805 test -z "$as_dirs" || eval "mkdir $as_dirs"
24806 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24807 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24808 { (exit 1); exit 1; }; }; }
24809 # echo "creating $dirpart/$file"
24810 echo '# dummy' > "$dirpart/$file"
24814 "default":C) sed s%yaz_echo_source=yes%yaz_echo_source=no%g < yaz-config > util/yaz-config && chmod +x yaz-config util/yaz-config ;;
24820 { (exit 0); exit 0; }
24822 chmod +x $CONFIG_STATUS
24823 ac_clean_files=$ac_clean_files_save
24826 # configure is writing to config.log, and then calls config.status.
24827 # config.status does its own redirection, appending to config.log.
24828 # Unfortunately, on DOS this fails, as config.log is still kept open
24829 # by configure, so config.status won't be able to write to it; its
24830 # output is simply discarded. So we exec the FD to /dev/null,
24831 # effectively closing config.log, so it can be properly (re)opened and
24832 # appended to by config.status. When coming back to configure, we
24833 # need to make the FD available again.
24834 if test "$no_create" != yes; then
24836 ac_config_status_args=
24837 test "$silent" = yes &&
24838 ac_config_status_args="$ac_config_status_args --quiet"
24840 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24842 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24843 # would make configure fail if this is the last instruction.
24844 $ac_cs_success || { (exit 1); exit 1; }
24850 "------------------------------------------------------------------------
24853 YAZ Package: ${PACKAGE}
24854 YAZ Version: ${VERSION}
24855 Bugreport: ${PACKAGE_BUGREPORT}
24856 Source code location: ${srcdir}
24857 C Preprocessor: ${CPP}
24858 C Preprocessor flags: ${CPPFLAGS}
24860 C Compiler flags: ${CFLAGS}
24861 Linker flags: ${LDFLAGS}
24862 Linked libs: ${LIBS}
24863 Host System Type: ${host}
24864 Install path: ${prefix}
24865 Automake: ${AUTOMAKE}
24869 ------------------------------------------------------------------------"