2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
597 echo_test_string="`eval $cmd`" &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file="server/server.c"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
747 # ifdef HAVE_STDLIB_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
779 program_transform_name
870 ac_precious_vars='build_alias
890 # Initialize some variables set by options.
892 ac_init_version=false
893 # The variables have the same names as the options, with
894 # dashes changed to underlines.
902 program_transform_name=s,x,x,
910 # Installation directory options.
911 # These are left unexpanded so users can "make install exec_prefix=/foo"
912 # and all the variables that are supposed to be based on exec_prefix
913 # by default will actually change.
914 # Use braces instead of parens because sh, perl, etc. also accept them.
915 # (The list follows the same order as the GNU Coding Standards.)
916 bindir='${exec_prefix}/bin'
917 sbindir='${exec_prefix}/sbin'
918 libexecdir='${exec_prefix}/libexec'
919 datarootdir='${prefix}/share'
920 datadir='${datarootdir}'
921 sysconfdir='${prefix}/etc'
922 sharedstatedir='${prefix}/com'
923 localstatedir='${prefix}/var'
924 includedir='${prefix}/include'
925 oldincludedir='/usr/include'
926 docdir='${datarootdir}/doc/${PACKAGE}'
927 infodir='${datarootdir}/info'
932 libdir='${exec_prefix}/lib'
933 localedir='${datarootdir}/locale'
934 mandir='${datarootdir}/man'
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
942 eval $ac_prev=\$ac_option
948 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952 # Accept the important Cygnus configure options, so we can diagnose typos.
954 case $ac_dashdash$ac_option in
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963 -build | --build | --buil | --bui | --bu)
964 ac_prev=build_alias ;;
965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
966 build_alias=$ac_optarg ;;
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
973 cache_file=$ac_optarg ;;
976 cache_file=config.cache ;;
978 -datadir | --datadir | --datadi | --datad)
980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
981 datadir=$ac_optarg ;;
983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
990 -disable-* | --disable-*)
991 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
994 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
995 { (exit 1); exit 1; }; }
996 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
997 eval enable_$ac_feature=no ;;
999 -docdir | --docdir | --docdi | --doc | --do)
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
1009 -enable-* | --enable-*)
1010 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1013 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1014 { (exit 1); exit 1; }; }
1015 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1016 eval enable_$ac_feature=\$ac_optarg ;;
1018 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020 | --exec | --exe | --ex)
1021 ac_prev=exec_prefix ;;
1022 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024 | --exec=* | --exe=* | --ex=*)
1025 exec_prefix=$ac_optarg ;;
1027 -gas | --gas | --ga | --g)
1028 # Obsolete; use --with-gas.
1031 -help | --help | --hel | --he | -h)
1032 ac_init_help=long ;;
1033 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034 ac_init_help=recursive ;;
1035 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036 ac_init_help=short ;;
1038 -host | --host | --hos | --ho)
1039 ac_prev=host_alias ;;
1040 -host=* | --host=* | --hos=* | --ho=*)
1041 host_alias=$ac_optarg ;;
1043 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047 htmldir=$ac_optarg ;;
1049 -includedir | --includedir | --includedi | --included | --include \
1050 | --includ | --inclu | --incl | --inc)
1051 ac_prev=includedir ;;
1052 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053 | --includ=* | --inclu=* | --incl=* | --inc=*)
1054 includedir=$ac_optarg ;;
1056 -infodir | --infodir | --infodi | --infod | --info | --inf)
1058 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059 infodir=$ac_optarg ;;
1061 -libdir | --libdir | --libdi | --libd)
1063 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1064 libdir=$ac_optarg ;;
1066 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067 | --libexe | --libex | --libe)
1068 ac_prev=libexecdir ;;
1069 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070 | --libexe=* | --libex=* | --libe=*)
1071 libexecdir=$ac_optarg ;;
1073 -localedir | --localedir | --localedi | --localed | --locale)
1074 ac_prev=localedir ;;
1075 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076 localedir=$ac_optarg ;;
1078 -localstatedir | --localstatedir | --localstatedi | --localstated \
1079 | --localstate | --localstat | --localsta | --localst | --locals)
1080 ac_prev=localstatedir ;;
1081 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1082 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1083 localstatedir=$ac_optarg ;;
1085 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088 mandir=$ac_optarg ;;
1090 -nfp | --nfp | --nf)
1091 # Obsolete; use --without-fp.
1094 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095 | --no-cr | --no-c | -n)
1098 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104 | --oldin | --oldi | --old | --ol | --o)
1105 ac_prev=oldincludedir ;;
1106 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109 oldincludedir=$ac_optarg ;;
1111 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114 prefix=$ac_optarg ;;
1116 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117 | --program-pre | --program-pr | --program-p)
1118 ac_prev=program_prefix ;;
1119 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121 program_prefix=$ac_optarg ;;
1123 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124 | --program-suf | --program-su | --program-s)
1125 ac_prev=program_suffix ;;
1126 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128 program_suffix=$ac_optarg ;;
1130 -program-transform-name | --program-transform-name \
1131 | --program-transform-nam | --program-transform-na \
1132 | --program-transform-n | --program-transform- \
1133 | --program-transform | --program-transfor \
1134 | --program-transfo | --program-transf \
1135 | --program-trans | --program-tran \
1136 | --progr-tra | --program-tr | --program-t)
1137 ac_prev=program_transform_name ;;
1138 -program-transform-name=* | --program-transform-name=* \
1139 | --program-transform-nam=* | --program-transform-na=* \
1140 | --program-transform-n=* | --program-transform-=* \
1141 | --program-transform=* | --program-transfor=* \
1142 | --program-transfo=* | --program-transf=* \
1143 | --program-trans=* | --program-tran=* \
1144 | --progr-tra=* | --program-tr=* | --program-t=*)
1145 program_transform_name=$ac_optarg ;;
1147 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150 pdfdir=$ac_optarg ;;
1152 -psdir | --psdir | --psdi | --psd | --ps)
1154 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158 | -silent | --silent | --silen | --sile | --sil)
1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165 sbindir=$ac_optarg ;;
1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169 | --sharedst | --shareds | --shared | --share | --shar \
1171 ac_prev=sharedstatedir ;;
1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176 sharedstatedir=$ac_optarg ;;
1178 -site | --site | --sit)
1180 -site=* | --site=* | --sit=*)
1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186 srcdir=$ac_optarg ;;
1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189 | --syscon | --sysco | --sysc | --sys | --sy)
1190 ac_prev=sysconfdir ;;
1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193 sysconfdir=$ac_optarg ;;
1195 -target | --target | --targe | --targ | --tar | --ta | --t)
1196 ac_prev=target_alias ;;
1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198 target_alias=$ac_optarg ;;
1200 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203 -version | --version | --versio | --versi | --vers | -V)
1204 ac_init_version=: ;;
1207 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 { echo "$as_me: error: invalid package name: $ac_package" >&2
1211 { (exit 1); exit 1; }; }
1212 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1213 eval with_$ac_package=\$ac_optarg ;;
1215 -without-* | --without-*)
1216 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 { echo "$as_me: error: invalid package name: $ac_package" >&2
1220 { (exit 1); exit 1; }; }
1221 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1222 eval with_$ac_package=no ;;
1225 # Obsolete; use --with-x.
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1242 -*) { echo "$as_me: error: unrecognized option: $ac_option
1243 Try \`$0 --help' for more information." >&2
1244 { (exit 1); exit 1; }; }
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1251 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1252 { (exit 1); exit 1; }; }
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1257 # FIXME: should be removed in autoconf 3.0.
1258 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267 if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 { echo "$as_me: error: missing argument to $ac_option" >&2
1270 { (exit 1); exit 1; }; }
1273 # Be sure to have absolute directory names.
1274 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir
1279 eval ac_val=\$$ac_var
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1285 { (exit 1); exit 1; }; }
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1293 target=$target_alias
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309 test "$silent" = yes && exec 6>/dev/null
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 { echo "$as_me: error: Working directory cannot be determined" >&2
1316 { (exit 1); exit 1; }; }
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 { echo "$as_me: error: pwd does not report name of working directory" >&2
1319 { (exit 1); exit 1; }; }
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$0" ||
1327 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$0" : 'X\(//\)[^/]' \| \
1329 X"$0" : 'X\(//\)$' \| \
1330 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1354 ac_srcdir_defaulted=no
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1359 { (exit 1); exit 1; }; }
1361 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1364 { (exit 1); exit 1; }; }
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1374 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 # Report the --help message.
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1390 \`configure' configures this package to adapt to many kinds of systems.
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1397 Defaults for the options are specified in brackets.
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 By default, \`make install' will install all the files in
1417 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419 for instance \`--prefix=\$HOME'.
1421 For better control, use the options below.
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1448 --x-includes=DIR X include files are in DIR
1449 --x-libraries=DIR X library files are in DIR
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1454 --target=TARGET configure for building compilers for TARGET [HOST]
1458 if test -n "$ac_init_help"; then
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --enable-shared[=PKGS] build shared libraries [default=yes]
1466 --enable-static[=PKGS] build static libraries [default=yes]
1467 --enable-fast-install[=PKGS]
1468 optimize for fast installation [default=yes]
1469 --disable-libtool-lock avoid locking (might break parallel builds)
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1475 --with-pic try to use only PIC/non-PIC objects [default=use
1477 --with-tags[=TAGS] include additional configurations [automatic]
1478 --with-x use the X Window System
1479 --with-krb4=PREFIX Use Kerberos 4
1480 --with-krb5=PREFIX Use Kerberos 5
1481 --with-hesiod=PREFIX Use Hesiod
1482 --with-regex=PREFIX Use installed regex library
1483 --with-ares=PREFIX Use libares
1484 --with-com_err=PREFIX Specify location of com_err
1485 --with-ss=PREFIX Specify location of ss (requires com_err)
1487 Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 LIBS libraries to pass to the linker, e.g. -l<library>
1493 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1496 the first program found out of: `bison -y', `byacc', `yacc'.
1497 YFLAGS The list of arguments that will be passed by default to $YACC.
1498 This script will default YFLAGS to the empty string to avoid a
1499 default value of `-d' given by some make applications.
1501 CXX C++ compiler command
1502 CXXFLAGS C++ compiler flags
1503 CXXCPP C++ preprocessor
1504 F77 Fortran 77 compiler command
1505 FFLAGS Fortran 77 compiler flags
1506 XMKMF Path to xmkmf, Makefile generator for X Window System
1508 Use these variables to override the choices made by `configure' or to help
1509 it to find libraries and programs with nonstandard names/locations.
1515 if test "$ac_init_help" = "recursive"; then
1516 # If there are subdirs, report their specific --help.
1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518 test -d "$ac_dir" || continue
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1525 # A ".." for each directory in $ac_dir_suffix.
1526 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1527 case $ac_top_builddir_sub in
1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1538 .) # We are building in place.
1540 ac_top_srcdir=$ac_top_builddir_sub
1541 ac_abs_top_srcdir=$ac_pwd ;;
1542 [\\/]* | ?:[\\/]* ) # Absolute name.
1543 ac_srcdir=$srcdir$ac_dir_suffix;
1544 ac_top_srcdir=$srcdir
1545 ac_abs_top_srcdir=$srcdir ;;
1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548 ac_top_srcdir=$ac_top_build_prefix$srcdir
1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553 cd "$ac_dir" || { ac_status=$?; continue; }
1554 # Check for guested configure.
1555 if test -f "$ac_srcdir/configure.gnu"; then
1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558 elif test -f "$ac_srcdir/configure"; then
1560 $SHELL "$ac_srcdir/configure" --help=recursive
1562 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564 cd "$ac_pwd" || { ac_status=$?; break; }
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1572 generated by GNU Autoconf 2.61
1574 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1575 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1581 cat >config.log <<_ACEOF
1582 This file contains any messages produced by compilers while
1583 running configure, to aid debugging if configure makes a mistake.
1585 It was created by $as_me, which was
1586 generated by GNU Autoconf 2.61. Invocation command line was
1598 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1599 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1600 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1601 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1602 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1604 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1605 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1607 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1608 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1609 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1610 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1611 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1612 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1613 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621 test -z "$as_dir" && as_dir=.
1622 echo "PATH: $as_dir"
1638 # Keep a trace of the command line.
1639 # Strip out --no-create and --no-recursion so they do not pile up.
1640 # Strip out --silent because we don't want to record it for future runs.
1641 # Also quote any args containing shell meta-characters.
1642 # Make two passes to allow for proper duplicate-argument suppression.
1646 ac_must_keep_next=false
1652 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1654 | -silent | --silent | --silen | --sile | --sil)
1657 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1660 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1662 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1663 if test $ac_must_keep_next = true; then
1664 ac_must_keep_next=false # Got value, back to normal.
1667 *=* | --config-cache | -C | -disable-* | --disable-* \
1668 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1669 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1670 | -with-* | --with-* | -without-* | --without-* | --x)
1671 case "$ac_configure_args0 " in
1672 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1675 -* ) ac_must_keep_next=true ;;
1678 ac_configure_args="$ac_configure_args '$ac_arg'"
1683 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1684 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1686 # When interrupted or exit'd, cleanup temporary files, and complete
1687 # config.log. We remove comments because anyway the quotes in there
1688 # would cause problems or look ugly.
1689 # WARNING: Use '\'' to represent an apostrophe within the trap.
1690 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1691 trap 'exit_status=$?
1692 # Save into config.log some information that might help in debugging.
1697 ## ---------------- ##
1698 ## Cache variables. ##
1699 ## ---------------- ##
1702 # The following way of writing the cache mishandles newlines in values,
1704 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1705 eval ac_val=\$$ac_var
1709 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1710 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1713 _ | IFS | as_nl) ;; #(
1714 *) $as_unset $ac_var ;;
1719 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1720 *${as_nl}ac_space=\ *)
1722 "s/'\''/'\''\\\\'\'''\''/g;
1723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1726 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1734 ## ----------------- ##
1735 ## Output variables. ##
1736 ## ----------------- ##
1739 for ac_var in $ac_subst_vars
1741 eval ac_val=\$$ac_var
1743 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745 echo "$ac_var='\''$ac_val'\''"
1749 if test -n "$ac_subst_files"; then
1751 ## ------------------- ##
1752 ## File substitutions. ##
1753 ## ------------------- ##
1756 for ac_var in $ac_subst_files
1758 eval ac_val=\$$ac_var
1760 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762 echo "$ac_var='\''$ac_val'\''"
1767 if test -s confdefs.h; then
1777 test "$ac_signal" != 0 &&
1778 echo "$as_me: caught signal $ac_signal"
1779 echo "$as_me: exit $exit_status"
1781 rm -f core *.core core.conftest.* &&
1782 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1785 for ac_signal in 1 2 13 15; do
1786 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1790 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1791 rm -f -r conftest* confdefs.h
1793 # Predefined preprocessor variables.
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_NAME "$PACKAGE_NAME"
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_STRING "$PACKAGE_STRING"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1820 # Let the site file select an alternate cache file if it wants to.
1821 # Prefer explicitly selected file to automatically selected ones.
1822 if test -n "$CONFIG_SITE"; then
1823 set x "$CONFIG_SITE"
1824 elif test "x$prefix" != xNONE; then
1825 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1827 set x "$ac_default_prefix/share/config.site" \
1828 "$ac_default_prefix/etc/config.site"
1833 if test -r "$ac_site_file"; then
1834 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1835 echo "$as_me: loading site script $ac_site_file" >&6;}
1836 sed 's/^/| /' "$ac_site_file" >&5
1841 if test -r "$cache_file"; then
1842 # Some versions of bash will fail to source /dev/null (special
1843 # files actually), so we avoid doing that.
1844 if test -f "$cache_file"; then
1845 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1846 echo "$as_me: loading cache $cache_file" >&6;}
1848 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1849 *) . "./$cache_file";;
1853 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1854 echo "$as_me: creating cache $cache_file" >&6;}
1858 # Check that the precious variables saved in the cache have kept the same
1860 ac_cache_corrupted=false
1861 for ac_var in $ac_precious_vars; do
1862 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1863 eval ac_new_set=\$ac_env_${ac_var}_set
1864 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1865 eval ac_new_val=\$ac_env_${ac_var}_value
1866 case $ac_old_set,$ac_new_set in
1868 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1869 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1870 ac_cache_corrupted=: ;;
1872 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1873 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1874 ac_cache_corrupted=: ;;
1877 if test "x$ac_old_val" != "x$ac_new_val"; then
1878 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1879 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1880 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1881 echo "$as_me: former value: $ac_old_val" >&2;}
1882 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1883 echo "$as_me: current value: $ac_new_val" >&2;}
1884 ac_cache_corrupted=:
1887 # Pass precious variables to config.status.
1888 if test "$ac_new_set" = set; then
1890 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1891 *) ac_arg=$ac_var=$ac_new_val ;;
1893 case " $ac_configure_args " in
1894 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1895 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1899 if $ac_cache_corrupted; then
1900 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1901 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1902 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1903 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1904 { (exit 1); exit 1; }; }
1924 ac_cpp='$CPP $CPPFLAGS'
1925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1931 test -d h || mkdir h
1932 test -d h/zephyr || mkdir h/zephyr
1934 test -z "$lbindir" && lbindir='${bindir}'
1935 test -z "$lsbindir" && lsbindir='${sbindir}'
1940 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1941 if test -f "$ac_dir/install-sh"; then
1943 ac_install_sh="$ac_aux_dir/install-sh -c"
1945 elif test -f "$ac_dir/install.sh"; then
1947 ac_install_sh="$ac_aux_dir/install.sh -c"
1949 elif test -f "$ac_dir/shtool"; then
1951 ac_install_sh="$ac_aux_dir/shtool install -c"
1955 if test -z "$ac_aux_dir"; then
1956 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1957 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1958 { (exit 1); exit 1; }; }
1961 # These three variables are undocumented and unsupported,
1962 # and are intended to be withdrawn in a future Autoconf release.
1963 # They can cause serious problems if a builder's source tree is in a directory
1964 # whose full name contains unusual characters.
1965 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1966 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1967 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1970 # Make sure we can run config.sub.
1971 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1972 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1973 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1974 { (exit 1); exit 1; }; }
1976 { echo "$as_me:$LINENO: checking build system type" >&5
1977 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1978 if test "${ac_cv_build+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 ac_build_alias=$build_alias
1982 test "x$ac_build_alias" = x &&
1983 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1984 test "x$ac_build_alias" = x &&
1985 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1986 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1987 { (exit 1); exit 1; }; }
1988 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1989 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1990 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1991 { (exit 1); exit 1; }; }
1994 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1995 echo "${ECHO_T}$ac_cv_build" >&6; }
1996 case $ac_cv_build in
1998 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1999 echo "$as_me: error: invalid value of canonical build" >&2;}
2000 { (exit 1); exit 1; }; };;
2003 ac_save_IFS=$IFS; IFS='-'
2009 # Remember, the first character of IFS is used to create $*,
2010 # except with old shells:
2013 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2016 { echo "$as_me:$LINENO: checking host system type" >&5
2017 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2018 if test "${ac_cv_host+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 if test "x$host_alias" = x; then
2022 ac_cv_host=$ac_cv_build
2024 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2025 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2026 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2027 { (exit 1); exit 1; }; }
2031 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2032 echo "${ECHO_T}$ac_cv_host" >&6; }
2035 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2036 echo "$as_me: error: invalid value of canonical host" >&2;}
2037 { (exit 1); exit 1; }; };;
2040 ac_save_IFS=$IFS; IFS='-'
2046 # Remember, the first character of IFS is used to create $*,
2047 # except with old shells:
2050 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2053 { echo "$as_me:$LINENO: checking target system type" >&5
2054 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2055 if test "${ac_cv_target+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test "x$target_alias" = x; then
2059 ac_cv_target=$ac_cv_host
2061 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2062 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2063 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2064 { (exit 1); exit 1; }; }
2068 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2069 echo "${ECHO_T}$ac_cv_target" >&6; }
2070 case $ac_cv_target in
2072 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2073 echo "$as_me: error: invalid value of canonical target" >&2;}
2074 { (exit 1); exit 1; }; };;
2076 target=$ac_cv_target
2077 ac_save_IFS=$IFS; IFS='-'
2083 # Remember, the first character of IFS is used to create $*,
2084 # except with old shells:
2087 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2090 # The aliases save the names the user supplied, while $host etc.
2091 # will get canonicalized.
2092 test -n "$target_alias" &&
2093 test "$program_prefix$program_suffix$program_transform_name" = \
2095 program_prefix=${target_alias}-
2096 cat >>confdefs.h <<_ACEOF
2097 #define MACHINE_TYPE "$host"
2102 ac_cpp='$CPP $CPPFLAGS'
2103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2106 if test -n "$ac_tool_prefix"; then
2107 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2108 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2111 if test "${ac_cv_prog_CC+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 if test -n "$CC"; then
2115 ac_cv_prog_CC="$CC" # Let the user override the test.
2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 test -z "$as_dir" && as_dir=.
2122 for ac_exec_ext in '' $ac_executable_extensions; do
2123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2124 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 if test -n "$CC"; then
2136 { echo "$as_me:$LINENO: result: $CC" >&5
2137 echo "${ECHO_T}$CC" >&6; }
2139 { echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6; }
2145 if test -z "$ac_cv_prog_CC"; then
2147 # Extract the first word of "gcc", so it can be a program name with args.
2148 set dummy gcc; ac_word=$2
2149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2151 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 if test -n "$ac_ct_CC"; then
2155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 test -z "$as_dir" && as_dir=.
2162 for ac_exec_ext in '' $ac_executable_extensions; do
2163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2164 ac_cv_prog_ac_ct_CC="gcc"
2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2175 if test -n "$ac_ct_CC"; then
2176 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2177 echo "${ECHO_T}$ac_ct_CC" >&6; }
2179 { echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6; }
2183 if test "x$ac_ct_CC" = x; then
2186 case $cross_compiling:$ac_tool_warned in
2188 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2189 whose name does not start with the host triplet. If you think this
2190 configuration is useful to you, please write to autoconf@gnu.org." >&5
2191 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2192 whose name does not start with the host triplet. If you think this
2193 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2194 ac_tool_warned=yes ;;
2202 if test -z "$CC"; then
2203 if test -n "$ac_tool_prefix"; then
2204 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2205 set dummy ${ac_tool_prefix}cc; ac_word=$2
2206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2208 if test "${ac_cv_prog_CC+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 if test -n "$CC"; then
2212 ac_cv_prog_CC="$CC" # Let the user override the test.
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 test -z "$as_dir" && as_dir=.
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2221 ac_cv_prog_CC="${ac_tool_prefix}cc"
2222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 if test -n "$CC"; then
2233 { echo "$as_me:$LINENO: result: $CC" >&5
2234 echo "${ECHO_T}$CC" >&6; }
2236 { echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6; }
2243 if test -z "$CC"; then
2244 # Extract the first word of "cc", so it can be a program name with args.
2245 set dummy cc; ac_word=$2
2246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2248 if test "${ac_cv_prog_CC+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 if test -n "$CC"; then
2252 ac_cv_prog_CC="$CC" # Let the user override the test.
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 test -z "$as_dir" && as_dir=.
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2262 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2263 ac_prog_rejected=yes
2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 if test $ac_prog_rejected = yes; then
2275 # We found a bogon in the path, so make sure we never use it.
2276 set dummy $ac_cv_prog_CC
2278 if test $# != 0; then
2279 # We chose a different compiler from the bogus one.
2280 # However, it has the same basename, so the bogon will be chosen
2281 # first if we set CC to just the basename; use the full file name.
2283 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2289 if test -n "$CC"; then
2290 { echo "$as_me:$LINENO: result: $CC" >&5
2291 echo "${ECHO_T}$CC" >&6; }
2293 { echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6; }
2299 if test -z "$CC"; then
2300 if test -n "$ac_tool_prefix"; then
2301 for ac_prog in cl.exe
2303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2304 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2307 if test "${ac_cv_prog_CC+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 if test -n "$CC"; then
2311 ac_cv_prog_CC="$CC" # Let the user override the test.
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2320 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2331 if test -n "$CC"; then
2332 { echo "$as_me:$LINENO: result: $CC" >&5
2333 echo "${ECHO_T}$CC" >&6; }
2335 { echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6; }
2340 test -n "$CC" && break
2343 if test -z "$CC"; then
2345 for ac_prog in cl.exe
2347 # Extract the first word of "$ac_prog", so it can be a program name with args.
2348 set dummy $ac_prog; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 if test -n "$ac_ct_CC"; then
2355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_ac_ct_CC="$ac_prog"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2375 if test -n "$ac_ct_CC"; then
2376 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2377 echo "${ECHO_T}$ac_ct_CC" >&6; }
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2384 test -n "$ac_ct_CC" && break
2387 if test "x$ac_ct_CC" = x; then
2390 case $cross_compiling:$ac_tool_warned in
2392 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2393 whose name does not start with the host triplet. If you think this
2394 configuration is useful to you, please write to autoconf@gnu.org." >&5
2395 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2396 whose name does not start with the host triplet. If you think this
2397 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2398 ac_tool_warned=yes ;;
2407 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2408 See \`config.log' for more details." >&5
2409 echo "$as_me: error: no acceptable C compiler found in \$PATH
2410 See \`config.log' for more details." >&2;}
2411 { (exit 1); exit 1; }; }
2413 # Provide some information about the compiler.
2414 echo "$as_me:$LINENO: checking for C compiler version" >&5
2415 ac_compiler=`set X $ac_compile; echo $2`
2416 { (ac_try="$ac_compiler --version >&5"
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422 (eval "$ac_compiler --version >&5") 2>&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }
2426 { (ac_try="$ac_compiler -v >&5"
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432 (eval "$ac_compiler -v >&5") 2>&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }
2436 { (ac_try="$ac_compiler -V >&5"
2438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439 *) ac_try_echo=$ac_try;;
2441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2442 (eval "$ac_compiler -V >&5") 2>&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }
2447 cat >conftest.$ac_ext <<_ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2462 ac_clean_files_save=$ac_clean_files
2463 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2464 # Try to create an executable without -o first, disregard a.out.
2465 # It will help us diagnose broken compilers, and finding out an intuition
2467 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2468 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2469 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2471 # List of possible output files, starting from the most likely.
2472 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2473 # only as a last resort. b.out is created by i960 compilers.
2474 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2476 # The IRIX 6 linker writes into existing files which may not be
2477 # executable, retaining their permissions. Remove them first so a
2478 # subsequent execution test works.
2480 for ac_file in $ac_files
2483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2484 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2489 if { (ac_try="$ac_link_default"
2491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492 *) ac_try_echo=$ac_try;;
2494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2495 (eval "$ac_link_default") 2>&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; then
2499 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2500 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2501 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2502 # so that the user can short-circuit this test for compilers unknown to
2504 for ac_file in $ac_files ''
2506 test -f "$ac_file" || continue
2508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2511 # We found the default executable, but exeext='' is most
2515 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2517 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2519 # We set ac_cv_exeext here because the later test for it is not
2520 # safe: cross compilers may not add the suffix if given an `-o'
2521 # argument, so we may need to know it at that point already.
2522 # Even if this section looks crufty: it has the advantage of
2529 test "$ac_cv_exeext" = no && ac_cv_exeext=
2535 { echo "$as_me:$LINENO: result: $ac_file" >&5
2536 echo "${ECHO_T}$ac_file" >&6; }
2537 if test -z "$ac_file"; then
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2541 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2542 See \`config.log' for more details." >&5
2543 echo "$as_me: error: C compiler cannot create executables
2544 See \`config.log' for more details." >&2;}
2545 { (exit 77); exit 77; }; }
2548 ac_exeext=$ac_cv_exeext
2550 # Check that the compiler produces executables we can run. If not, either
2551 # the compiler is broken, or we cross compile.
2552 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2553 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2554 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2555 # If not cross compiling, check that we can run a simple program.
2556 if test "$cross_compiling" != yes; then
2557 if { ac_try='./$ac_file'
2558 { (case "(($ac_try" in
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2563 (eval "$ac_try") 2>&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2569 if test "$cross_compiling" = maybe; then
2572 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2573 If you meant to cross compile, use \`--host'.
2574 See \`config.log' for more details." >&5
2575 echo "$as_me: error: cannot run C compiled programs.
2576 If you meant to cross compile, use \`--host'.
2577 See \`config.log' for more details." >&2;}
2578 { (exit 1); exit 1; }; }
2582 { echo "$as_me:$LINENO: result: yes" >&5
2583 echo "${ECHO_T}yes" >&6; }
2585 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2586 ac_clean_files=$ac_clean_files_save
2587 # Check that the compiler produces executables we can run. If not, either
2588 # the compiler is broken, or we cross compile.
2589 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2590 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2591 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2592 echo "${ECHO_T}$cross_compiling" >&6; }
2594 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2595 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2596 if { (ac_try="$ac_link"
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_link") 2>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; then
2606 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2607 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2608 # work properly (i.e., refer to `conftest.exe'), while it won't with
2610 for ac_file in conftest.exe conftest conftest.*; do
2611 test -f "$ac_file" || continue
2613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2614 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2620 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2623 See \`config.log' for more details." >&2;}
2624 { (exit 1); exit 1; }; }
2627 rm -f conftest$ac_cv_exeext
2628 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2629 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2631 rm -f conftest.$ac_ext
2632 EXEEXT=$ac_cv_exeext
2634 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2635 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2636 if test "${ac_cv_objext+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 cat >conftest.$ac_ext <<_ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2654 rm -f conftest.o conftest.obj
2655 if { (ac_try="$ac_compile"
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_compile") 2>&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; then
2665 for ac_file in conftest.o conftest.obj conftest.*; do
2666 test -f "$ac_file" || continue;
2668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2669 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2677 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2678 See \`config.log' for more details." >&5
2679 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2680 See \`config.log' for more details." >&2;}
2681 { (exit 1); exit 1; }; }
2684 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2686 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2687 echo "${ECHO_T}$ac_cv_objext" >&6; }
2688 OBJEXT=$ac_cv_objext
2690 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2691 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2692 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2695 cat >conftest.$ac_ext <<_ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h. */
2713 rm -f conftest.$ac_objext
2714 if { (ac_try="$ac_compile"
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compile") 2>conftest.er1
2722 grep -v '^ *+' conftest.er1 >conftest.err
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } && {
2727 test -z "$ac_c_werror_flag" ||
2728 test ! -s conftest.err
2729 } && test -s conftest.$ac_objext; then
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2742 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2743 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2744 GCC=`test $ac_compiler_gnu = yes && echo yes`
2745 ac_test_CFLAGS=${CFLAGS+set}
2746 ac_save_CFLAGS=$CFLAGS
2747 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2748 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2749 if test "${ac_cv_prog_cc_g+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 ac_save_c_werror_flag=$ac_c_werror_flag
2753 ac_c_werror_flag=yes
2756 cat >conftest.$ac_ext <<_ACEOF
2759 cat confdefs.h >>conftest.$ac_ext
2760 cat >>conftest.$ac_ext <<_ACEOF
2761 /* end confdefs.h. */
2771 rm -f conftest.$ac_objext
2772 if { (ac_try="$ac_compile"
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_compile") 2>conftest.er1
2780 grep -v '^ *+' conftest.er1 >conftest.err
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } && {
2785 test -z "$ac_c_werror_flag" ||
2786 test ! -s conftest.err
2787 } && test -s conftest.$ac_objext; then
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2794 cat >conftest.$ac_ext <<_ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2809 rm -f conftest.$ac_objext
2810 if { (ac_try="$ac_compile"
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_compile") 2>conftest.er1
2818 grep -v '^ *+' conftest.er1 >conftest.err
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } && {
2823 test -z "$ac_c_werror_flag" ||
2824 test ! -s conftest.err
2825 } && test -s conftest.$ac_objext; then
2828 echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2831 ac_c_werror_flag=$ac_save_c_werror_flag
2833 cat >conftest.$ac_ext <<_ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2848 rm -f conftest.$ac_objext
2849 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2857 grep -v '^ *+' conftest.er1 >conftest.err
2859 cat conftest.err >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } && {
2862 test -z "$ac_c_werror_flag" ||
2863 test ! -s conftest.err
2864 } && test -s conftest.$ac_objext; then
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880 ac_c_werror_flag=$ac_save_c_werror_flag
2882 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2883 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2884 if test "$ac_test_CFLAGS" = set; then
2885 CFLAGS=$ac_save_CFLAGS
2886 elif test $ac_cv_prog_cc_g = yes; then
2887 if test "$GCC" = yes; then
2893 if test "$GCC" = yes; then
2899 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2900 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2901 if test "${ac_cv_prog_cc_c89+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2904 ac_cv_prog_cc_c89=no
2906 cat >conftest.$ac_ext <<_ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2914 #include <sys/types.h>
2915 #include <sys/stat.h>
2916 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2917 struct buf { int x; };
2918 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2919 static char *e (p, i)
2925 static char *f (char * (*g) (char **, int), char **p, ...)
2930 s = g (p, va_arg (v,int));
2935 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2936 function prototypes and stuff, but not '\xHH' hex character constants.
2937 These don't provoke an error unfortunately, instead are silently treated
2938 as 'x'. The following induces an error, until -std is added to get
2939 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2940 array size at least. It's necessary to write '\x00'==0 to get something
2941 that's true only with -std. */
2942 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2944 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2945 inside strings and character constants. */
2947 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2949 int test (int i, double x);
2950 struct s1 {int (*f) (int a);};
2951 struct s2 {int (*f) (double a);};
2952 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2958 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2963 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2964 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2966 CC="$ac_save_CC $ac_arg"
2967 rm -f conftest.$ac_objext
2968 if { (ac_try="$ac_compile"
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compile") 2>conftest.er1
2976 grep -v '^ *+' conftest.er1 >conftest.err
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } && {
2981 test -z "$ac_c_werror_flag" ||
2982 test ! -s conftest.err
2983 } && test -s conftest.$ac_objext; then
2984 ac_cv_prog_cc_c89=$ac_arg
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2992 rm -f core conftest.err conftest.$ac_objext
2993 test "x$ac_cv_prog_cc_c89" != "xno" && break
2995 rm -f conftest.$ac_ext
3000 case "x$ac_cv_prog_cc_c89" in
3002 { echo "$as_me:$LINENO: result: none needed" >&5
3003 echo "${ECHO_T}none needed" >&6; } ;;
3005 { echo "$as_me:$LINENO: result: unsupported" >&5
3006 echo "${ECHO_T}unsupported" >&6; } ;;
3008 CC="$CC $ac_cv_prog_cc_c89"
3009 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3010 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3015 ac_cpp='$CPP $CPPFLAGS'
3016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 for ac_prog in 'bison -y' byacc
3022 # Extract the first word of "$ac_prog", so it can be a program name with args.
3023 set dummy $ac_prog; ac_word=$2
3024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3026 if test "${ac_cv_prog_YACC+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 if test -n "$YACC"; then
3030 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039 ac_cv_prog_YACC="$ac_prog"
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 YACC=$ac_cv_prog_YACC
3050 if test -n "$YACC"; then
3051 { echo "$as_me:$LINENO: result: $YACC" >&5
3052 echo "${ECHO_T}$YACC" >&6; }
3054 { echo "$as_me:$LINENO: result: no" >&5
3055 echo "${ECHO_T}no" >&6; }
3059 test -n "$YACC" && break
3061 test -n "$YACC" || YACC="yacc"
3064 for ac_prog in flex lex
3066 # Extract the first word of "$ac_prog", so it can be a program name with args.
3067 set dummy $ac_prog; ac_word=$2
3068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3070 if test "${ac_cv_prog_LEX+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 if test -n "$LEX"; then
3074 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083 ac_cv_prog_LEX="$ac_prog"
3084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 if test -n "$LEX"; then
3095 { echo "$as_me:$LINENO: result: $LEX" >&5
3096 echo "${ECHO_T}$LEX" >&6; }
3098 { echo "$as_me:$LINENO: result: no" >&5
3099 echo "${ECHO_T}no" >&6; }
3103 test -n "$LEX" && break
3105 test -n "$LEX" || LEX=":"
3107 if test "x$LEX" != "x:"; then
3108 cat >conftest.l <<_ACEOF
3114 e { yyless (input () != 0); }
3115 f { unput (yytext[0]); }
3116 . { BEGIN INITIAL; }
3118 #ifdef YYTEXT_POINTER
3119 extern char *yytext;
3124 return ! yylex () + ! yywrap ();
3127 { (ac_try="$LEX conftest.l"
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$LEX conftest.l") 2>&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }
3137 { echo "$as_me:$LINENO: checking lex output file root" >&5
3138 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
3139 if test "${ac_cv_prog_lex_root+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 if test -f lex.yy.c; then
3144 ac_cv_prog_lex_root=lex.yy
3145 elif test -f lexyy.c; then
3146 ac_cv_prog_lex_root=lexyy
3148 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3149 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3150 { (exit 1); exit 1; }; }
3153 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3154 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
3155 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3157 if test -z "${LEXLIB+set}"; then
3158 { echo "$as_me:$LINENO: checking lex library" >&5
3159 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
3160 if test "${ac_cv_lib_lex+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 ac_cv_lib_lex='none needed'
3166 for ac_lib in '' -lfl -ll; do
3167 LIBS="$ac_lib $ac_save_LIBS"
3168 cat >conftest.$ac_ext <<_ACEOF
3169 `cat $LEX_OUTPUT_ROOT.c`
3171 rm -f conftest.$ac_objext conftest$ac_exeext
3172 if { (ac_try="$ac_link"
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_link") 2>conftest.er1
3180 grep -v '^ *+' conftest.er1 >conftest.err
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } && {
3185 test -z "$ac_c_werror_flag" ||
3186 test ! -s conftest.err
3187 } && test -s conftest$ac_exeext &&
3188 $as_test_x conftest$ac_exeext; then
3189 ac_cv_lib_lex=$ac_lib
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3198 conftest$ac_exeext conftest.$ac_ext
3199 test "$ac_cv_lib_lex" != 'none needed' && break
3204 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
3205 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
3206 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3210 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3211 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
3212 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 # POSIX says lex can declare yytext either as a pointer or an array; the
3216 # default is implementation-dependent. Figure out which it is, since
3217 # not all implementations provide the %pointer and %array declarations.
3218 ac_cv_prog_lex_yytext_pointer=no
3220 LIBS="$LEXLIB $ac_save_LIBS"
3221 cat >conftest.$ac_ext <<_ACEOF
3222 #define YYTEXT_POINTER 1
3223 `cat $LEX_OUTPUT_ROOT.c`
3225 rm -f conftest.$ac_objext conftest$ac_exeext
3226 if { (ac_try="$ac_link"
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_link") 2>conftest.er1
3234 grep -v '^ *+' conftest.er1 >conftest.err
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } && {
3239 test -z "$ac_c_werror_flag" ||
3240 test ! -s conftest.err
3241 } && test -s conftest$ac_exeext &&
3242 $as_test_x conftest$ac_exeext; then
3243 ac_cv_prog_lex_yytext_pointer=yes
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3252 conftest$ac_exeext conftest.$ac_ext
3256 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3257 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
3258 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3260 cat >>confdefs.h <<\_ACEOF
3261 #define YYTEXT_POINTER 1
3265 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3268 # Find a good install program. We prefer a C program (faster),
3269 # so one script is as good as another. But avoid the broken or
3270 # incompatible versions:
3271 # SysV /etc/install, /usr/sbin/install
3272 # SunOS /usr/etc/install
3273 # IRIX /sbin/install
3275 # AmigaOS /C/install, which installs bootblocks on floppy discs
3276 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3277 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3278 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3279 # OS/2's system install, which has a completely different semantic
3280 # ./install, which can be erroneously created by make from ./install.sh.
3281 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3282 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3283 if test -z "$INSTALL"; then
3284 if test "${ac_cv_path_install+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 test -z "$as_dir" && as_dir=.
3292 # Account for people who put trailing slashes in PATH elements.
3294 ./ | .// | /cC/* | \
3295 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3296 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3299 # OSF1 and SCO ODT 3.0 have their own names for install.
3300 # Don't use installbsd from OSF since it installs stuff as root
3302 for ac_prog in ginstall scoinst install; do
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3305 if test $ac_prog = install &&
3306 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3307 # AIX install. It has an incompatible calling convention.
3309 elif test $ac_prog = install &&
3310 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3311 # program-specific install script used by HP pwplus--don't use.
3314 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3327 if test "${ac_cv_path_install+set}" = set; then
3328 INSTALL=$ac_cv_path_install
3330 # As a last resort, use the slow shell script. Don't cache a
3331 # value for INSTALL within a source directory, because that will
3332 # break other packages using the cache if that directory is
3333 # removed, or if the value is a relative name.
3334 INSTALL=$ac_install_sh
3337 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3338 echo "${ECHO_T}$INSTALL" >&6; }
3340 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3341 # It thinks the first close brace ends the variable substitution.
3342 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3344 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3346 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3348 if test -n "$ac_tool_prefix"; then
3349 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3350 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3353 if test "${ac_cv_prog_RANLIB+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 if test -n "$RANLIB"; then
3357 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3366 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 RANLIB=$ac_cv_prog_RANLIB
3377 if test -n "$RANLIB"; then
3378 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3379 echo "${ECHO_T}$RANLIB" >&6; }
3381 { echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6; }
3387 if test -z "$ac_cv_prog_RANLIB"; then
3388 ac_ct_RANLIB=$RANLIB
3389 # Extract the first word of "ranlib", so it can be a program name with args.
3390 set dummy ranlib; ac_word=$2
3391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3393 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 if test -n "$ac_ct_RANLIB"; then
3397 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3406 ac_cv_prog_ac_ct_RANLIB="ranlib"
3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3417 if test -n "$ac_ct_RANLIB"; then
3418 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3419 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3421 { echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6; }
3425 if test "x$ac_ct_RANLIB" = x; then
3428 case $cross_compiling:$ac_tool_warned in
3430 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3431 whose name does not start with the host triplet. If you think this
3432 configuration is useful to you, please write to autoconf@gnu.org." >&5
3433 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3434 whose name does not start with the host triplet. If you think this
3435 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3436 ac_tool_warned=yes ;;
3438 RANLIB=$ac_ct_RANLIB
3441 RANLIB="$ac_cv_prog_RANLIB"
3444 # Check whether --enable-shared was given.
3445 if test "${enable_shared+set}" = set; then
3446 enableval=$enable_shared; p=${PACKAGE-default}
3448 yes) enable_shared=yes ;;
3449 no) enable_shared=no ;;
3452 # Look at the argument we got. We use all the common list separators.
3453 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3454 for pkg in $enableval; do
3456 if test "X$pkg" = "X$p"; then
3468 # Check whether --enable-static was given.
3469 if test "${enable_static+set}" = set; then
3470 enableval=$enable_static; p=${PACKAGE-default}
3472 yes) enable_static=yes ;;
3473 no) enable_static=no ;;
3476 # Look at the argument we got. We use all the common list separators.
3477 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3478 for pkg in $enableval; do
3480 if test "X$pkg" = "X$p"; then
3492 # Check whether --enable-fast-install was given.
3493 if test "${enable_fast_install+set}" = set; then
3494 enableval=$enable_fast_install; p=${PACKAGE-default}
3496 yes) enable_fast_install=yes ;;
3497 no) enable_fast_install=no ;;
3499 enable_fast_install=no
3500 # Look at the argument we got. We use all the common list separators.
3501 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3502 for pkg in $enableval; do
3504 if test "X$pkg" = "X$p"; then
3505 enable_fast_install=yes
3512 enable_fast_install=yes
3516 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3517 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3518 if test "${lt_cv_path_SED+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 # Loop through the user's path and test for sed and gsed.
3522 # Then use that list of sed's as ones to test for truncation.
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 test -z "$as_dir" && as_dir=.
3528 for lt_ac_prog in sed gsed; do
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3531 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3538 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3539 # along with /bin/sed that truncates output.
3540 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3541 test ! -f $lt_ac_sed && break
3542 cat /dev/null > conftest.in
3544 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3545 # Check for GNU sed and select it if it is found.
3546 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3547 lt_cv_path_SED=$lt_ac_sed
3551 cat conftest.in conftest.in >conftest.tmp
3552 mv conftest.tmp conftest.in
3553 cp conftest.in conftest.nl
3555 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3556 cmp -s conftest.out conftest.nl || break
3557 # 10000 chars as input seems more than enough
3558 test $lt_ac_count -gt 10 && break
3559 lt_ac_count=`expr $lt_ac_count + 1`
3560 if test $lt_ac_count -gt $lt_ac_max; then
3561 lt_ac_max=$lt_ac_count
3562 lt_cv_path_SED=$lt_ac_sed
3570 { echo "$as_me:$LINENO: result: $SED" >&5
3571 echo "${ECHO_T}$SED" >&6; }
3573 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3574 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3575 if test "${ac_cv_path_GREP+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 # Extract the first word of "grep ggrep" to use in msg output
3579 if test -z "$GREP"; then
3580 set dummy grep ggrep; ac_prog_name=$2
3581 if test "${ac_cv_path_GREP+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 ac_path_GREP_found=false
3585 # Loop through the user's path and test for each of PROGNAME-LIST
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3590 test -z "$as_dir" && as_dir=.
3591 for ac_prog in grep ggrep; do
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3594 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3595 # Check for GNU ac_path_GREP and select it if it is found.
3596 # Check for GNU $ac_path_GREP
3597 case `"$ac_path_GREP" --version 2>&1` in
3599 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3602 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3605 cat "conftest.in" "conftest.in" >"conftest.tmp"
3606 mv "conftest.tmp" "conftest.in"
3607 cp "conftest.in" "conftest.nl"
3608 echo 'GREP' >> "conftest.nl"
3609 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3611 ac_count=`expr $ac_count + 1`
3612 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3613 # Best one so far, save it but keep looking for a better one
3614 ac_cv_path_GREP="$ac_path_GREP"
3615 ac_path_GREP_max=$ac_count
3617 # 10*(2^10) chars as input seems more than enough
3618 test $ac_count -gt 10 && break
3620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3624 $ac_path_GREP_found && break 3
3634 GREP="$ac_cv_path_GREP"
3635 if test -z "$GREP"; then
3636 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3637 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3638 { (exit 1); exit 1; }; }
3642 ac_cv_path_GREP=$GREP
3647 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3648 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3649 GREP="$ac_cv_path_GREP"
3652 { echo "$as_me:$LINENO: checking for egrep" >&5
3653 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3654 if test "${ac_cv_path_EGREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3658 then ac_cv_path_EGREP="$GREP -E"
3660 # Extract the first word of "egrep" to use in msg output
3661 if test -z "$EGREP"; then
3662 set dummy egrep; ac_prog_name=$2
3663 if test "${ac_cv_path_EGREP+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 ac_path_EGREP_found=false
3667 # Loop through the user's path and test for each of PROGNAME-LIST
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3672 test -z "$as_dir" && as_dir=.
3673 for ac_prog in egrep; do
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3676 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3677 # Check for GNU ac_path_EGREP and select it if it is found.
3678 # Check for GNU $ac_path_EGREP
3679 case `"$ac_path_EGREP" --version 2>&1` in
3681 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3684 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3687 cat "conftest.in" "conftest.in" >"conftest.tmp"
3688 mv "conftest.tmp" "conftest.in"
3689 cp "conftest.in" "conftest.nl"
3690 echo 'EGREP' >> "conftest.nl"
3691 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3693 ac_count=`expr $ac_count + 1`
3694 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3695 # Best one so far, save it but keep looking for a better one
3696 ac_cv_path_EGREP="$ac_path_EGREP"
3697 ac_path_EGREP_max=$ac_count
3699 # 10*(2^10) chars as input seems more than enough
3700 test $ac_count -gt 10 && break
3702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3706 $ac_path_EGREP_found && break 3
3716 EGREP="$ac_cv_path_EGREP"
3717 if test -z "$EGREP"; then
3718 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3719 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3720 { (exit 1); exit 1; }; }
3724 ac_cv_path_EGREP=$EGREP
3730 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3731 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3732 EGREP="$ac_cv_path_EGREP"
3736 # Check whether --with-gnu-ld was given.
3737 if test "${with_gnu_ld+set}" = set; then
3738 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3744 if test "$GCC" = yes; then
3745 # Check if gcc -print-prog-name=ld gives a path.
3746 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3747 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3750 # gcc leaves a trailing carriage return which upsets mingw
3751 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3753 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3756 # Accept absolute paths.
3758 re_direlt='/[^/][^/]*/\.\./'
3759 # Canonicalize the pathname of ld
3760 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3761 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3762 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3764 test -z "$LD" && LD="$ac_prog"
3767 # If it fails, then pretend we aren't using GCC.
3771 # If it is relative, then search for the first ld in PATH.
3775 elif test "$with_gnu_ld" = yes; then
3776 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3777 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3779 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3780 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3782 if test "${lt_cv_path_LD+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 if test -z "$LD"; then
3786 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3787 for ac_dir in $PATH; do
3789 test -z "$ac_dir" && ac_dir=.
3790 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3791 lt_cv_path_LD="$ac_dir/$ac_prog"
3792 # Check to see if the program is GNU ld. I'd rather use --version,
3793 # but apparently some GNU ld's only accept -v.
3794 # Break only if it was the GNU/non-GNU ld that we prefer.
3795 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3796 *GNU* | *'with BFD'*)
3797 test "$with_gnu_ld" != no && break
3800 test "$with_gnu_ld" != yes && break
3807 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3812 if test -n "$LD"; then
3813 { echo "$as_me:$LINENO: result: $LD" >&5
3814 echo "${ECHO_T}$LD" >&6; }
3816 { echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6; }
3819 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3820 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3821 { (exit 1); exit 1; }; }
3822 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3823 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3824 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3828 case `$LD -v 2>&1 </dev/null` in
3829 *GNU* | *'with BFD'*)
3830 lt_cv_prog_gnu_ld=yes
3833 lt_cv_prog_gnu_ld=no
3837 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3838 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3839 with_gnu_ld=$lt_cv_prog_gnu_ld
3842 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3843 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3844 if test "${lt_cv_ld_reload_flag+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 lt_cv_ld_reload_flag='-r'
3849 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3850 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3851 reload_flag=$lt_cv_ld_reload_flag
3852 case $reload_flag in
3854 *) reload_flag=" $reload_flag" ;;
3856 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3858 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3859 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3860 if test "${lt_cv_path_NM+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 if test -n "$NM"; then
3864 # Let the user override the test.
3867 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3868 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3870 test -z "$ac_dir" && ac_dir=.
3871 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3872 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3873 # Check to see if the nm accepts a BSD-compat flag.
3874 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3875 # nm: unknown option "B" ignored
3876 # Tru64's nm complains that /dev/null is an invalid object file
3877 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3878 */dev/null* | *'Invalid file or object type'*)
3879 lt_cv_path_NM="$tmp_nm -B"
3883 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3885 lt_cv_path_NM="$tmp_nm -p"
3889 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3890 continue # so that we can try to find one that supports BSD flags
3897 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3900 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3901 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3904 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3905 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3907 if test "$LN_S" = "ln -s"; then
3908 { echo "$as_me:$LINENO: result: yes" >&5
3909 echo "${ECHO_T}yes" >&6; }
3911 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3912 echo "${ECHO_T}no, using $LN_S" >&6; }
3915 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3916 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3917 if test "${lt_cv_deplibs_check_method+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 lt_cv_file_magic_cmd='$MAGIC_CMD'
3921 lt_cv_file_magic_test_file=
3922 lt_cv_deplibs_check_method='unknown'
3923 # Need to set the preceding variable on all platforms that support
3924 # interlibrary dependencies.
3925 # 'none' -- dependencies not supported.
3926 # `unknown' -- same as none, but documents that we really don't know.
3927 # 'pass_all' -- all dependencies passed with no checks.
3928 # 'test_compile' -- check by making test program.
3929 # 'file_magic [[regex]]' -- check by looking for files in library path
3930 # which responds to the $file_magic_cmd with a given extended regex.
3931 # If you have `file' or equivalent on your system and you're not sure
3932 # whether `pass_all' will *always* work, you probably want this one.
3936 lt_cv_deplibs_check_method=pass_all
3940 lt_cv_deplibs_check_method=pass_all
3944 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3945 lt_cv_file_magic_cmd='/usr/bin/file -L'
3946 lt_cv_file_magic_test_file=/shlib/libc.so
3950 # func_win32_libid is a shell function defined in ltmain.sh
3951 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3952 lt_cv_file_magic_cmd='func_win32_libid'
3956 # Base MSYS/MinGW do not provide the 'file' command needed by
3957 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3958 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3959 lt_cv_file_magic_cmd='$OBJDUMP -f'
3962 darwin* | rhapsody*)
3963 lt_cv_deplibs_check_method=pass_all
3966 freebsd* | kfreebsd*-gnu)
3967 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3970 # Not sure whether the presence of OpenBSD here was a mistake.
3971 # Let's accept both of them until this is cleared up.
3972 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3973 lt_cv_file_magic_cmd=/usr/bin/file
3974 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3978 lt_cv_deplibs_check_method=pass_all
3983 lt_cv_deplibs_check_method=pass_all
3986 hpux10.20* | hpux11*)
3987 lt_cv_file_magic_cmd=/usr/bin/file
3990 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3991 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3994 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]'
3995 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3998 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3999 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4004 irix5* | irix6* | nonstopux*)
4006 *-32|*"-32 ") libmagic=32-bit;;
4007 *-n32|*"-n32 ") libmagic=N32;;
4008 *-64|*"-64 ") libmagic=64-bit;;
4009 *) libmagic=never-match;;
4011 lt_cv_deplibs_check_method=pass_all
4014 # This must be Linux ELF.
4017 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
4018 lt_cv_deplibs_check_method=pass_all ;;
4020 # glibc up to 2.1.1 does not perform some relocations on ARM
4021 # this will be overridden with pass_all, but let us keep it just in case
4022 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4024 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4025 lt_cv_deplibs_check_method=pass_all
4029 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4037 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4038 lt_cv_file_magic_cmd=/usr/bin/file
4039 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4043 lt_cv_deplibs_check_method=unknown
4047 lt_cv_file_magic_cmd=/usr/bin/file
4048 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4049 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4052 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4056 osf3* | osf4* | osf5*)
4057 lt_cv_deplibs_check_method=pass_all
4061 lt_cv_deplibs_check_method=pass_all
4065 lt_cv_deplibs_check_method=pass_all
4068 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4069 case $host_vendor in
4071 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]'
4072 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4075 lt_cv_deplibs_check_method=pass_all
4078 lt_cv_file_magic_cmd='/bin/file'
4079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4082 lt_cv_file_magic_cmd='/bin/file'
4083 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4084 lt_cv_file_magic_test_file=/lib/libc.so
4087 lt_cv_deplibs_check_method=pass_all
4092 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4093 lt_cv_deplibs_check_method=pass_all
4098 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4099 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4100 file_magic_cmd=$lt_cv_file_magic_cmd
4101 deplibs_check_method=$lt_cv_deplibs_check_method
4102 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4107 # If no C compiler was specified, use CC.
4110 # Allow CC to be a program name with arguments.
4113 # Check whether --enable-libtool-lock was given.
4114 if test "${enable_libtool_lock+set}" = set; then
4115 enableval=$enable_libtool_lock;
4118 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4120 # Some flags need to be propagated to the compiler or linker for good
4124 # Find out which ABI we are using.
4125 echo 'int i;' > conftest.$ac_ext
4126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4127 (eval $ac_compile) 2>&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; then
4131 case `/usr/bin/file conftest.$ac_objext` in
4143 # Find out which ABI we are using.
4144 echo '#line 4144 "configure"' > conftest.$ac_ext
4145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4146 (eval $ac_compile) 2>&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; then
4150 if test "$lt_cv_prog_gnu_ld" = yes; then
4151 case `/usr/bin/file conftest.$ac_objext` in
4153 LD="${LD-ld} -melf32bsmip"
4156 LD="${LD-ld} -melf32bmipn32"
4159 LD="${LD-ld} -melf64bmip"
4163 case `/usr/bin/file conftest.$ac_objext` in
4179 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4180 # Find out which ABI we are using.
4181 echo 'int i;' > conftest.$ac_ext
4182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4183 (eval $ac_compile) 2>&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; then
4187 case "`/usr/bin/file conftest.o`" in
4191 LD="${LD-ld} -m elf_i386"
4193 ppc64-*linux*|powerpc64-*linux*)
4194 LD="${LD-ld} -m elf32ppclinux"
4197 LD="${LD-ld} -m elf_s390"
4200 LD="${LD-ld} -m elf32_sparc"
4207 LD="${LD-ld} -m elf_x86_64"
4209 ppc*-*linux*|powerpc*-*linux*)
4210 LD="${LD-ld} -m elf64ppc"
4213 LD="${LD-ld} -m elf64_s390"
4216 LD="${LD-ld} -m elf64_sparc"
4226 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4227 SAVE_CFLAGS="$CFLAGS"
4228 CFLAGS="$CFLAGS -belf"
4229 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4230 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4231 if test "${lt_cv_cc_needs_belf+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240 cat >conftest.$ac_ext <<_ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4255 rm -f conftest.$ac_objext conftest$ac_exeext
4256 if { (ac_try="$ac_link"
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_link") 2>conftest.er1
4264 grep -v '^ *+' conftest.er1 >conftest.err
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } && {
4269 test -z "$ac_c_werror_flag" ||
4270 test ! -s conftest.err
4271 } && test -s conftest$ac_exeext &&
4272 $as_test_x conftest$ac_exeext; then
4273 lt_cv_cc_needs_belf=yes
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4278 lt_cv_cc_needs_belf=no
4281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4282 conftest$ac_exeext conftest.$ac_ext
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4291 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4292 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4293 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4294 CFLAGS="$SAVE_CFLAGS"
4300 need_locks="$enable_libtool_lock"
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4309 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4310 # On Suns, sometimes $CPP names a directory.
4311 if test -n "$CPP" && test -d "$CPP"; then
4314 if test -z "$CPP"; then
4315 if test "${ac_cv_prog_CPP+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 # Double quotes because CPP needs to be expanded
4319 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4322 for ac_c_preproc_warn_flag in '' yes
4324 # Use a header file that comes with gcc, so configuring glibc
4325 # with a fresh cross-compiler works.
4326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4327 # <limits.h> exists even on freestanding compilers.
4328 # On the NeXT, cc -E runs the code through the compiler's parser,
4329 # not just through cpp. "Syntax error" is here to catch this case.
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4337 # include <limits.h>
4339 # include <assert.h>
4343 if { (ac_try="$ac_cpp conftest.$ac_ext"
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4351 grep -v '^ *+' conftest.er1 >conftest.err
4353 cat conftest.err >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } >/dev/null && {
4356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4357 test ! -s conftest.err
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4364 # Broken: fails on valid input.
4368 rm -f conftest.err conftest.$ac_ext
4370 # OK, works on sane cases. Now check whether nonexistent headers
4371 # can be detected and how.
4372 cat >conftest.$ac_ext <<_ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 #include <ac_nonexistent.h>
4380 if { (ac_try="$ac_cpp conftest.$ac_ext"
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4388 grep -v '^ *+' conftest.er1 >conftest.err
4390 cat conftest.err >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } >/dev/null && {
4393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4394 test ! -s conftest.err
4396 # Broken: success on invalid input.
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4402 # Passes both tests.
4407 rm -f conftest.err conftest.$ac_ext
4410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4411 rm -f conftest.err conftest.$ac_ext
4412 if $ac_preproc_ok; then
4424 { echo "$as_me:$LINENO: result: $CPP" >&5
4425 echo "${ECHO_T}$CPP" >&6; }
4427 for ac_c_preproc_warn_flag in '' yes
4429 # Use a header file that comes with gcc, so configuring glibc
4430 # with a fresh cross-compiler works.
4431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4432 # <limits.h> exists even on freestanding compilers.
4433 # On the NeXT, cc -E runs the code through the compiler's parser,
4434 # not just through cpp. "Syntax error" is here to catch this case.
4435 cat >conftest.$ac_ext <<_ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4442 # include <limits.h>
4444 # include <assert.h>
4448 if { (ac_try="$ac_cpp conftest.$ac_ext"
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4456 grep -v '^ *+' conftest.er1 >conftest.err
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } >/dev/null && {
4461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4462 test ! -s conftest.err
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4469 # Broken: fails on valid input.
4473 rm -f conftest.err conftest.$ac_ext
4475 # OK, works on sane cases. Now check whether nonexistent headers
4476 # can be detected and how.
4477 cat >conftest.$ac_ext <<_ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4483 #include <ac_nonexistent.h>
4485 if { (ac_try="$ac_cpp conftest.$ac_ext"
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4493 grep -v '^ *+' conftest.er1 >conftest.err
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } >/dev/null && {
4498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4499 test ! -s conftest.err
4501 # Broken: success on invalid input.
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507 # Passes both tests.
4512 rm -f conftest.err conftest.$ac_ext
4515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4516 rm -f conftest.err conftest.$ac_ext
4517 if $ac_preproc_ok; then
4520 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4521 See \`config.log' for more details." >&5
4522 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4523 See \`config.log' for more details." >&2;}
4524 { (exit 1); exit 1; }; }
4528 ac_cpp='$CPP $CPPFLAGS'
4529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4535 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4536 if test "${ac_cv_header_stdc+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 cat >conftest.$ac_ext <<_ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4558 rm -f conftest.$ac_objext
4559 if { (ac_try="$ac_compile"
4561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562 *) ac_try_echo=$ac_try;;
4564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565 (eval "$ac_compile") 2>conftest.er1
4567 grep -v '^ *+' conftest.er1 >conftest.err
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } && {
4572 test -z "$ac_c_werror_flag" ||
4573 test ! -s conftest.err
4574 } && test -s conftest.$ac_objext; then
4575 ac_cv_header_stdc=yes
4577 echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4580 ac_cv_header_stdc=no
4583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 if test $ac_cv_header_stdc = yes; then
4586 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4587 cat >conftest.$ac_ext <<_ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4597 $EGREP "memchr" >/dev/null 2>&1; then
4600 ac_cv_header_stdc=no
4606 if test $ac_cv_header_stdc = yes; then
4607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4608 cat >conftest.$ac_ext <<_ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h. */
4617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4618 $EGREP "free" >/dev/null 2>&1; then
4621 ac_cv_header_stdc=no
4627 if test $ac_cv_header_stdc = yes; then
4628 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4629 if test "$cross_compiling" = yes; then
4632 cat >conftest.$ac_ext <<_ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4640 #if ((' ' & 0x0FF) == 0x020)
4641 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4642 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4644 # define ISLOWER(c) \
4645 (('a' <= (c) && (c) <= 'i') \
4646 || ('j' <= (c) && (c) <= 'r') \
4647 || ('s' <= (c) && (c) <= 'z'))
4648 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4656 for (i = 0; i < 256; i++)
4657 if (XOR (islower (i), ISLOWER (i))
4658 || toupper (i) != TOUPPER (i))
4663 rm -f conftest$ac_exeext
4664 if { (ac_try="$ac_link"
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670 (eval "$ac_link") 2>&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4674 { (case "(($ac_try" in
4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676 *) ac_try_echo=$ac_try;;
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679 (eval "$ac_try") 2>&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4685 echo "$as_me: program exited with status $ac_status" >&5
4686 echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4690 ac_cv_header_stdc=no
4692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4698 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4699 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4700 if test $ac_cv_header_stdc = yes; then
4702 cat >>confdefs.h <<\_ACEOF
4703 #define STDC_HEADERS 1
4708 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4718 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4719 inttypes.h stdint.h unistd.h
4721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 cat >conftest.$ac_ext <<_ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4733 $ac_includes_default
4735 #include <$ac_header>
4737 rm -f conftest.$ac_objext
4738 if { (ac_try="$ac_compile"
4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741 *) ac_try_echo=$ac_try;;
4743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744 (eval "$ac_compile") 2>conftest.er1
4746 grep -v '^ *+' conftest.er1 >conftest.err
4748 cat conftest.err >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } && {
4751 test -z "$ac_c_werror_flag" ||
4752 test ! -s conftest.err
4753 } && test -s conftest.$ac_objext; then
4754 eval "$as_ac_Header=yes"
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4759 eval "$as_ac_Header=no"
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 ac_res=`eval echo '${'$as_ac_Header'}'`
4765 { echo "$as_me:$LINENO: result: $ac_res" >&5
4766 echo "${ECHO_T}$ac_res" >&6; }
4767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4768 cat >>confdefs.h <<_ACEOF
4769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4778 for ac_header in dlfcn.h
4780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 ac_res=`eval echo '${'$as_ac_Header'}'`
4788 { echo "$as_me:$LINENO: result: $ac_res" >&5
4789 echo "${ECHO_T}$ac_res" >&6; }
4791 # Is the header compilable?
4792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4794 cat >conftest.$ac_ext <<_ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 $ac_includes_default
4801 #include <$ac_header>
4803 rm -f conftest.$ac_objext
4804 if { (ac_try="$ac_compile"
4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807 *) ac_try_echo=$ac_try;;
4809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4810 (eval "$ac_compile") 2>conftest.er1
4812 grep -v '^ *+' conftest.er1 >conftest.err
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } && {
4817 test -z "$ac_c_werror_flag" ||
4818 test ! -s conftest.err
4819 } && test -s conftest.$ac_objext; then
4820 ac_header_compiler=yes
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4825 ac_header_compiler=no
4828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4830 echo "${ECHO_T}$ac_header_compiler" >&6; }
4832 # Is the header present?
4833 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4835 cat >conftest.$ac_ext <<_ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4841 #include <$ac_header>
4843 if { (ac_try="$ac_cpp conftest.$ac_ext"
4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4851 grep -v '^ *+' conftest.er1 >conftest.err
4853 cat conftest.err >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } >/dev/null && {
4856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4857 test ! -s conftest.err
4859 ac_header_preproc=yes
4861 echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4864 ac_header_preproc=no
4867 rm -f conftest.err conftest.$ac_ext
4868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4869 echo "${ECHO_T}$ac_header_preproc" >&6; }
4871 # So? What about this header?
4872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4878 ac_header_preproc=yes
4881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4888 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 eval "$as_ac_Header=\$ac_header_preproc"
4903 ac_res=`eval echo '${'$as_ac_Header'}'`
4904 { echo "$as_me:$LINENO: result: $ac_res" >&5
4905 echo "${ECHO_T}$ac_res" >&6; }
4908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4909 cat >>confdefs.h <<_ACEOF
4910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4918 ac_cpp='$CXXCPP $CPPFLAGS'
4919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4922 if test -z "$CXX"; then
4923 if test -n "$CCC"; then
4926 if test -n "$ac_tool_prefix"; then
4927 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4933 if test "${ac_cv_prog_CXX+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 if test -n "$CXX"; then
4937 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 if test -n "$CXX"; then
4958 { echo "$as_me:$LINENO: result: $CXX" >&5
4959 echo "${ECHO_T}$CXX" >&6; }
4961 { echo "$as_me:$LINENO: result: no" >&5
4962 echo "${ECHO_T}no" >&6; }
4966 test -n "$CXX" && break
4969 if test -z "$CXX"; then
4971 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4973 # Extract the first word of "$ac_prog", so it can be a program name with args.
4974 set dummy $ac_prog; ac_word=$2
4975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4977 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 if test -n "$ac_ct_CXX"; then
4981 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4990 ac_cv_prog_ac_ct_CXX="$ac_prog"
4991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5001 if test -n "$ac_ct_CXX"; then
5002 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5003 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5005 { echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6; }
5010 test -n "$ac_ct_CXX" && break
5013 if test "x$ac_ct_CXX" = x; then
5016 case $cross_compiling:$ac_tool_warned in
5018 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5019 whose name does not start with the host triplet. If you think this
5020 configuration is useful to you, please write to autoconf@gnu.org." >&5
5021 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5022 whose name does not start with the host triplet. If you think this
5023 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5024 ac_tool_warned=yes ;;
5032 # Provide some information about the compiler.
5033 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5034 ac_compiler=`set X $ac_compile; echo $2`
5035 { (ac_try="$ac_compiler --version >&5"
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_compiler --version >&5") 2>&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }
5045 { (ac_try="$ac_compiler -v >&5"
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5051 (eval "$ac_compiler -v >&5") 2>&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }
5055 { (ac_try="$ac_compiler -V >&5"
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5061 (eval "$ac_compiler -V >&5") 2>&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }
5066 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5067 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5068 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 cat >conftest.$ac_ext <<_ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5089 rm -f conftest.$ac_objext
5090 if { (ac_try="$ac_compile"
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096 (eval "$ac_compile") 2>conftest.er1
5098 grep -v '^ *+' conftest.er1 >conftest.err
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } && {
5103 test -z "$ac_cxx_werror_flag" ||
5104 test ! -s conftest.err
5105 } && test -s conftest.$ac_objext; then
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5118 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5119 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5120 GXX=`test $ac_compiler_gnu = yes && echo yes`
5121 ac_test_CXXFLAGS=${CXXFLAGS+set}
5122 ac_save_CXXFLAGS=$CXXFLAGS
5123 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5124 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5125 if test "${ac_cv_prog_cxx_g+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5129 ac_cxx_werror_flag=yes
5132 cat >conftest.$ac_ext <<_ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5147 rm -f conftest.$ac_objext
5148 if { (ac_try="$ac_compile"
5150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5151 *) ac_try_echo=$ac_try;;
5153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5154 (eval "$ac_compile") 2>conftest.er1
5156 grep -v '^ *+' conftest.er1 >conftest.err
5158 cat conftest.err >&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } && {
5161 test -z "$ac_cxx_werror_flag" ||
5162 test ! -s conftest.err
5163 } && test -s conftest.$ac_objext; then
5164 ac_cv_prog_cxx_g=yes
5166 echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.$ac_ext >&5
5170 cat >conftest.$ac_ext <<_ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5185 rm -f conftest.$ac_objext
5186 if { (ac_try="$ac_compile"
5188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192 (eval "$ac_compile") 2>conftest.er1
5194 grep -v '^ *+' conftest.er1 >conftest.err
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } && {
5199 test -z "$ac_cxx_werror_flag" ||
5200 test ! -s conftest.err
5201 } && test -s conftest.$ac_objext; then
5204 echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5207 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5209 cat >conftest.$ac_ext <<_ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5224 rm -f conftest.$ac_objext
5225 if { (ac_try="$ac_compile"
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_compile") 2>conftest.er1
5233 grep -v '^ *+' conftest.er1 >conftest.err
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } && {
5238 test -z "$ac_cxx_werror_flag" ||
5239 test ! -s conftest.err
5240 } && test -s conftest.$ac_objext; then
5241 ac_cv_prog_cxx_g=yes
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5258 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5259 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5260 if test "$ac_test_CXXFLAGS" = set; then
5261 CXXFLAGS=$ac_save_CXXFLAGS
5262 elif test $ac_cv_prog_cxx_g = yes; then
5263 if test "$GXX" = yes; then
5269 if test "$GXX" = yes; then
5276 ac_cpp='$CXXCPP $CPPFLAGS'
5277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5282 ac_cpp='$CXXCPP $CPPFLAGS'
5283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5286 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5287 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5288 if test -z "$CXXCPP"; then
5289 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 # Double quotes because CXXCPP needs to be expanded
5293 for CXXCPP in "$CXX -E" "/lib/cpp"
5296 for ac_cxx_preproc_warn_flag in '' yes
5298 # Use a header file that comes with gcc, so configuring glibc
5299 # with a fresh cross-compiler works.
5300 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5301 # <limits.h> exists even on freestanding compilers.
5302 # On the NeXT, cc -E runs the code through the compiler's parser,
5303 # not just through cpp. "Syntax error" is here to catch this case.
5304 cat >conftest.$ac_ext <<_ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5311 # include <limits.h>
5313 # include <assert.h>
5317 if { (ac_try="$ac_cpp conftest.$ac_ext"
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5325 grep -v '^ *+' conftest.er1 >conftest.err
5327 cat conftest.err >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } >/dev/null && {
5330 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5331 test ! -s conftest.err
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5338 # Broken: fails on valid input.
5342 rm -f conftest.err conftest.$ac_ext
5344 # OK, works on sane cases. Now check whether nonexistent headers
5345 # can be detected and how.
5346 cat >conftest.$ac_ext <<_ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5352 #include <ac_nonexistent.h>
5354 if { (ac_try="$ac_cpp conftest.$ac_ext"
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5362 grep -v '^ *+' conftest.er1 >conftest.err
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } >/dev/null && {
5367 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5368 test ! -s conftest.err
5370 # Broken: success on invalid input.
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5376 # Passes both tests.
5381 rm -f conftest.err conftest.$ac_ext
5384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5385 rm -f conftest.err conftest.$ac_ext
5386 if $ac_preproc_ok; then
5391 ac_cv_prog_CXXCPP=$CXXCPP
5394 CXXCPP=$ac_cv_prog_CXXCPP
5396 ac_cv_prog_CXXCPP=$CXXCPP
5398 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5399 echo "${ECHO_T}$CXXCPP" >&6; }
5401 for ac_cxx_preproc_warn_flag in '' yes
5403 # Use a header file that comes with gcc, so configuring glibc
5404 # with a fresh cross-compiler works.
5405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5406 # <limits.h> exists even on freestanding compilers.
5407 # On the NeXT, cc -E runs the code through the compiler's parser,
5408 # not just through cpp. "Syntax error" is here to catch this case.
5409 cat >conftest.$ac_ext <<_ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5416 # include <limits.h>
5418 # include <assert.h>
5422 if { (ac_try="$ac_cpp conftest.$ac_ext"
5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425 *) ac_try_echo=$ac_try;;
5427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5430 grep -v '^ *+' conftest.er1 >conftest.err
5432 cat conftest.err >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } >/dev/null && {
5435 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5436 test ! -s conftest.err
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5443 # Broken: fails on valid input.
5447 rm -f conftest.err conftest.$ac_ext
5449 # OK, works on sane cases. Now check whether nonexistent headers
5450 # can be detected and how.
5451 cat >conftest.$ac_ext <<_ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 #include <ac_nonexistent.h>
5459 if { (ac_try="$ac_cpp conftest.$ac_ext"
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5467 grep -v '^ *+' conftest.er1 >conftest.err
5469 cat conftest.err >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } >/dev/null && {
5472 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5473 test ! -s conftest.err
5475 # Broken: success on invalid input.
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 # Passes both tests.
5486 rm -f conftest.err conftest.$ac_ext
5489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5490 rm -f conftest.err conftest.$ac_ext
5491 if $ac_preproc_ok; then
5494 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5495 See \`config.log' for more details." >&5
5496 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5497 See \`config.log' for more details." >&2;}
5498 { (exit 1); exit 1; }; }
5502 ac_cpp='$CXXCPP $CPPFLAGS'
5503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5509 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5510 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5511 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5512 if test -n "$ac_tool_prefix"; then
5513 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5519 if test "${ac_cv_prog_F77+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5522 if test -n "$F77"; then
5523 ac_cv_prog_F77="$F77" # Let the user override the test.
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 if test -n "$F77"; then
5544 { echo "$as_me:$LINENO: result: $F77" >&5
5545 echo "${ECHO_T}$F77" >&6; }
5547 { echo "$as_me:$LINENO: result: no" >&5
5548 echo "${ECHO_T}no" >&6; }
5552 test -n "$F77" && break
5555 if test -z "$F77"; then
5557 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5559 # Extract the first word of "$ac_prog", so it can be a program name with args.
5560 set dummy $ac_prog; ac_word=$2
5561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5563 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 if test -n "$ac_ct_F77"; then
5567 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576 ac_cv_prog_ac_ct_F77="$ac_prog"
5577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5587 if test -n "$ac_ct_F77"; then
5588 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5589 echo "${ECHO_T}$ac_ct_F77" >&6; }
5591 { echo "$as_me:$LINENO: result: no" >&5
5592 echo "${ECHO_T}no" >&6; }
5596 test -n "$ac_ct_F77" && break
5599 if test "x$ac_ct_F77" = x; then
5602 case $cross_compiling:$ac_tool_warned in
5604 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5605 whose name does not start with the host triplet. If you think this
5606 configuration is useful to you, please write to autoconf@gnu.org." >&5
5607 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5608 whose name does not start with the host triplet. If you think this
5609 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5610 ac_tool_warned=yes ;;
5617 # Provide some information about the compiler.
5618 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5619 ac_compiler=`set X $ac_compile; echo $2`
5620 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }
5630 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }
5640 { (ac_try="$ac_compiler -V >&5"
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_compiler -V >&5") 2>&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }
5652 # If we don't use `.F' as extension, the preprocessor is not run on the
5653 # input file. (Note that this only needs to work for GNU compilers.)
5656 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5657 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5658 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 cat >conftest.$ac_ext <<_ACEOF
5669 rm -f conftest.$ac_objext
5670 if { (ac_try="$ac_compile"
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_compile") 2>conftest.er1
5678 grep -v '^ *+' conftest.er1 >conftest.err
5680 cat conftest.err >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } && {
5683 test -z "$ac_f77_werror_flag" ||
5684 test ! -s conftest.err
5685 } && test -s conftest.$ac_objext; then
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5698 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5699 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5701 ac_test_FFLAGS=${FFLAGS+set}
5702 ac_save_FFLAGS=$FFLAGS
5704 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5705 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5706 if test "${ac_cv_prog_f77_g+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 cat >conftest.$ac_ext <<_ACEOF
5715 rm -f conftest.$ac_objext
5716 if { (ac_try="$ac_compile"
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_compile") 2>conftest.er1
5724 grep -v '^ *+' conftest.er1 >conftest.err
5726 cat conftest.err >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && {
5729 test -z "$ac_f77_werror_flag" ||
5730 test ! -s conftest.err
5731 } && test -s conftest.$ac_objext; then
5732 ac_cv_prog_f77_g=yes
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5744 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5745 if test "$ac_test_FFLAGS" = set; then
5746 FFLAGS=$ac_save_FFLAGS
5747 elif test $ac_cv_prog_f77_g = yes; then
5748 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5754 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5761 G77=`test $ac_compiler_gnu = yes && echo yes`
5763 ac_cpp='$CPP $CPPFLAGS'
5764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5770 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5772 # find the maximum length of command line arguments
5773 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5774 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5775 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 # On DJGPP, this test can blow up pretty badly due to problems in libc
5784 # (any single argument exceeding 2000 bytes causes a buffer overrun
5785 # during glob expansion). Even if it were fixed, the result of this
5786 # check would be larger than it should be.
5787 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5791 # Under GNU Hurd, this test is not required because there is
5792 # no limit to the length of command line arguments.
5793 # Libtool will interpret -1 as no limit whatsoever
5794 lt_cv_sys_max_cmd_len=-1;
5798 # On Win9x/ME, this test blows up -- it succeeds, but takes
5799 # about 5 minutes as the teststring grows exponentially.
5800 # Worse, since 9x/ME are not pre-emptively multitasking,
5801 # you end up with a "frozen" computer, even though with patience
5802 # the test eventually succeeds (with a max line length of 256k).
5803 # Instead, let's just punt: use the minimum linelength reported by
5804 # all of the supported platforms: 8192 (on NT/2K/XP).
5805 lt_cv_sys_max_cmd_len=8192;
5809 # On AmigaOS with pdksh, this test takes hours, literally.
5810 # So we just punt and use a minimum line length of 8192.
5811 lt_cv_sys_max_cmd_len=8192;
5815 # If test is not a shell built-in, we'll probably end up computing a
5816 # maximum length that is only half of the actual maximum length, but
5818 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5819 = "XX$teststring") >/dev/null 2>&1 &&
5820 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5821 lt_cv_sys_max_cmd_len=$new_result &&
5822 test $i != 17 # 1/2 MB should be enough
5825 teststring=$teststring$teststring
5828 # Add a significant safety factor because C++ compilers can tack on massive
5829 # amounts of additional arguments before passing them to the linker.
5830 # It appears as though 1/2 is a usable value.
5831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5837 if test -n $lt_cv_sys_max_cmd_len ; then
5838 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5839 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5841 { echo "$as_me:$LINENO: result: none" >&5
5842 echo "${ECHO_T}none" >&6; }
5848 # Check for command to grab the raw symbol name followed by C symbol from nm.
5849 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5850 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5851 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 # These are sane defaults that work on at least a few old systems.
5856 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5858 # Character class describing NM global symbol codes.
5859 symcode='[BCDEGRST]'
5861 # Regexp to match symbols that can be accessed directly from C.
5862 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5864 # Transform the above into a raw symbol and a C symbol.
5865 symxfrm='\1 \2\3 \3'
5867 # Transform an extracted symbol line into a proper C declaration
5868 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5870 # Transform an extracted symbol line into symbol name and symbol address
5871 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'"
5873 # Define system-specific variables.
5878 cygwin* | mingw* | pw32*)
5879 symcode='[ABCDGISTW]'
5881 hpux*) # Its linker distinguishes data from code symbols
5882 if test "$host_cpu" = ia64; then
5883 symcode='[ABCDEGRST]'
5885 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5886 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'"
5889 symcode='[BCDEGRST]'
5892 symcode='[BCDEGQRST]'
5902 # Handle CRLF in mingw tool chain
5906 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5910 # If we're using GNU nm, then use its standard symbol codes.
5911 case `$NM -V 2>&1` in
5912 *GNU* | *'with BFD'*)
5913 symcode='[ABCDGIRSTW]' ;;
5916 # Try without a prefix undercore, then with it.
5917 for ac_symprfx in "" "_"; do
5919 # Write the raw and C identifiers.
5920 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5922 # Check to see that the pipe works correctly.
5926 cat > conftest.$ac_ext <<EOF
5931 void nm_test_func(){}
5935 int main(){nm_test_var='a';nm_test_func();return(0);}
5938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5939 (eval $ac_compile) 2>&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; then
5943 # Now try to grab the symbols.
5945 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5946 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } && test -s "$nlist"; then
5950 # Try sorting and uniquifying the output.
5951 if sort "$nlist" | uniq > "$nlist"T; then
5952 mv -f "$nlist"T "$nlist"
5957 # Make sure that we snagged all the symbols we need.
5958 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5959 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5960 cat <<EOF > conftest.$ac_ext
5966 # Now generate the symbol file.
5967 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5969 cat <<EOF >> conftest.$ac_ext
5970 #if defined (__STDC__) && __STDC__
5971 # define lt_ptr_t void *
5973 # define lt_ptr_t char *
5977 /* The mapping between symbol names and symbols. */
5982 lt_preloaded_symbols[] =
5985 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5986 cat <<\EOF >> conftest.$ac_ext
5994 # Now try linking the two files.
5995 mv conftest.$ac_objext conftstm.$ac_objext
5996 lt_save_LIBS="$LIBS"
5997 lt_save_CFLAGS="$CFLAGS"
5998 LIBS="conftstm.$ac_objext"
5999 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6001 (eval $ac_link) 2>&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6007 LIBS="$lt_save_LIBS"
6008 CFLAGS="$lt_save_CFLAGS"
6010 echo "cannot find nm_test_func in $nlist" >&5
6013 echo "cannot find nm_test_var in $nlist" >&5
6016 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6019 echo "$progname: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6022 rm -f conftest* conftst*
6024 # Do not use the global_symbol_pipe unless it works.
6025 if test "$pipe_works" = yes; then
6028 lt_cv_sys_global_symbol_pipe=
6034 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6035 lt_cv_sys_global_symbol_to_cdecl=
6037 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6038 { echo "$as_me:$LINENO: result: failed" >&5
6039 echo "${ECHO_T}failed" >&6; }
6041 { echo "$as_me:$LINENO: result: ok" >&5
6042 echo "${ECHO_T}ok" >&6; }
6045 { echo "$as_me:$LINENO: checking for objdir" >&5
6046 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6047 if test "${lt_cv_objdir+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 rm -f .libs 2>/dev/null
6051 mkdir .libs 2>/dev/null
6052 if test -d .libs; then
6055 # MS-DOS does not allow filenames that begin with a dot.
6058 rmdir .libs 2>/dev/null
6060 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6061 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6062 objdir=$lt_cv_objdir
6070 # AIX sometimes has problems with the GCC collect2 program. For some
6071 # reason, if we set the COLLECT_NAMES environment variable, the problems
6072 # vanish in a puff of smoke.
6073 if test "X${COLLECT_NAMES+set}" != Xset; then
6075 export COLLECT_NAMES
6080 # Sed substitution that helps us do robust quoting. It backslashifies
6081 # metacharacters that are still active within double-quoted strings.
6082 Xsed='sed -e s/^X//'
6083 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6085 # Same as above, but do not quote variable references.
6086 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6088 # Sed substitution to delay expansion of an escaped shell variable in a
6089 # double_quote_subst'ed string.
6090 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6092 # Sed substitution to avoid accidental globbing in evaled expressions
6093 no_glob_subst='s/\*/\\\*/g'
6099 default_ofile=libtool
6100 can_build_shared=yes
6102 # All known linkers require a `.a' archive for static linking (except M$VC,
6103 # which needs '.lib').
6105 ltmain="$ac_aux_dir/ltmain.sh"
6106 ofile="$default_ofile"
6107 with_gnu_ld="$lt_cv_prog_gnu_ld"
6109 if test -n "$ac_tool_prefix"; then
6110 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6111 set dummy ${ac_tool_prefix}ar; ac_word=$2
6112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6114 if test "${ac_cv_prog_AR+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 if test -n "$AR"; then
6118 ac_cv_prog_AR="$AR" # Let the user override the test.
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6127 ac_cv_prog_AR="${ac_tool_prefix}ar"
6128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 if test -n "$AR"; then
6139 { echo "$as_me:$LINENO: result: $AR" >&5
6140 echo "${ECHO_T}$AR" >&6; }
6142 { echo "$as_me:$LINENO: result: no" >&5
6143 echo "${ECHO_T}no" >&6; }
6148 if test -z "$ac_cv_prog_AR"; then
6150 # Extract the first word of "ar", so it can be a program name with args.
6151 set dummy ar; ac_word=$2
6152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6154 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 if test -n "$ac_ct_AR"; then
6158 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6167 ac_cv_prog_ac_ct_AR="ar"
6168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6178 if test -n "$ac_ct_AR"; then
6179 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6180 echo "${ECHO_T}$ac_ct_AR" >&6; }
6182 { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6186 if test "x$ac_ct_AR" = x; then
6189 case $cross_compiling:$ac_tool_warned in
6191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6192 whose name does not start with the host triplet. If you think this
6193 configuration is useful to you, please write to autoconf@gnu.org." >&5
6194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6195 whose name does not start with the host triplet. If you think this
6196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6197 ac_tool_warned=yes ;;
6205 if test -n "$ac_tool_prefix"; then
6206 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6207 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6210 if test "${ac_cv_prog_RANLIB+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 if test -n "$RANLIB"; then
6214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 RANLIB=$ac_cv_prog_RANLIB
6234 if test -n "$RANLIB"; then
6235 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6236 echo "${ECHO_T}$RANLIB" >&6; }
6238 { echo "$as_me:$LINENO: result: no" >&5
6239 echo "${ECHO_T}no" >&6; }
6244 if test -z "$ac_cv_prog_RANLIB"; then
6245 ac_ct_RANLIB=$RANLIB
6246 # Extract the first word of "ranlib", so it can be a program name with args.
6247 set dummy ranlib; ac_word=$2
6248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6250 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 if test -n "$ac_ct_RANLIB"; then
6254 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263 ac_cv_prog_ac_ct_RANLIB="ranlib"
6264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6274 if test -n "$ac_ct_RANLIB"; then
6275 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6276 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6278 { echo "$as_me:$LINENO: result: no" >&5
6279 echo "${ECHO_T}no" >&6; }
6282 if test "x$ac_ct_RANLIB" = x; then
6285 case $cross_compiling:$ac_tool_warned in
6287 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6288 whose name does not start with the host triplet. If you think this
6289 configuration is useful to you, please write to autoconf@gnu.org." >&5
6290 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6291 whose name does not start with the host triplet. If you think this
6292 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6293 ac_tool_warned=yes ;;
6295 RANLIB=$ac_ct_RANLIB
6298 RANLIB="$ac_cv_prog_RANLIB"
6301 if test -n "$ac_tool_prefix"; then
6302 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6303 set dummy ${ac_tool_prefix}strip; ac_word=$2
6304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6306 if test "${ac_cv_prog_STRIP+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 if test -n "$STRIP"; then
6310 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 STRIP=$ac_cv_prog_STRIP
6330 if test -n "$STRIP"; then
6331 { echo "$as_me:$LINENO: result: $STRIP" >&5
6332 echo "${ECHO_T}$STRIP" >&6; }
6334 { echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6; }
6340 if test -z "$ac_cv_prog_STRIP"; then
6342 # Extract the first word of "strip", so it can be a program name with args.
6343 set dummy strip; ac_word=$2
6344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 if test -n "$ac_ct_STRIP"; then
6350 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 test -z "$as_dir" && as_dir=.
6357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6359 ac_cv_prog_ac_ct_STRIP="strip"
6360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6370 if test -n "$ac_ct_STRIP"; then
6371 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6372 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6374 { echo "$as_me:$LINENO: result: no" >&5
6375 echo "${ECHO_T}no" >&6; }
6378 if test "x$ac_ct_STRIP" = x; then
6381 case $cross_compiling:$ac_tool_warned in
6383 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6384 whose name does not start with the host triplet. If you think this
6385 configuration is useful to you, please write to autoconf@gnu.org." >&5
6386 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6387 whose name does not start with the host triplet. If you think this
6388 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6389 ac_tool_warned=yes ;;
6394 STRIP="$ac_cv_prog_STRIP"
6399 old_CFLAGS="$CFLAGS"
6401 # Set sane defaults for various variables
6402 test -z "$AR" && AR=ar
6403 test -z "$AR_FLAGS" && AR_FLAGS=cru
6404 test -z "$AS" && AS=as
6405 test -z "$CC" && CC=cc
6406 test -z "$LTCC" && LTCC=$CC
6407 test -z "$DLLTOOL" && DLLTOOL=dlltool
6408 test -z "$LD" && LD=ld
6409 test -z "$LN_S" && LN_S="ln -s"
6410 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6411 test -z "$NM" && NM=nm
6412 test -z "$SED" && SED=sed
6413 test -z "$OBJDUMP" && OBJDUMP=objdump
6414 test -z "$RANLIB" && RANLIB=:
6415 test -z "$STRIP" && STRIP=:
6416 test -z "$ac_objext" && ac_objext=o
6418 # Determine commands to create old-style static archives.
6419 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6420 old_postinstall_cmds='chmod 644 $oldlib'
6421 old_postuninstall_cmds=
6423 if test -n "$RANLIB"; then
6426 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6429 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6432 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6435 # Only perform the check for file, if the check method requires it
6436 case $deplibs_check_method in
6438 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6439 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6440 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6441 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6446 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6449 lt_save_MAGIC_CMD="$MAGIC_CMD"
6450 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6451 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6452 for ac_dir in $ac_dummy; do
6454 test -z "$ac_dir" && ac_dir=.
6455 if test -f $ac_dir/${ac_tool_prefix}file; then
6456 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6457 if test -n "$file_magic_test_file"; then
6458 case $deplibs_check_method in
6460 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6461 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6462 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6463 $EGREP "$file_magic_regex" > /dev/null; then
6468 *** Warning: the command libtool uses to detect shared libraries,
6469 *** $file_magic_cmd, produces output that libtool cannot recognize.
6470 *** The result is that libtool may fail to recognize shared libraries
6471 *** as such. This will affect the creation of libtool libraries that
6472 *** depend on shared libraries, but programs linked with such libtool
6473 *** libraries will work regardless of this problem. Nevertheless, you
6474 *** may want to report the problem to your system manager and/or to
6475 *** bug-libtool@gnu.org
6485 MAGIC_CMD="$lt_save_MAGIC_CMD"
6490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6491 if test -n "$MAGIC_CMD"; then
6492 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6493 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6495 { echo "$as_me:$LINENO: result: no" >&5
6496 echo "${ECHO_T}no" >&6; }
6499 if test -z "$lt_cv_path_MAGIC_CMD"; then
6500 if test -n "$ac_tool_prefix"; then
6501 { echo "$as_me:$LINENO: checking for file" >&5
6502 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6503 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6511 lt_save_MAGIC_CMD="$MAGIC_CMD"
6512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6513 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6514 for ac_dir in $ac_dummy; do
6516 test -z "$ac_dir" && ac_dir=.
6517 if test -f $ac_dir/file; then
6518 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6519 if test -n "$file_magic_test_file"; then
6520 case $deplibs_check_method in
6522 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6524 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6525 $EGREP "$file_magic_regex" > /dev/null; then
6530 *** Warning: the command libtool uses to detect shared libraries,
6531 *** $file_magic_cmd, produces output that libtool cannot recognize.
6532 *** The result is that libtool may fail to recognize shared libraries
6533 *** as such. This will affect the creation of libtool libraries that
6534 *** depend on shared libraries, but programs linked with such libtool
6535 *** libraries will work regardless of this problem. Nevertheless, you
6536 *** may want to report the problem to your system manager and/or to
6537 *** bug-libtool@gnu.org
6547 MAGIC_CMD="$lt_save_MAGIC_CMD"
6552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6553 if test -n "$MAGIC_CMD"; then
6554 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6555 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6557 { echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6; }
6573 # Check whether --enable-libtool-lock was given.
6574 if test "${enable_libtool_lock+set}" = set; then
6575 enableval=$enable_libtool_lock;
6578 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6581 # Check whether --with-pic was given.
6582 if test "${with_pic+set}" = set; then
6583 withval=$with_pic; pic_mode="$withval"
6588 test -z "$pic_mode" && pic_mode=default
6590 # Use C for the default configuration in the libtool script
6594 ac_cpp='$CPP $CPPFLAGS'
6595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6600 # Source file extension for C test sources.
6603 # Object file extension for compiled C test sources.
6607 # Code to be used in simple compile tests
6608 lt_simple_compile_test_code="int some_variable = 0;\n"
6610 # Code to be used in simple link tests
6611 lt_simple_link_test_code='int main(){return(0);}\n'
6614 # If no C compiler was specified, use CC.
6617 # Allow CC to be a program name with arguments.
6622 # Check for any special shared library compilation flags.
6625 if test "$GCC" = no; then
6628 lt_prog_cc_shlib='-belf'
6632 if test -n "$lt_prog_cc_shlib"; then
6633 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6634 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6635 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6637 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6638 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6639 lt_cv_prog_cc_can_build_shared=no
6645 # Check to make sure the static flag actually works.
6647 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6648 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6649 if test "${lt_prog_compiler_static_works+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 lt_prog_compiler_static_works=no
6653 save_LDFLAGS="$LDFLAGS"
6654 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6655 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6656 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6657 # The compiler can only warn and ignore the option if not recognized
6658 # So say no if there are warnings
6659 if test -s conftest.err; then
6660 # Append any errors to the config.log.
6661 cat conftest.err 1>&5
6663 lt_prog_compiler_static_works=yes
6667 LDFLAGS="$save_LDFLAGS"
6670 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6671 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6673 if test x"$lt_prog_compiler_static_works" = xyes; then
6676 lt_prog_compiler_static=
6682 ## There is no encapsulation within the following macros, do not change
6683 ## the running order or otherwise move them around unless you know exactly
6684 ## what you are doing...
6686 lt_prog_compiler_no_builtin_flag=
6688 if test "$GCC" = yes; then
6689 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6692 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6693 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6694 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 lt_cv_prog_compiler_rtti_exceptions=no
6698 ac_outfile=conftest.$ac_objext
6699 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6700 lt_compiler_flag="-fno-rtti -fno-exceptions"
6701 # Insert the option either (1) after the last *FLAGS variable, or
6702 # (2) before a word containing "conftest.", or (3) at the end.
6703 # Note that $ac_compile itself does not contain backslashes and begins
6704 # with a dollar sign (not a hyphen), so the echo should work correctly.
6705 # The option is referenced via a variable to avoid confusing sed.
6706 lt_compile=`echo "$ac_compile" | $SED \
6707 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6709 -e 's:$: $lt_compiler_flag:'`
6710 (eval echo "\"\$as_me:6710: $lt_compile\"" >&5)
6711 (eval "$lt_compile" 2>conftest.err)
6713 cat conftest.err >&5
6714 echo "$as_me:6714: \$? = $ac_status" >&5
6715 if (exit $ac_status) && test -s "$ac_outfile"; then
6716 # The compiler can only warn and ignore the option if not recognized
6717 # So say no if there are warnings
6718 if test ! -s conftest.err; then
6719 lt_cv_prog_compiler_rtti_exceptions=yes
6725 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6726 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6728 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6729 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6736 lt_prog_compiler_wl=
6737 lt_prog_compiler_pic=
6738 lt_prog_compiler_static=
6740 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6741 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6743 if test "$GCC" = yes; then
6744 lt_prog_compiler_wl='-Wl,'
6745 lt_prog_compiler_static='-static'
6749 # All AIX code is PIC.
6750 if test "$host_cpu" = ia64; then
6751 # AIX 5 now supports IA64 processor
6752 lt_prog_compiler_static='-Bstatic'
6757 # FIXME: we need at least 68020 code to build shared libraries, but
6758 # adding the `-m68020' flag to GCC prevents building anything better,
6760 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6763 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6764 # PIC is the default for these OSes.
6767 mingw* | pw32* | os2*)
6768 # This hack is so that the source file can tell whether it is being
6769 # built for inclusion in a dll (and should export symbols for example).
6770 lt_prog_compiler_pic='-DDLL_EXPORT'
6773 darwin* | rhapsody*)
6774 # PIC is the default on this platform
6775 # Common symbols not allowed in MH_DYLIB files
6776 lt_prog_compiler_pic='-fno-common'
6780 # Just because we use GCC doesn't mean we suddenly get shared libraries
6781 # on systems that don't support them.
6782 lt_prog_compiler_can_build_shared=no
6787 if test -d /usr/nec; then
6788 lt_prog_compiler_pic=-Kconform_pic
6793 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6800 lt_prog_compiler_pic='-fPIC'
6806 lt_prog_compiler_pic='-fPIC'
6810 # PORTME Check for flag to pass linker flags through the system compiler.
6813 lt_prog_compiler_wl='-Wl,'
6814 if test "$host_cpu" = ia64; then
6815 # AIX 5 now supports IA64 processor
6816 lt_prog_compiler_static='-Bstatic'
6818 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6822 mingw* | pw32* | os2*)
6823 # This hack is so that the source file can tell whether it is being
6824 # built for inclusion in a dll (and should export symbols for example).
6825 lt_prog_compiler_pic='-DDLL_EXPORT'
6828 hpux9* | hpux10* | hpux11*)
6829 lt_prog_compiler_wl='-Wl,'
6830 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6837 lt_prog_compiler_pic='+Z'
6840 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6841 lt_prog_compiler_static='${wl}-a ${wl}archive'
6844 irix5* | irix6* | nonstopux*)
6845 lt_prog_compiler_wl='-Wl,'
6846 # PIC (with -KPIC) is the default.
6847 lt_prog_compiler_static='-non_shared'
6851 lt_prog_compiler_pic='-KPIC'
6852 lt_prog_compiler_static='-Bstatic'
6858 lt_prog_compiler_wl='-Wl,'
6859 lt_prog_compiler_pic='-KPIC'
6860 lt_prog_compiler_static='-static'
6863 lt_prog_compiler_wl='-Wl,'
6864 # All Alpha code is PIC.
6865 lt_prog_compiler_static='-non_shared'
6870 osf3* | osf4* | osf5*)
6871 lt_prog_compiler_wl='-Wl,'
6872 # All OSF/1 code is PIC.
6873 lt_prog_compiler_static='-non_shared'
6877 lt_prog_compiler_pic='-Kpic'
6878 lt_prog_compiler_static='-dn'
6882 lt_prog_compiler_wl='-Wl,'
6883 lt_prog_compiler_pic='-KPIC'
6884 lt_prog_compiler_static='-Bstatic'
6888 lt_prog_compiler_wl='-Qoption ld '
6889 lt_prog_compiler_pic='-PIC'
6890 lt_prog_compiler_static='-Bstatic'
6893 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6894 lt_prog_compiler_wl='-Wl,'
6895 lt_prog_compiler_pic='-KPIC'
6896 lt_prog_compiler_static='-Bstatic'
6900 if test -d /usr/nec ;then
6901 lt_prog_compiler_pic='-Kconform_pic'
6902 lt_prog_compiler_static='-Bstatic'
6907 lt_prog_compiler_pic='-pic'
6908 lt_prog_compiler_static='-Bstatic'
6912 lt_prog_compiler_can_build_shared=no
6917 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6918 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6921 # Check to make sure the PIC flag actually works.
6923 if test -n "$lt_prog_compiler_pic"; then
6925 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6926 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6927 if test "${lt_prog_compiler_pic_works+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 lt_prog_compiler_pic_works=no
6931 ac_outfile=conftest.$ac_objext
6932 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6933 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6934 # Insert the option either (1) after the last *FLAGS variable, or
6935 # (2) before a word containing "conftest.", or (3) at the end.
6936 # Note that $ac_compile itself does not contain backslashes and begins
6937 # with a dollar sign (not a hyphen), so the echo should work correctly.
6938 # The option is referenced via a variable to avoid confusing sed.
6939 lt_compile=`echo "$ac_compile" | $SED \
6940 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6942 -e 's:$: $lt_compiler_flag:'`
6943 (eval echo "\"\$as_me:6943: $lt_compile\"" >&5)
6944 (eval "$lt_compile" 2>conftest.err)
6946 cat conftest.err >&5
6947 echo "$as_me:6947: \$? = $ac_status" >&5
6948 if (exit $ac_status) && test -s "$ac_outfile"; then
6949 # The compiler can only warn and ignore the option if not recognized
6950 # So say no if there are warnings
6951 if test ! -s conftest.err; then
6952 lt_prog_compiler_pic_works=yes
6958 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6959 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6961 if test x"$lt_prog_compiler_pic_works" = xyes; then
6962 case $lt_prog_compiler_pic in
6964 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6967 lt_prog_compiler_pic=
6968 lt_prog_compiler_can_build_shared=no
6973 # For platforms which do not support PIC, -DPIC is meaningless:
6975 lt_prog_compiler_pic=
6978 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6982 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6983 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6984 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 lt_cv_prog_compiler_c_o=no
6988 $rm -r conftest 2>/dev/null
6992 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6994 lt_compiler_flag="-o out/conftest2.$ac_objext"
6995 # Insert the option either (1) after the last *FLAGS variable, or
6996 # (2) before a word containing "conftest.", or (3) at the end.
6997 # Note that $ac_compile itself does not contain backslashes and begins
6998 # with a dollar sign (not a hyphen), so the echo should work correctly.
6999 lt_compile=`echo "$ac_compile" | $SED \
7000 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7002 -e 's:$: $lt_compiler_flag:'`
7003 (eval echo "\"\$as_me:7003: $lt_compile\"" >&5)
7004 (eval "$lt_compile" 2>out/conftest.err)
7006 cat out/conftest.err >&5
7007 echo "$as_me:7007: \$? = $ac_status" >&5
7008 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7010 # The compiler can only warn and ignore the option if not recognized
7011 # So say no if there are warnings
7012 if test ! -s out/conftest.err; then
7013 lt_cv_prog_compiler_c_o=yes
7018 # SGI C++ compiler will create directory out/ii_files/ for
7019 # template instantiation
7020 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7021 $rm out/* && rmdir out
7027 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7028 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7031 hard_links="nottested"
7032 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7033 # do not overwrite the value of need_locks provided by the user
7034 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7035 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7038 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7040 ln conftest.a conftest.b 2>&5 || hard_links=no
7041 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7042 { echo "$as_me:$LINENO: result: $hard_links" >&5
7043 echo "${ECHO_T}$hard_links" >&6; }
7044 if test "$hard_links" = no; then
7045 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7046 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7053 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7054 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7057 allow_undefined_flag=
7058 enable_shared_with_static_runtimes=no
7060 archive_expsym_cmds=
7061 old_archive_From_new_cmds=
7062 old_archive_from_expsyms_cmds=
7063 export_dynamic_flag_spec=
7064 whole_archive_flag_spec=
7065 thread_safe_flag_spec=
7066 hardcode_libdir_flag_spec=
7067 hardcode_libdir_flag_spec_ld=
7068 hardcode_libdir_separator=
7071 hardcode_shlibpath_var=unsupported
7072 link_all_deplibs=unknown
7073 hardcode_automatic=no
7076 always_export_symbols=no
7077 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7078 # include_expsyms should be a list of space-separated symbols to be *always*
7079 # included in the symbol list
7081 # exclude_expsyms can be an extended regexp of symbols to exclude
7082 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7083 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7084 # as well as any symbol that contains `d'.
7085 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7086 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7087 # platforms (ab)use it in PIC code, but their linkers get confused if
7088 # the symbol is explicitly referenced. Since portable code cannot
7089 # rely on this symbol name, it's probably fine to never include it in
7090 # preloaded symbol tables.
7091 extract_expsyms_cmds=
7094 cygwin* | mingw* | pw32*)
7095 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7096 # When not using gcc, we currently assume that we are using
7097 # Microsoft Visual C++.
7098 if test "$GCC" != yes; then
7108 if test "$with_gnu_ld" = yes; then
7109 # If archive_cmds runs LD, not CC, wlarc should be empty
7112 # See if GNU ld supports shared libraries.
7114 aix3* | aix4* | aix5*)
7115 # On AIX/PPC, the GNU linker is very broken
7116 if test "$host_cpu" != ia64; then
7120 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7121 *** to be unable to reliably create shared libraries on AIX.
7122 *** Therefore, libtool is disabling shared libraries support. If you
7123 *** really care for shared libraries, you may want to modify your PATH
7124 *** so that a non-GNU linker is found, and then restart.
7131 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)'
7132 hardcode_libdir_flag_spec='-L$libdir'
7133 hardcode_minus_L=yes
7135 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7136 # that the semantics of dynamic libraries on AmigaOS, at least up
7137 # to version 4, is to share data among multiple programs linked
7138 # with the same dynamic library. Since this doesn't match the
7139 # behavior of shared libraries on other platforms, we can't use
7145 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7146 allow_undefined_flag=unsupported
7147 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7148 # support --undefined. This deserves some investigation. FIXME
7149 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7155 cygwin* | mingw* | pw32*)
7156 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7157 # as there is no search path for DLLs.
7158 hardcode_libdir_flag_spec='-L$libdir'
7159 allow_undefined_flag=unsupported
7160 always_export_symbols=no
7161 enable_shared_with_static_runtimes=yes
7162 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7164 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7166 # If the export-symbols file already is a .def file (1st line
7167 # is EXPORTS), use it as is; otherwise, prepend...
7168 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7169 cp $export_symbols $output_objdir/$soname.def;
7171 echo EXPORTS > $output_objdir/$soname.def;
7172 cat $export_symbols >> $output_objdir/$soname.def;
7174 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7181 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7182 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7186 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7191 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7195 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7196 *** create shared libraries on Solaris systems. Therefore, libtool
7197 *** is disabling shared libraries support. We urge you to upgrade GNU
7198 *** binutils to release 2.9.1 or newer. Another option is to modify
7199 *** your PATH or compiler configuration so that the native linker is
7200 *** used, and then restart.
7203 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7205 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7212 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7215 hardcode_shlibpath_var=no
7219 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7220 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7221 archive_cmds="$tmp_archive_cmds"
7222 supports_anon_versioning=no
7223 case `$LD -v 2>/dev/null` in
7224 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7225 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7226 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7227 *\ 2.11.*) ;; # other 2.11 versions
7228 *) supports_anon_versioning=yes ;;
7230 if test $supports_anon_versioning = yes; then
7231 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7232 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7233 $echo "local: *; };" >> $output_objdir/$libname.ver~
7234 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7236 archive_expsym_cmds="$tmp_archive_cmds"
7244 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7246 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7253 if test "$ld_shlibs" = yes; then
7254 runpath_var=LD_RUN_PATH
7255 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7256 export_dynamic_flag_spec='${wl}--export-dynamic'
7257 # ancient GNU ld didn't support --whole-archive et. al.
7258 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7259 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7261 whole_archive_flag_spec=
7265 # PORTME fill in a description of your system's linker (not GNU ld)
7268 allow_undefined_flag=unsupported
7269 always_export_symbols=yes
7270 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'
7271 # Note: this linker hardcodes the directories in LIBPATH if there
7272 # are no directories specified by -L.
7273 hardcode_minus_L=yes
7274 if test "$GCC" = yes && test -z "$link_static_flag"; then
7275 # Neither direct hardcoding nor static linking is supported with a
7277 hardcode_direct=unsupported
7282 if test "$host_cpu" = ia64; then
7283 # On IA64, the linker does run time linking by default, so we don't
7284 # have to do anything special.
7285 aix_use_runtimelinking=no
7286 exp_sym_flag='-Bexport'
7289 # If we're using GNU nm, then we don't want the "-C" option.
7290 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7291 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7292 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'
7294 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'
7296 aix_use_runtimelinking=no
7298 # Test if we are trying to use run time linking or normal
7299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7300 # need to do runtime linking.
7301 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7302 for ld_flag in $LDFLAGS; do
7303 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7304 aix_use_runtimelinking=yes
7310 exp_sym_flag='-bexport'
7311 no_entry_flag='-bnoentry'
7314 # When large executables or shared objects are built, AIX ld can
7315 # have problems creating the table of contents. If linking a library
7316 # or program results in "error TOC overflow" add -mminimal-toc to
7317 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7318 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7322 hardcode_libdir_separator=':'
7323 link_all_deplibs=yes
7325 if test "$GCC" = yes; then
7326 case $host_os in aix4.012|aix4.012.*)
7327 # We only want to do this on AIX 4.2 and lower, the check
7328 # below for broken collect2 doesn't work under 4.3+
7329 collect2name=`${CC} -print-prog-name=collect2`
7330 if test -f "$collect2name" && \
7331 strings "$collect2name" | grep resolve_lib_name >/dev/null
7333 # We have reworked collect2
7336 # We have old collect2
7337 hardcode_direct=unsupported
7338 # It fails to find uninstalled libraries when the uninstalled
7339 # path is not listed in the libpath. Setting hardcode_minus_L
7340 # to unsupported forces relinking
7341 hardcode_minus_L=yes
7342 hardcode_libdir_flag_spec='-L$libdir'
7343 hardcode_libdir_separator=
7346 shared_flag='-shared'
7349 if test "$host_cpu" = ia64; then
7350 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7351 # chokes on -Wl,-G. The following line is correct:
7354 if test "$aix_use_runtimelinking" = yes; then
7355 shared_flag='${wl}-G'
7357 shared_flag='${wl}-bM:SRE'
7362 # It seems that -bexpall does not export symbols beginning with
7363 # underscore (_), so it is better to generate a list of symbols to export.
7364 always_export_symbols=yes
7365 if test "$aix_use_runtimelinking" = yes; then
7366 # Warning - without using the other runtime loading flags (-brtl),
7367 # -berok will link without error, but may produce a broken library.
7368 allow_undefined_flag='-berok'
7369 # Determine the default libpath from the value encoded in an empty executable.
7370 cat >conftest.$ac_ext <<_ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7385 rm -f conftest.$ac_objext conftest$ac_exeext
7386 if { (ac_try="$ac_link"
7388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7389 *) ac_try_echo=$ac_try;;
7391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7392 (eval "$ac_link") 2>conftest.er1
7394 grep -v '^ *+' conftest.er1 >conftest.err
7396 cat conftest.err >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } && {
7399 test -z "$ac_c_werror_flag" ||
7400 test ! -s conftest.err
7401 } && test -s conftest$ac_exeext &&
7402 $as_test_x conftest$ac_exeext; then
7404 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7406 # Check for a 64-bit object if we didn't find anything.
7407 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; }
7410 echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7417 conftest$ac_exeext conftest.$ac_ext
7418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7420 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7421 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7423 if test "$host_cpu" = ia64; then
7424 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7425 allow_undefined_flag="-z nodefs"
7426 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7428 # Determine the default libpath from the value encoded in an empty executable.
7429 cat >conftest.$ac_ext <<_ACEOF
7432 cat confdefs.h >>conftest.$ac_ext
7433 cat >>conftest.$ac_ext <<_ACEOF
7434 /* end confdefs.h. */
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (ac_try="$ac_link"
7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7451 (eval "$ac_link") 2>conftest.er1
7453 grep -v '^ *+' conftest.er1 >conftest.err
7455 cat conftest.err >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } && {
7458 test -z "$ac_c_werror_flag" ||
7459 test ! -s conftest.err
7460 } && test -s conftest$ac_exeext &&
7461 $as_test_x conftest$ac_exeext; then
7463 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7465 # Check for a 64-bit object if we didn't find anything.
7466 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; }
7469 echo "$as_me: failed program was:" >&5
7470 sed 's/^/| /' conftest.$ac_ext >&5
7475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7476 conftest$ac_exeext conftest.$ac_ext
7477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7479 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7480 # Warning - without using the other run time loading flags,
7481 # -berok will link without error, but may produce a broken library.
7482 no_undefined_flag=' ${wl}-bernotok'
7483 allow_undefined_flag=' ${wl}-berok'
7484 # -bexpall does not export symbols beginning with underscore (_)
7485 always_export_symbols=yes
7486 # Exported symbols can be pulled into shared objects from archives
7487 whole_archive_flag_spec=' '
7488 archive_cmds_need_lc=yes
7489 # This is similar to how AIX traditionally builds it's shared libraries.
7490 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7496 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)'
7497 hardcode_libdir_flag_spec='-L$libdir'
7498 hardcode_minus_L=yes
7499 # see comment about different semantics on the GNU ld section
7504 export_dynamic_flag_spec=-rdynamic
7507 cygwin* | mingw* | pw32*)
7508 # When not using gcc, we currently assume that we are using
7509 # Microsoft Visual C++.
7510 # hardcode_libdir_flag_spec is actually meaningless, as there is
7511 # no search path for DLLs.
7512 hardcode_libdir_flag_spec=' '
7513 allow_undefined_flag=unsupported
7514 # Tell ltmain to make .lib files, not .a files.
7516 # Tell ltmain to make .dll files, not .so files.
7518 # FIXME: Setting linknames here is a bad hack.
7519 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7520 # The linker will automatically build a .lib file if we build a DLL.
7521 old_archive_From_new_cmds='true'
7522 # FIXME: Should let the user specify the lib program.
7523 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7524 fix_srcfile_path='`cygpath -w "$srcfile"`'
7525 enable_shared_with_static_runtimes=yes
7528 darwin* | rhapsody*)
7529 if test "$GXX" = yes ; then
7530 archive_cmds_need_lc=no
7532 rhapsody* | darwin1.[012])
7533 allow_undefined_flag='-undefined suppress'
7536 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7537 allow_undefined_flag='-flat_namespace -undefined suppress'
7539 case ${MACOSX_DEPLOYMENT_TARGET} in
7541 allow_undefined_flag='-flat_namespace -undefined suppress'
7544 allow_undefined_flag='-undefined dynamic_lookup'
7550 lt_int_apple_cc_single_mod=no
7551 output_verbose_link_cmd='echo'
7552 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7553 lt_int_apple_cc_single_mod=yes
7555 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7556 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7558 archive_cmds='$CC -r ${wl}-bind_at_load -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'
7560 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7561 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7562 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7563 archive_expsym_cmds='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}'
7565 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7567 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}'
7569 hardcode_automatic=yes
7570 hardcode_shlibpath_var=unsupported
7571 whole_archive_flag_spec='-all_load $convenience'
7572 link_all_deplibs=yes
7579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7580 hardcode_libdir_flag_spec='-L$libdir'
7581 hardcode_shlibpath_var=no
7588 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7589 # support. Future versions do this automatically, but an explicit c++rt0.o
7590 # does not break anything, and helps significantly (at the cost of a little
7593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7594 hardcode_libdir_flag_spec='-R$libdir'
7596 hardcode_shlibpath_var=no
7599 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7601 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7603 hardcode_minus_L=yes
7604 hardcode_shlibpath_var=no
7607 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7608 freebsd* | kfreebsd*-gnu)
7609 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7610 hardcode_libdir_flag_spec='-R$libdir'
7612 hardcode_shlibpath_var=no
7616 if test "$GCC" = yes; then
7617 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'
7619 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'
7621 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7622 hardcode_libdir_separator=:
7625 # hardcode_minus_L: Not really in the search PATH,
7626 # but as the default location of the library.
7627 hardcode_minus_L=yes
7628 export_dynamic_flag_spec='${wl}-E'
7632 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7635 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7638 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7644 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7647 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7651 if test "$with_gnu_ld" = no; then
7654 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7655 hardcode_libdir_flag_spec_ld='+b $libdir'
7656 hardcode_libdir_separator=:
7658 hardcode_shlibpath_var=no
7661 hardcode_libdir_flag_spec='-L$libdir'
7663 hardcode_shlibpath_var=no
7665 # hardcode_minus_L: Not really in the search PATH,
7666 # but as the default location of the library.
7667 hardcode_minus_L=yes
7670 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7671 hardcode_libdir_separator=:
7673 export_dynamic_flag_spec='${wl}-E'
7675 # hardcode_minus_L: Not really in the search PATH,
7676 # but as the default location of the library.
7677 hardcode_minus_L=yes
7683 irix5* | irix6* | nonstopux*)
7684 if test "$GCC" = yes; then
7685 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'
7687 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'
7688 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7691 hardcode_libdir_separator=:
7692 link_all_deplibs=yes
7696 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7697 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7699 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7701 hardcode_libdir_flag_spec='-R$libdir'
7703 hardcode_shlibpath_var=no
7707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7710 hardcode_libdir_separator=:
7711 hardcode_shlibpath_var=no
7716 hardcode_shlibpath_var=no
7717 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7718 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7719 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7720 export_dynamic_flag_spec='${wl}-E'
7723 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7725 hardcode_libdir_flag_spec='-R$libdir'
7728 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7729 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7736 hardcode_libdir_flag_spec='-L$libdir'
7737 hardcode_minus_L=yes
7738 allow_undefined_flag=unsupported
7739 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'
7740 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7744 if test "$GCC" = yes; then
7745 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7746 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'
7748 allow_undefined_flag=' -expect_unresolved \*'
7749 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'
7751 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7752 hardcode_libdir_separator=:
7755 osf4* | osf5*) # as osf3* with the addition of -msym flag
7756 if test "$GCC" = yes; then
7757 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7758 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'
7759 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7761 allow_undefined_flag=' -expect_unresolved \*'
7762 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'
7763 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7764 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7766 # Both c and cxx compiler support -rpath directly
7767 hardcode_libdir_flag_spec='-rpath $libdir'
7769 hardcode_libdir_separator=:
7773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7774 hardcode_shlibpath_var=no
7775 export_dynamic_flag_spec='${wl}-Bexport'
7776 runpath_var=LD_RUN_PATH
7777 hardcode_runpath_var=yes
7781 no_undefined_flag=' -z text'
7782 if test "$GCC" = yes; then
7783 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7784 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7785 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7787 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7788 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7789 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7791 hardcode_libdir_flag_spec='-R$libdir'
7792 hardcode_shlibpath_var=no
7794 solaris2.[0-5] | solaris2.[0-5].*) ;;
7795 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7796 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7798 link_all_deplibs=yes
7802 if test "x$host_vendor" = xsequent; then
7803 # Use $CC to link under sequent, because it throws in some extra .o
7804 # files that make .init and .fini sections work.
7805 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7807 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7809 hardcode_libdir_flag_spec='-L$libdir'
7811 hardcode_minus_L=yes
7812 hardcode_shlibpath_var=no
7816 case $host_vendor in
7818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7819 hardcode_direct=yes # is this really true???
7822 ## LD is ld it makes a PLAMLIB
7823 ## CC just makes a GrossModule.
7824 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7825 reload_cmds='$CC -r -o $output$reload_objs'
7829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7830 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7833 runpath_var='LD_RUN_PATH'
7834 hardcode_shlibpath_var=no
7838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7839 hardcode_shlibpath_var=no
7840 export_dynamic_flag_spec='-Bexport'
7844 if test -d /usr/nec; then
7845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7846 hardcode_shlibpath_var=no
7847 runpath_var=LD_RUN_PATH
7848 hardcode_runpath_var=yes
7854 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7857 hardcode_shlibpath_var=no
7858 hardcode_runpath_var=yes
7859 runpath_var=LD_RUN_PATH
7862 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7863 no_undefined_flag='${wl}-z ${wl}text'
7864 if test "$GCC" = yes; then
7865 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7867 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7869 runpath_var='LD_RUN_PATH'
7870 hardcode_shlibpath_var=no
7874 no_undefined_flag=' -z text'
7875 # $CC -shared without GNU ld will not create a library from C++
7876 # object files and a static libstdc++, better avoid it by now
7877 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7878 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7879 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7880 hardcode_libdir_flag_spec=
7881 hardcode_shlibpath_var=no
7882 runpath_var='LD_RUN_PATH'
7886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7887 hardcode_libdir_flag_spec='-L$libdir'
7888 hardcode_shlibpath_var=no
7897 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7898 echo "${ECHO_T}$ld_shlibs" >&6; }
7899 test "$ld_shlibs" = no && can_build_shared=no
7901 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7902 if test "$GCC" = yes; then
7903 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7907 # Do we need to explicitly link libc?
7909 case "x$archive_cmds_need_lc" in
7911 # Assume -lc should be added
7912 archive_cmds_need_lc=yes
7914 if test "$enable_shared" = yes && test "$GCC" = yes; then
7915 case $archive_cmds in
7917 # FIXME: we may have to deal with multi-command sequences.
7920 # Test whether the compiler implicitly links with -lc since on some
7921 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7922 # to ld, don't add -lc before -lgcc.
7923 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7924 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7926 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929 (eval $ac_compile) 2>&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } 2>conftest.err; then
7935 libobjs=conftest.$ac_objext
7937 wl=$lt_prog_compiler_wl
7943 lt_save_allow_undefined_flag=$allow_undefined_flag
7944 allow_undefined_flag=
7945 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7946 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }
7951 archive_cmds_need_lc=no
7953 archive_cmds_need_lc=yes
7955 allow_undefined_flag=$lt_save_allow_undefined_flag
7957 cat conftest.err 1>&5
7960 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7961 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7968 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7969 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7971 libname_spec='lib$name'
7979 shlibpath_overrides_runpath=unknown
7981 dynamic_linker="$host_os ld.so"
7982 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7983 if test "$GCC" = yes; then
7984 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7985 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7986 # if the path contains ";" then we assume it to be the separator
7987 # otherwise default to the standard path separator (i.e. ":") - it is
7988 # assumed that no part of a normal pathname contains ";" but that should
7989 # okay in the real world where ";" in dirpaths is itself problematic.
7990 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7992 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7995 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7997 need_lib_prefix=unknown
7998 hardcode_into_libs=no
8000 # when you set need_version to no, make sure it does not cause -set_version
8001 # flags to be left without arguments
8002 need_version=unknown
8007 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8008 shlibpath_var=LIBPATH
8010 # AIX 3 has no versioning support, so we append a major version to the name.
8011 soname_spec='${libname}${release}${shared_ext}$major'
8018 hardcode_into_libs=yes
8019 if test "$host_cpu" = ia64; then
8020 # AIX 5 supports IA64
8021 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8022 shlibpath_var=LD_LIBRARY_PATH
8024 # With GCC up to 2.95.x, collect2 would create an import file
8025 # for dependence libraries. The import file would start with
8026 # the line `#! .'. This would cause the generated library to
8027 # depend on `.', always an invalid library. This was fixed in
8028 # development snapshots of GCC prior to 3.0.
8030 aix4 | aix4.[01] | aix4.[01].*)
8031 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8033 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8040 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8041 # soname into executable. Probably we can add versioning support to
8042 # collect2, so additional links can be useful in future.
8043 if test "$aix_use_runtimelinking" = yes; then
8044 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8045 # instead of lib<name>.a to let people know that these are not
8046 # typical AIX shared libraries.
8047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8049 # We preserve .a as extension for shared libraries through AIX4.2
8050 # and later when we are not doing run time linking.
8051 library_names_spec='${libname}${release}.a $libname.a'
8052 soname_spec='${libname}${release}${shared_ext}$major'
8054 shlibpath_var=LIBPATH
8059 library_names_spec='$libname.ixlibrary $libname.a'
8060 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8061 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'
8065 library_names_spec='${libname}${shared_ext}'
8066 dynamic_linker="$host_os ld.so"
8067 shlibpath_var=LIBRARY_PATH
8073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8074 soname_spec='${libname}${release}${shared_ext}$major'
8075 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8076 shlibpath_var=LD_LIBRARY_PATH
8077 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8078 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8079 # the default ld.so.conf also contains /usr/contrib/lib and
8080 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8081 # libtool to hard-code these into programs
8084 cygwin* | mingw* | pw32*)
8085 version_type=windows
8090 case $GCC,$host_os in
8091 yes,cygwin* | yes,mingw* | yes,pw32*)
8092 library_names_spec='$libname.dll.a'
8093 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8094 postinstall_cmds='base_file=`basename \${file}`~
8095 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8096 dldir=$destdir/`dirname \$dlpath`~
8097 test -d \$dldir || mkdir -p \$dldir~
8098 $install_prog $dir/$dlname \$dldir/$dlname'
8099 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8100 dlpath=$dir/\$dldll~
8102 shlibpath_overrides_runpath=yes
8106 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8107 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8108 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8111 # MinGW DLLs use traditional 'lib' prefix
8112 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8113 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8114 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8115 # It is most probably a Windows format PATH printed by
8116 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8117 # path with ; separators, and with drive letters. We can handle the
8118 # drive letters (cygwin fileutils understands them), so leave them,
8119 # especially as we might pass files found there to a mingw objdump,
8120 # which wouldn't understand a cygwinified path. Ahh.
8121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8123 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8127 # pw32 DLLs use 'pw' prefix rather than 'lib'
8128 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8134 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8137 dynamic_linker='Win32 ld.exe'
8138 # FIXME: first we should search . and the directory the executable is in
8142 darwin* | rhapsody*)
8143 dynamic_linker="$host_os dyld"
8147 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8148 soname_spec='${libname}${release}${major}$shared_ext'
8149 shlibpath_overrides_runpath=yes
8150 shlibpath_var=DYLD_LIBRARY_PATH
8151 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8152 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8153 if test "$GCC" = yes; then
8154 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"`
8156 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8158 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8166 soname_spec='${libname}${release}${shared_ext}$major'
8167 shlibpath_var=LD_LIBRARY_PATH
8178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8179 soname_spec='${libname}${release}${shared_ext}$major'
8180 shlibpath_var=LD_LIBRARY_PATH
8181 shlibpath_overrides_runpath=no
8182 hardcode_into_libs=yes
8183 dynamic_linker='GNU ld.so'
8187 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8188 version_type=freebsd-$objformat
8189 case $version_type in
8191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8196 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8200 shlibpath_var=LD_LIBRARY_PATH
8203 shlibpath_overrides_runpath=yes
8205 freebsd3.01* | freebsdelf3.01*)
8206 shlibpath_overrides_runpath=yes
8207 hardcode_into_libs=yes
8210 shlibpath_overrides_runpath=no
8211 hardcode_into_libs=yes
8220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8221 soname_spec='${libname}${release}${shared_ext}$major'
8222 shlibpath_var=LD_LIBRARY_PATH
8223 hardcode_into_libs=yes
8226 hpux9* | hpux10* | hpux11*)
8227 # Give a soname corresponding to the major version so that dld.sl refuses to
8228 # link against other versions.
8235 hardcode_into_libs=yes
8236 dynamic_linker="$host_os dld.so"
8237 shlibpath_var=LD_LIBRARY_PATH
8238 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8240 soname_spec='${libname}${release}${shared_ext}$major'
8241 if test "X$HPUX_IA64_MODE" = X32; then
8242 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8244 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8250 hardcode_into_libs=yes
8251 dynamic_linker="$host_os dld.sl"
8252 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8253 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8255 soname_spec='${libname}${release}${shared_ext}$major'
8256 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8261 dynamic_linker="$host_os dld.sl"
8262 shlibpath_var=SHLIB_PATH
8263 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8265 soname_spec='${libname}${release}${shared_ext}$major'
8268 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8269 postinstall_cmds='chmod 555 $lib'
8272 irix5* | irix6* | nonstopux*)
8274 nonstopux*) version_type=nonstopux ;;
8276 if test "$lt_cv_prog_gnu_ld" = yes; then
8284 soname_spec='${libname}${release}${shared_ext}$major'
8285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8287 irix5* | nonstopux*)
8291 case $LD in # libtool.m4 will add one of these switches to LD
8292 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8293 libsuff= shlibsuff= libmagic=32-bit;;
8294 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8295 libsuff=32 shlibsuff=N32 libmagic=N32;;
8296 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8297 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8298 *) libsuff= shlibsuff= libmagic=never-match;;
8302 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8303 shlibpath_overrides_runpath=no
8304 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8305 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8306 hardcode_into_libs=yes
8309 # No shared lib support for Linux oldld, aout, or coff.
8310 linux*oldld* | linux*aout* | linux*coff*)
8314 # This must be Linux ELF.
8319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8320 soname_spec='${libname}${release}${shared_ext}$major'
8321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8322 shlibpath_var=LD_LIBRARY_PATH
8323 shlibpath_overrides_runpath=no
8324 # This implies no fast_install, which is unacceptable.
8325 # Some rework will be needed to allow for fast_install
8326 # before this can be enabled.
8327 hardcode_into_libs=yes
8329 # find out which ABI we are using
8332 x86_64*|s390x*|powerpc64*)
8333 echo '#line 8333 "configure"' > conftest.$ac_ext
8334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8335 (eval $ac_compile) 2>&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; then
8339 case `/usr/bin/file conftest.$ac_objext` in
8342 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8350 # Append ld.so.conf contents to the search path
8351 if test -f /etc/ld.so.conf; then
8352 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8353 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8356 # We used to test for /lib/ld.so.1 and disable shared libraries on
8357 # powerpc, because MkLinux only supported shared libraries with the
8358 # GNU dynamic linker. Since this was broken with cross compilers,
8359 # most powerpc-linux boxes support dynamic linking these days and
8360 # people can always --disable-shared, the test was removed, and we
8361 # assume the GNU/Linux dynamic linker is in use.
8362 dynamic_linker='GNU/Linux ld.so'
8369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8370 soname_spec='${libname}${release}${shared_ext}$major'
8371 shlibpath_var=LD_LIBRARY_PATH
8372 shlibpath_overrides_runpath=no
8373 hardcode_into_libs=yes
8374 dynamic_linker='GNU ld.so'
8381 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8384 dynamic_linker='NetBSD (a.out) ld.so'
8386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8387 soname_spec='${libname}${release}${shared_ext}$major'
8388 dynamic_linker='NetBSD ld.elf_so'
8390 shlibpath_var=LD_LIBRARY_PATH
8391 shlibpath_overrides_runpath=yes
8392 hardcode_into_libs=yes
8397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8398 shlibpath_var=LD_LIBRARY_PATH
8399 shlibpath_overrides_runpath=yes
8406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8407 soname_spec='${libname}${release}${shared_ext}$major'
8408 shlibpath_var=LD_LIBRARY_PATH
8409 shlibpath_overrides_runpath=yes
8416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8418 shlibpath_var=LD_LIBRARY_PATH
8419 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8421 openbsd2.[89] | openbsd2.[89].*)
8422 shlibpath_overrides_runpath=no
8425 shlibpath_overrides_runpath=yes
8429 shlibpath_overrides_runpath=yes
8434 libname_spec='$name'
8437 library_names_spec='$libname${shared_ext} $libname.a'
8438 dynamic_linker='OS/2 ld.exe'
8439 shlibpath_var=LIBPATH
8442 osf3* | osf4* | osf5*)
8446 soname_spec='${libname}${release}${shared_ext}$major'
8447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8448 shlibpath_var=LD_LIBRARY_PATH
8449 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8450 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8455 soname_spec='${libname}${release}${shared_ext}$major'
8456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8457 shlibpath_var=LD_LIBRARY_PATH
8464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8465 soname_spec='${libname}${release}${shared_ext}$major'
8466 shlibpath_var=LD_LIBRARY_PATH
8467 shlibpath_overrides_runpath=yes
8468 hardcode_into_libs=yes
8469 # ldd complains unless libraries are executable
8470 postinstall_cmds='chmod +x $lib'
8475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8476 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8477 shlibpath_var=LD_LIBRARY_PATH
8478 shlibpath_overrides_runpath=yes
8479 if test "$with_gnu_ld" = yes; then
8485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8488 soname_spec='${libname}${release}${shared_ext}$major'
8489 shlibpath_var=LD_LIBRARY_PATH
8490 case $host_vendor in
8492 shlibpath_overrides_runpath=no
8494 export_dynamic_flag_spec='${wl}-Blargedynsym'
8495 runpath_var=LD_RUN_PATH
8503 shlibpath_overrides_runpath=no
8504 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8510 if test -d /usr/nec ;then
8512 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8513 soname_spec='$libname${shared_ext}.$major'
8514 shlibpath_var=LD_LIBRARY_PATH
8520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8521 soname_spec='${libname}${release}${shared_ext}$major'
8522 shlibpath_var=LD_LIBRARY_PATH
8529 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8530 echo "${ECHO_T}$dynamic_linker" >&6; }
8531 test "$dynamic_linker" = no && can_build_shared=no
8533 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8534 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8536 if test -n "$hardcode_libdir_flag_spec" || \
8537 test -n "$runpath_var " || \
8538 test "X$hardcode_automatic"="Xyes" ; then
8540 # We can hardcode non-existant directories.
8541 if test "$hardcode_direct" != no &&
8542 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8543 # have to relink, otherwise we might link with an installed library
8544 # when we should be linking with a yet-to-be-installed one
8545 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8546 test "$hardcode_minus_L" != no; then
8547 # Linking always hardcodes the temporary library directory.
8548 hardcode_action=relink
8550 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8551 hardcode_action=immediate
8554 # We cannot hardcode anything, or else we can only hardcode existing
8556 hardcode_action=unsupported
8558 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8559 echo "${ECHO_T}$hardcode_action" >&6; }
8561 if test "$hardcode_action" = relink; then
8562 # Fast installation is not supported
8563 enable_fast_install=no
8564 elif test "$shlibpath_overrides_runpath" = yes ||
8565 test "$enable_shared" = no; then
8566 # Fast installation is not necessary
8567 enable_fast_install=needless
8572 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8573 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8574 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8575 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8576 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8577 { echo "$as_me:$LINENO: result: yes" >&5
8578 echo "${ECHO_T}yes" >&6; }
8580 # FIXME - insert some real tests, host_os isn't really good enough
8583 if test -n "$STRIP" ; then
8584 striplib="$STRIP -x"
8585 { echo "$as_me:$LINENO: result: yes" >&5
8586 echo "${ECHO_T}yes" >&6; }
8588 { echo "$as_me:$LINENO: result: no" >&5
8589 echo "${ECHO_T}no" >&6; }
8593 { echo "$as_me:$LINENO: result: no" >&5
8594 echo "${ECHO_T}no" >&6; }
8599 if test "x$enable_dlopen" != xyes; then
8600 enable_dlopen=unknown
8601 enable_dlopen_self=unknown
8602 enable_dlopen_self_static=unknown
8609 lt_cv_dlopen="load_add_on"
8611 lt_cv_dlopen_self=yes
8615 lt_cv_dlopen="LoadLibrary"
8620 lt_cv_dlopen="dlopen"
8625 # if libdl is installed we need to link against it
8626 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8627 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8629 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 ac_check_lib_save_LIBS=$LIBS
8633 cat >conftest.$ac_ext <<_ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8640 /* Override any GCC internal prototype to avoid an error.
8641 Use char because int might match the return type of a GCC
8642 builtin and then its argument prototype would still apply. */
8655 rm -f conftest.$ac_objext conftest$ac_exeext
8656 if { (ac_try="$ac_link"
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662 (eval "$ac_link") 2>conftest.er1
8664 grep -v '^ *+' conftest.er1 >conftest.err
8666 cat conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } && {
8669 test -z "$ac_c_werror_flag" ||
8670 test ! -s conftest.err
8671 } && test -s conftest$ac_exeext &&
8672 $as_test_x conftest$ac_exeext; then
8673 ac_cv_lib_dl_dlopen=yes
8675 echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8678 ac_cv_lib_dl_dlopen=no
8681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8682 conftest$ac_exeext conftest.$ac_ext
8683 LIBS=$ac_check_lib_save_LIBS
8685 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8686 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8687 if test $ac_cv_lib_dl_dlopen = yes; then
8688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8693 lt_cv_dlopen_self=yes
8700 { echo "$as_me:$LINENO: checking for shl_load" >&5
8701 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8702 if test "${ac_cv_func_shl_load+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 cat >conftest.$ac_ext <<_ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8711 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8713 #define shl_load innocuous_shl_load
8715 /* System header to define __stub macros and hopefully few prototypes,
8716 which can conflict with char shl_load (); below.
8717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8718 <limits.h> exists even on freestanding compilers. */
8721 # include <limits.h>
8723 # include <assert.h>
8728 /* Override any GCC internal prototype to avoid an error.
8729 Use char because int might match the return type of a GCC
8730 builtin and then its argument prototype would still apply. */
8735 /* The GNU C library defines this for functions which it implements
8736 to always fail with ENOSYS. Some functions are actually named
8737 something starting with __ and the normal name is an alias. */
8738 #if defined __stub_shl_load || defined __stub___shl_load
8750 rm -f conftest.$ac_objext conftest$ac_exeext
8751 if { (ac_try="$ac_link"
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757 (eval "$ac_link") 2>conftest.er1
8759 grep -v '^ *+' conftest.er1 >conftest.err
8761 cat conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } && {
8764 test -z "$ac_c_werror_flag" ||
8765 test ! -s conftest.err
8766 } && test -s conftest$ac_exeext &&
8767 $as_test_x conftest$ac_exeext; then
8768 ac_cv_func_shl_load=yes
8770 echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8773 ac_cv_func_shl_load=no
8776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8777 conftest$ac_exeext conftest.$ac_ext
8779 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8780 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8781 if test $ac_cv_func_shl_load = yes; then
8782 lt_cv_dlopen="shl_load"
8784 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8785 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8786 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 ac_check_lib_save_LIBS=$LIBS
8791 cat >conftest.$ac_ext <<_ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8798 /* Override any GCC internal prototype to avoid an error.
8799 Use char because int might match the return type of a GCC
8800 builtin and then its argument prototype would still apply. */
8813 rm -f conftest.$ac_objext conftest$ac_exeext
8814 if { (ac_try="$ac_link"
8816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817 *) ac_try_echo=$ac_try;;
8819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8820 (eval "$ac_link") 2>conftest.er1
8822 grep -v '^ *+' conftest.er1 >conftest.err
8824 cat conftest.err >&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } && {
8827 test -z "$ac_c_werror_flag" ||
8828 test ! -s conftest.err
8829 } && test -s conftest$ac_exeext &&
8830 $as_test_x conftest$ac_exeext; then
8831 ac_cv_lib_dld_shl_load=yes
8833 echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8836 ac_cv_lib_dld_shl_load=no
8839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8840 conftest$ac_exeext conftest.$ac_ext
8841 LIBS=$ac_check_lib_save_LIBS
8843 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8844 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8845 if test $ac_cv_lib_dld_shl_load = yes; then
8846 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8848 { echo "$as_me:$LINENO: checking for dlopen" >&5
8849 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8850 if test "${ac_cv_func_dlopen+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 cat >conftest.$ac_ext <<_ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8861 #define dlopen innocuous_dlopen
8863 /* System header to define __stub macros and hopefully few prototypes,
8864 which can conflict with char dlopen (); below.
8865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8866 <limits.h> exists even on freestanding compilers. */
8869 # include <limits.h>
8871 # include <assert.h>
8876 /* Override any GCC internal prototype to avoid an error.
8877 Use char because int might match the return type of a GCC
8878 builtin and then its argument prototype would still apply. */
8883 /* The GNU C library defines this for functions which it implements
8884 to always fail with ENOSYS. Some functions are actually named
8885 something starting with __ and the normal name is an alias. */
8886 #if defined __stub_dlopen || defined __stub___dlopen
8898 rm -f conftest.$ac_objext conftest$ac_exeext
8899 if { (ac_try="$ac_link"
8901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8902 *) ac_try_echo=$ac_try;;
8904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8905 (eval "$ac_link") 2>conftest.er1
8907 grep -v '^ *+' conftest.er1 >conftest.err
8909 cat conftest.err >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } && {
8912 test -z "$ac_c_werror_flag" ||
8913 test ! -s conftest.err
8914 } && test -s conftest$ac_exeext &&
8915 $as_test_x conftest$ac_exeext; then
8916 ac_cv_func_dlopen=yes
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8921 ac_cv_func_dlopen=no
8924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8925 conftest$ac_exeext conftest.$ac_ext
8927 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8928 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8929 if test $ac_cv_func_dlopen = yes; then
8930 lt_cv_dlopen="dlopen"
8932 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8933 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8934 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 ac_check_lib_save_LIBS=$LIBS
8939 cat >conftest.$ac_ext <<_ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8946 /* Override any GCC internal prototype to avoid an error.
8947 Use char because int might match the return type of a GCC
8948 builtin and then its argument prototype would still apply. */
8961 rm -f conftest.$ac_objext conftest$ac_exeext
8962 if { (ac_try="$ac_link"
8964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965 *) ac_try_echo=$ac_try;;
8967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968 (eval "$ac_link") 2>conftest.er1
8970 grep -v '^ *+' conftest.er1 >conftest.err
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } && {
8975 test -z "$ac_c_werror_flag" ||
8976 test ! -s conftest.err
8977 } && test -s conftest$ac_exeext &&
8978 $as_test_x conftest$ac_exeext; then
8979 ac_cv_lib_dl_dlopen=yes
8981 echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8984 ac_cv_lib_dl_dlopen=no
8987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8988 conftest$ac_exeext conftest.$ac_ext
8989 LIBS=$ac_check_lib_save_LIBS
8991 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8992 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8993 if test $ac_cv_lib_dl_dlopen = yes; then
8994 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8996 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8997 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8998 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9001 ac_check_lib_save_LIBS=$LIBS
9003 cat >conftest.$ac_ext <<_ACEOF
9006 cat confdefs.h >>conftest.$ac_ext
9007 cat >>conftest.$ac_ext <<_ACEOF
9008 /* end confdefs.h. */
9010 /* Override any GCC internal prototype to avoid an error.
9011 Use char because int might match the return type of a GCC
9012 builtin and then its argument prototype would still apply. */
9025 rm -f conftest.$ac_objext conftest$ac_exeext
9026 if { (ac_try="$ac_link"
9028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9029 *) ac_try_echo=$ac_try;;
9031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9032 (eval "$ac_link") 2>conftest.er1
9034 grep -v '^ *+' conftest.er1 >conftest.err
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } && {
9039 test -z "$ac_c_werror_flag" ||
9040 test ! -s conftest.err
9041 } && test -s conftest$ac_exeext &&
9042 $as_test_x conftest$ac_exeext; then
9043 ac_cv_lib_svld_dlopen=yes
9045 echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9048 ac_cv_lib_svld_dlopen=no
9051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9052 conftest$ac_exeext conftest.$ac_ext
9053 LIBS=$ac_check_lib_save_LIBS
9055 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9056 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9057 if test $ac_cv_lib_svld_dlopen = yes; then
9058 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9060 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9061 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9062 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9065 ac_check_lib_save_LIBS=$LIBS
9067 cat >conftest.$ac_ext <<_ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h. */
9074 /* Override any GCC internal prototype to avoid an error.
9075 Use char because int might match the return type of a GCC
9076 builtin and then its argument prototype would still apply. */
9089 rm -f conftest.$ac_objext conftest$ac_exeext
9090 if { (ac_try="$ac_link"
9092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093 *) ac_try_echo=$ac_try;;
9095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9096 (eval "$ac_link") 2>conftest.er1
9098 grep -v '^ *+' conftest.er1 >conftest.err
9100 cat conftest.err >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } && {
9103 test -z "$ac_c_werror_flag" ||
9104 test ! -s conftest.err
9105 } && test -s conftest$ac_exeext &&
9106 $as_test_x conftest$ac_exeext; then
9107 ac_cv_lib_dld_dld_link=yes
9109 echo "$as_me: failed program was:" >&5
9110 sed 's/^/| /' conftest.$ac_ext >&5
9112 ac_cv_lib_dld_dld_link=no
9115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9116 conftest$ac_exeext conftest.$ac_ext
9117 LIBS=$ac_check_lib_save_LIBS
9119 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9120 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9121 if test $ac_cv_lib_dld_dld_link = yes; then
9122 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9143 if test "x$lt_cv_dlopen" != xno; then
9149 case $lt_cv_dlopen in
9151 save_CPPFLAGS="$CPPFLAGS"
9152 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9154 save_LDFLAGS="$LDFLAGS"
9155 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9158 LIBS="$lt_cv_dlopen_libs $LIBS"
9160 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9161 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9162 if test "${lt_cv_dlopen_self+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 if test "$cross_compiling" = yes; then :
9166 lt_cv_dlopen_self=cross
9168 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9169 lt_status=$lt_dlunknown
9170 cat > conftest.$ac_ext <<EOF
9171 #line 9171 "configure"
9172 #include "confdefs.h"
9181 # define LT_DLGLOBAL RTLD_GLOBAL
9184 # define LT_DLGLOBAL DL_GLOBAL
9186 # define LT_DLGLOBAL 0
9190 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9191 find out it does not work in some platform. */
9192 #ifndef LT_DLLAZY_OR_NOW
9194 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9197 # define LT_DLLAZY_OR_NOW DL_LAZY
9200 # define LT_DLLAZY_OR_NOW RTLD_NOW
9203 # define LT_DLLAZY_OR_NOW DL_NOW
9205 # define LT_DLLAZY_OR_NOW 0
9213 extern "C" void exit (int);
9216 void fnord() { int i=42;}
9219 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9220 int status = $lt_dlunknown;
9224 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9225 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9226 /* dlclose (self); */
9232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9233 (eval $ac_link) 2>&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9237 (./conftest; exit; ) 2>/dev/null
9240 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9241 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9242 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9245 # compilation failed
9246 lt_cv_dlopen_self=no
9253 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9254 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9256 if test "x$lt_cv_dlopen_self" = xyes; then
9257 LDFLAGS="$LDFLAGS $link_static_flag"
9258 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9259 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9260 if test "${lt_cv_dlopen_self_static+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9263 if test "$cross_compiling" = yes; then :
9264 lt_cv_dlopen_self_static=cross
9266 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9267 lt_status=$lt_dlunknown
9268 cat > conftest.$ac_ext <<EOF
9269 #line 9269 "configure"
9270 #include "confdefs.h"
9279 # define LT_DLGLOBAL RTLD_GLOBAL
9282 # define LT_DLGLOBAL DL_GLOBAL
9284 # define LT_DLGLOBAL 0
9288 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9289 find out it does not work in some platform. */
9290 #ifndef LT_DLLAZY_OR_NOW
9292 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9295 # define LT_DLLAZY_OR_NOW DL_LAZY
9298 # define LT_DLLAZY_OR_NOW RTLD_NOW
9301 # define LT_DLLAZY_OR_NOW DL_NOW
9303 # define LT_DLLAZY_OR_NOW 0
9311 extern "C" void exit (int);
9314 void fnord() { int i=42;}
9317 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9318 int status = $lt_dlunknown;
9322 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9323 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9324 /* dlclose (self); */
9330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9331 (eval $ac_link) 2>&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9335 (./conftest; exit; ) 2>/dev/null
9338 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9339 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9340 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9343 # compilation failed
9344 lt_cv_dlopen_self_static=no
9351 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9352 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9355 CPPFLAGS="$save_CPPFLAGS"
9356 LDFLAGS="$save_LDFLAGS"
9361 case $lt_cv_dlopen_self in
9362 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9363 *) enable_dlopen_self=unknown ;;
9366 case $lt_cv_dlopen_self_static in
9367 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9368 *) enable_dlopen_self_static=unknown ;;
9373 # Report which librarie types wil actually be built
9374 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9375 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9376 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9377 echo "${ECHO_T}$can_build_shared" >&6; }
9379 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9380 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9381 test "$can_build_shared" = "no" && enable_shared=no
9383 # On AIX, shared libraries and static libraries use the same namespace, and
9384 # are all built from PIC.
9387 test "$enable_shared" = yes && enable_static=no
9388 if test -n "$RANLIB"; then
9389 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9390 postinstall_cmds='$RANLIB $lib'
9395 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9396 test "$enable_shared" = yes && enable_static=no
9399 darwin* | rhapsody*)
9400 if test "$GCC" = yes; then
9401 archive_cmds_need_lc=no
9403 rhapsody* | darwin1.[012])
9404 allow_undefined_flag='-undefined suppress'
9407 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9408 allow_undefined_flag='-flat_namespace -undefined suppress'
9410 case ${MACOSX_DEPLOYMENT_TARGET} in
9412 allow_undefined_flag='-flat_namespace -undefined suppress'
9415 allow_undefined_flag='-undefined dynamic_lookup'
9421 output_verbose_link_cmd='echo'
9422 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9423 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9424 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9425 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}'
9426 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}'
9428 hardcode_automatic=yes
9429 hardcode_shlibpath_var=unsupported
9430 whole_archive_flag_spec='-all_load $convenience'
9431 link_all_deplibs=yes
9437 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9438 echo "${ECHO_T}$enable_shared" >&6; }
9440 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9441 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9442 # Make sure either enable_shared or enable_static is yes.
9443 test "$enable_shared" = yes || enable_static=yes
9444 { echo "$as_me:$LINENO: result: $enable_static" >&5
9445 echo "${ECHO_T}$enable_static" >&6; }
9447 # The else clause should only fire when bootstrapping the
9448 # libtool distribution, otherwise you forgot to ship ltmain.sh
9449 # with your package, and you will get complaints that there are
9450 # no rules to generate ltmain.sh.
9451 if test -f "$ltmain"; then
9452 # See if we are running on zsh, and set the options which allow our commands through
9453 # without removal of \ escapes.
9454 if test -n "${ZSH_VERSION+set}" ; then
9455 setopt NO_GLOB_SUBST
9457 # Now quote all the things that may contain metacharacters while being
9458 # careful not to overquote the AC_SUBSTed values. We take copies of the
9459 # variables and quote the copies for generation of the libtool script.
9460 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9462 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9463 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9464 deplibs_check_method reload_flag reload_cmds need_locks \
9465 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9466 lt_cv_sys_global_symbol_to_c_name_address \
9467 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9468 old_postinstall_cmds old_postuninstall_cmds \
9472 lt_prog_compiler_wl \
9473 lt_prog_compiler_pic \
9474 lt_prog_compiler_static \
9475 lt_prog_compiler_no_builtin_flag \
9476 export_dynamic_flag_spec \
9477 thread_safe_flag_spec \
9478 whole_archive_flag_spec \
9479 enable_shared_with_static_runtimes \
9481 old_archive_from_new_cmds \
9486 compiler_lib_search_path \
9488 archive_expsym_cmds \
9490 postuninstall_cmds \
9491 old_archive_from_expsyms_cmds \
9492 allow_undefined_flag \
9494 export_symbols_cmds \
9495 hardcode_libdir_flag_spec \
9496 hardcode_libdir_flag_spec_ld \
9497 hardcode_libdir_separator \
9498 hardcode_automatic \
9500 module_expsym_cmds \
9501 lt_cv_prog_compiler_c_o \
9506 old_archive_cmds | \
9507 old_archive_from_new_cmds | \
9509 archive_expsym_cmds | \
9511 module_expsym_cmds | \
9512 old_archive_from_expsyms_cmds | \
9513 export_symbols_cmds | \
9514 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9515 postinstall_cmds | postuninstall_cmds | \
9516 old_postinstall_cmds | old_postuninstall_cmds | \
9517 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9518 # Double-quote double-evaled strings.
9519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9522 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9528 *'\$0 --fallback-echo"')
9529 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9534 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9536 { echo "$as_me:$LINENO: creating $ofile" >&5
9537 echo "$as_me: creating $ofile" >&6;}
9539 cat <<__EOF__ >> "$cfgfile"
9542 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9543 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9544 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9546 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9547 # Free Software Foundation, Inc.
9549 # This file is part of GNU Libtool:
9550 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9552 # This program is free software; you can redistribute it and/or modify
9553 # it under the terms of the GNU General Public License as published by
9554 # the Free Software Foundation; either version 2 of the License, or
9555 # (at your option) any later version.
9557 # This program is distributed in the hope that it will be useful, but
9558 # WITHOUT ANY WARRANTY; without even the implied warranty of
9559 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9560 # General Public License for more details.
9562 # You should have received a copy of the GNU General Public License
9563 # along with this program; if not, write to the Free Software
9564 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9566 # As a special exception to the GNU General Public License, if you
9567 # distribute this file as part of a program that contains a
9568 # configuration script generated by Autoconf, you may include it under
9569 # the same distribution terms that you use for the rest of that program.
9571 # A sed program that does not truncate output.
9574 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9575 Xsed="$SED -e s/^X//"
9577 # The HP-UX ksh and POSIX shell print the target directory to stdout
9579 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9581 # The names of the tagged configurations supported by this script.
9584 # ### BEGIN LIBTOOL CONFIG
9586 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9588 # Shell to use when invoking shell scripts.
9591 # Whether or not to build shared libraries.
9592 build_libtool_libs=$enable_shared
9594 # Whether or not to build static libraries.
9595 build_old_libs=$enable_static
9597 # Whether or not to add -lc for building shared libraries.
9598 build_libtool_need_lc=$archive_cmds_need_lc
9600 # Whether or not to disallow shared libs when runtime libs are static
9601 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9603 # Whether or not to optimize for fast installation.
9604 fast_install=$enable_fast_install
9607 host_alias=$host_alias
9610 # An echo program that does not interpret backslashes.
9615 AR_FLAGS=$lt_AR_FLAGS
9620 # A language-specific compiler.
9623 # Is the compiler the GNU C compiler?
9629 # The linker used to build libraries.
9632 # Whether we need hard or soft links.
9635 # A BSD-compatible nm program.
9638 # A symbol stripping program
9641 # Used to examine libraries when file_magic_cmd begins "file"
9642 MAGIC_CMD=$MAGIC_CMD
9644 # Used on cygwin: DLL creation program.
9647 # Used on cygwin: object dumper.
9650 # Used on cygwin: assembler.
9653 # The name of the directory that contains temporary libtool files.
9656 # How to create reloadable object files.
9657 reload_flag=$lt_reload_flag
9658 reload_cmds=$lt_reload_cmds
9660 # How to pass a linker flag through the compiler.
9661 wl=$lt_lt_prog_compiler_wl
9663 # Object file suffix (normally "o").
9666 # Old archive suffix (normally "a").
9669 # Shared library suffix (normally ".so").
9670 shrext_cmds='$shrext_cmds'
9672 # Executable file suffix (normally "").
9675 # Additional compiler flags for building library objects.
9676 pic_flag=$lt_lt_prog_compiler_pic
9679 # What is the maximum length of a command?
9680 max_cmd_len=$lt_cv_sys_max_cmd_len
9682 # Does compiler simultaneously support -c and -o options?
9683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9685 # Must we lock files when doing compilation ?
9686 need_locks=$lt_need_locks
9688 # Do we need the lib prefix for modules?
9689 need_lib_prefix=$need_lib_prefix
9691 # Do we need a version for libraries?
9692 need_version=$need_version
9694 # Whether dlopen is supported.
9695 dlopen_support=$enable_dlopen
9697 # Whether dlopen of programs is supported.
9698 dlopen_self=$enable_dlopen_self
9700 # Whether dlopen of statically linked programs is supported.
9701 dlopen_self_static=$enable_dlopen_self_static
9703 # Compiler flag to prevent dynamic linking.
9704 link_static_flag=$lt_lt_prog_compiler_static
9706 # Compiler flag to turn off builtin functions.
9707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9709 # Compiler flag to allow reflexive dlopens.
9710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9712 # Compiler flag to generate shared objects directly from archives.
9713 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9715 # Compiler flag to generate thread-safe objects.
9716 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9718 # Library versioning type.
9719 version_type=$version_type
9721 # Format of library name prefix.
9722 libname_spec=$lt_libname_spec
9724 # List of archive names. First name is the real one, the rest are links.
9725 # The last name is the one that the linker finds with -lNAME.
9726 library_names_spec=$lt_library_names_spec
9728 # The coded name of the library, if different from the real name.
9729 soname_spec=$lt_soname_spec
9731 # Commands used to build and install an old-style archive.
9733 old_archive_cmds=$lt_old_archive_cmds
9734 old_postinstall_cmds=$lt_old_postinstall_cmds
9735 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9737 # Create an old-style archive from a shared archive.
9738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9740 # Create a temporary old-style archive to link instead of a shared archive.
9741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9743 # Commands used to build and install a shared archive.
9744 archive_cmds=$lt_archive_cmds
9745 archive_expsym_cmds=$lt_archive_expsym_cmds
9746 postinstall_cmds=$lt_postinstall_cmds
9747 postuninstall_cmds=$lt_postuninstall_cmds
9749 # Commands used to build a loadable module (assumed same as above if empty)
9750 module_cmds=$lt_module_cmds
9751 module_expsym_cmds=$lt_module_expsym_cmds
9753 # Commands to strip libraries.
9754 old_striplib=$lt_old_striplib
9755 striplib=$lt_striplib
9757 # Dependencies to place before the objects being linked to create a
9759 predep_objects=$lt_predep_objects
9761 # Dependencies to place after the objects being linked to create a
9763 postdep_objects=$lt_postdep_objects
9765 # Dependencies to place before the objects being linked to create a
9769 # Dependencies to place after the objects being linked to create a
9771 postdeps=$lt_postdeps
9773 # The library search path used internally by the compiler when linking
9775 compiler_lib_search_path=$lt_compiler_lib_search_path
9777 # Method to check whether dependent libraries are shared objects.
9778 deplibs_check_method=$lt_deplibs_check_method
9780 # Command to use when deplibs_check_method == file_magic.
9781 file_magic_cmd=$lt_file_magic_cmd
9783 # Flag that allows shared libraries with undefined symbols to be built.
9784 allow_undefined_flag=$lt_allow_undefined_flag
9786 # Flag that forces no undefined symbols.
9787 no_undefined_flag=$lt_no_undefined_flag
9789 # Commands used to finish a libtool library installation in a directory.
9790 finish_cmds=$lt_finish_cmds
9792 # Same as above, but a single script fragment to be evaled but not shown.
9793 finish_eval=$lt_finish_eval
9795 # Take the output of nm and produce a listing of raw symbols and C names.
9796 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9798 # Transform the output of nm in a proper C declaration
9799 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9801 # Transform the output of nm in a C name address pair
9802 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9804 # This is the shared library runtime path variable.
9805 runpath_var=$runpath_var
9807 # This is the shared library path variable.
9808 shlibpath_var=$shlibpath_var
9810 # Is shlibpath searched before the hard-coded library search path?
9811 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9813 # How to hardcode a shared library path into an executable.
9814 hardcode_action=$hardcode_action
9816 # Whether we should hardcode library paths into libraries.
9817 hardcode_into_libs=$hardcode_into_libs
9819 # Flag to hardcode \$libdir into a binary during linking.
9820 # This must work even if \$libdir does not exist.
9821 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9823 # If ld is used when linking, flag to hardcode \$libdir into
9824 # a binary during linking. This must work even if \$libdir does
9826 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9828 # Whether we need a single -rpath flag with a separated argument.
9829 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9831 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9833 hardcode_direct=$hardcode_direct
9835 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9837 hardcode_minus_L=$hardcode_minus_L
9839 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9840 # the resulting binary.
9841 hardcode_shlibpath_var=$hardcode_shlibpath_var
9843 # Set to yes if building a shared library automatically hardcodes DIR into the library
9844 # and all subsequent libraries and executables linked against it.
9845 hardcode_automatic=$hardcode_automatic
9847 # Variables whose values should be saved in libtool wrapper scripts and
9848 # restored at relink time.
9849 variables_saved_for_relink="$variables_saved_for_relink"
9851 # Whether libtool must link a program against all its dependency libraries.
9852 link_all_deplibs=$link_all_deplibs
9854 # Compile-time system search path for libraries
9855 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9857 # Run-time system search path for libraries
9858 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9860 # Fix the shell variable \$srcfile for the compiler.
9861 fix_srcfile_path="$fix_srcfile_path"
9863 # Set to yes if exported symbols are required.
9864 always_export_symbols=$always_export_symbols
9866 # The commands to list exported symbols.
9867 export_symbols_cmds=$lt_export_symbols_cmds
9869 # The commands to extract the exported symbol list from a shared archive.
9870 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9872 # Symbols that should not be listed in the preloaded symbols.
9873 exclude_expsyms=$lt_exclude_expsyms
9875 # Symbols that must always be exported.
9876 include_expsyms=$lt_include_expsyms
9878 # ### END LIBTOOL CONFIG
9885 cat <<\EOF >> "$cfgfile"
9887 # AIX sometimes has problems with the GCC collect2 program. For some
9888 # reason, if we set the COLLECT_NAMES environment variable, the problems
9889 # vanish in a puff of smoke.
9890 if test "X${COLLECT_NAMES+set}" != Xset; then
9892 export COLLECT_NAMES
9898 # We use sed instead of cat because bash on DJGPP gets confused if
9899 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9900 # text mode, it properly converts lines to CR/LF. This bash problem
9901 # is reportedly fixed, but why not run on old versions too?
9902 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9904 mv -f "$cfgfile" "$ofile" || \
9905 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9909 # If there is no Makefile yet, we rely on a make rule to execute
9910 # `config.status --recheck' to rerun these tests and create the
9911 # libtool script then.
9912 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9913 if test -f "$ltmain_in"; then
9914 test -f Makefile && make "$ltmain"
9920 ac_cpp='$CPP $CPPFLAGS'
9921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9928 # Check whether --with-tags was given.
9929 if test "${with_tags+set}" = set; then
9930 withval=$with_tags; tagnames="$withval"
9934 if test -f "$ltmain" && test -n "$tagnames"; then
9935 if test ! -f "${ofile}"; then
9936 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9937 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9940 if test -z "$LTCC"; then
9941 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9942 if test -z "$LTCC"; then
9943 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9944 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9947 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9951 # Extract list of available tagged configurations in $ofile.
9952 # Note that this assumes the entire list is on one line.
9953 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9955 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9956 for tagname in $tagnames; do
9958 # Check whether tagname contains only valid characters
9959 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9961 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9962 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9963 { (exit 1); exit 1; }; }
9967 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9969 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9970 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9971 { (exit 1); exit 1; }; }
9974 # Update the list of available tags.
9975 if test -n "$tagname"; then
9976 echo appending configuration tag \"$tagname\" to $ofile
9980 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9982 ac_cpp='$CXXCPP $CPPFLAGS'
9983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9990 archive_cmds_need_lc_CXX=no
9991 allow_undefined_flag_CXX=
9992 always_export_symbols_CXX=no
9993 archive_expsym_cmds_CXX=
9994 export_dynamic_flag_spec_CXX=
9995 hardcode_direct_CXX=no
9996 hardcode_libdir_flag_spec_CXX=
9997 hardcode_libdir_flag_spec_ld_CXX=
9998 hardcode_libdir_separator_CXX=
9999 hardcode_minus_L_CXX=no
10000 hardcode_automatic_CXX=no
10002 module_expsym_cmds_CXX=
10003 link_all_deplibs_CXX=unknown
10004 old_archive_cmds_CXX=$old_archive_cmds
10005 no_undefined_flag_CXX=
10006 whole_archive_flag_spec_CXX=
10007 enable_shared_with_static_runtimes_CXX=no
10009 # Dependencies to place before and after the object being linked:
10010 predep_objects_CXX=
10011 postdep_objects_CXX=
10014 compiler_lib_search_path_CXX=
10016 # Source file extension for C++ test sources.
10019 # Object file extension for compiled C++ test sources.
10023 # Code to be used in simple compile tests
10024 lt_simple_compile_test_code="int some_variable = 0;\n"
10026 # Code to be used in simple link tests
10027 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10029 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10031 # If no C compiler was specified, use CC.
10034 # Allow CC to be a program name with arguments.
10038 # Allow CC to be a program name with arguments.
10043 lt_save_with_gnu_ld=$with_gnu_ld
10044 lt_save_path_LD=$lt_cv_path_LD
10045 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10046 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10048 unset lt_cv_prog_gnu_ld
10050 if test -n "${lt_cv_path_LDCXX+set}"; then
10051 lt_cv_path_LD=$lt_cv_path_LDCXX
10053 unset lt_cv_path_LD
10055 test -z "${LDCXX+set}" || LD=$LDCXX
10059 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10061 # We don't want -fno-exception wen compiling C++ code, so set the
10062 # no_builtin_flag separately
10063 if test "$GXX" = yes; then
10064 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10066 lt_prog_compiler_no_builtin_flag_CXX=
10069 if test "$GXX" = yes; then
10070 # Set up default GNU C++ configuration
10073 # Check whether --with-gnu-ld was given.
10074 if test "${with_gnu_ld+set}" = set; then
10075 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10081 if test "$GCC" = yes; then
10082 # Check if gcc -print-prog-name=ld gives a path.
10083 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10084 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10087 # gcc leaves a trailing carriage return which upsets mingw
10088 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10090 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10093 # Accept absolute paths.
10095 re_direlt='/[^/][^/]*/\.\./'
10096 # Canonicalize the pathname of ld
10097 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10098 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10099 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10101 test -z "$LD" && LD="$ac_prog"
10104 # If it fails, then pretend we aren't using GCC.
10108 # If it is relative, then search for the first ld in PATH.
10109 with_gnu_ld=unknown
10112 elif test "$with_gnu_ld" = yes; then
10113 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10114 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10116 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10117 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10119 if test "${lt_cv_path_LD+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 if test -z "$LD"; then
10123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10124 for ac_dir in $PATH; do
10126 test -z "$ac_dir" && ac_dir=.
10127 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10128 lt_cv_path_LD="$ac_dir/$ac_prog"
10129 # Check to see if the program is GNU ld. I'd rather use --version,
10130 # but apparently some GNU ld's only accept -v.
10131 # Break only if it was the GNU/non-GNU ld that we prefer.
10132 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10133 *GNU* | *'with BFD'*)
10134 test "$with_gnu_ld" != no && break
10137 test "$with_gnu_ld" != yes && break
10144 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10148 LD="$lt_cv_path_LD"
10149 if test -n "$LD"; then
10150 { echo "$as_me:$LINENO: result: $LD" >&5
10151 echo "${ECHO_T}$LD" >&6; }
10153 { echo "$as_me:$LINENO: result: no" >&5
10154 echo "${ECHO_T}no" >&6; }
10156 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10157 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10158 { (exit 1); exit 1; }; }
10159 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10160 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10161 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10165 case `$LD -v 2>&1 </dev/null` in
10166 *GNU* | *'with BFD'*)
10167 lt_cv_prog_gnu_ld=yes
10170 lt_cv_prog_gnu_ld=no
10174 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10175 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10176 with_gnu_ld=$lt_cv_prog_gnu_ld
10180 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10181 # archiving commands below assume that GNU ld is being used.
10182 if test "$with_gnu_ld" = yes; then
10183 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10184 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'
10186 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10187 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10189 # If archive_cmds runs LD, not CC, wlarc should be empty
10190 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10191 # investigate it a little bit more. (MM)
10194 # ancient GNU ld didn't support --whole-archive et. al.
10195 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10196 grep 'no-whole-archive' > /dev/null; then
10197 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10199 whole_archive_flag_spec_CXX=
10205 # A generic and very simple default shared library creation
10206 # command for GNU C++ for the case where it uses the native
10207 # linker, instead of GNU ld. If possible, this setting should
10208 # overridden to take advantage of the native linker features on
10209 # the platform it is being used on.
10210 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10213 # Commands to make compiler produce verbose output that lists
10214 # what "hidden" libraries, object files and flags are used when
10215 # linking a shared library.
10216 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10224 # PORTME: fill in a description of your system's C++ link characteristics
10225 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10226 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10230 # FIXME: insert proper C++ library support
10234 if test "$host_cpu" = ia64; then
10235 # On IA64, the linker does run time linking by default, so we don't
10236 # have to do anything special.
10237 aix_use_runtimelinking=no
10238 exp_sym_flag='-Bexport'
10241 aix_use_runtimelinking=no
10243 # Test if we are trying to use run time linking or normal
10244 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10245 # need to do runtime linking.
10246 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10247 for ld_flag in $LDFLAGS; do
10250 aix_use_runtimelinking=yes
10257 exp_sym_flag='-bexport'
10258 no_entry_flag='-bnoentry'
10261 # When large executables or shared objects are built, AIX ld can
10262 # have problems creating the table of contents. If linking a library
10263 # or program results in "error TOC overflow" add -mminimal-toc to
10264 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10265 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10267 archive_cmds_CXX=''
10268 hardcode_direct_CXX=yes
10269 hardcode_libdir_separator_CXX=':'
10270 link_all_deplibs_CXX=yes
10272 if test "$GXX" = yes; then
10273 case $host_os in aix4.012|aix4.012.*)
10274 # We only want to do this on AIX 4.2 and lower, the check
10275 # below for broken collect2 doesn't work under 4.3+
10276 collect2name=`${CC} -print-prog-name=collect2`
10277 if test -f "$collect2name" && \
10278 strings "$collect2name" | grep resolve_lib_name >/dev/null
10280 # We have reworked collect2
10281 hardcode_direct_CXX=yes
10283 # We have old collect2
10284 hardcode_direct_CXX=unsupported
10285 # It fails to find uninstalled libraries when the uninstalled
10286 # path is not listed in the libpath. Setting hardcode_minus_L
10287 # to unsupported forces relinking
10288 hardcode_minus_L_CXX=yes
10289 hardcode_libdir_flag_spec_CXX='-L$libdir'
10290 hardcode_libdir_separator_CXX=
10293 shared_flag='-shared'
10296 if test "$host_cpu" = ia64; then
10297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10298 # chokes on -Wl,-G. The following line is correct:
10301 if test "$aix_use_runtimelinking" = yes; then
10302 shared_flag='${wl}-G'
10304 shared_flag='${wl}-bM:SRE'
10309 # It seems that -bexpall does not export symbols beginning with
10310 # underscore (_), so it is better to generate a list of symbols to export.
10311 always_export_symbols_CXX=yes
10312 if test "$aix_use_runtimelinking" = yes; then
10313 # Warning - without using the other runtime loading flags (-brtl),
10314 # -berok will link without error, but may produce a broken library.
10315 allow_undefined_flag_CXX='-berok'
10316 # Determine the default libpath from the value encoded in an empty executable.
10317 cat >conftest.$ac_ext <<_ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (ac_try="$ac_link"
10334 case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_link") 2>conftest.er1
10341 grep -v '^ *+' conftest.er1 >conftest.err
10343 cat conftest.err >&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } && {
10346 test -z "$ac_cxx_werror_flag" ||
10347 test ! -s conftest.err
10348 } && test -s conftest$ac_exeext &&
10349 $as_test_x conftest$ac_exeext; then
10351 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10353 # Check for a 64-bit object if we didn't find anything.
10354 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; }
10357 echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.$ac_ext >&5
10363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10364 conftest$ac_exeext conftest.$ac_ext
10365 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10367 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10369 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10371 if test "$host_cpu" = ia64; then
10372 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10373 allow_undefined_flag_CXX="-z nodefs"
10374 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10376 # Determine the default libpath from the value encoded in an empty executable.
10377 cat >conftest.$ac_ext <<_ACEOF
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h. */
10392 rm -f conftest.$ac_objext conftest$ac_exeext
10393 if { (ac_try="$ac_link"
10394 case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_link") 2>conftest.er1
10401 grep -v '^ *+' conftest.er1 >conftest.err
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } && {
10406 test -z "$ac_cxx_werror_flag" ||
10407 test ! -s conftest.err
10408 } && test -s conftest$ac_exeext &&
10409 $as_test_x conftest$ac_exeext; then
10411 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10413 # Check for a 64-bit object if we didn't find anything.
10414 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; }
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10424 conftest$ac_exeext conftest.$ac_ext
10425 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10427 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10428 # Warning - without using the other run time loading flags,
10429 # -berok will link without error, but may produce a broken library.
10430 no_undefined_flag_CXX=' ${wl}-bernotok'
10431 allow_undefined_flag_CXX=' ${wl}-berok'
10432 # -bexpall does not export symbols beginning with underscore (_)
10433 always_export_symbols_CXX=yes
10434 # Exported symbols can be pulled into shared objects from archives
10435 whole_archive_flag_spec_CXX=' '
10436 archive_cmds_need_lc_CXX=yes
10437 # This is similar to how AIX traditionally builds it's shared libraries.
10438 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10443 case $cc_basename in
10445 # FIXME: insert proper C++ library support
10451 cygwin* | mingw* | pw32*)
10452 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10453 # as there is no search path for DLLs.
10454 hardcode_libdir_flag_spec_CXX='-L$libdir'
10455 allow_undefined_flag_CXX=unsupported
10456 always_export_symbols_CXX=no
10457 enable_shared_with_static_runtimes_CXX=yes
10459 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10460 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10461 # If the export-symbols file already is a .def file (1st line
10462 # is EXPORTS), use it as is; otherwise, prepend...
10463 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10464 cp $export_symbols $output_objdir/$soname.def;
10466 echo EXPORTS > $output_objdir/$soname.def;
10467 cat $export_symbols >> $output_objdir/$soname.def;
10469 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10475 darwin* | rhapsody*)
10476 if test "$GXX" = yes; then
10477 archive_cmds_need_lc_CXX=no
10479 rhapsody* | darwin1.[012])
10480 allow_undefined_flag_CXX='-undefined suppress'
10483 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10484 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10486 case ${MACOSX_DEPLOYMENT_TARGET} in
10488 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10491 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10497 lt_int_apple_cc_single_mod=no
10498 output_verbose_link_cmd='echo'
10499 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10500 lt_int_apple_cc_single_mod=yes
10502 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10503 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10505 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10507 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10509 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10510 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10511 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}'
10513 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10515 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}'
10516 hardcode_direct_CXX=no
10517 hardcode_automatic_CXX=yes
10518 hardcode_shlibpath_var_CXX=unsupported
10519 whole_archive_flag_spec_CXX='-all_load $convenience'
10520 link_all_deplibs_CXX=yes
10527 case $cc_basename in
10529 # FIXME: insert proper C++ library support
10533 # Green Hills C++ Compiler
10534 # FIXME: insert proper C++ library support
10538 # FIXME: insert proper C++ library support
10544 # C++ shared libraries reported to be fairly broken before switch to ELF
10548 archive_cmds_need_lc_CXX=no
10550 freebsd* | kfreebsd*-gnu)
10551 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10558 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10559 hardcode_libdir_separator_CXX=:
10560 export_dynamic_flag_spec_CXX='${wl}-E'
10561 hardcode_direct_CXX=yes
10562 hardcode_minus_L_CXX=yes # Not in the search PATH,
10563 # but as the default
10564 # location of the library.
10566 case $cc_basename in
10568 # FIXME: insert proper C++ library support
10572 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'
10573 # Commands to make compiler produce verbose output that lists
10574 # what "hidden" libraries, object files and flags are used when
10575 # linking a shared library.
10577 # There doesn't appear to be a way to prevent this compiler from
10578 # explicitly linking system object files so we need to strip them
10579 # from the output so that they don't get included in the library
10581 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'
10584 if test "$GXX" = yes; then
10585 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'
10587 # FIXME: insert proper C++ library support
10594 if test $with_gnu_ld = no; then
10595 case "$host_cpu" in
10597 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10598 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10599 hardcode_libdir_separator_CXX=:
10602 hardcode_libdir_flag_spec_CXX='-L$libdir'
10605 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10606 hardcode_libdir_separator_CXX=:
10607 export_dynamic_flag_spec_CXX='${wl}-E'
10611 case "$host_cpu" in
10613 hardcode_direct_CXX=no
10614 hardcode_shlibpath_var_CXX=no
10617 hardcode_direct_CXX=no
10618 hardcode_shlibpath_var_CXX=no
10619 hardcode_minus_L_CXX=yes # Not in the search PATH,
10620 # but as the default
10621 # location of the library.
10624 hardcode_direct_CXX=yes
10625 hardcode_minus_L_CXX=yes # Not in the search PATH,
10626 # but as the default
10627 # location of the library.
10631 case $cc_basename in
10633 # FIXME: insert proper C++ library support
10637 case "$host_cpu" in
10639 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10642 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10645 # Commands to make compiler produce verbose output that lists
10646 # what "hidden" libraries, object files and flags are used when
10647 # linking a shared library.
10649 # There doesn't appear to be a way to prevent this compiler from
10650 # explicitly linking system object files so we need to strip them
10651 # from the output so that they don't get included in the library
10653 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'
10656 if test "$GXX" = yes; then
10657 if test $with_gnu_ld = no; then
10658 case "$host_cpu" in
10660 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10663 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'
10668 # FIXME: insert proper C++ library support
10675 case $cc_basename in
10678 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 ${objdir}/so_locations -o $lib'
10680 # Archives containing C++ object files must be created using
10681 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10682 # necessary to make sure instantiated templates are included
10684 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10687 if test "$GXX" = yes; then
10688 if test "$with_gnu_ld" = no; then
10689 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}${objdir}/so_locations -o $lib'
10691 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'
10694 link_all_deplibs_CXX=yes
10697 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10698 hardcode_libdir_separator_CXX=:
10701 case $cc_basename in
10703 # Kuck and Associates, Inc. (KAI) C++ Compiler
10705 # KCC will only create a shared library if the output file
10706 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10707 # to its proper name (with version) after linking.
10708 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'
10709 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'
10710 # Commands to make compiler produce verbose output that lists
10711 # what "hidden" libraries, object files and flags are used when
10712 # linking a shared library.
10714 # There doesn't appear to be a way to prevent this compiler from
10715 # explicitly linking system object files so we need to strip them
10716 # from the output so that they don't get included in the library
10718 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'
10720 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10721 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10723 # Archives containing C++ object files must be created using
10724 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10725 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10730 archive_cmds_need_lc_CXX=no
10731 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10732 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'
10733 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10734 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10735 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10739 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10740 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'
10742 runpath_var=LD_RUN_PATH
10743 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10744 hardcode_libdir_separator_CXX=:
10746 # Commands to make compiler produce verbose output that lists
10747 # what "hidden" libraries, object files and flags are used when
10748 # linking a shared library.
10750 # There doesn't appear to be a way to prevent this compiler from
10751 # explicitly linking system object files so we need to strip them
10752 # from the output so that they don't get included in the library
10754 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'
10759 # FIXME: insert proper C++ library support
10763 # FIXME: insert proper C++ library support
10767 case $cc_basename in
10769 # FIXME: insert proper C++ library support
10773 # FIXME: insert proper C++ library support
10779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10780 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10782 hardcode_libdir_flag_spec_CXX='-R$libdir'
10783 hardcode_direct_CXX=yes
10784 hardcode_shlibpath_var_CXX=no
10786 # Workaround some broken pre-1.5 toolchains
10787 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10790 case $cc_basename in
10792 # Kuck and Associates, Inc. (KAI) C++ Compiler
10794 # KCC will only create a shared library if the output file
10795 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10796 # to its proper name (with version) after linking.
10797 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'
10799 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10800 hardcode_libdir_separator_CXX=:
10802 # Archives containing C++ object files must be created using
10803 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10804 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10808 # Rational C++ 2.4.1
10809 # FIXME: insert proper C++ library support
10813 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10814 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 ${objdir}/so_locations -o $lib'
10816 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10817 hardcode_libdir_separator_CXX=:
10819 # Commands to make compiler produce verbose output that lists
10820 # what "hidden" libraries, object files and flags are used when
10821 # linking a shared library.
10823 # There doesn't appear to be a way to prevent this compiler from
10824 # explicitly linking system object files so we need to strip them
10825 # from the output so that they don't get included in the library
10827 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'
10830 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10831 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10832 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}${objdir}/so_locations -o $lib'
10834 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10835 hardcode_libdir_separator_CXX=:
10837 # Commands to make compiler produce verbose output that lists
10838 # what "hidden" libraries, object files and flags are used when
10839 # linking a shared library.
10840 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10843 # FIXME: insert proper C++ library support
10850 case $cc_basename in
10852 # Kuck and Associates, Inc. (KAI) C++ Compiler
10854 # KCC will only create a shared library if the output file
10855 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10856 # to its proper name (with version) after linking.
10857 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'
10859 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10860 hardcode_libdir_separator_CXX=:
10862 # Archives containing C++ object files must be created using
10863 # the KAI C++ compiler.
10864 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10867 # Rational C++ 2.4.1
10868 # FIXME: insert proper C++ library support
10872 allow_undefined_flag_CXX=' -expect_unresolved \*'
10873 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 ${objdir}/so_locations -o $lib'
10874 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10875 echo "-hidden">> $lib.exp~
10876 $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 $objdir/so_locations -o $lib~
10879 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10880 hardcode_libdir_separator_CXX=:
10882 # Commands to make compiler produce verbose output that lists
10883 # what "hidden" libraries, object files and flags are used when
10884 # linking a shared library.
10886 # There doesn't appear to be a way to prevent this compiler from
10887 # explicitly linking system object files so we need to strip them
10888 # from the output so that they don't get included in the library
10890 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'
10893 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10894 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10895 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}${objdir}/so_locations -o $lib'
10897 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10898 hardcode_libdir_separator_CXX=:
10900 # Commands to make compiler produce verbose output that lists
10901 # what "hidden" libraries, object files and flags are used when
10902 # linking a shared library.
10903 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10906 # FIXME: insert proper C++ library support
10913 # FIXME: insert proper C++ library support
10917 archive_cmds_need_lc_CXX=no
10918 case $cc_basename in
10920 # FIXME: insert proper C++ library support
10924 # FIXME: insert proper C++ library support
10930 case $cc_basename in
10933 # FIXME: insert proper C++ library support
10938 # FIXME: insert proper C++ library support
10942 # FIXME: insert proper C++ library support
10948 case $cc_basename in
10950 # Sun C++ 4.2, 5.x and Centerline C++
10951 no_undefined_flag_CXX=' -zdefs'
10952 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10953 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10954 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10956 hardcode_libdir_flag_spec_CXX='-R$libdir'
10957 hardcode_shlibpath_var_CXX=no
10959 solaris2.0-5 | solaris2.0-5.*) ;;
10961 # The C++ compiler is used as linker so we must use $wl
10962 # flag to pass the commands to the underlying system
10964 # Supported since Solaris 2.6 (maybe 2.5.1?)
10965 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10968 link_all_deplibs_CXX=yes
10970 # Commands to make compiler produce verbose output that lists
10971 # what "hidden" libraries, object files and flags are used when
10972 # linking a shared library.
10974 # There doesn't appear to be a way to prevent this compiler from
10975 # explicitly linking system object files so we need to strip them
10976 # from the output so that they don't get included in the library
10978 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10980 # Archives containing C++ object files must be created using
10981 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10982 # necessary to make sure instantiated templates are included
10984 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10987 # Green Hills C++ Compiler
10988 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10990 # The C++ compiler must be used to create the archive.
10991 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10994 # GNU C++ compiler with Solaris linker
10995 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10996 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10997 if $CC --version | grep -v '^2\.7' > /dev/null; then
10998 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10999 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11000 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11002 # Commands to make compiler produce verbose output that lists
11003 # what "hidden" libraries, object files and flags are used when
11004 # linking a shared library.
11005 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11007 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11009 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11010 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11011 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11013 # Commands to make compiler produce verbose output that lists
11014 # what "hidden" libraries, object files and flags are used when
11015 # linking a shared library.
11016 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11019 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11024 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11025 archive_cmds_need_lc_CXX=no
11028 case $cc_basename in
11030 # NonStop-UX NCC 3.20
11031 # FIXME: insert proper C++ library support
11035 # FIXME: insert proper C++ library support
11041 # FIXME: insert proper C++ library support
11045 # FIXME: insert proper C++ library support
11049 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11050 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11051 test "$ld_shlibs_CXX" = no && can_build_shared=no
11057 ## There is no encapsulation within the following macros, do not change
11058 ## the running order or otherwise move them around unless you know exactly
11059 ## what you are doing...
11061 cat > conftest.$ac_ext <<EOF
11065 Foo (void) { a = 0; }
11071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11072 (eval $ac_compile) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; then
11076 # Parse the compiler output and extract the necessary
11077 # objects, libraries and library flags.
11079 # Sentinel used to keep track of whether or not we are before
11080 # the conftest object file.
11081 pre_test_object_deps_done=no
11083 # The `*' in the case matches for architectures that use `case' in
11084 # $output_verbose_cmd can trigger glob expansion during the loop
11085 # eval without this substitution.
11086 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11088 for p in `eval $output_verbose_link_cmd`; do
11092 # Some compilers place space between "-{L,R}" and the path.
11093 # Remove the space.
11094 if test $p = "-L" \
11095 || test $p = "-R"; then
11102 if test "$pre_test_object_deps_done" = no; then
11105 # Internal compiler library paths should come after those
11106 # provided the user. The postdeps already come after the
11107 # user supplied libs so there is no need to process them.
11108 if test -z "$compiler_lib_search_path_CXX"; then
11109 compiler_lib_search_path_CXX="${prev}${p}"
11111 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11114 # The "-l" case would never come before the object being
11115 # linked, so don't bother handling this case.
11118 if test -z "$postdeps_CXX"; then
11119 postdeps_CXX="${prev}${p}"
11121 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11127 # This assumes that the test object file only shows up
11128 # once in the compiler output.
11129 if test "$p" = "conftest.$objext"; then
11130 pre_test_object_deps_done=yes
11134 if test "$pre_test_object_deps_done" = no; then
11135 if test -z "$predep_objects_CXX"; then
11136 predep_objects_CXX="$p"
11138 predep_objects_CXX="$predep_objects_CXX $p"
11141 if test -z "$postdep_objects_CXX"; then
11142 postdep_objects_CXX="$p"
11144 postdep_objects_CXX="$postdep_objects_CXX $p"
11149 *) ;; # Ignore the rest.
11157 echo "libtool.m4: error: problem compiling CXX test program"
11160 $rm -f confest.$objext
11162 case " $postdeps_CXX " in
11163 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11166 lt_prog_compiler_wl_CXX=
11167 lt_prog_compiler_pic_CXX=
11168 lt_prog_compiler_static_CXX=
11170 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11171 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11173 # C++ specific cases for pic, static, wl, etc.
11174 if test "$GXX" = yes; then
11175 lt_prog_compiler_wl_CXX='-Wl,'
11176 lt_prog_compiler_static_CXX='-static'
11180 # All AIX code is PIC.
11181 if test "$host_cpu" = ia64; then
11182 # AIX 5 now supports IA64 processor
11183 lt_prog_compiler_static_CXX='-Bstatic'
11187 # FIXME: we need at least 68020 code to build shared libraries, but
11188 # adding the `-m68020' flag to GCC prevents building anything better,
11190 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11192 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11193 # PIC is the default for these OSes.
11195 mingw* | os2* | pw32*)
11196 # This hack is so that the source file can tell whether it is being
11197 # built for inclusion in a dll (and should export symbols for example).
11198 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11200 darwin* | rhapsody*)
11201 # PIC is the default on this platform
11202 # Common symbols not allowed in MH_DYLIB files
11203 lt_prog_compiler_pic_CXX='-fno-common'
11206 # DJGPP does not support shared libraries at all
11207 lt_prog_compiler_pic_CXX=
11210 if test -d /usr/nec; then
11211 lt_prog_compiler_pic_CXX=-Kconform_pic
11215 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11216 # not for PA HP-UX.
11217 case "$host_cpu" in
11221 lt_prog_compiler_pic_CXX='-fPIC'
11226 lt_prog_compiler_pic_CXX='-fPIC'
11232 # All AIX code is PIC.
11233 if test "$host_cpu" = ia64; then
11234 # AIX 5 now supports IA64 processor
11235 lt_prog_compiler_static_CXX='-Bstatic'
11237 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11241 case $cc_basename in
11243 # Green Hills C++ Compiler
11244 # _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"
11249 case $cc_basename in
11251 lt_prog_compiler_pic_CXX='-KPIC'
11254 # Green Hills C++ Compiler
11255 lt_prog_compiler_pic_CXX='-pic'
11261 freebsd* | kfreebsd*-gnu)
11262 # FreeBSD uses GNU C++
11264 hpux9* | hpux10* | hpux11*)
11265 case $cc_basename in
11267 lt_prog_compiler_wl_CXX='-Wl,'
11268 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11269 if test "$host_cpu" != ia64; then
11270 lt_prog_compiler_pic_CXX='+Z'
11274 lt_prog_compiler_wl_CXX='-Wl,'
11275 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11276 case "$host_cpu" in
11281 lt_prog_compiler_pic_CXX='+Z'
11289 irix5* | irix6* | nonstopux*)
11290 case $cc_basename in
11292 lt_prog_compiler_wl_CXX='-Wl,'
11293 lt_prog_compiler_static_CXX='-non_shared'
11294 # CC pic flag -KPIC is the default.
11301 case $cc_basename in
11304 lt_prog_compiler_wl_CXX='--backend -Wl,'
11305 lt_prog_compiler_pic_CXX='-fPIC'
11309 lt_prog_compiler_wl_CXX='-Wl,'
11310 lt_prog_compiler_pic_CXX='-KPIC'
11311 lt_prog_compiler_static_CXX='-static'
11315 # Make sure the PIC flag is empty. It appears that all Alpha
11316 # Linux and Compaq Tru64 Unix objects are PIC.
11317 lt_prog_compiler_pic_CXX=
11318 lt_prog_compiler_static_CXX='-non_shared'
11329 case $cc_basename in
11331 lt_prog_compiler_pic_CXX='-W c,exportall'
11339 osf3* | osf4* | osf5*)
11340 case $cc_basename in
11342 lt_prog_compiler_wl_CXX='--backend -Wl,'
11345 # Rational C++ 2.4.1
11346 lt_prog_compiler_pic_CXX='-pic'
11349 # Digital/Compaq C++
11350 lt_prog_compiler_wl_CXX='-Wl,'
11351 # Make sure the PIC flag is empty. It appears that all Alpha
11352 # Linux and Compaq Tru64 Unix objects are PIC.
11353 lt_prog_compiler_pic_CXX=
11354 lt_prog_compiler_static_CXX='-non_shared'
11363 case $cc_basename in
11365 lt_prog_compiler_pic_CXX='-fPIC'
11372 case $cc_basename in
11374 # Sun C++ 4.2, 5.x and Centerline C++
11375 lt_prog_compiler_pic_CXX='-KPIC'
11376 lt_prog_compiler_static_CXX='-Bstatic'
11377 lt_prog_compiler_wl_CXX='-Qoption ld '
11380 # Green Hills C++ Compiler
11381 lt_prog_compiler_pic_CXX='-PIC'
11388 case $cc_basename in
11391 lt_prog_compiler_pic_CXX='-pic'
11392 lt_prog_compiler_static_CXX='-Bstatic'
11396 lt_prog_compiler_pic_CXX='-pic'
11403 case $cc_basename in
11405 # NonStop-UX NCC 3.20
11406 lt_prog_compiler_pic_CXX='-KPIC'
11417 lt_prog_compiler_can_build_shared_CXX=no
11422 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11423 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11426 # Check to make sure the PIC flag actually works.
11428 if test -n "$lt_prog_compiler_pic_CXX"; then
11430 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11431 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11432 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11435 lt_prog_compiler_pic_works_CXX=no
11436 ac_outfile=conftest.$ac_objext
11437 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11438 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11439 # Insert the option either (1) after the last *FLAGS variable, or
11440 # (2) before a word containing "conftest.", or (3) at the end.
11441 # Note that $ac_compile itself does not contain backslashes and begins
11442 # with a dollar sign (not a hyphen), so the echo should work correctly.
11443 # The option is referenced via a variable to avoid confusing sed.
11444 lt_compile=`echo "$ac_compile" | $SED \
11445 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11447 -e 's:$: $lt_compiler_flag:'`
11448 (eval echo "\"\$as_me:11448: $lt_compile\"" >&5)
11449 (eval "$lt_compile" 2>conftest.err)
11451 cat conftest.err >&5
11452 echo "$as_me:11452: \$? = $ac_status" >&5
11453 if (exit $ac_status) && test -s "$ac_outfile"; then
11454 # The compiler can only warn and ignore the option if not recognized
11455 # So say no if there are warnings
11456 if test ! -s conftest.err; then
11457 lt_prog_compiler_pic_works_CXX=yes
11463 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11464 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11466 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11467 case $lt_prog_compiler_pic_CXX in
11469 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11472 lt_prog_compiler_pic_CXX=
11473 lt_prog_compiler_can_build_shared_CXX=no
11478 # For platforms which do not support PIC, -DPIC is meaningless:
11480 lt_prog_compiler_pic_CXX=
11483 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11487 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11488 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11489 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 lt_cv_prog_compiler_c_o_CXX=no
11493 $rm -r conftest 2>/dev/null
11497 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11499 lt_compiler_flag="-o out/conftest2.$ac_objext"
11500 # Insert the option either (1) after the last *FLAGS variable, or
11501 # (2) before a word containing "conftest.", or (3) at the end.
11502 # Note that $ac_compile itself does not contain backslashes and begins
11503 # with a dollar sign (not a hyphen), so the echo should work correctly.
11504 lt_compile=`echo "$ac_compile" | $SED \
11505 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11507 -e 's:$: $lt_compiler_flag:'`
11508 (eval echo "\"\$as_me:11508: $lt_compile\"" >&5)
11509 (eval "$lt_compile" 2>out/conftest.err)
11511 cat out/conftest.err >&5
11512 echo "$as_me:11512: \$? = $ac_status" >&5
11513 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11515 # The compiler can only warn and ignore the option if not recognized
11516 # So say no if there are warnings
11517 if test ! -s out/conftest.err; then
11518 lt_cv_prog_compiler_c_o_CXX=yes
11523 # SGI C++ compiler will create directory out/ii_files/ for
11524 # template instantiation
11525 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11526 $rm out/* && rmdir out
11532 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11533 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11536 hard_links="nottested"
11537 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11538 # do not overwrite the value of need_locks provided by the user
11539 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11540 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11543 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11545 ln conftest.a conftest.b 2>&5 || hard_links=no
11546 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11547 { echo "$as_me:$LINENO: result: $hard_links" >&5
11548 echo "${ECHO_T}$hard_links" >&6; }
11549 if test "$hard_links" = no; then
11550 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11551 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11558 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11559 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11561 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11564 # If we're using GNU nm, then we don't want the "-C" option.
11565 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11566 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11567 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'
11569 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'
11573 export_symbols_cmds_CXX="$ltdll_cmds"
11576 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11579 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11583 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11584 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11585 test "$ld_shlibs_CXX" = no && can_build_shared=no
11587 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11588 if test "$GCC" = yes; then
11589 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11593 # Do we need to explicitly link libc?
11595 case "x$archive_cmds_need_lc_CXX" in
11597 # Assume -lc should be added
11598 archive_cmds_need_lc_CXX=yes
11600 if test "$enable_shared" = yes && test "$GCC" = yes; then
11601 case $archive_cmds_CXX in
11603 # FIXME: we may have to deal with multi-command sequences.
11606 # Test whether the compiler implicitly links with -lc since on some
11607 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11608 # to ld, don't add -lc before -lgcc.
11609 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11610 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11612 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11615 (eval $ac_compile) 2>&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } 2>conftest.err; then
11621 libobjs=conftest.$ac_objext
11623 wl=$lt_prog_compiler_wl_CXX
11629 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11630 allow_undefined_flag_CXX=
11631 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11632 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }
11637 archive_cmds_need_lc_CXX=no
11639 archive_cmds_need_lc_CXX=yes
11641 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11643 cat conftest.err 1>&5
11646 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11647 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11654 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11655 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11656 library_names_spec=
11657 libname_spec='lib$name'
11661 postuninstall_cmds=
11665 shlibpath_overrides_runpath=unknown
11667 dynamic_linker="$host_os ld.so"
11668 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11669 if test "$GCC" = yes; then
11670 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11671 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11672 # if the path contains ";" then we assume it to be the separator
11673 # otherwise default to the standard path separator (i.e. ":") - it is
11674 # assumed that no part of a normal pathname contains ";" but that should
11675 # okay in the real world where ";" in dirpaths is itself problematic.
11676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11678 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11681 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11683 need_lib_prefix=unknown
11684 hardcode_into_libs=no
11686 # when you set need_version to no, make sure it does not cause -set_version
11687 # flags to be left without arguments
11688 need_version=unknown
11693 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11694 shlibpath_var=LIBPATH
11696 # AIX 3 has no versioning support, so we append a major version to the name.
11697 soname_spec='${libname}${release}${shared_ext}$major'
11704 hardcode_into_libs=yes
11705 if test "$host_cpu" = ia64; then
11706 # AIX 5 supports IA64
11707 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11708 shlibpath_var=LD_LIBRARY_PATH
11710 # With GCC up to 2.95.x, collect2 would create an import file
11711 # for dependence libraries. The import file would start with
11712 # the line `#! .'. This would cause the generated library to
11713 # depend on `.', always an invalid library. This was fixed in
11714 # development snapshots of GCC prior to 3.0.
11716 aix4 | aix4.[01] | aix4.[01].*)
11717 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11719 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11722 can_build_shared=no
11726 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11727 # soname into executable. Probably we can add versioning support to
11728 # collect2, so additional links can be useful in future.
11729 if test "$aix_use_runtimelinking" = yes; then
11730 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11731 # instead of lib<name>.a to let people know that these are not
11732 # typical AIX shared libraries.
11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11735 # We preserve .a as extension for shared libraries through AIX4.2
11736 # and later when we are not doing run time linking.
11737 library_names_spec='${libname}${release}.a $libname.a'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11740 shlibpath_var=LIBPATH
11745 library_names_spec='$libname.ixlibrary $libname.a'
11746 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11747 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'
11751 library_names_spec='${libname}${shared_ext}'
11752 dynamic_linker="$host_os ld.so"
11753 shlibpath_var=LIBRARY_PATH
11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760 soname_spec='${libname}${release}${shared_ext}$major'
11761 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11762 shlibpath_var=LD_LIBRARY_PATH
11763 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11764 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11765 # the default ld.so.conf also contains /usr/contrib/lib and
11766 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11767 # libtool to hard-code these into programs
11770 cygwin* | mingw* | pw32*)
11771 version_type=windows
11776 case $GCC,$host_os in
11777 yes,cygwin* | yes,mingw* | yes,pw32*)
11778 library_names_spec='$libname.dll.a'
11779 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11780 postinstall_cmds='base_file=`basename \${file}`~
11781 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11782 dldir=$destdir/`dirname \$dlpath`~
11783 test -d \$dldir || mkdir -p \$dldir~
11784 $install_prog $dir/$dlname \$dldir/$dlname'
11785 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11786 dlpath=$dir/\$dldll~
11788 shlibpath_overrides_runpath=yes
11792 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11793 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11794 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11797 # MinGW DLLs use traditional 'lib' prefix
11798 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11799 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11800 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11801 # It is most probably a Windows format PATH printed by
11802 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11803 # path with ; separators, and with drive letters. We can handle the
11804 # drive letters (cygwin fileutils understands them), so leave them,
11805 # especially as we might pass files found there to a mingw objdump,
11806 # which wouldn't understand a cygwinified path. Ahh.
11807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11809 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11813 # pw32 DLLs use 'pw' prefix rather than 'lib'
11814 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11820 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11823 dynamic_linker='Win32 ld.exe'
11824 # FIXME: first we should search . and the directory the executable is in
11828 darwin* | rhapsody*)
11829 dynamic_linker="$host_os dyld"
11830 version_type=darwin
11833 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11834 soname_spec='${libname}${release}${major}$shared_ext'
11835 shlibpath_overrides_runpath=yes
11836 shlibpath_var=DYLD_LIBRARY_PATH
11837 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11838 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11839 if test "$GCC" = yes; then
11840 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"`
11842 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11844 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11852 soname_spec='${libname}${release}${shared_ext}$major'
11853 shlibpath_var=LD_LIBRARY_PATH
11864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11865 soname_spec='${libname}${release}${shared_ext}$major'
11866 shlibpath_var=LD_LIBRARY_PATH
11867 shlibpath_overrides_runpath=no
11868 hardcode_into_libs=yes
11869 dynamic_linker='GNU ld.so'
11873 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11874 version_type=freebsd-$objformat
11875 case $version_type in
11877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11882 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11886 shlibpath_var=LD_LIBRARY_PATH
11889 shlibpath_overrides_runpath=yes
11891 freebsd3.01* | freebsdelf3.01*)
11892 shlibpath_overrides_runpath=yes
11893 hardcode_into_libs=yes
11896 shlibpath_overrides_runpath=no
11897 hardcode_into_libs=yes
11906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11907 soname_spec='${libname}${release}${shared_ext}$major'
11908 shlibpath_var=LD_LIBRARY_PATH
11909 hardcode_into_libs=yes
11912 hpux9* | hpux10* | hpux11*)
11913 # Give a soname corresponding to the major version so that dld.sl refuses to
11914 # link against other versions.
11918 case "$host_cpu" in
11921 hardcode_into_libs=yes
11922 dynamic_linker="$host_os dld.so"
11923 shlibpath_var=LD_LIBRARY_PATH
11924 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11926 soname_spec='${libname}${release}${shared_ext}$major'
11927 if test "X$HPUX_IA64_MODE" = X32; then
11928 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11930 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11936 hardcode_into_libs=yes
11937 dynamic_linker="$host_os dld.sl"
11938 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11941 soname_spec='${libname}${release}${shared_ext}$major'
11942 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11947 dynamic_linker="$host_os dld.sl"
11948 shlibpath_var=SHLIB_PATH
11949 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11951 soname_spec='${libname}${release}${shared_ext}$major'
11954 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11955 postinstall_cmds='chmod 555 $lib'
11958 irix5* | irix6* | nonstopux*)
11960 nonstopux*) version_type=nonstopux ;;
11962 if test "$lt_cv_prog_gnu_ld" = yes; then
11970 soname_spec='${libname}${release}${shared_ext}$major'
11971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11973 irix5* | nonstopux*)
11974 libsuff= shlibsuff=
11977 case $LD in # libtool.m4 will add one of these switches to LD
11978 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11979 libsuff= shlibsuff= libmagic=32-bit;;
11980 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11981 libsuff=32 shlibsuff=N32 libmagic=N32;;
11982 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11983 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11984 *) libsuff= shlibsuff= libmagic=never-match;;
11988 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11989 shlibpath_overrides_runpath=no
11990 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11991 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11992 hardcode_into_libs=yes
11995 # No shared lib support for Linux oldld, aout, or coff.
11996 linux*oldld* | linux*aout* | linux*coff*)
12000 # This must be Linux ELF.
12005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12006 soname_spec='${libname}${release}${shared_ext}$major'
12007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12008 shlibpath_var=LD_LIBRARY_PATH
12009 shlibpath_overrides_runpath=no
12010 # This implies no fast_install, which is unacceptable.
12011 # Some rework will be needed to allow for fast_install
12012 # before this can be enabled.
12013 hardcode_into_libs=yes
12015 # find out which ABI we are using
12017 case "$host_cpu" in
12018 x86_64*|s390x*|powerpc64*)
12019 echo '#line 12019 "configure"' > conftest.$ac_ext
12020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12021 (eval $ac_compile) 2>&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; then
12025 case `/usr/bin/file conftest.$ac_objext` in
12028 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12036 # Append ld.so.conf contents to the search path
12037 if test -f /etc/ld.so.conf; then
12038 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12039 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12042 # We used to test for /lib/ld.so.1 and disable shared libraries on
12043 # powerpc, because MkLinux only supported shared libraries with the
12044 # GNU dynamic linker. Since this was broken with cross compilers,
12045 # most powerpc-linux boxes support dynamic linking these days and
12046 # people can always --disable-shared, the test was removed, and we
12047 # assume the GNU/Linux dynamic linker is in use.
12048 dynamic_linker='GNU/Linux ld.so'
12055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12056 soname_spec='${libname}${release}${shared_ext}$major'
12057 shlibpath_var=LD_LIBRARY_PATH
12058 shlibpath_overrides_runpath=no
12059 hardcode_into_libs=yes
12060 dynamic_linker='GNU ld.so'
12067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12070 dynamic_linker='NetBSD (a.out) ld.so'
12072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12073 soname_spec='${libname}${release}${shared_ext}$major'
12074 dynamic_linker='NetBSD ld.elf_so'
12076 shlibpath_var=LD_LIBRARY_PATH
12077 shlibpath_overrides_runpath=yes
12078 hardcode_into_libs=yes
12083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12084 shlibpath_var=LD_LIBRARY_PATH
12085 shlibpath_overrides_runpath=yes
12092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12093 soname_spec='${libname}${release}${shared_ext}$major'
12094 shlibpath_var=LD_LIBRARY_PATH
12095 shlibpath_overrides_runpath=yes
12102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12104 shlibpath_var=LD_LIBRARY_PATH
12105 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12107 openbsd2.[89] | openbsd2.[89].*)
12108 shlibpath_overrides_runpath=no
12111 shlibpath_overrides_runpath=yes
12115 shlibpath_overrides_runpath=yes
12120 libname_spec='$name'
12123 library_names_spec='$libname${shared_ext} $libname.a'
12124 dynamic_linker='OS/2 ld.exe'
12125 shlibpath_var=LIBPATH
12128 osf3* | osf4* | osf5*)
12132 soname_spec='${libname}${release}${shared_ext}$major'
12133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12134 shlibpath_var=LD_LIBRARY_PATH
12135 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12136 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12141 soname_spec='${libname}${release}${shared_ext}$major'
12142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12143 shlibpath_var=LD_LIBRARY_PATH
12150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12151 soname_spec='${libname}${release}${shared_ext}$major'
12152 shlibpath_var=LD_LIBRARY_PATH
12153 shlibpath_overrides_runpath=yes
12154 hardcode_into_libs=yes
12155 # ldd complains unless libraries are executable
12156 postinstall_cmds='chmod +x $lib'
12161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12162 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12163 shlibpath_var=LD_LIBRARY_PATH
12164 shlibpath_overrides_runpath=yes
12165 if test "$with_gnu_ld" = yes; then
12171 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12174 soname_spec='${libname}${release}${shared_ext}$major'
12175 shlibpath_var=LD_LIBRARY_PATH
12176 case $host_vendor in
12178 shlibpath_overrides_runpath=no
12180 export_dynamic_flag_spec='${wl}-Blargedynsym'
12181 runpath_var=LD_RUN_PATH
12189 shlibpath_overrides_runpath=no
12190 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12196 if test -d /usr/nec ;then
12198 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12199 soname_spec='$libname${shared_ext}.$major'
12200 shlibpath_var=LD_LIBRARY_PATH
12206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12207 soname_spec='${libname}${release}${shared_ext}$major'
12208 shlibpath_var=LD_LIBRARY_PATH
12215 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12216 echo "${ECHO_T}$dynamic_linker" >&6; }
12217 test "$dynamic_linker" = no && can_build_shared=no
12219 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12220 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12221 hardcode_action_CXX=
12222 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12223 test -n "$runpath_var CXX" || \
12224 test "X$hardcode_automatic_CXX"="Xyes" ; then
12226 # We can hardcode non-existant directories.
12227 if test "$hardcode_direct_CXX" != no &&
12228 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12229 # have to relink, otherwise we might link with an installed library
12230 # when we should be linking with a yet-to-be-installed one
12231 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12232 test "$hardcode_minus_L_CXX" != no; then
12233 # Linking always hardcodes the temporary library directory.
12234 hardcode_action_CXX=relink
12236 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12237 hardcode_action_CXX=immediate
12240 # We cannot hardcode anything, or else we can only hardcode existing
12242 hardcode_action_CXX=unsupported
12244 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12245 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12247 if test "$hardcode_action_CXX" = relink; then
12248 # Fast installation is not supported
12249 enable_fast_install=no
12250 elif test "$shlibpath_overrides_runpath" = yes ||
12251 test "$enable_shared" = no; then
12252 # Fast installation is not necessary
12253 enable_fast_install=needless
12258 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12259 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12260 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12261 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12262 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12263 { echo "$as_me:$LINENO: result: yes" >&5
12264 echo "${ECHO_T}yes" >&6; }
12266 # FIXME - insert some real tests, host_os isn't really good enough
12269 if test -n "$STRIP" ; then
12270 striplib="$STRIP -x"
12271 { echo "$as_me:$LINENO: result: yes" >&5
12272 echo "${ECHO_T}yes" >&6; }
12274 { echo "$as_me:$LINENO: result: no" >&5
12275 echo "${ECHO_T}no" >&6; }
12279 { echo "$as_me:$LINENO: result: no" >&5
12280 echo "${ECHO_T}no" >&6; }
12285 if test "x$enable_dlopen" != xyes; then
12286 enable_dlopen=unknown
12287 enable_dlopen_self=unknown
12288 enable_dlopen_self_static=unknown
12295 lt_cv_dlopen="load_add_on"
12297 lt_cv_dlopen_self=yes
12301 lt_cv_dlopen="LoadLibrary"
12306 lt_cv_dlopen="dlopen"
12311 # if libdl is installed we need to link against it
12312 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12313 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12314 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 ac_check_lib_save_LIBS=$LIBS
12319 cat >conftest.$ac_ext <<_ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h. */
12326 /* Override any GCC internal prototype to avoid an error.
12327 Use char because int might match the return type of a GCC
12328 builtin and then its argument prototype would still apply. */
12341 rm -f conftest.$ac_objext conftest$ac_exeext
12342 if { (ac_try="$ac_link"
12343 case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_link") 2>conftest.er1
12350 grep -v '^ *+' conftest.er1 >conftest.err
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } && {
12355 test -z "$ac_cxx_werror_flag" ||
12356 test ! -s conftest.err
12357 } && test -s conftest$ac_exeext &&
12358 $as_test_x conftest$ac_exeext; then
12359 ac_cv_lib_dl_dlopen=yes
12361 echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12364 ac_cv_lib_dl_dlopen=no
12367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12368 conftest$ac_exeext conftest.$ac_ext
12369 LIBS=$ac_check_lib_save_LIBS
12371 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12372 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12373 if test $ac_cv_lib_dl_dlopen = yes; then
12374 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12377 lt_cv_dlopen="dyld"
12379 lt_cv_dlopen_self=yes
12386 { echo "$as_me:$LINENO: checking for shl_load" >&5
12387 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12388 if test "${ac_cv_func_shl_load+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 cat >conftest.$ac_ext <<_ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12397 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12399 #define shl_load innocuous_shl_load
12401 /* System header to define __stub macros and hopefully few prototypes,
12402 which can conflict with char shl_load (); below.
12403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12404 <limits.h> exists even on freestanding compilers. */
12407 # include <limits.h>
12409 # include <assert.h>
12414 /* Override any GCC internal prototype to avoid an error.
12415 Use char because int might match the return type of a GCC
12416 builtin and then its argument prototype would still apply. */
12421 /* The GNU C library defines this for functions which it implements
12422 to always fail with ENOSYS. Some functions are actually named
12423 something starting with __ and the normal name is an alias. */
12424 #if defined __stub_shl_load || defined __stub___shl_load
12431 return shl_load ();
12436 rm -f conftest.$ac_objext conftest$ac_exeext
12437 if { (ac_try="$ac_link"
12438 case "(($ac_try" in
12439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440 *) ac_try_echo=$ac_try;;
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443 (eval "$ac_link") 2>conftest.er1
12445 grep -v '^ *+' conftest.er1 >conftest.err
12447 cat conftest.err >&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } && {
12450 test -z "$ac_cxx_werror_flag" ||
12451 test ! -s conftest.err
12452 } && test -s conftest$ac_exeext &&
12453 $as_test_x conftest$ac_exeext; then
12454 ac_cv_func_shl_load=yes
12456 echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12459 ac_cv_func_shl_load=no
12462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12463 conftest$ac_exeext conftest.$ac_ext
12465 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12466 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12467 if test $ac_cv_func_shl_load = yes; then
12468 lt_cv_dlopen="shl_load"
12470 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12471 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12472 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 ac_check_lib_save_LIBS=$LIBS
12477 cat >conftest.$ac_ext <<_ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12484 /* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12494 return shl_load ();
12499 rm -f conftest.$ac_objext conftest$ac_exeext
12500 if { (ac_try="$ac_link"
12501 case "(($ac_try" in
12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506 (eval "$ac_link") 2>conftest.er1
12508 grep -v '^ *+' conftest.er1 >conftest.err
12510 cat conftest.err >&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } && {
12513 test -z "$ac_cxx_werror_flag" ||
12514 test ! -s conftest.err
12515 } && test -s conftest$ac_exeext &&
12516 $as_test_x conftest$ac_exeext; then
12517 ac_cv_lib_dld_shl_load=yes
12519 echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12522 ac_cv_lib_dld_shl_load=no
12525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12526 conftest$ac_exeext conftest.$ac_ext
12527 LIBS=$ac_check_lib_save_LIBS
12529 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12530 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12531 if test $ac_cv_lib_dld_shl_load = yes; then
12532 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12534 { echo "$as_me:$LINENO: checking for dlopen" >&5
12535 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12536 if test "${ac_cv_func_dlopen+set}" = set; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12539 cat >conftest.$ac_ext <<_ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12545 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12547 #define dlopen innocuous_dlopen
12549 /* System header to define __stub macros and hopefully few prototypes,
12550 which can conflict with char dlopen (); below.
12551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12552 <limits.h> exists even on freestanding compilers. */
12555 # include <limits.h>
12557 # include <assert.h>
12562 /* Override any GCC internal prototype to avoid an error.
12563 Use char because int might match the return type of a GCC
12564 builtin and then its argument prototype would still apply. */
12569 /* The GNU C library defines this for functions which it implements
12570 to always fail with ENOSYS. Some functions are actually named
12571 something starting with __ and the normal name is an alias. */
12572 #if defined __stub_dlopen || defined __stub___dlopen
12584 rm -f conftest.$ac_objext conftest$ac_exeext
12585 if { (ac_try="$ac_link"
12586 case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_link") 2>conftest.er1
12593 grep -v '^ *+' conftest.er1 >conftest.err
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } && {
12598 test -z "$ac_cxx_werror_flag" ||
12599 test ! -s conftest.err
12600 } && test -s conftest$ac_exeext &&
12601 $as_test_x conftest$ac_exeext; then
12602 ac_cv_func_dlopen=yes
12604 echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12607 ac_cv_func_dlopen=no
12610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12611 conftest$ac_exeext conftest.$ac_ext
12613 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12614 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12615 if test $ac_cv_func_dlopen = yes; then
12616 lt_cv_dlopen="dlopen"
12618 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12619 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 ac_check_lib_save_LIBS=$LIBS
12625 cat >conftest.$ac_ext <<_ACEOF
12628 cat confdefs.h >>conftest.$ac_ext
12629 cat >>conftest.$ac_ext <<_ACEOF
12630 /* end confdefs.h. */
12632 /* Override any GCC internal prototype to avoid an error.
12633 Use char because int might match the return type of a GCC
12634 builtin and then its argument prototype would still apply. */
12647 rm -f conftest.$ac_objext conftest$ac_exeext
12648 if { (ac_try="$ac_link"
12649 case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654 (eval "$ac_link") 2>conftest.er1
12656 grep -v '^ *+' conftest.er1 >conftest.err
12658 cat conftest.err >&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } && {
12661 test -z "$ac_cxx_werror_flag" ||
12662 test ! -s conftest.err
12663 } && test -s conftest$ac_exeext &&
12664 $as_test_x conftest$ac_exeext; then
12665 ac_cv_lib_dl_dlopen=yes
12667 echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12670 ac_cv_lib_dl_dlopen=no
12673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12674 conftest$ac_exeext conftest.$ac_ext
12675 LIBS=$ac_check_lib_save_LIBS
12677 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12678 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12679 if test $ac_cv_lib_dl_dlopen = yes; then
12680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12682 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12683 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12684 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12687 ac_check_lib_save_LIBS=$LIBS
12688 LIBS="-lsvld $LIBS"
12689 cat >conftest.$ac_ext <<_ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12696 /* Override any GCC internal prototype to avoid an error.
12697 Use char because int might match the return type of a GCC
12698 builtin and then its argument prototype would still apply. */
12711 rm -f conftest.$ac_objext conftest$ac_exeext
12712 if { (ac_try="$ac_link"
12713 case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_link") 2>conftest.er1
12720 grep -v '^ *+' conftest.er1 >conftest.err
12722 cat conftest.err >&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } && {
12725 test -z "$ac_cxx_werror_flag" ||
12726 test ! -s conftest.err
12727 } && test -s conftest$ac_exeext &&
12728 $as_test_x conftest$ac_exeext; then
12729 ac_cv_lib_svld_dlopen=yes
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12734 ac_cv_lib_svld_dlopen=no
12737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12738 conftest$ac_exeext conftest.$ac_ext
12739 LIBS=$ac_check_lib_save_LIBS
12741 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12742 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12743 if test $ac_cv_lib_svld_dlopen = yes; then
12744 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12746 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12747 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12748 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
12751 ac_check_lib_save_LIBS=$LIBS
12753 cat >conftest.$ac_ext <<_ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12760 /* Override any GCC internal prototype to avoid an error.
12761 Use char because int might match the return type of a GCC
12762 builtin and then its argument prototype would still apply. */
12770 return dld_link ();
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (ac_try="$ac_link"
12777 case "(($ac_try" in
12778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779 *) ac_try_echo=$ac_try;;
12781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782 (eval "$ac_link") 2>conftest.er1
12784 grep -v '^ *+' conftest.er1 >conftest.err
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } && {
12789 test -z "$ac_cxx_werror_flag" ||
12790 test ! -s conftest.err
12791 } && test -s conftest$ac_exeext &&
12792 $as_test_x conftest$ac_exeext; then
12793 ac_cv_lib_dld_dld_link=yes
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12798 ac_cv_lib_dld_dld_link=no
12801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12802 conftest$ac_exeext conftest.$ac_ext
12803 LIBS=$ac_check_lib_save_LIBS
12805 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12806 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12807 if test $ac_cv_lib_dld_dld_link = yes; then
12808 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12829 if test "x$lt_cv_dlopen" != xno; then
12835 case $lt_cv_dlopen in
12837 save_CPPFLAGS="$CPPFLAGS"
12838 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12840 save_LDFLAGS="$LDFLAGS"
12841 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12844 LIBS="$lt_cv_dlopen_libs $LIBS"
12846 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12847 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12848 if test "${lt_cv_dlopen_self+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12851 if test "$cross_compiling" = yes; then :
12852 lt_cv_dlopen_self=cross
12854 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12855 lt_status=$lt_dlunknown
12856 cat > conftest.$ac_ext <<EOF
12857 #line 12857 "configure"
12858 #include "confdefs.h"
12867 # define LT_DLGLOBAL RTLD_GLOBAL
12870 # define LT_DLGLOBAL DL_GLOBAL
12872 # define LT_DLGLOBAL 0
12876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12877 find out it does not work in some platform. */
12878 #ifndef LT_DLLAZY_OR_NOW
12880 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12883 # define LT_DLLAZY_OR_NOW DL_LAZY
12886 # define LT_DLLAZY_OR_NOW RTLD_NOW
12889 # define LT_DLLAZY_OR_NOW DL_NOW
12891 # define LT_DLLAZY_OR_NOW 0
12899 extern "C" void exit (int);
12902 void fnord() { int i=42;}
12905 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12906 int status = $lt_dlunknown;
12910 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12911 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12912 /* dlclose (self); */
12918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12919 (eval $ac_link) 2>&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12923 (./conftest; exit; ) 2>/dev/null
12925 case x$lt_status in
12926 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12927 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12928 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12931 # compilation failed
12932 lt_cv_dlopen_self=no
12939 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12940 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12942 if test "x$lt_cv_dlopen_self" = xyes; then
12943 LDFLAGS="$LDFLAGS $link_static_flag"
12944 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12945 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12946 if test "${lt_cv_dlopen_self_static+set}" = set; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12949 if test "$cross_compiling" = yes; then :
12950 lt_cv_dlopen_self_static=cross
12952 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12953 lt_status=$lt_dlunknown
12954 cat > conftest.$ac_ext <<EOF
12955 #line 12955 "configure"
12956 #include "confdefs.h"
12965 # define LT_DLGLOBAL RTLD_GLOBAL
12968 # define LT_DLGLOBAL DL_GLOBAL
12970 # define LT_DLGLOBAL 0
12974 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12975 find out it does not work in some platform. */
12976 #ifndef LT_DLLAZY_OR_NOW
12978 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12981 # define LT_DLLAZY_OR_NOW DL_LAZY
12984 # define LT_DLLAZY_OR_NOW RTLD_NOW
12987 # define LT_DLLAZY_OR_NOW DL_NOW
12989 # define LT_DLLAZY_OR_NOW 0
12997 extern "C" void exit (int);
13000 void fnord() { int i=42;}
13003 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13004 int status = $lt_dlunknown;
13008 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13009 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13010 /* dlclose (self); */
13016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13017 (eval $ac_link) 2>&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13021 (./conftest; exit; ) 2>/dev/null
13023 case x$lt_status in
13024 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13025 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13026 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13029 # compilation failed
13030 lt_cv_dlopen_self_static=no
13037 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13038 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13041 CPPFLAGS="$save_CPPFLAGS"
13042 LDFLAGS="$save_LDFLAGS"
13047 case $lt_cv_dlopen_self in
13048 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13049 *) enable_dlopen_self=unknown ;;
13052 case $lt_cv_dlopen_self_static in
13053 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13054 *) enable_dlopen_self_static=unknown ;;
13059 # The else clause should only fire when bootstrapping the
13060 # libtool distribution, otherwise you forgot to ship ltmain.sh
13061 # with your package, and you will get complaints that there are
13062 # no rules to generate ltmain.sh.
13063 if test -f "$ltmain"; then
13064 # See if we are running on zsh, and set the options which allow our commands through
13065 # without removal of \ escapes.
13066 if test -n "${ZSH_VERSION+set}" ; then
13067 setopt NO_GLOB_SUBST
13069 # Now quote all the things that may contain metacharacters while being
13070 # careful not to overquote the AC_SUBSTed values. We take copies of the
13071 # variables and quote the copies for generation of the libtool script.
13072 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13074 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13075 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13076 deplibs_check_method reload_flag reload_cmds need_locks \
13077 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13078 lt_cv_sys_global_symbol_to_c_name_address \
13079 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13080 old_postinstall_cmds old_postuninstall_cmds \
13084 lt_prog_compiler_wl_CXX \
13085 lt_prog_compiler_pic_CXX \
13086 lt_prog_compiler_static_CXX \
13087 lt_prog_compiler_no_builtin_flag_CXX \
13088 export_dynamic_flag_spec_CXX \
13089 thread_safe_flag_spec_CXX \
13090 whole_archive_flag_spec_CXX \
13091 enable_shared_with_static_runtimes_CXX \
13092 old_archive_cmds_CXX \
13093 old_archive_from_new_cmds_CXX \
13094 predep_objects_CXX \
13095 postdep_objects_CXX \
13098 compiler_lib_search_path_CXX \
13100 archive_expsym_cmds_CXX \
13101 postinstall_cmds_CXX \
13102 postuninstall_cmds_CXX \
13103 old_archive_from_expsyms_cmds_CXX \
13104 allow_undefined_flag_CXX \
13105 no_undefined_flag_CXX \
13106 export_symbols_cmds_CXX \
13107 hardcode_libdir_flag_spec_CXX \
13108 hardcode_libdir_flag_spec_ld_CXX \
13109 hardcode_libdir_separator_CXX \
13110 hardcode_automatic_CXX \
13112 module_expsym_cmds_CXX \
13113 lt_cv_prog_compiler_c_o_CXX \
13114 exclude_expsyms_CXX \
13115 include_expsyms_CXX; do
13118 old_archive_cmds_CXX | \
13119 old_archive_from_new_cmds_CXX | \
13120 archive_cmds_CXX | \
13121 archive_expsym_cmds_CXX | \
13122 module_cmds_CXX | \
13123 module_expsym_cmds_CXX | \
13124 old_archive_from_expsyms_cmds_CXX | \
13125 export_symbols_cmds_CXX | \
13126 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13127 postinstall_cmds | postuninstall_cmds | \
13128 old_postinstall_cmds | old_postuninstall_cmds | \
13129 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13130 # Double-quote double-evaled strings.
13131 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13134 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13140 *'\$0 --fallback-echo"')
13141 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13147 cat <<__EOF__ >> "$cfgfile"
13148 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13150 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13152 # Shell to use when invoking shell scripts.
13155 # Whether or not to build shared libraries.
13156 build_libtool_libs=$enable_shared
13158 # Whether or not to build static libraries.
13159 build_old_libs=$enable_static
13161 # Whether or not to add -lc for building shared libraries.
13162 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13164 # Whether or not to disallow shared libs when runtime libs are static
13165 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13167 # Whether or not to optimize for fast installation.
13168 fast_install=$enable_fast_install
13171 host_alias=$host_alias
13174 # An echo program that does not interpret backslashes.
13179 AR_FLAGS=$lt_AR_FLAGS
13184 # A language-specific compiler.
13185 CC=$lt_compiler_CXX
13187 # Is the compiler the GNU C compiler?
13193 # The linker used to build libraries.
13196 # Whether we need hard or soft links.
13199 # A BSD-compatible nm program.
13202 # A symbol stripping program
13205 # Used to examine libraries when file_magic_cmd begins "file"
13206 MAGIC_CMD=$MAGIC_CMD
13208 # Used on cygwin: DLL creation program.
13211 # Used on cygwin: object dumper.
13214 # Used on cygwin: assembler.
13217 # The name of the directory that contains temporary libtool files.
13220 # How to create reloadable object files.
13221 reload_flag=$lt_reload_flag
13222 reload_cmds=$lt_reload_cmds
13224 # How to pass a linker flag through the compiler.
13225 wl=$lt_lt_prog_compiler_wl_CXX
13227 # Object file suffix (normally "o").
13228 objext="$ac_objext"
13230 # Old archive suffix (normally "a").
13233 # Shared library suffix (normally ".so").
13234 shrext_cmds='$shrext_cmds'
13236 # Executable file suffix (normally "").
13239 # Additional compiler flags for building library objects.
13240 pic_flag=$lt_lt_prog_compiler_pic_CXX
13243 # What is the maximum length of a command?
13244 max_cmd_len=$lt_cv_sys_max_cmd_len
13246 # Does compiler simultaneously support -c and -o options?
13247 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13249 # Must we lock files when doing compilation ?
13250 need_locks=$lt_need_locks
13252 # Do we need the lib prefix for modules?
13253 need_lib_prefix=$need_lib_prefix
13255 # Do we need a version for libraries?
13256 need_version=$need_version
13258 # Whether dlopen is supported.
13259 dlopen_support=$enable_dlopen
13261 # Whether dlopen of programs is supported.
13262 dlopen_self=$enable_dlopen_self
13264 # Whether dlopen of statically linked programs is supported.
13265 dlopen_self_static=$enable_dlopen_self_static
13267 # Compiler flag to prevent dynamic linking.
13268 link_static_flag=$lt_lt_prog_compiler_static_CXX
13270 # Compiler flag to turn off builtin functions.
13271 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13273 # Compiler flag to allow reflexive dlopens.
13274 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13276 # Compiler flag to generate shared objects directly from archives.
13277 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13279 # Compiler flag to generate thread-safe objects.
13280 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13282 # Library versioning type.
13283 version_type=$version_type
13285 # Format of library name prefix.
13286 libname_spec=$lt_libname_spec
13288 # List of archive names. First name is the real one, the rest are links.
13289 # The last name is the one that the linker finds with -lNAME.
13290 library_names_spec=$lt_library_names_spec
13292 # The coded name of the library, if different from the real name.
13293 soname_spec=$lt_soname_spec
13295 # Commands used to build and install an old-style archive.
13297 old_archive_cmds=$lt_old_archive_cmds_CXX
13298 old_postinstall_cmds=$lt_old_postinstall_cmds
13299 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13301 # Create an old-style archive from a shared archive.
13302 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13304 # Create a temporary old-style archive to link instead of a shared archive.
13305 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13307 # Commands used to build and install a shared archive.
13308 archive_cmds=$lt_archive_cmds_CXX
13309 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13310 postinstall_cmds=$lt_postinstall_cmds
13311 postuninstall_cmds=$lt_postuninstall_cmds
13313 # Commands used to build a loadable module (assumed same as above if empty)
13314 module_cmds=$lt_module_cmds_CXX
13315 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13317 # Commands to strip libraries.
13318 old_striplib=$lt_old_striplib
13319 striplib=$lt_striplib
13321 # Dependencies to place before the objects being linked to create a
13323 predep_objects=$lt_predep_objects_CXX
13325 # Dependencies to place after the objects being linked to create a
13327 postdep_objects=$lt_postdep_objects_CXX
13329 # Dependencies to place before the objects being linked to create a
13331 predeps=$lt_predeps_CXX
13333 # Dependencies to place after the objects being linked to create a
13335 postdeps=$lt_postdeps_CXX
13337 # The library search path used internally by the compiler when linking
13338 # a shared library.
13339 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13341 # Method to check whether dependent libraries are shared objects.
13342 deplibs_check_method=$lt_deplibs_check_method
13344 # Command to use when deplibs_check_method == file_magic.
13345 file_magic_cmd=$lt_file_magic_cmd
13347 # Flag that allows shared libraries with undefined symbols to be built.
13348 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13350 # Flag that forces no undefined symbols.
13351 no_undefined_flag=$lt_no_undefined_flag_CXX
13353 # Commands used to finish a libtool library installation in a directory.
13354 finish_cmds=$lt_finish_cmds
13356 # Same as above, but a single script fragment to be evaled but not shown.
13357 finish_eval=$lt_finish_eval
13359 # Take the output of nm and produce a listing of raw symbols and C names.
13360 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13362 # Transform the output of nm in a proper C declaration
13363 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13365 # Transform the output of nm in a C name address pair
13366 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13368 # This is the shared library runtime path variable.
13369 runpath_var=$runpath_var
13371 # This is the shared library path variable.
13372 shlibpath_var=$shlibpath_var
13374 # Is shlibpath searched before the hard-coded library search path?
13375 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13377 # How to hardcode a shared library path into an executable.
13378 hardcode_action=$hardcode_action_CXX
13380 # Whether we should hardcode library paths into libraries.
13381 hardcode_into_libs=$hardcode_into_libs
13383 # Flag to hardcode \$libdir into a binary during linking.
13384 # This must work even if \$libdir does not exist.
13385 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13387 # If ld is used when linking, flag to hardcode \$libdir into
13388 # a binary during linking. This must work even if \$libdir does
13390 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13392 # Whether we need a single -rpath flag with a separated argument.
13393 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13395 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13396 # resulting binary.
13397 hardcode_direct=$hardcode_direct_CXX
13399 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13400 # resulting binary.
13401 hardcode_minus_L=$hardcode_minus_L_CXX
13403 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13404 # the resulting binary.
13405 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13407 # Set to yes if building a shared library automatically hardcodes DIR into the library
13408 # and all subsequent libraries and executables linked against it.
13409 hardcode_automatic=$hardcode_automatic_CXX
13411 # Variables whose values should be saved in libtool wrapper scripts and
13412 # restored at relink time.
13413 variables_saved_for_relink="$variables_saved_for_relink"
13415 # Whether libtool must link a program against all its dependency libraries.
13416 link_all_deplibs=$link_all_deplibs_CXX
13418 # Compile-time system search path for libraries
13419 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13421 # Run-time system search path for libraries
13422 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13424 # Fix the shell variable \$srcfile for the compiler.
13425 fix_srcfile_path="$fix_srcfile_path_CXX"
13427 # Set to yes if exported symbols are required.
13428 always_export_symbols=$always_export_symbols_CXX
13430 # The commands to list exported symbols.
13431 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13433 # The commands to extract the exported symbol list from a shared archive.
13434 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13436 # Symbols that should not be listed in the preloaded symbols.
13437 exclude_expsyms=$lt_exclude_expsyms_CXX
13439 # Symbols that must always be exported.
13440 include_expsyms=$lt_include_expsyms_CXX
13442 # ### END LIBTOOL TAG CONFIG: $tagname
13448 # If there is no Makefile yet, we rely on a make rule to execute
13449 # `config.status --recheck' to rerun these tests and create the
13450 # libtool script then.
13451 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13452 if test -f "$ltmain_in"; then
13453 test -f Makefile && make "$ltmain"
13459 ac_cpp='$CPP $CPPFLAGS'
13460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13468 with_gnu_ldcxx=$with_gnu_ld
13469 with_gnu_ld=$lt_save_with_gnu_ld
13470 lt_cv_path_LDCXX=$lt_cv_path_LD
13471 lt_cv_path_LD=$lt_save_path_LD
13472 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13473 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13481 if test -n "$F77" && test "X$F77" != "Xno"; then
13484 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13485 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13486 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13489 archive_cmds_need_lc_F77=no
13490 allow_undefined_flag_F77=
13491 always_export_symbols_F77=no
13492 archive_expsym_cmds_F77=
13493 export_dynamic_flag_spec_F77=
13494 hardcode_direct_F77=no
13495 hardcode_libdir_flag_spec_F77=
13496 hardcode_libdir_flag_spec_ld_F77=
13497 hardcode_libdir_separator_F77=
13498 hardcode_minus_L_F77=no
13499 hardcode_automatic_F77=no
13501 module_expsym_cmds_F77=
13502 link_all_deplibs_F77=unknown
13503 old_archive_cmds_F77=$old_archive_cmds
13504 no_undefined_flag_F77=
13505 whole_archive_flag_spec_F77=
13506 enable_shared_with_static_runtimes_F77=no
13508 # Source file extension for f77 test sources.
13511 # Object file extension for compiled f77 test sources.
13515 # Code to be used in simple compile tests
13516 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13518 # Code to be used in simple link tests
13519 lt_simple_link_test_code=" program t\n end\n"
13521 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13523 # If no C compiler was specified, use CC.
13526 # Allow CC to be a program name with arguments.
13530 # Allow CC to be a program name with arguments.
13535 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13537 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13538 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13539 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13540 echo "${ECHO_T}$can_build_shared" >&6; }
13542 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13543 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13544 test "$can_build_shared" = "no" && enable_shared=no
13546 # On AIX, shared libraries and static libraries use the same namespace, and
13547 # are all built from PIC.
13550 test "$enable_shared" = yes && enable_static=no
13551 if test -n "$RANLIB"; then
13552 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13553 postinstall_cmds='$RANLIB $lib'
13557 test "$enable_shared" = yes && enable_static=no
13560 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13561 echo "${ECHO_T}$enable_shared" >&6; }
13563 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13564 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13565 # Make sure either enable_shared or enable_static is yes.
13566 test "$enable_shared" = yes || enable_static=yes
13567 { echo "$as_me:$LINENO: result: $enable_static" >&5
13568 echo "${ECHO_T}$enable_static" >&6; }
13570 test "$ld_shlibs_F77" = no && can_build_shared=no
13575 lt_prog_compiler_wl_F77=
13576 lt_prog_compiler_pic_F77=
13577 lt_prog_compiler_static_F77=
13579 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13580 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13582 if test "$GCC" = yes; then
13583 lt_prog_compiler_wl_F77='-Wl,'
13584 lt_prog_compiler_static_F77='-static'
13588 # All AIX code is PIC.
13589 if test "$host_cpu" = ia64; then
13590 # AIX 5 now supports IA64 processor
13591 lt_prog_compiler_static_F77='-Bstatic'
13596 # FIXME: we need at least 68020 code to build shared libraries, but
13597 # adding the `-m68020' flag to GCC prevents building anything better,
13599 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13602 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13603 # PIC is the default for these OSes.
13606 mingw* | pw32* | os2*)
13607 # This hack is so that the source file can tell whether it is being
13608 # built for inclusion in a dll (and should export symbols for example).
13609 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13612 darwin* | rhapsody*)
13613 # PIC is the default on this platform
13614 # Common symbols not allowed in MH_DYLIB files
13615 lt_prog_compiler_pic_F77='-fno-common'
13619 # Just because we use GCC doesn't mean we suddenly get shared libraries
13620 # on systems that don't support them.
13621 lt_prog_compiler_can_build_shared_F77=no
13626 if test -d /usr/nec; then
13627 lt_prog_compiler_pic_F77=-Kconform_pic
13632 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13633 # not for PA HP-UX.
13634 case "$host_cpu" in
13639 lt_prog_compiler_pic_F77='-fPIC'
13645 lt_prog_compiler_pic_F77='-fPIC'
13649 # PORTME Check for flag to pass linker flags through the system compiler.
13652 lt_prog_compiler_wl_F77='-Wl,'
13653 if test "$host_cpu" = ia64; then
13654 # AIX 5 now supports IA64 processor
13655 lt_prog_compiler_static_F77='-Bstatic'
13657 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13661 mingw* | pw32* | os2*)
13662 # This hack is so that the source file can tell whether it is being
13663 # built for inclusion in a dll (and should export symbols for example).
13664 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13667 hpux9* | hpux10* | hpux11*)
13668 lt_prog_compiler_wl_F77='-Wl,'
13669 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13670 # not for PA HP-UX.
13671 case "$host_cpu" in
13676 lt_prog_compiler_pic_F77='+Z'
13679 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13680 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13683 irix5* | irix6* | nonstopux*)
13684 lt_prog_compiler_wl_F77='-Wl,'
13685 # PIC (with -KPIC) is the default.
13686 lt_prog_compiler_static_F77='-non_shared'
13690 lt_prog_compiler_pic_F77='-KPIC'
13691 lt_prog_compiler_static_F77='-Bstatic'
13697 lt_prog_compiler_wl_F77='-Wl,'
13698 lt_prog_compiler_pic_F77='-KPIC'
13699 lt_prog_compiler_static_F77='-static'
13702 lt_prog_compiler_wl_F77='-Wl,'
13703 # All Alpha code is PIC.
13704 lt_prog_compiler_static_F77='-non_shared'
13709 osf3* | osf4* | osf5*)
13710 lt_prog_compiler_wl_F77='-Wl,'
13711 # All OSF/1 code is PIC.
13712 lt_prog_compiler_static_F77='-non_shared'
13716 lt_prog_compiler_pic_F77='-Kpic'
13717 lt_prog_compiler_static_F77='-dn'
13721 lt_prog_compiler_wl_F77='-Wl,'
13722 lt_prog_compiler_pic_F77='-KPIC'
13723 lt_prog_compiler_static_F77='-Bstatic'
13727 lt_prog_compiler_wl_F77='-Qoption ld '
13728 lt_prog_compiler_pic_F77='-PIC'
13729 lt_prog_compiler_static_F77='-Bstatic'
13732 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13733 lt_prog_compiler_wl_F77='-Wl,'
13734 lt_prog_compiler_pic_F77='-KPIC'
13735 lt_prog_compiler_static_F77='-Bstatic'
13739 if test -d /usr/nec ;then
13740 lt_prog_compiler_pic_F77='-Kconform_pic'
13741 lt_prog_compiler_static_F77='-Bstatic'
13746 lt_prog_compiler_pic_F77='-pic'
13747 lt_prog_compiler_static_F77='-Bstatic'
13751 lt_prog_compiler_can_build_shared_F77=no
13756 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13757 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13760 # Check to make sure the PIC flag actually works.
13762 if test -n "$lt_prog_compiler_pic_F77"; then
13764 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13765 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13766 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 lt_prog_compiler_pic_works_F77=no
13770 ac_outfile=conftest.$ac_objext
13771 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13772 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13773 # Insert the option either (1) after the last *FLAGS variable, or
13774 # (2) before a word containing "conftest.", or (3) at the end.
13775 # Note that $ac_compile itself does not contain backslashes and begins
13776 # with a dollar sign (not a hyphen), so the echo should work correctly.
13777 # The option is referenced via a variable to avoid confusing sed.
13778 lt_compile=`echo "$ac_compile" | $SED \
13779 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13781 -e 's:$: $lt_compiler_flag:'`
13782 (eval echo "\"\$as_me:13782: $lt_compile\"" >&5)
13783 (eval "$lt_compile" 2>conftest.err)
13785 cat conftest.err >&5
13786 echo "$as_me:13786: \$? = $ac_status" >&5
13787 if (exit $ac_status) && test -s "$ac_outfile"; then
13788 # The compiler can only warn and ignore the option if not recognized
13789 # So say no if there are warnings
13790 if test ! -s conftest.err; then
13791 lt_prog_compiler_pic_works_F77=yes
13797 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13798 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13800 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13801 case $lt_prog_compiler_pic_F77 in
13803 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13806 lt_prog_compiler_pic_F77=
13807 lt_prog_compiler_can_build_shared_F77=no
13812 # For platforms which do not support PIC, -DPIC is meaningless:
13814 lt_prog_compiler_pic_F77=
13817 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13821 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13822 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13823 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13826 lt_cv_prog_compiler_c_o_F77=no
13827 $rm -r conftest 2>/dev/null
13831 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13833 lt_compiler_flag="-o out/conftest2.$ac_objext"
13834 # Insert the option either (1) after the last *FLAGS variable, or
13835 # (2) before a word containing "conftest.", or (3) at the end.
13836 # Note that $ac_compile itself does not contain backslashes and begins
13837 # with a dollar sign (not a hyphen), so the echo should work correctly.
13838 lt_compile=`echo "$ac_compile" | $SED \
13839 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13841 -e 's:$: $lt_compiler_flag:'`
13842 (eval echo "\"\$as_me:13842: $lt_compile\"" >&5)
13843 (eval "$lt_compile" 2>out/conftest.err)
13845 cat out/conftest.err >&5
13846 echo "$as_me:13846: \$? = $ac_status" >&5
13847 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13849 # The compiler can only warn and ignore the option if not recognized
13850 # So say no if there are warnings
13851 if test ! -s out/conftest.err; then
13852 lt_cv_prog_compiler_c_o_F77=yes
13857 # SGI C++ compiler will create directory out/ii_files/ for
13858 # template instantiation
13859 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13860 $rm out/* && rmdir out
13866 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13867 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13870 hard_links="nottested"
13871 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13872 # do not overwrite the value of need_locks provided by the user
13873 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13874 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13879 ln conftest.a conftest.b 2>&5 || hard_links=no
13880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13881 { echo "$as_me:$LINENO: result: $hard_links" >&5
13882 echo "${ECHO_T}$hard_links" >&6; }
13883 if test "$hard_links" = no; then
13884 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13885 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13892 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13893 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13896 allow_undefined_flag_F77=
13897 enable_shared_with_static_runtimes_F77=no
13899 archive_expsym_cmds_F77=
13900 old_archive_From_new_cmds_F77=
13901 old_archive_from_expsyms_cmds_F77=
13902 export_dynamic_flag_spec_F77=
13903 whole_archive_flag_spec_F77=
13904 thread_safe_flag_spec_F77=
13905 hardcode_libdir_flag_spec_F77=
13906 hardcode_libdir_flag_spec_ld_F77=
13907 hardcode_libdir_separator_F77=
13908 hardcode_direct_F77=no
13909 hardcode_minus_L_F77=no
13910 hardcode_shlibpath_var_F77=unsupported
13911 link_all_deplibs_F77=unknown
13912 hardcode_automatic_F77=no
13914 module_expsym_cmds_F77=
13915 always_export_symbols_F77=no
13916 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13917 # include_expsyms should be a list of space-separated symbols to be *always*
13918 # included in the symbol list
13919 include_expsyms_F77=
13920 # exclude_expsyms can be an extended regexp of symbols to exclude
13921 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13922 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13923 # as well as any symbol that contains `d'.
13924 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13925 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13926 # platforms (ab)use it in PIC code, but their linkers get confused if
13927 # the symbol is explicitly referenced. Since portable code cannot
13928 # rely on this symbol name, it's probably fine to never include it in
13929 # preloaded symbol tables.
13930 extract_expsyms_cmds=
13933 cygwin* | mingw* | pw32*)
13934 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13935 # When not using gcc, we currently assume that we are using
13936 # Microsoft Visual C++.
13937 if test "$GCC" != yes; then
13947 if test "$with_gnu_ld" = yes; then
13948 # If archive_cmds runs LD, not CC, wlarc should be empty
13951 # See if GNU ld supports shared libraries.
13953 aix3* | aix4* | aix5*)
13954 # On AIX/PPC, the GNU linker is very broken
13955 if test "$host_cpu" != ia64; then
13959 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13960 *** to be unable to reliably create shared libraries on AIX.
13961 *** Therefore, libtool is disabling shared libraries support. If you
13962 *** really care for shared libraries, you may want to modify your PATH
13963 *** so that a non-GNU linker is found, and then restart.
13970 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)'
13971 hardcode_libdir_flag_spec_F77='-L$libdir'
13972 hardcode_minus_L_F77=yes
13974 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13975 # that the semantics of dynamic libraries on AmigaOS, at least up
13976 # to version 4, is to share data among multiple programs linked
13977 # with the same dynamic library. Since this doesn't match the
13978 # behavior of shared libraries on other platforms, we can't use
13984 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13985 allow_undefined_flag_F77=unsupported
13986 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13987 # support --undefined. This deserves some investigation. FIXME
13988 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13994 cygwin* | mingw* | pw32*)
13995 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13996 # as there is no search path for DLLs.
13997 hardcode_libdir_flag_spec_F77='-L$libdir'
13998 allow_undefined_flag_F77=unsupported
13999 always_export_symbols_F77=no
14000 enable_shared_with_static_runtimes_F77=yes
14001 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14003 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14004 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14005 # If the export-symbols file already is a .def file (1st line
14006 # is EXPORTS), use it as is; otherwise, prepend...
14007 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14008 cp $export_symbols $output_objdir/$soname.def;
14010 echo EXPORTS > $output_objdir/$soname.def;
14011 cat $export_symbols >> $output_objdir/$soname.def;
14013 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14020 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14021 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14024 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14025 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14030 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14034 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14035 *** create shared libraries on Solaris systems. Therefore, libtool
14036 *** is disabling shared libraries support. We urge you to upgrade GNU
14037 *** binutils to release 2.9.1 or newer. Another option is to modify
14038 *** your PATH or compiler configuration so that the native linker is
14039 *** used, and then restart.
14042 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14043 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14044 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14051 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14053 hardcode_direct_F77=yes
14054 hardcode_shlibpath_var_F77=no
14058 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14059 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14060 archive_cmds_F77="$tmp_archive_cmds"
14061 supports_anon_versioning=no
14062 case `$LD -v 2>/dev/null` in
14063 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14064 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14065 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14066 *\ 2.11.*) ;; # other 2.11 versions
14067 *) supports_anon_versioning=yes ;;
14069 if test $supports_anon_versioning = yes; then
14070 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14071 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14072 $echo "local: *; };" >> $output_objdir/$libname.ver~
14073 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14075 archive_expsym_cmds_F77="$tmp_archive_cmds"
14083 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14084 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14085 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14092 if test "$ld_shlibs_F77" = yes; then
14093 runpath_var=LD_RUN_PATH
14094 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14095 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14096 # ancient GNU ld didn't support --whole-archive et. al.
14097 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14098 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14100 whole_archive_flag_spec_F77=
14104 # PORTME fill in a description of your system's linker (not GNU ld)
14107 allow_undefined_flag_F77=unsupported
14108 always_export_symbols_F77=yes
14109 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'
14110 # Note: this linker hardcodes the directories in LIBPATH if there
14111 # are no directories specified by -L.
14112 hardcode_minus_L_F77=yes
14113 if test "$GCC" = yes && test -z "$link_static_flag"; then
14114 # Neither direct hardcoding nor static linking is supported with a
14116 hardcode_direct_F77=unsupported
14121 if test "$host_cpu" = ia64; then
14122 # On IA64, the linker does run time linking by default, so we don't
14123 # have to do anything special.
14124 aix_use_runtimelinking=no
14125 exp_sym_flag='-Bexport'
14128 # If we're using GNU nm, then we don't want the "-C" option.
14129 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14130 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14131 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'
14133 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'
14135 aix_use_runtimelinking=no
14137 # Test if we are trying to use run time linking or normal
14138 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14139 # need to do runtime linking.
14140 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14141 for ld_flag in $LDFLAGS; do
14142 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14143 aix_use_runtimelinking=yes
14149 exp_sym_flag='-bexport'
14150 no_entry_flag='-bnoentry'
14153 # When large executables or shared objects are built, AIX ld can
14154 # have problems creating the table of contents. If linking a library
14155 # or program results in "error TOC overflow" add -mminimal-toc to
14156 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14157 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14159 archive_cmds_F77=''
14160 hardcode_direct_F77=yes
14161 hardcode_libdir_separator_F77=':'
14162 link_all_deplibs_F77=yes
14164 if test "$GCC" = yes; then
14165 case $host_os in aix4.012|aix4.012.*)
14166 # We only want to do this on AIX 4.2 and lower, the check
14167 # below for broken collect2 doesn't work under 4.3+
14168 collect2name=`${CC} -print-prog-name=collect2`
14169 if test -f "$collect2name" && \
14170 strings "$collect2name" | grep resolve_lib_name >/dev/null
14172 # We have reworked collect2
14173 hardcode_direct_F77=yes
14175 # We have old collect2
14176 hardcode_direct_F77=unsupported
14177 # It fails to find uninstalled libraries when the uninstalled
14178 # path is not listed in the libpath. Setting hardcode_minus_L
14179 # to unsupported forces relinking
14180 hardcode_minus_L_F77=yes
14181 hardcode_libdir_flag_spec_F77='-L$libdir'
14182 hardcode_libdir_separator_F77=
14185 shared_flag='-shared'
14188 if test "$host_cpu" = ia64; then
14189 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14190 # chokes on -Wl,-G. The following line is correct:
14193 if test "$aix_use_runtimelinking" = yes; then
14194 shared_flag='${wl}-G'
14196 shared_flag='${wl}-bM:SRE'
14201 # It seems that -bexpall does not export symbols beginning with
14202 # underscore (_), so it is better to generate a list of symbols to export.
14203 always_export_symbols_F77=yes
14204 if test "$aix_use_runtimelinking" = yes; then
14205 # Warning - without using the other runtime loading flags (-brtl),
14206 # -berok will link without error, but may produce a broken library.
14207 allow_undefined_flag_F77='-berok'
14208 # Determine the default libpath from the value encoded in an empty executable.
14209 cat >conftest.$ac_ext <<_ACEOF
14214 rm -f conftest.$ac_objext conftest$ac_exeext
14215 if { (ac_try="$ac_link"
14216 case "(($ac_try" in
14217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218 *) ac_try_echo=$ac_try;;
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221 (eval "$ac_link") 2>conftest.er1
14223 grep -v '^ *+' conftest.er1 >conftest.err
14225 cat conftest.err >&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } && {
14228 test -z "$ac_f77_werror_flag" ||
14229 test ! -s conftest.err
14230 } && test -s conftest$ac_exeext &&
14231 $as_test_x conftest$ac_exeext; then
14233 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14235 # Check for a 64-bit object if we didn't find anything.
14236 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; }
14239 echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14246 conftest$ac_exeext conftest.$ac_ext
14247 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14249 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14250 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14252 if test "$host_cpu" = ia64; then
14253 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14254 allow_undefined_flag_F77="-z nodefs"
14255 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14257 # Determine the default libpath from the value encoded in an empty executable.
14258 cat >conftest.$ac_ext <<_ACEOF
14263 rm -f conftest.$ac_objext conftest$ac_exeext
14264 if { (ac_try="$ac_link"
14265 case "(($ac_try" in
14266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267 *) ac_try_echo=$ac_try;;
14269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14270 (eval "$ac_link") 2>conftest.er1
14272 grep -v '^ *+' conftest.er1 >conftest.err
14274 cat conftest.err >&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } && {
14277 test -z "$ac_f77_werror_flag" ||
14278 test ! -s conftest.err
14279 } && test -s conftest$ac_exeext &&
14280 $as_test_x conftest$ac_exeext; then
14282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14284 # Check for a 64-bit object if we didn't find anything.
14285 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; }
14288 echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14295 conftest$ac_exeext conftest.$ac_ext
14296 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14298 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14299 # Warning - without using the other run time loading flags,
14300 # -berok will link without error, but may produce a broken library.
14301 no_undefined_flag_F77=' ${wl}-bernotok'
14302 allow_undefined_flag_F77=' ${wl}-berok'
14303 # -bexpall does not export symbols beginning with underscore (_)
14304 always_export_symbols_F77=yes
14305 # Exported symbols can be pulled into shared objects from archives
14306 whole_archive_flag_spec_F77=' '
14307 archive_cmds_need_lc_F77=yes
14308 # This is similar to how AIX traditionally builds it's shared libraries.
14309 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14315 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)'
14316 hardcode_libdir_flag_spec_F77='-L$libdir'
14317 hardcode_minus_L_F77=yes
14318 # see comment about different semantics on the GNU ld section
14323 export_dynamic_flag_spec_F77=-rdynamic
14326 cygwin* | mingw* | pw32*)
14327 # When not using gcc, we currently assume that we are using
14328 # Microsoft Visual C++.
14329 # hardcode_libdir_flag_spec is actually meaningless, as there is
14330 # no search path for DLLs.
14331 hardcode_libdir_flag_spec_F77=' '
14332 allow_undefined_flag_F77=unsupported
14333 # Tell ltmain to make .lib files, not .a files.
14335 # Tell ltmain to make .dll files, not .so files.
14337 # FIXME: Setting linknames here is a bad hack.
14338 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14339 # The linker will automatically build a .lib file if we build a DLL.
14340 old_archive_From_new_cmds_F77='true'
14341 # FIXME: Should let the user specify the lib program.
14342 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14343 fix_srcfile_path='`cygpath -w "$srcfile"`'
14344 enable_shared_with_static_runtimes_F77=yes
14347 darwin* | rhapsody*)
14348 if test "$GXX" = yes ; then
14349 archive_cmds_need_lc_F77=no
14351 rhapsody* | darwin1.[012])
14352 allow_undefined_flag_F77='-undefined suppress'
14355 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14356 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14358 case ${MACOSX_DEPLOYMENT_TARGET} in
14360 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14363 allow_undefined_flag_F77='-undefined dynamic_lookup'
14369 lt_int_apple_cc_single_mod=no
14370 output_verbose_link_cmd='echo'
14371 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14372 lt_int_apple_cc_single_mod=yes
14374 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14375 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14377 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14379 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14380 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14381 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14382 archive_expsym_cmds_F77='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}'
14384 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
14386 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}'
14387 hardcode_direct_F77=no
14388 hardcode_automatic_F77=yes
14389 hardcode_shlibpath_var_F77=unsupported
14390 whole_archive_flag_spec_F77='-all_load $convenience'
14391 link_all_deplibs_F77=yes
14398 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14399 hardcode_libdir_flag_spec_F77='-L$libdir'
14400 hardcode_shlibpath_var_F77=no
14407 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14408 # support. Future versions do this automatically, but an explicit c++rt0.o
14409 # does not break anything, and helps significantly (at the cost of a little
14412 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14413 hardcode_libdir_flag_spec_F77='-R$libdir'
14414 hardcode_direct_F77=yes
14415 hardcode_shlibpath_var_F77=no
14418 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14420 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14421 hardcode_direct_F77=yes
14422 hardcode_minus_L_F77=yes
14423 hardcode_shlibpath_var_F77=no
14426 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14427 freebsd* | kfreebsd*-gnu)
14428 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14429 hardcode_libdir_flag_spec_F77='-R$libdir'
14430 hardcode_direct_F77=yes
14431 hardcode_shlibpath_var_F77=no
14435 if test "$GCC" = yes; then
14436 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'
14438 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'
14440 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14441 hardcode_libdir_separator_F77=:
14442 hardcode_direct_F77=yes
14444 # hardcode_minus_L: Not really in the search PATH,
14445 # but as the default location of the library.
14446 hardcode_minus_L_F77=yes
14447 export_dynamic_flag_spec_F77='${wl}-E'
14451 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14452 case "$host_cpu" in
14454 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14457 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14461 case "$host_cpu" in
14463 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14466 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14470 if test "$with_gnu_ld" = no; then
14471 case "$host_cpu" in
14473 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14474 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14475 hardcode_libdir_separator_F77=:
14476 hardcode_direct_F77=no
14477 hardcode_shlibpath_var_F77=no
14480 hardcode_libdir_flag_spec_F77='-L$libdir'
14481 hardcode_direct_F77=no
14482 hardcode_shlibpath_var_F77=no
14484 # hardcode_minus_L: Not really in the search PATH,
14485 # but as the default location of the library.
14486 hardcode_minus_L_F77=yes
14489 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14490 hardcode_libdir_separator_F77=:
14491 hardcode_direct_F77=yes
14492 export_dynamic_flag_spec_F77='${wl}-E'
14494 # hardcode_minus_L: Not really in the search PATH,
14495 # but as the default location of the library.
14496 hardcode_minus_L_F77=yes
14502 irix5* | irix6* | nonstopux*)
14503 if test "$GCC" = yes; then
14504 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'
14506 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'
14507 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14509 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14510 hardcode_libdir_separator_F77=:
14511 link_all_deplibs_F77=yes
14515 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14516 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14518 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14520 hardcode_libdir_flag_spec_F77='-R$libdir'
14521 hardcode_direct_F77=yes
14522 hardcode_shlibpath_var_F77=no
14526 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14527 hardcode_direct_F77=yes
14528 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14529 hardcode_libdir_separator_F77=:
14530 hardcode_shlibpath_var_F77=no
14534 hardcode_direct_F77=yes
14535 hardcode_shlibpath_var_F77=no
14536 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14537 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14538 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14539 export_dynamic_flag_spec_F77='${wl}-E'
14542 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14543 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14544 hardcode_libdir_flag_spec_F77='-R$libdir'
14547 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14548 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14555 hardcode_libdir_flag_spec_F77='-L$libdir'
14556 hardcode_minus_L_F77=yes
14557 allow_undefined_flag_F77=unsupported
14558 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'
14559 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14563 if test "$GCC" = yes; then
14564 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14565 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'
14567 allow_undefined_flag_F77=' -expect_unresolved \*'
14568 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'
14570 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14571 hardcode_libdir_separator_F77=:
14574 osf4* | osf5*) # as osf3* with the addition of -msym flag
14575 if test "$GCC" = yes; then
14576 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14577 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'
14578 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14580 allow_undefined_flag_F77=' -expect_unresolved \*'
14581 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'
14582 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~
14583 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14585 # Both c and cxx compiler support -rpath directly
14586 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14588 hardcode_libdir_separator_F77=:
14592 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14593 hardcode_shlibpath_var_F77=no
14594 export_dynamic_flag_spec_F77='${wl}-Bexport'
14595 runpath_var=LD_RUN_PATH
14596 hardcode_runpath_var=yes
14600 no_undefined_flag_F77=' -z text'
14601 if test "$GCC" = yes; then
14602 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14603 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14604 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14606 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14607 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14608 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14610 hardcode_libdir_flag_spec_F77='-R$libdir'
14611 hardcode_shlibpath_var_F77=no
14613 solaris2.[0-5] | solaris2.[0-5].*) ;;
14614 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14615 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14617 link_all_deplibs_F77=yes
14621 if test "x$host_vendor" = xsequent; then
14622 # Use $CC to link under sequent, because it throws in some extra .o
14623 # files that make .init and .fini sections work.
14624 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14626 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14628 hardcode_libdir_flag_spec_F77='-L$libdir'
14629 hardcode_direct_F77=yes
14630 hardcode_minus_L_F77=yes
14631 hardcode_shlibpath_var_F77=no
14635 case $host_vendor in
14637 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14638 hardcode_direct_F77=yes # is this really true???
14641 ## LD is ld it makes a PLAMLIB
14642 ## CC just makes a GrossModule.
14643 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14644 reload_cmds_F77='$CC -r -o $output$reload_objs'
14645 hardcode_direct_F77=no
14648 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14649 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14652 runpath_var='LD_RUN_PATH'
14653 hardcode_shlibpath_var_F77=no
14657 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14658 hardcode_shlibpath_var_F77=no
14659 export_dynamic_flag_spec_F77='-Bexport'
14663 if test -d /usr/nec; then
14664 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14665 hardcode_shlibpath_var_F77=no
14666 runpath_var=LD_RUN_PATH
14667 hardcode_runpath_var=yes
14673 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14674 hardcode_direct_F77=yes
14675 hardcode_minus_L_F77=no
14676 hardcode_shlibpath_var_F77=no
14677 hardcode_runpath_var=yes
14678 runpath_var=LD_RUN_PATH
14681 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14682 no_undefined_flag_F77='${wl}-z ${wl}text'
14683 if test "$GCC" = yes; then
14684 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14686 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14688 runpath_var='LD_RUN_PATH'
14689 hardcode_shlibpath_var_F77=no
14693 no_undefined_flag_F77=' -z text'
14694 # $CC -shared without GNU ld will not create a library from C++
14695 # object files and a static libstdc++, better avoid it by now
14696 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14697 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14698 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14699 hardcode_libdir_flag_spec_F77=
14700 hardcode_shlibpath_var_F77=no
14701 runpath_var='LD_RUN_PATH'
14705 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14706 hardcode_libdir_flag_spec_F77='-L$libdir'
14707 hardcode_shlibpath_var_F77=no
14716 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14717 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14718 test "$ld_shlibs_F77" = no && can_build_shared=no
14720 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14721 if test "$GCC" = yes; then
14722 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14726 # Do we need to explicitly link libc?
14728 case "x$archive_cmds_need_lc_F77" in
14730 # Assume -lc should be added
14731 archive_cmds_need_lc_F77=yes
14733 if test "$enable_shared" = yes && test "$GCC" = yes; then
14734 case $archive_cmds_F77 in
14736 # FIXME: we may have to deal with multi-command sequences.
14739 # Test whether the compiler implicitly links with -lc since on some
14740 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14741 # to ld, don't add -lc before -lgcc.
14742 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14743 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14745 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14748 (eval $ac_compile) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } 2>conftest.err; then
14754 libobjs=conftest.$ac_objext
14756 wl=$lt_prog_compiler_wl_F77
14762 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14763 allow_undefined_flag_F77=
14764 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14765 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }
14770 archive_cmds_need_lc_F77=no
14772 archive_cmds_need_lc_F77=yes
14774 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14776 cat conftest.err 1>&5
14779 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14780 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14787 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14788 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14789 library_names_spec=
14790 libname_spec='lib$name'
14794 postuninstall_cmds=
14798 shlibpath_overrides_runpath=unknown
14800 dynamic_linker="$host_os ld.so"
14801 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14802 if test "$GCC" = yes; then
14803 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14804 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14805 # if the path contains ";" then we assume it to be the separator
14806 # otherwise default to the standard path separator (i.e. ":") - it is
14807 # assumed that no part of a normal pathname contains ";" but that should
14808 # okay in the real world where ";" in dirpaths is itself problematic.
14809 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14811 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14814 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14816 need_lib_prefix=unknown
14817 hardcode_into_libs=no
14819 # when you set need_version to no, make sure it does not cause -set_version
14820 # flags to be left without arguments
14821 need_version=unknown
14826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14827 shlibpath_var=LIBPATH
14829 # AIX 3 has no versioning support, so we append a major version to the name.
14830 soname_spec='${libname}${release}${shared_ext}$major'
14837 hardcode_into_libs=yes
14838 if test "$host_cpu" = ia64; then
14839 # AIX 5 supports IA64
14840 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14841 shlibpath_var=LD_LIBRARY_PATH
14843 # With GCC up to 2.95.x, collect2 would create an import file
14844 # for dependence libraries. The import file would start with
14845 # the line `#! .'. This would cause the generated library to
14846 # depend on `.', always an invalid library. This was fixed in
14847 # development snapshots of GCC prior to 3.0.
14849 aix4 | aix4.[01] | aix4.[01].*)
14850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14852 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14855 can_build_shared=no
14859 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14860 # soname into executable. Probably we can add versioning support to
14861 # collect2, so additional links can be useful in future.
14862 if test "$aix_use_runtimelinking" = yes; then
14863 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14864 # instead of lib<name>.a to let people know that these are not
14865 # typical AIX shared libraries.
14866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868 # We preserve .a as extension for shared libraries through AIX4.2
14869 # and later when we are not doing run time linking.
14870 library_names_spec='${libname}${release}.a $libname.a'
14871 soname_spec='${libname}${release}${shared_ext}$major'
14873 shlibpath_var=LIBPATH
14878 library_names_spec='$libname.ixlibrary $libname.a'
14879 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14880 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'
14884 library_names_spec='${libname}${shared_ext}'
14885 dynamic_linker="$host_os ld.so"
14886 shlibpath_var=LIBRARY_PATH
14892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14893 soname_spec='${libname}${release}${shared_ext}$major'
14894 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14895 shlibpath_var=LD_LIBRARY_PATH
14896 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14897 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14898 # the default ld.so.conf also contains /usr/contrib/lib and
14899 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14900 # libtool to hard-code these into programs
14903 cygwin* | mingw* | pw32*)
14904 version_type=windows
14909 case $GCC,$host_os in
14910 yes,cygwin* | yes,mingw* | yes,pw32*)
14911 library_names_spec='$libname.dll.a'
14912 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14913 postinstall_cmds='base_file=`basename \${file}`~
14914 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14915 dldir=$destdir/`dirname \$dlpath`~
14916 test -d \$dldir || mkdir -p \$dldir~
14917 $install_prog $dir/$dlname \$dldir/$dlname'
14918 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14919 dlpath=$dir/\$dldll~
14921 shlibpath_overrides_runpath=yes
14925 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14926 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14927 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14930 # MinGW DLLs use traditional 'lib' prefix
14931 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14932 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14933 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14934 # It is most probably a Windows format PATH printed by
14935 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14936 # path with ; separators, and with drive letters. We can handle the
14937 # drive letters (cygwin fileutils understands them), so leave them,
14938 # especially as we might pass files found there to a mingw objdump,
14939 # which wouldn't understand a cygwinified path. Ahh.
14940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14942 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14946 # pw32 DLLs use 'pw' prefix rather than 'lib'
14947 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14953 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14956 dynamic_linker='Win32 ld.exe'
14957 # FIXME: first we should search . and the directory the executable is in
14961 darwin* | rhapsody*)
14962 dynamic_linker="$host_os dyld"
14963 version_type=darwin
14966 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14967 soname_spec='${libname}${release}${major}$shared_ext'
14968 shlibpath_overrides_runpath=yes
14969 shlibpath_var=DYLD_LIBRARY_PATH
14970 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14971 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14972 if test "$GCC" = yes; then
14973 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"`
14975 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14977 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14985 soname_spec='${libname}${release}${shared_ext}$major'
14986 shlibpath_var=LD_LIBRARY_PATH
14997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14998 soname_spec='${libname}${release}${shared_ext}$major'
14999 shlibpath_var=LD_LIBRARY_PATH
15000 shlibpath_overrides_runpath=no
15001 hardcode_into_libs=yes
15002 dynamic_linker='GNU ld.so'
15006 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15007 version_type=freebsd-$objformat
15008 case $version_type in
15010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15019 shlibpath_var=LD_LIBRARY_PATH
15022 shlibpath_overrides_runpath=yes
15024 freebsd3.01* | freebsdelf3.01*)
15025 shlibpath_overrides_runpath=yes
15026 hardcode_into_libs=yes
15029 shlibpath_overrides_runpath=no
15030 hardcode_into_libs=yes
15039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15040 soname_spec='${libname}${release}${shared_ext}$major'
15041 shlibpath_var=LD_LIBRARY_PATH
15042 hardcode_into_libs=yes
15045 hpux9* | hpux10* | hpux11*)
15046 # Give a soname corresponding to the major version so that dld.sl refuses to
15047 # link against other versions.
15051 case "$host_cpu" in
15054 hardcode_into_libs=yes
15055 dynamic_linker="$host_os dld.so"
15056 shlibpath_var=LD_LIBRARY_PATH
15057 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15059 soname_spec='${libname}${release}${shared_ext}$major'
15060 if test "X$HPUX_IA64_MODE" = X32; then
15061 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15063 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15069 hardcode_into_libs=yes
15070 dynamic_linker="$host_os dld.sl"
15071 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15074 soname_spec='${libname}${release}${shared_ext}$major'
15075 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15076 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15080 dynamic_linker="$host_os dld.sl"
15081 shlibpath_var=SHLIB_PATH
15082 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15084 soname_spec='${libname}${release}${shared_ext}$major'
15087 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15088 postinstall_cmds='chmod 555 $lib'
15091 irix5* | irix6* | nonstopux*)
15093 nonstopux*) version_type=nonstopux ;;
15095 if test "$lt_cv_prog_gnu_ld" = yes; then
15103 soname_spec='${libname}${release}${shared_ext}$major'
15104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15106 irix5* | nonstopux*)
15107 libsuff= shlibsuff=
15110 case $LD in # libtool.m4 will add one of these switches to LD
15111 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15112 libsuff= shlibsuff= libmagic=32-bit;;
15113 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15114 libsuff=32 shlibsuff=N32 libmagic=N32;;
15115 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15116 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15117 *) libsuff= shlibsuff= libmagic=never-match;;
15121 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15122 shlibpath_overrides_runpath=no
15123 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15124 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15125 hardcode_into_libs=yes
15128 # No shared lib support for Linux oldld, aout, or coff.
15129 linux*oldld* | linux*aout* | linux*coff*)
15133 # This must be Linux ELF.
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15139 soname_spec='${libname}${release}${shared_ext}$major'
15140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15141 shlibpath_var=LD_LIBRARY_PATH
15142 shlibpath_overrides_runpath=no
15143 # This implies no fast_install, which is unacceptable.
15144 # Some rework will be needed to allow for fast_install
15145 # before this can be enabled.
15146 hardcode_into_libs=yes
15148 # find out which ABI we are using
15150 case "$host_cpu" in
15151 x86_64*|s390x*|powerpc64*)
15152 echo '#line 15152 "configure"' > conftest.$ac_ext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15154 (eval $ac_compile) 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; then
15158 case `/usr/bin/file conftest.$ac_objext` in
15161 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15169 # Append ld.so.conf contents to the search path
15170 if test -f /etc/ld.so.conf; then
15171 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15172 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15175 # We used to test for /lib/ld.so.1 and disable shared libraries on
15176 # powerpc, because MkLinux only supported shared libraries with the
15177 # GNU dynamic linker. Since this was broken with cross compilers,
15178 # most powerpc-linux boxes support dynamic linking these days and
15179 # people can always --disable-shared, the test was removed, and we
15180 # assume the GNU/Linux dynamic linker is in use.
15181 dynamic_linker='GNU/Linux ld.so'
15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15189 soname_spec='${libname}${release}${shared_ext}$major'
15190 shlibpath_var=LD_LIBRARY_PATH
15191 shlibpath_overrides_runpath=no
15192 hardcode_into_libs=yes
15193 dynamic_linker='GNU ld.so'
15200 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15203 dynamic_linker='NetBSD (a.out) ld.so'
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15206 soname_spec='${libname}${release}${shared_ext}$major'
15207 dynamic_linker='NetBSD ld.elf_so'
15209 shlibpath_var=LD_LIBRARY_PATH
15210 shlibpath_overrides_runpath=yes
15211 hardcode_into_libs=yes
15216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15217 shlibpath_var=LD_LIBRARY_PATH
15218 shlibpath_overrides_runpath=yes
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15226 soname_spec='${libname}${release}${shared_ext}$major'
15227 shlibpath_var=LD_LIBRARY_PATH
15228 shlibpath_overrides_runpath=yes
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15237 shlibpath_var=LD_LIBRARY_PATH
15238 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15240 openbsd2.[89] | openbsd2.[89].*)
15241 shlibpath_overrides_runpath=no
15244 shlibpath_overrides_runpath=yes
15248 shlibpath_overrides_runpath=yes
15253 libname_spec='$name'
15256 library_names_spec='$libname${shared_ext} $libname.a'
15257 dynamic_linker='OS/2 ld.exe'
15258 shlibpath_var=LIBPATH
15261 osf3* | osf4* | osf5*)
15265 soname_spec='${libname}${release}${shared_ext}$major'
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 shlibpath_var=LD_LIBRARY_PATH
15268 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15269 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15274 soname_spec='${libname}${release}${shared_ext}$major'
15275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15276 shlibpath_var=LD_LIBRARY_PATH
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284 soname_spec='${libname}${release}${shared_ext}$major'
15285 shlibpath_var=LD_LIBRARY_PATH
15286 shlibpath_overrides_runpath=yes
15287 hardcode_into_libs=yes
15288 # ldd complains unless libraries are executable
15289 postinstall_cmds='chmod +x $lib'
15294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15295 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15296 shlibpath_var=LD_LIBRARY_PATH
15297 shlibpath_overrides_runpath=yes
15298 if test "$with_gnu_ld" = yes; then
15304 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15307 soname_spec='${libname}${release}${shared_ext}$major'
15308 shlibpath_var=LD_LIBRARY_PATH
15309 case $host_vendor in
15311 shlibpath_overrides_runpath=no
15313 export_dynamic_flag_spec='${wl}-Blargedynsym'
15314 runpath_var=LD_RUN_PATH
15322 shlibpath_overrides_runpath=no
15323 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15329 if test -d /usr/nec ;then
15331 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15332 soname_spec='$libname${shared_ext}.$major'
15333 shlibpath_var=LD_LIBRARY_PATH
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340 soname_spec='${libname}${release}${shared_ext}$major'
15341 shlibpath_var=LD_LIBRARY_PATH
15348 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15349 echo "${ECHO_T}$dynamic_linker" >&6; }
15350 test "$dynamic_linker" = no && can_build_shared=no
15352 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15353 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15354 hardcode_action_F77=
15355 if test -n "$hardcode_libdir_flag_spec_F77" || \
15356 test -n "$runpath_var F77" || \
15357 test "X$hardcode_automatic_F77"="Xyes" ; then
15359 # We can hardcode non-existant directories.
15360 if test "$hardcode_direct_F77" != no &&
15361 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15362 # have to relink, otherwise we might link with an installed library
15363 # when we should be linking with a yet-to-be-installed one
15364 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15365 test "$hardcode_minus_L_F77" != no; then
15366 # Linking always hardcodes the temporary library directory.
15367 hardcode_action_F77=relink
15369 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15370 hardcode_action_F77=immediate
15373 # We cannot hardcode anything, or else we can only hardcode existing
15375 hardcode_action_F77=unsupported
15377 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15378 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15380 if test "$hardcode_action_F77" = relink; then
15381 # Fast installation is not supported
15382 enable_fast_install=no
15383 elif test "$shlibpath_overrides_runpath" = yes ||
15384 test "$enable_shared" = no; then
15385 # Fast installation is not necessary
15386 enable_fast_install=needless
15391 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15392 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15393 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15394 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15395 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15396 { echo "$as_me:$LINENO: result: yes" >&5
15397 echo "${ECHO_T}yes" >&6; }
15399 # FIXME - insert some real tests, host_os isn't really good enough
15402 if test -n "$STRIP" ; then
15403 striplib="$STRIP -x"
15404 { echo "$as_me:$LINENO: result: yes" >&5
15405 echo "${ECHO_T}yes" >&6; }
15407 { echo "$as_me:$LINENO: result: no" >&5
15408 echo "${ECHO_T}no" >&6; }
15412 { echo "$as_me:$LINENO: result: no" >&5
15413 echo "${ECHO_T}no" >&6; }
15420 # The else clause should only fire when bootstrapping the
15421 # libtool distribution, otherwise you forgot to ship ltmain.sh
15422 # with your package, and you will get complaints that there are
15423 # no rules to generate ltmain.sh.
15424 if test -f "$ltmain"; then
15425 # See if we are running on zsh, and set the options which allow our commands through
15426 # without removal of \ escapes.
15427 if test -n "${ZSH_VERSION+set}" ; then
15428 setopt NO_GLOB_SUBST
15430 # Now quote all the things that may contain metacharacters while being
15431 # careful not to overquote the AC_SUBSTed values. We take copies of the
15432 # variables and quote the copies for generation of the libtool script.
15433 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15435 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15436 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15437 deplibs_check_method reload_flag reload_cmds need_locks \
15438 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15439 lt_cv_sys_global_symbol_to_c_name_address \
15440 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15441 old_postinstall_cmds old_postuninstall_cmds \
15445 lt_prog_compiler_wl_F77 \
15446 lt_prog_compiler_pic_F77 \
15447 lt_prog_compiler_static_F77 \
15448 lt_prog_compiler_no_builtin_flag_F77 \
15449 export_dynamic_flag_spec_F77 \
15450 thread_safe_flag_spec_F77 \
15451 whole_archive_flag_spec_F77 \
15452 enable_shared_with_static_runtimes_F77 \
15453 old_archive_cmds_F77 \
15454 old_archive_from_new_cmds_F77 \
15455 predep_objects_F77 \
15456 postdep_objects_F77 \
15459 compiler_lib_search_path_F77 \
15461 archive_expsym_cmds_F77 \
15462 postinstall_cmds_F77 \
15463 postuninstall_cmds_F77 \
15464 old_archive_from_expsyms_cmds_F77 \
15465 allow_undefined_flag_F77 \
15466 no_undefined_flag_F77 \
15467 export_symbols_cmds_F77 \
15468 hardcode_libdir_flag_spec_F77 \
15469 hardcode_libdir_flag_spec_ld_F77 \
15470 hardcode_libdir_separator_F77 \
15471 hardcode_automatic_F77 \
15473 module_expsym_cmds_F77 \
15474 lt_cv_prog_compiler_c_o_F77 \
15475 exclude_expsyms_F77 \
15476 include_expsyms_F77; do
15479 old_archive_cmds_F77 | \
15480 old_archive_from_new_cmds_F77 | \
15481 archive_cmds_F77 | \
15482 archive_expsym_cmds_F77 | \
15483 module_cmds_F77 | \
15484 module_expsym_cmds_F77 | \
15485 old_archive_from_expsyms_cmds_F77 | \
15486 export_symbols_cmds_F77 | \
15487 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15488 postinstall_cmds | postuninstall_cmds | \
15489 old_postinstall_cmds | old_postuninstall_cmds | \
15490 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15491 # Double-quote double-evaled strings.
15492 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15495 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15501 *'\$0 --fallback-echo"')
15502 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15508 cat <<__EOF__ >> "$cfgfile"
15509 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15511 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15513 # Shell to use when invoking shell scripts.
15516 # Whether or not to build shared libraries.
15517 build_libtool_libs=$enable_shared
15519 # Whether or not to build static libraries.
15520 build_old_libs=$enable_static
15522 # Whether or not to add -lc for building shared libraries.
15523 build_libtool_need_lc=$archive_cmds_need_lc_F77
15525 # Whether or not to disallow shared libs when runtime libs are static
15526 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15528 # Whether or not to optimize for fast installation.
15529 fast_install=$enable_fast_install
15532 host_alias=$host_alias
15535 # An echo program that does not interpret backslashes.
15540 AR_FLAGS=$lt_AR_FLAGS
15545 # A language-specific compiler.
15546 CC=$lt_compiler_F77
15548 # Is the compiler the GNU C compiler?
15554 # The linker used to build libraries.
15557 # Whether we need hard or soft links.
15560 # A BSD-compatible nm program.
15563 # A symbol stripping program
15566 # Used to examine libraries when file_magic_cmd begins "file"
15567 MAGIC_CMD=$MAGIC_CMD
15569 # Used on cygwin: DLL creation program.
15572 # Used on cygwin: object dumper.
15575 # Used on cygwin: assembler.
15578 # The name of the directory that contains temporary libtool files.
15581 # How to create reloadable object files.
15582 reload_flag=$lt_reload_flag
15583 reload_cmds=$lt_reload_cmds
15585 # How to pass a linker flag through the compiler.
15586 wl=$lt_lt_prog_compiler_wl_F77
15588 # Object file suffix (normally "o").
15589 objext="$ac_objext"
15591 # Old archive suffix (normally "a").
15594 # Shared library suffix (normally ".so").
15595 shrext_cmds='$shrext_cmds'
15597 # Executable file suffix (normally "").
15600 # Additional compiler flags for building library objects.
15601 pic_flag=$lt_lt_prog_compiler_pic_F77
15604 # What is the maximum length of a command?
15605 max_cmd_len=$lt_cv_sys_max_cmd_len
15607 # Does compiler simultaneously support -c and -o options?
15608 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15610 # Must we lock files when doing compilation ?
15611 need_locks=$lt_need_locks
15613 # Do we need the lib prefix for modules?
15614 need_lib_prefix=$need_lib_prefix
15616 # Do we need a version for libraries?
15617 need_version=$need_version
15619 # Whether dlopen is supported.
15620 dlopen_support=$enable_dlopen
15622 # Whether dlopen of programs is supported.
15623 dlopen_self=$enable_dlopen_self
15625 # Whether dlopen of statically linked programs is supported.
15626 dlopen_self_static=$enable_dlopen_self_static
15628 # Compiler flag to prevent dynamic linking.
15629 link_static_flag=$lt_lt_prog_compiler_static_F77
15631 # Compiler flag to turn off builtin functions.
15632 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15634 # Compiler flag to allow reflexive dlopens.
15635 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15637 # Compiler flag to generate shared objects directly from archives.
15638 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15640 # Compiler flag to generate thread-safe objects.
15641 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15643 # Library versioning type.
15644 version_type=$version_type
15646 # Format of library name prefix.
15647 libname_spec=$lt_libname_spec
15649 # List of archive names. First name is the real one, the rest are links.
15650 # The last name is the one that the linker finds with -lNAME.
15651 library_names_spec=$lt_library_names_spec
15653 # The coded name of the library, if different from the real name.
15654 soname_spec=$lt_soname_spec
15656 # Commands used to build and install an old-style archive.
15658 old_archive_cmds=$lt_old_archive_cmds_F77
15659 old_postinstall_cmds=$lt_old_postinstall_cmds
15660 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15662 # Create an old-style archive from a shared archive.
15663 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15665 # Create a temporary old-style archive to link instead of a shared archive.
15666 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15668 # Commands used to build and install a shared archive.
15669 archive_cmds=$lt_archive_cmds_F77
15670 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15671 postinstall_cmds=$lt_postinstall_cmds
15672 postuninstall_cmds=$lt_postuninstall_cmds
15674 # Commands used to build a loadable module (assumed same as above if empty)
15675 module_cmds=$lt_module_cmds_F77
15676 module_expsym_cmds=$lt_module_expsym_cmds_F77
15678 # Commands to strip libraries.
15679 old_striplib=$lt_old_striplib
15680 striplib=$lt_striplib
15682 # Dependencies to place before the objects being linked to create a
15684 predep_objects=$lt_predep_objects_F77
15686 # Dependencies to place after the objects being linked to create a
15688 postdep_objects=$lt_postdep_objects_F77
15690 # Dependencies to place before the objects being linked to create a
15692 predeps=$lt_predeps_F77
15694 # Dependencies to place after the objects being linked to create a
15696 postdeps=$lt_postdeps_F77
15698 # The library search path used internally by the compiler when linking
15699 # a shared library.
15700 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15702 # Method to check whether dependent libraries are shared objects.
15703 deplibs_check_method=$lt_deplibs_check_method
15705 # Command to use when deplibs_check_method == file_magic.
15706 file_magic_cmd=$lt_file_magic_cmd
15708 # Flag that allows shared libraries with undefined symbols to be built.
15709 allow_undefined_flag=$lt_allow_undefined_flag_F77
15711 # Flag that forces no undefined symbols.
15712 no_undefined_flag=$lt_no_undefined_flag_F77
15714 # Commands used to finish a libtool library installation in a directory.
15715 finish_cmds=$lt_finish_cmds
15717 # Same as above, but a single script fragment to be evaled but not shown.
15718 finish_eval=$lt_finish_eval
15720 # Take the output of nm and produce a listing of raw symbols and C names.
15721 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15723 # Transform the output of nm in a proper C declaration
15724 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15726 # Transform the output of nm in a C name address pair
15727 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15729 # This is the shared library runtime path variable.
15730 runpath_var=$runpath_var
15732 # This is the shared library path variable.
15733 shlibpath_var=$shlibpath_var
15735 # Is shlibpath searched before the hard-coded library search path?
15736 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15738 # How to hardcode a shared library path into an executable.
15739 hardcode_action=$hardcode_action_F77
15741 # Whether we should hardcode library paths into libraries.
15742 hardcode_into_libs=$hardcode_into_libs
15744 # Flag to hardcode \$libdir into a binary during linking.
15745 # This must work even if \$libdir does not exist.
15746 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15748 # If ld is used when linking, flag to hardcode \$libdir into
15749 # a binary during linking. This must work even if \$libdir does
15751 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15753 # Whether we need a single -rpath flag with a separated argument.
15754 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15756 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15757 # resulting binary.
15758 hardcode_direct=$hardcode_direct_F77
15760 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15761 # resulting binary.
15762 hardcode_minus_L=$hardcode_minus_L_F77
15764 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15765 # the resulting binary.
15766 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15768 # Set to yes if building a shared library automatically hardcodes DIR into the library
15769 # and all subsequent libraries and executables linked against it.
15770 hardcode_automatic=$hardcode_automatic_F77
15772 # Variables whose values should be saved in libtool wrapper scripts and
15773 # restored at relink time.
15774 variables_saved_for_relink="$variables_saved_for_relink"
15776 # Whether libtool must link a program against all its dependency libraries.
15777 link_all_deplibs=$link_all_deplibs_F77
15779 # Compile-time system search path for libraries
15780 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15782 # Run-time system search path for libraries
15783 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15785 # Fix the shell variable \$srcfile for the compiler.
15786 fix_srcfile_path="$fix_srcfile_path_F77"
15788 # Set to yes if exported symbols are required.
15789 always_export_symbols=$always_export_symbols_F77
15791 # The commands to list exported symbols.
15792 export_symbols_cmds=$lt_export_symbols_cmds_F77
15794 # The commands to extract the exported symbol list from a shared archive.
15795 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15797 # Symbols that should not be listed in the preloaded symbols.
15798 exclude_expsyms=$lt_exclude_expsyms_F77
15800 # Symbols that must always be exported.
15801 include_expsyms=$lt_include_expsyms_F77
15803 # ### END LIBTOOL TAG CONFIG: $tagname
15809 # If there is no Makefile yet, we rely on a make rule to execute
15810 # `config.status --recheck' to rerun these tests and create the
15811 # libtool script then.
15812 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15813 if test -f "$ltmain_in"; then
15814 test -f Makefile && make "$ltmain"
15820 ac_cpp='$CPP $CPPFLAGS'
15821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15833 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15836 # Source file extension for Java test sources.
15839 # Object file extension for compiled Java test sources.
15843 # Code to be used in simple compile tests
15844 lt_simple_compile_test_code="class foo {}\n"
15846 # Code to be used in simple link tests
15847 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15849 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15851 # If no C compiler was specified, use CC.
15854 # Allow CC to be a program name with arguments.
15858 # Allow CC to be a program name with arguments.
15864 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15865 archive_cmds_need_lc_GCJ=no
15868 ## There is no encapsulation within the following macros, do not change
15869 ## the running order or otherwise move them around unless you know exactly
15870 ## what you are doing...
15872 lt_prog_compiler_no_builtin_flag_GCJ=
15874 if test "$GCC" = yes; then
15875 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15878 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15879 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15880 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15883 lt_cv_prog_compiler_rtti_exceptions=no
15884 ac_outfile=conftest.$ac_objext
15885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15886 lt_compiler_flag="-fno-rtti -fno-exceptions"
15887 # Insert the option either (1) after the last *FLAGS variable, or
15888 # (2) before a word containing "conftest.", or (3) at the end.
15889 # Note that $ac_compile itself does not contain backslashes and begins
15890 # with a dollar sign (not a hyphen), so the echo should work correctly.
15891 # The option is referenced via a variable to avoid confusing sed.
15892 lt_compile=`echo "$ac_compile" | $SED \
15893 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15895 -e 's:$: $lt_compiler_flag:'`
15896 (eval echo "\"\$as_me:15896: $lt_compile\"" >&5)
15897 (eval "$lt_compile" 2>conftest.err)
15899 cat conftest.err >&5
15900 echo "$as_me:15900: \$? = $ac_status" >&5
15901 if (exit $ac_status) && test -s "$ac_outfile"; then
15902 # The compiler can only warn and ignore the option if not recognized
15903 # So say no if there are warnings
15904 if test ! -s conftest.err; then
15905 lt_cv_prog_compiler_rtti_exceptions=yes
15911 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15912 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15914 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15915 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15922 lt_prog_compiler_wl_GCJ=
15923 lt_prog_compiler_pic_GCJ=
15924 lt_prog_compiler_static_GCJ=
15926 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15927 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15929 if test "$GCC" = yes; then
15930 lt_prog_compiler_wl_GCJ='-Wl,'
15931 lt_prog_compiler_static_GCJ='-static'
15935 # All AIX code is PIC.
15936 if test "$host_cpu" = ia64; then
15937 # AIX 5 now supports IA64 processor
15938 lt_prog_compiler_static_GCJ='-Bstatic'
15943 # FIXME: we need at least 68020 code to build shared libraries, but
15944 # adding the `-m68020' flag to GCC prevents building anything better,
15946 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15949 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15950 # PIC is the default for these OSes.
15953 mingw* | pw32* | os2*)
15954 # This hack is so that the source file can tell whether it is being
15955 # built for inclusion in a dll (and should export symbols for example).
15956 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15959 darwin* | rhapsody*)
15960 # PIC is the default on this platform
15961 # Common symbols not allowed in MH_DYLIB files
15962 lt_prog_compiler_pic_GCJ='-fno-common'
15966 # Just because we use GCC doesn't mean we suddenly get shared libraries
15967 # on systems that don't support them.
15968 lt_prog_compiler_can_build_shared_GCJ=no
15973 if test -d /usr/nec; then
15974 lt_prog_compiler_pic_GCJ=-Kconform_pic
15979 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15980 # not for PA HP-UX.
15981 case "$host_cpu" in
15986 lt_prog_compiler_pic_GCJ='-fPIC'
15992 lt_prog_compiler_pic_GCJ='-fPIC'
15996 # PORTME Check for flag to pass linker flags through the system compiler.
15999 lt_prog_compiler_wl_GCJ='-Wl,'
16000 if test "$host_cpu" = ia64; then
16001 # AIX 5 now supports IA64 processor
16002 lt_prog_compiler_static_GCJ='-Bstatic'
16004 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16008 mingw* | pw32* | os2*)
16009 # This hack is so that the source file can tell whether it is being
16010 # built for inclusion in a dll (and should export symbols for example).
16011 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16014 hpux9* | hpux10* | hpux11*)
16015 lt_prog_compiler_wl_GCJ='-Wl,'
16016 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16017 # not for PA HP-UX.
16018 case "$host_cpu" in
16023 lt_prog_compiler_pic_GCJ='+Z'
16026 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16027 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16030 irix5* | irix6* | nonstopux*)
16031 lt_prog_compiler_wl_GCJ='-Wl,'
16032 # PIC (with -KPIC) is the default.
16033 lt_prog_compiler_static_GCJ='-non_shared'
16037 lt_prog_compiler_pic_GCJ='-KPIC'
16038 lt_prog_compiler_static_GCJ='-Bstatic'
16044 lt_prog_compiler_wl_GCJ='-Wl,'
16045 lt_prog_compiler_pic_GCJ='-KPIC'
16046 lt_prog_compiler_static_GCJ='-static'
16049 lt_prog_compiler_wl_GCJ='-Wl,'
16050 # All Alpha code is PIC.
16051 lt_prog_compiler_static_GCJ='-non_shared'
16056 osf3* | osf4* | osf5*)
16057 lt_prog_compiler_wl_GCJ='-Wl,'
16058 # All OSF/1 code is PIC.
16059 lt_prog_compiler_static_GCJ='-non_shared'
16063 lt_prog_compiler_pic_GCJ='-Kpic'
16064 lt_prog_compiler_static_GCJ='-dn'
16068 lt_prog_compiler_wl_GCJ='-Wl,'
16069 lt_prog_compiler_pic_GCJ='-KPIC'
16070 lt_prog_compiler_static_GCJ='-Bstatic'
16074 lt_prog_compiler_wl_GCJ='-Qoption ld '
16075 lt_prog_compiler_pic_GCJ='-PIC'
16076 lt_prog_compiler_static_GCJ='-Bstatic'
16079 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16080 lt_prog_compiler_wl_GCJ='-Wl,'
16081 lt_prog_compiler_pic_GCJ='-KPIC'
16082 lt_prog_compiler_static_GCJ='-Bstatic'
16086 if test -d /usr/nec ;then
16087 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16088 lt_prog_compiler_static_GCJ='-Bstatic'
16093 lt_prog_compiler_pic_GCJ='-pic'
16094 lt_prog_compiler_static_GCJ='-Bstatic'
16098 lt_prog_compiler_can_build_shared_GCJ=no
16103 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16104 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16107 # Check to make sure the PIC flag actually works.
16109 if test -n "$lt_prog_compiler_pic_GCJ"; then
16111 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16112 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16113 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 lt_prog_compiler_pic_works_GCJ=no
16117 ac_outfile=conftest.$ac_objext
16118 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16119 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16120 # Insert the option either (1) after the last *FLAGS variable, or
16121 # (2) before a word containing "conftest.", or (3) at the end.
16122 # Note that $ac_compile itself does not contain backslashes and begins
16123 # with a dollar sign (not a hyphen), so the echo should work correctly.
16124 # The option is referenced via a variable to avoid confusing sed.
16125 lt_compile=`echo "$ac_compile" | $SED \
16126 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16128 -e 's:$: $lt_compiler_flag:'`
16129 (eval echo "\"\$as_me:16129: $lt_compile\"" >&5)
16130 (eval "$lt_compile" 2>conftest.err)
16132 cat conftest.err >&5
16133 echo "$as_me:16133: \$? = $ac_status" >&5
16134 if (exit $ac_status) && test -s "$ac_outfile"; then
16135 # The compiler can only warn and ignore the option if not recognized
16136 # So say no if there are warnings
16137 if test ! -s conftest.err; then
16138 lt_prog_compiler_pic_works_GCJ=yes
16144 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16145 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16147 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16148 case $lt_prog_compiler_pic_GCJ in
16150 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16153 lt_prog_compiler_pic_GCJ=
16154 lt_prog_compiler_can_build_shared_GCJ=no
16159 # For platforms which do not support PIC, -DPIC is meaningless:
16161 lt_prog_compiler_pic_GCJ=
16164 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16168 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16169 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16170 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16173 lt_cv_prog_compiler_c_o_GCJ=no
16174 $rm -r conftest 2>/dev/null
16178 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16180 lt_compiler_flag="-o out/conftest2.$ac_objext"
16181 # Insert the option either (1) after the last *FLAGS variable, or
16182 # (2) before a word containing "conftest.", or (3) at the end.
16183 # Note that $ac_compile itself does not contain backslashes and begins
16184 # with a dollar sign (not a hyphen), so the echo should work correctly.
16185 lt_compile=`echo "$ac_compile" | $SED \
16186 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16188 -e 's:$: $lt_compiler_flag:'`
16189 (eval echo "\"\$as_me:16189: $lt_compile\"" >&5)
16190 (eval "$lt_compile" 2>out/conftest.err)
16192 cat out/conftest.err >&5
16193 echo "$as_me:16193: \$? = $ac_status" >&5
16194 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16196 # The compiler can only warn and ignore the option if not recognized
16197 # So say no if there are warnings
16198 if test ! -s out/conftest.err; then
16199 lt_cv_prog_compiler_c_o_GCJ=yes
16204 # SGI C++ compiler will create directory out/ii_files/ for
16205 # template instantiation
16206 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16207 $rm out/* && rmdir out
16213 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16214 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16217 hard_links="nottested"
16218 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16219 # do not overwrite the value of need_locks provided by the user
16220 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16221 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16226 ln conftest.a conftest.b 2>&5 || hard_links=no
16227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16228 { echo "$as_me:$LINENO: result: $hard_links" >&5
16229 echo "${ECHO_T}$hard_links" >&6; }
16230 if test "$hard_links" = no; then
16231 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16232 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16239 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16240 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16243 allow_undefined_flag_GCJ=
16244 enable_shared_with_static_runtimes_GCJ=no
16246 archive_expsym_cmds_GCJ=
16247 old_archive_From_new_cmds_GCJ=
16248 old_archive_from_expsyms_cmds_GCJ=
16249 export_dynamic_flag_spec_GCJ=
16250 whole_archive_flag_spec_GCJ=
16251 thread_safe_flag_spec_GCJ=
16252 hardcode_libdir_flag_spec_GCJ=
16253 hardcode_libdir_flag_spec_ld_GCJ=
16254 hardcode_libdir_separator_GCJ=
16255 hardcode_direct_GCJ=no
16256 hardcode_minus_L_GCJ=no
16257 hardcode_shlibpath_var_GCJ=unsupported
16258 link_all_deplibs_GCJ=unknown
16259 hardcode_automatic_GCJ=no
16261 module_expsym_cmds_GCJ=
16262 always_export_symbols_GCJ=no
16263 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16264 # include_expsyms should be a list of space-separated symbols to be *always*
16265 # included in the symbol list
16266 include_expsyms_GCJ=
16267 # exclude_expsyms can be an extended regexp of symbols to exclude
16268 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16269 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16270 # as well as any symbol that contains `d'.
16271 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16272 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16273 # platforms (ab)use it in PIC code, but their linkers get confused if
16274 # the symbol is explicitly referenced. Since portable code cannot
16275 # rely on this symbol name, it's probably fine to never include it in
16276 # preloaded symbol tables.
16277 extract_expsyms_cmds=
16280 cygwin* | mingw* | pw32*)
16281 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16282 # When not using gcc, we currently assume that we are using
16283 # Microsoft Visual C++.
16284 if test "$GCC" != yes; then
16294 if test "$with_gnu_ld" = yes; then
16295 # If archive_cmds runs LD, not CC, wlarc should be empty
16298 # See if GNU ld supports shared libraries.
16300 aix3* | aix4* | aix5*)
16301 # On AIX/PPC, the GNU linker is very broken
16302 if test "$host_cpu" != ia64; then
16306 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16307 *** to be unable to reliably create shared libraries on AIX.
16308 *** Therefore, libtool is disabling shared libraries support. If you
16309 *** really care for shared libraries, you may want to modify your PATH
16310 *** so that a non-GNU linker is found, and then restart.
16317 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)'
16318 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16319 hardcode_minus_L_GCJ=yes
16321 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16322 # that the semantics of dynamic libraries on AmigaOS, at least up
16323 # to version 4, is to share data among multiple programs linked
16324 # with the same dynamic library. Since this doesn't match the
16325 # behavior of shared libraries on other platforms, we can't use
16331 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16332 allow_undefined_flag_GCJ=unsupported
16333 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16334 # support --undefined. This deserves some investigation. FIXME
16335 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16341 cygwin* | mingw* | pw32*)
16342 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16343 # as there is no search path for DLLs.
16344 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16345 allow_undefined_flag_GCJ=unsupported
16346 always_export_symbols_GCJ=no
16347 enable_shared_with_static_runtimes_GCJ=yes
16348 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16350 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16351 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16352 # If the export-symbols file already is a .def file (1st line
16353 # is EXPORTS), use it as is; otherwise, prepend...
16354 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16355 cp $export_symbols $output_objdir/$soname.def;
16357 echo EXPORTS > $output_objdir/$soname.def;
16358 cat $export_symbols >> $output_objdir/$soname.def;
16360 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16367 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16368 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16371 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16372 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16377 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16381 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16382 *** create shared libraries on Solaris systems. Therefore, libtool
16383 *** is disabling shared libraries support. We urge you to upgrade GNU
16384 *** binutils to release 2.9.1 or newer. Another option is to modify
16385 *** your PATH or compiler configuration so that the native linker is
16386 *** used, and then restart.
16389 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16390 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16391 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16398 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16400 hardcode_direct_GCJ=yes
16401 hardcode_shlibpath_var_GCJ=no
16405 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16406 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16407 archive_cmds_GCJ="$tmp_archive_cmds"
16408 supports_anon_versioning=no
16409 case `$LD -v 2>/dev/null` in
16410 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16411 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16412 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16413 *\ 2.11.*) ;; # other 2.11 versions
16414 *) supports_anon_versioning=yes ;;
16416 if test $supports_anon_versioning = yes; then
16417 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16419 $echo "local: *; };" >> $output_objdir/$libname.ver~
16420 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16422 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16430 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16431 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16432 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16439 if test "$ld_shlibs_GCJ" = yes; then
16440 runpath_var=LD_RUN_PATH
16441 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16442 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16443 # ancient GNU ld didn't support --whole-archive et. al.
16444 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16445 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16447 whole_archive_flag_spec_GCJ=
16451 # PORTME fill in a description of your system's linker (not GNU ld)
16454 allow_undefined_flag_GCJ=unsupported
16455 always_export_symbols_GCJ=yes
16456 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'
16457 # Note: this linker hardcodes the directories in LIBPATH if there
16458 # are no directories specified by -L.
16459 hardcode_minus_L_GCJ=yes
16460 if test "$GCC" = yes && test -z "$link_static_flag"; then
16461 # Neither direct hardcoding nor static linking is supported with a
16463 hardcode_direct_GCJ=unsupported
16468 if test "$host_cpu" = ia64; then
16469 # On IA64, the linker does run time linking by default, so we don't
16470 # have to do anything special.
16471 aix_use_runtimelinking=no
16472 exp_sym_flag='-Bexport'
16475 # If we're using GNU nm, then we don't want the "-C" option.
16476 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16477 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16478 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'
16480 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'
16482 aix_use_runtimelinking=no
16484 # Test if we are trying to use run time linking or normal
16485 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16486 # need to do runtime linking.
16487 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16488 for ld_flag in $LDFLAGS; do
16489 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16490 aix_use_runtimelinking=yes
16496 exp_sym_flag='-bexport'
16497 no_entry_flag='-bnoentry'
16500 # When large executables or shared objects are built, AIX ld can
16501 # have problems creating the table of contents. If linking a library
16502 # or program results in "error TOC overflow" add -mminimal-toc to
16503 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16504 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16506 archive_cmds_GCJ=''
16507 hardcode_direct_GCJ=yes
16508 hardcode_libdir_separator_GCJ=':'
16509 link_all_deplibs_GCJ=yes
16511 if test "$GCC" = yes; then
16512 case $host_os in aix4.012|aix4.012.*)
16513 # We only want to do this on AIX 4.2 and lower, the check
16514 # below for broken collect2 doesn't work under 4.3+
16515 collect2name=`${CC} -print-prog-name=collect2`
16516 if test -f "$collect2name" && \
16517 strings "$collect2name" | grep resolve_lib_name >/dev/null
16519 # We have reworked collect2
16520 hardcode_direct_GCJ=yes
16522 # We have old collect2
16523 hardcode_direct_GCJ=unsupported
16524 # It fails to find uninstalled libraries when the uninstalled
16525 # path is not listed in the libpath. Setting hardcode_minus_L
16526 # to unsupported forces relinking
16527 hardcode_minus_L_GCJ=yes
16528 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16529 hardcode_libdir_separator_GCJ=
16532 shared_flag='-shared'
16535 if test "$host_cpu" = ia64; then
16536 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16537 # chokes on -Wl,-G. The following line is correct:
16540 if test "$aix_use_runtimelinking" = yes; then
16541 shared_flag='${wl}-G'
16543 shared_flag='${wl}-bM:SRE'
16548 # It seems that -bexpall does not export symbols beginning with
16549 # underscore (_), so it is better to generate a list of symbols to export.
16550 always_export_symbols_GCJ=yes
16551 if test "$aix_use_runtimelinking" = yes; then
16552 # Warning - without using the other runtime loading flags (-brtl),
16553 # -berok will link without error, but may produce a broken library.
16554 allow_undefined_flag_GCJ='-berok'
16555 # Determine the default libpath from the value encoded in an empty executable.
16556 cat >conftest.$ac_ext <<_ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h. */
16571 rm -f conftest.$ac_objext conftest$ac_exeext
16572 if { (ac_try="$ac_link"
16573 case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_link") 2>conftest.er1
16580 grep -v '^ *+' conftest.er1 >conftest.err
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } && {
16585 test -z "$ac_c_werror_flag" ||
16586 test ! -s conftest.err
16587 } && test -s conftest$ac_exeext &&
16588 $as_test_x conftest$ac_exeext; then
16590 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16592 # Check for a 64-bit object if we didn't find anything.
16593 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; }
16596 echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16603 conftest$ac_exeext conftest.$ac_ext
16604 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16606 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16607 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16609 if test "$host_cpu" = ia64; then
16610 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16611 allow_undefined_flag_GCJ="-z nodefs"
16612 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16614 # Determine the default libpath from the value encoded in an empty executable.
16615 cat >conftest.$ac_ext <<_ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16630 rm -f conftest.$ac_objext conftest$ac_exeext
16631 if { (ac_try="$ac_link"
16632 case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_link") 2>conftest.er1
16639 grep -v '^ *+' conftest.er1 >conftest.err
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } && {
16644 test -z "$ac_c_werror_flag" ||
16645 test ! -s conftest.err
16646 } && test -s conftest$ac_exeext &&
16647 $as_test_x conftest$ac_exeext; then
16649 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16651 # Check for a 64-bit object if we didn't find anything.
16652 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; }
16655 echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16662 conftest$ac_exeext conftest.$ac_ext
16663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16665 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16666 # Warning - without using the other run time loading flags,
16667 # -berok will link without error, but may produce a broken library.
16668 no_undefined_flag_GCJ=' ${wl}-bernotok'
16669 allow_undefined_flag_GCJ=' ${wl}-berok'
16670 # -bexpall does not export symbols beginning with underscore (_)
16671 always_export_symbols_GCJ=yes
16672 # Exported symbols can be pulled into shared objects from archives
16673 whole_archive_flag_spec_GCJ=' '
16674 archive_cmds_need_lc_GCJ=yes
16675 # This is similar to how AIX traditionally builds it's shared libraries.
16676 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16682 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)'
16683 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16684 hardcode_minus_L_GCJ=yes
16685 # see comment about different semantics on the GNU ld section
16690 export_dynamic_flag_spec_GCJ=-rdynamic
16693 cygwin* | mingw* | pw32*)
16694 # When not using gcc, we currently assume that we are using
16695 # Microsoft Visual C++.
16696 # hardcode_libdir_flag_spec is actually meaningless, as there is
16697 # no search path for DLLs.
16698 hardcode_libdir_flag_spec_GCJ=' '
16699 allow_undefined_flag_GCJ=unsupported
16700 # Tell ltmain to make .lib files, not .a files.
16702 # Tell ltmain to make .dll files, not .so files.
16704 # FIXME: Setting linknames here is a bad hack.
16705 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16706 # The linker will automatically build a .lib file if we build a DLL.
16707 old_archive_From_new_cmds_GCJ='true'
16708 # FIXME: Should let the user specify the lib program.
16709 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16710 fix_srcfile_path='`cygpath -w "$srcfile"`'
16711 enable_shared_with_static_runtimes_GCJ=yes
16714 darwin* | rhapsody*)
16715 if test "$GXX" = yes ; then
16716 archive_cmds_need_lc_GCJ=no
16718 rhapsody* | darwin1.[012])
16719 allow_undefined_flag_GCJ='-undefined suppress'
16722 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16723 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16725 case ${MACOSX_DEPLOYMENT_TARGET} in
16727 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16730 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16736 lt_int_apple_cc_single_mod=no
16737 output_verbose_link_cmd='echo'
16738 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16739 lt_int_apple_cc_single_mod=yes
16741 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16742 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16744 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16746 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16747 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16748 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16749 archive_expsym_cmds_GCJ='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}'
16751 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16753 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}'
16754 hardcode_direct_GCJ=no
16755 hardcode_automatic_GCJ=yes
16756 hardcode_shlibpath_var_GCJ=unsupported
16757 whole_archive_flag_spec_GCJ='-all_load $convenience'
16758 link_all_deplibs_GCJ=yes
16765 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16766 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16767 hardcode_shlibpath_var_GCJ=no
16774 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16775 # support. Future versions do this automatically, but an explicit c++rt0.o
16776 # does not break anything, and helps significantly (at the cost of a little
16779 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16780 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16781 hardcode_direct_GCJ=yes
16782 hardcode_shlibpath_var_GCJ=no
16785 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16787 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16788 hardcode_direct_GCJ=yes
16789 hardcode_minus_L_GCJ=yes
16790 hardcode_shlibpath_var_GCJ=no
16793 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16794 freebsd* | kfreebsd*-gnu)
16795 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16796 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16797 hardcode_direct_GCJ=yes
16798 hardcode_shlibpath_var_GCJ=no
16802 if test "$GCC" = yes; then
16803 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'
16805 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'
16807 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16808 hardcode_libdir_separator_GCJ=:
16809 hardcode_direct_GCJ=yes
16811 # hardcode_minus_L: Not really in the search PATH,
16812 # but as the default location of the library.
16813 hardcode_minus_L_GCJ=yes
16814 export_dynamic_flag_spec_GCJ='${wl}-E'
16818 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16819 case "$host_cpu" in
16821 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16824 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16828 case "$host_cpu" in
16830 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16833 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16837 if test "$with_gnu_ld" = no; then
16838 case "$host_cpu" in
16840 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16841 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16842 hardcode_libdir_separator_GCJ=:
16843 hardcode_direct_GCJ=no
16844 hardcode_shlibpath_var_GCJ=no
16847 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16848 hardcode_direct_GCJ=no
16849 hardcode_shlibpath_var_GCJ=no
16851 # hardcode_minus_L: Not really in the search PATH,
16852 # but as the default location of the library.
16853 hardcode_minus_L_GCJ=yes
16856 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16857 hardcode_libdir_separator_GCJ=:
16858 hardcode_direct_GCJ=yes
16859 export_dynamic_flag_spec_GCJ='${wl}-E'
16861 # hardcode_minus_L: Not really in the search PATH,
16862 # but as the default location of the library.
16863 hardcode_minus_L_GCJ=yes
16869 irix5* | irix6* | nonstopux*)
16870 if test "$GCC" = yes; then
16871 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'
16873 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'
16874 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16876 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16877 hardcode_libdir_separator_GCJ=:
16878 link_all_deplibs_GCJ=yes
16882 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16883 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16885 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16887 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16888 hardcode_direct_GCJ=yes
16889 hardcode_shlibpath_var_GCJ=no
16893 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16894 hardcode_direct_GCJ=yes
16895 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16896 hardcode_libdir_separator_GCJ=:
16897 hardcode_shlibpath_var_GCJ=no
16901 hardcode_direct_GCJ=yes
16902 hardcode_shlibpath_var_GCJ=no
16903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16904 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16905 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16906 export_dynamic_flag_spec_GCJ='${wl}-E'
16909 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16910 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16911 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16914 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16915 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16922 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16923 hardcode_minus_L_GCJ=yes
16924 allow_undefined_flag_GCJ=unsupported
16925 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'
16926 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16930 if test "$GCC" = yes; then
16931 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16932 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'
16934 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16935 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'
16937 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16938 hardcode_libdir_separator_GCJ=:
16941 osf4* | osf5*) # as osf3* with the addition of -msym flag
16942 if test "$GCC" = yes; then
16943 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16944 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'
16945 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16947 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16948 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'
16949 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~
16950 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16952 # Both c and cxx compiler support -rpath directly
16953 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16955 hardcode_libdir_separator_GCJ=:
16959 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16960 hardcode_shlibpath_var_GCJ=no
16961 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16962 runpath_var=LD_RUN_PATH
16963 hardcode_runpath_var=yes
16967 no_undefined_flag_GCJ=' -z text'
16968 if test "$GCC" = yes; then
16969 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16970 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16971 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16973 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16974 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16975 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16977 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16978 hardcode_shlibpath_var_GCJ=no
16980 solaris2.[0-5] | solaris2.[0-5].*) ;;
16981 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16982 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16984 link_all_deplibs_GCJ=yes
16988 if test "x$host_vendor" = xsequent; then
16989 # Use $CC to link under sequent, because it throws in some extra .o
16990 # files that make .init and .fini sections work.
16991 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16993 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16995 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16996 hardcode_direct_GCJ=yes
16997 hardcode_minus_L_GCJ=yes
16998 hardcode_shlibpath_var_GCJ=no
17002 case $host_vendor in
17004 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17005 hardcode_direct_GCJ=yes # is this really true???
17008 ## LD is ld it makes a PLAMLIB
17009 ## CC just makes a GrossModule.
17010 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17011 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17012 hardcode_direct_GCJ=no
17015 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17016 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17019 runpath_var='LD_RUN_PATH'
17020 hardcode_shlibpath_var_GCJ=no
17024 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17025 hardcode_shlibpath_var_GCJ=no
17026 export_dynamic_flag_spec_GCJ='-Bexport'
17030 if test -d /usr/nec; then
17031 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17032 hardcode_shlibpath_var_GCJ=no
17033 runpath_var=LD_RUN_PATH
17034 hardcode_runpath_var=yes
17040 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17041 hardcode_direct_GCJ=yes
17042 hardcode_minus_L_GCJ=no
17043 hardcode_shlibpath_var_GCJ=no
17044 hardcode_runpath_var=yes
17045 runpath_var=LD_RUN_PATH
17048 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17049 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17050 if test "$GCC" = yes; then
17051 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17053 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17055 runpath_var='LD_RUN_PATH'
17056 hardcode_shlibpath_var_GCJ=no
17060 no_undefined_flag_GCJ=' -z text'
17061 # $CC -shared without GNU ld will not create a library from C++
17062 # object files and a static libstdc++, better avoid it by now
17063 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17064 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17065 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17066 hardcode_libdir_flag_spec_GCJ=
17067 hardcode_shlibpath_var_GCJ=no
17068 runpath_var='LD_RUN_PATH'
17072 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17073 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17074 hardcode_shlibpath_var_GCJ=no
17083 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17084 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17085 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17087 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17088 if test "$GCC" = yes; then
17089 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17093 # Do we need to explicitly link libc?
17095 case "x$archive_cmds_need_lc_GCJ" in
17097 # Assume -lc should be added
17098 archive_cmds_need_lc_GCJ=yes
17100 if test "$enable_shared" = yes && test "$GCC" = yes; then
17101 case $archive_cmds_GCJ in
17103 # FIXME: we may have to deal with multi-command sequences.
17106 # Test whether the compiler implicitly links with -lc since on some
17107 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17108 # to ld, don't add -lc before -lgcc.
17109 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17110 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17112 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17115 (eval $ac_compile) 2>&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } 2>conftest.err; then
17121 libobjs=conftest.$ac_objext
17123 wl=$lt_prog_compiler_wl_GCJ
17129 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17130 allow_undefined_flag_GCJ=
17131 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17132 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }
17137 archive_cmds_need_lc_GCJ=no
17139 archive_cmds_need_lc_GCJ=yes
17141 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17143 cat conftest.err 1>&5
17146 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17147 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17154 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17155 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17156 library_names_spec=
17157 libname_spec='lib$name'
17161 postuninstall_cmds=
17165 shlibpath_overrides_runpath=unknown
17167 dynamic_linker="$host_os ld.so"
17168 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17169 if test "$GCC" = yes; then
17170 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17171 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17172 # if the path contains ";" then we assume it to be the separator
17173 # otherwise default to the standard path separator (i.e. ":") - it is
17174 # assumed that no part of a normal pathname contains ";" but that should
17175 # okay in the real world where ";" in dirpaths is itself problematic.
17176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17181 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17183 need_lib_prefix=unknown
17184 hardcode_into_libs=no
17186 # when you set need_version to no, make sure it does not cause -set_version
17187 # flags to be left without arguments
17188 need_version=unknown
17193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17194 shlibpath_var=LIBPATH
17196 # AIX 3 has no versioning support, so we append a major version to the name.
17197 soname_spec='${libname}${release}${shared_ext}$major'
17204 hardcode_into_libs=yes
17205 if test "$host_cpu" = ia64; then
17206 # AIX 5 supports IA64
17207 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17208 shlibpath_var=LD_LIBRARY_PATH
17210 # With GCC up to 2.95.x, collect2 would create an import file
17211 # for dependence libraries. The import file would start with
17212 # the line `#! .'. This would cause the generated library to
17213 # depend on `.', always an invalid library. This was fixed in
17214 # development snapshots of GCC prior to 3.0.
17216 aix4 | aix4.[01] | aix4.[01].*)
17217 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17219 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17222 can_build_shared=no
17226 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17227 # soname into executable. Probably we can add versioning support to
17228 # collect2, so additional links can be useful in future.
17229 if test "$aix_use_runtimelinking" = yes; then
17230 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17231 # instead of lib<name>.a to let people know that these are not
17232 # typical AIX shared libraries.
17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17235 # We preserve .a as extension for shared libraries through AIX4.2
17236 # and later when we are not doing run time linking.
17237 library_names_spec='${libname}${release}.a $libname.a'
17238 soname_spec='${libname}${release}${shared_ext}$major'
17240 shlibpath_var=LIBPATH
17245 library_names_spec='$libname.ixlibrary $libname.a'
17246 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17247 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'
17251 library_names_spec='${libname}${shared_ext}'
17252 dynamic_linker="$host_os ld.so"
17253 shlibpath_var=LIBRARY_PATH
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17260 soname_spec='${libname}${release}${shared_ext}$major'
17261 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17262 shlibpath_var=LD_LIBRARY_PATH
17263 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17264 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17265 # the default ld.so.conf also contains /usr/contrib/lib and
17266 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17267 # libtool to hard-code these into programs
17270 cygwin* | mingw* | pw32*)
17271 version_type=windows
17276 case $GCC,$host_os in
17277 yes,cygwin* | yes,mingw* | yes,pw32*)
17278 library_names_spec='$libname.dll.a'
17279 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17280 postinstall_cmds='base_file=`basename \${file}`~
17281 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17282 dldir=$destdir/`dirname \$dlpath`~
17283 test -d \$dldir || mkdir -p \$dldir~
17284 $install_prog $dir/$dlname \$dldir/$dlname'
17285 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17286 dlpath=$dir/\$dldll~
17288 shlibpath_overrides_runpath=yes
17292 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17293 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17294 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17297 # MinGW DLLs use traditional 'lib' prefix
17298 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17299 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17300 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17301 # It is most probably a Windows format PATH printed by
17302 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17303 # path with ; separators, and with drive letters. We can handle the
17304 # drive letters (cygwin fileutils understands them), so leave them,
17305 # especially as we might pass files found there to a mingw objdump,
17306 # which wouldn't understand a cygwinified path. Ahh.
17307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17309 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17313 # pw32 DLLs use 'pw' prefix rather than 'lib'
17314 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17320 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17323 dynamic_linker='Win32 ld.exe'
17324 # FIXME: first we should search . and the directory the executable is in
17328 darwin* | rhapsody*)
17329 dynamic_linker="$host_os dyld"
17330 version_type=darwin
17333 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17334 soname_spec='${libname}${release}${major}$shared_ext'
17335 shlibpath_overrides_runpath=yes
17336 shlibpath_var=DYLD_LIBRARY_PATH
17337 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17338 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17339 if test "$GCC" = yes; then
17340 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"`
17342 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17344 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17352 soname_spec='${libname}${release}${shared_ext}$major'
17353 shlibpath_var=LD_LIBRARY_PATH
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17365 soname_spec='${libname}${release}${shared_ext}$major'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 shlibpath_overrides_runpath=no
17368 hardcode_into_libs=yes
17369 dynamic_linker='GNU ld.so'
17373 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17374 version_type=freebsd-$objformat
17375 case $version_type in
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17382 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17386 shlibpath_var=LD_LIBRARY_PATH
17389 shlibpath_overrides_runpath=yes
17391 freebsd3.01* | freebsdelf3.01*)
17392 shlibpath_overrides_runpath=yes
17393 hardcode_into_libs=yes
17396 shlibpath_overrides_runpath=no
17397 hardcode_into_libs=yes
17406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17407 soname_spec='${libname}${release}${shared_ext}$major'
17408 shlibpath_var=LD_LIBRARY_PATH
17409 hardcode_into_libs=yes
17412 hpux9* | hpux10* | hpux11*)
17413 # Give a soname corresponding to the major version so that dld.sl refuses to
17414 # link against other versions.
17418 case "$host_cpu" in
17421 hardcode_into_libs=yes
17422 dynamic_linker="$host_os dld.so"
17423 shlibpath_var=LD_LIBRARY_PATH
17424 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17426 soname_spec='${libname}${release}${shared_ext}$major'
17427 if test "X$HPUX_IA64_MODE" = X32; then
17428 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17430 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17432 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17436 hardcode_into_libs=yes
17437 dynamic_linker="$host_os dld.sl"
17438 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17439 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441 soname_spec='${libname}${release}${shared_ext}$major'
17442 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17443 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17447 dynamic_linker="$host_os dld.sl"
17448 shlibpath_var=SHLIB_PATH
17449 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17451 soname_spec='${libname}${release}${shared_ext}$major'
17454 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17455 postinstall_cmds='chmod 555 $lib'
17458 irix5* | irix6* | nonstopux*)
17460 nonstopux*) version_type=nonstopux ;;
17462 if test "$lt_cv_prog_gnu_ld" = yes; then
17470 soname_spec='${libname}${release}${shared_ext}$major'
17471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17473 irix5* | nonstopux*)
17474 libsuff= shlibsuff=
17477 case $LD in # libtool.m4 will add one of these switches to LD
17478 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17479 libsuff= shlibsuff= libmagic=32-bit;;
17480 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17481 libsuff=32 shlibsuff=N32 libmagic=N32;;
17482 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17483 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17484 *) libsuff= shlibsuff= libmagic=never-match;;
17488 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17489 shlibpath_overrides_runpath=no
17490 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17491 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17492 hardcode_into_libs=yes
17495 # No shared lib support for Linux oldld, aout, or coff.
17496 linux*oldld* | linux*aout* | linux*coff*)
17500 # This must be Linux ELF.
17505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17506 soname_spec='${libname}${release}${shared_ext}$major'
17507 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17508 shlibpath_var=LD_LIBRARY_PATH
17509 shlibpath_overrides_runpath=no
17510 # This implies no fast_install, which is unacceptable.
17511 # Some rework will be needed to allow for fast_install
17512 # before this can be enabled.
17513 hardcode_into_libs=yes
17515 # find out which ABI we are using
17517 case "$host_cpu" in
17518 x86_64*|s390x*|powerpc64*)
17519 echo '#line 17519 "configure"' > conftest.$ac_ext
17520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17521 (eval $ac_compile) 2>&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; then
17525 case `/usr/bin/file conftest.$ac_objext` in
17528 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17536 # Append ld.so.conf contents to the search path
17537 if test -f /etc/ld.so.conf; then
17538 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17539 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17542 # We used to test for /lib/ld.so.1 and disable shared libraries on
17543 # powerpc, because MkLinux only supported shared libraries with the
17544 # GNU dynamic linker. Since this was broken with cross compilers,
17545 # most powerpc-linux boxes support dynamic linking these days and
17546 # people can always --disable-shared, the test was removed, and we
17547 # assume the GNU/Linux dynamic linker is in use.
17548 dynamic_linker='GNU/Linux ld.so'
17555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17556 soname_spec='${libname}${release}${shared_ext}$major'
17557 shlibpath_var=LD_LIBRARY_PATH
17558 shlibpath_overrides_runpath=no
17559 hardcode_into_libs=yes
17560 dynamic_linker='GNU ld.so'
17567 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17569 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17570 dynamic_linker='NetBSD (a.out) ld.so'
17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17573 soname_spec='${libname}${release}${shared_ext}$major'
17574 dynamic_linker='NetBSD ld.elf_so'
17576 shlibpath_var=LD_LIBRARY_PATH
17577 shlibpath_overrides_runpath=yes
17578 hardcode_into_libs=yes
17583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17584 shlibpath_var=LD_LIBRARY_PATH
17585 shlibpath_overrides_runpath=yes
17592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17593 soname_spec='${libname}${release}${shared_ext}$major'
17594 shlibpath_var=LD_LIBRARY_PATH
17595 shlibpath_overrides_runpath=yes
17602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17604 shlibpath_var=LD_LIBRARY_PATH
17605 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17607 openbsd2.[89] | openbsd2.[89].*)
17608 shlibpath_overrides_runpath=no
17611 shlibpath_overrides_runpath=yes
17615 shlibpath_overrides_runpath=yes
17620 libname_spec='$name'
17623 library_names_spec='$libname${shared_ext} $libname.a'
17624 dynamic_linker='OS/2 ld.exe'
17625 shlibpath_var=LIBPATH
17628 osf3* | osf4* | osf5*)
17632 soname_spec='${libname}${release}${shared_ext}$major'
17633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17634 shlibpath_var=LD_LIBRARY_PATH
17635 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17636 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17641 soname_spec='${libname}${release}${shared_ext}$major'
17642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17643 shlibpath_var=LD_LIBRARY_PATH
17650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17651 soname_spec='${libname}${release}${shared_ext}$major'
17652 shlibpath_var=LD_LIBRARY_PATH
17653 shlibpath_overrides_runpath=yes
17654 hardcode_into_libs=yes
17655 # ldd complains unless libraries are executable
17656 postinstall_cmds='chmod +x $lib'
17661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17662 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17663 shlibpath_var=LD_LIBRARY_PATH
17664 shlibpath_overrides_runpath=yes
17665 if test "$with_gnu_ld" = yes; then
17671 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17674 soname_spec='${libname}${release}${shared_ext}$major'
17675 shlibpath_var=LD_LIBRARY_PATH
17676 case $host_vendor in
17678 shlibpath_overrides_runpath=no
17680 export_dynamic_flag_spec='${wl}-Blargedynsym'
17681 runpath_var=LD_RUN_PATH
17689 shlibpath_overrides_runpath=no
17690 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17696 if test -d /usr/nec ;then
17698 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17699 soname_spec='$libname${shared_ext}.$major'
17700 shlibpath_var=LD_LIBRARY_PATH
17706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17707 soname_spec='${libname}${release}${shared_ext}$major'
17708 shlibpath_var=LD_LIBRARY_PATH
17715 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17716 echo "${ECHO_T}$dynamic_linker" >&6; }
17717 test "$dynamic_linker" = no && can_build_shared=no
17719 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17720 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17721 hardcode_action_GCJ=
17722 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17723 test -n "$runpath_var GCJ" || \
17724 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17726 # We can hardcode non-existant directories.
17727 if test "$hardcode_direct_GCJ" != no &&
17728 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17729 # have to relink, otherwise we might link with an installed library
17730 # when we should be linking with a yet-to-be-installed one
17731 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17732 test "$hardcode_minus_L_GCJ" != no; then
17733 # Linking always hardcodes the temporary library directory.
17734 hardcode_action_GCJ=relink
17736 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17737 hardcode_action_GCJ=immediate
17740 # We cannot hardcode anything, or else we can only hardcode existing
17742 hardcode_action_GCJ=unsupported
17744 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17745 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17747 if test "$hardcode_action_GCJ" = relink; then
17748 # Fast installation is not supported
17749 enable_fast_install=no
17750 elif test "$shlibpath_overrides_runpath" = yes ||
17751 test "$enable_shared" = no; then
17752 # Fast installation is not necessary
17753 enable_fast_install=needless
17758 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17759 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17760 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17761 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17762 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17763 { echo "$as_me:$LINENO: result: yes" >&5
17764 echo "${ECHO_T}yes" >&6; }
17766 # FIXME - insert some real tests, host_os isn't really good enough
17769 if test -n "$STRIP" ; then
17770 striplib="$STRIP -x"
17771 { echo "$as_me:$LINENO: result: yes" >&5
17772 echo "${ECHO_T}yes" >&6; }
17774 { echo "$as_me:$LINENO: result: no" >&5
17775 echo "${ECHO_T}no" >&6; }
17779 { echo "$as_me:$LINENO: result: no" >&5
17780 echo "${ECHO_T}no" >&6; }
17785 if test "x$enable_dlopen" != xyes; then
17786 enable_dlopen=unknown
17787 enable_dlopen_self=unknown
17788 enable_dlopen_self_static=unknown
17795 lt_cv_dlopen="load_add_on"
17797 lt_cv_dlopen_self=yes
17801 lt_cv_dlopen="LoadLibrary"
17806 lt_cv_dlopen="dlopen"
17811 # if libdl is installed we need to link against it
17812 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17813 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17814 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17817 ac_check_lib_save_LIBS=$LIBS
17819 cat >conftest.$ac_ext <<_ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17826 /* Override any GCC internal prototype to avoid an error.
17827 Use char because int might match the return type of a GCC
17828 builtin and then its argument prototype would still apply. */
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (ac_try="$ac_link"
17843 case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_link") 2>conftest.er1
17850 grep -v '^ *+' conftest.er1 >conftest.err
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } && {
17855 test -z "$ac_c_werror_flag" ||
17856 test ! -s conftest.err
17857 } && test -s conftest$ac_exeext &&
17858 $as_test_x conftest$ac_exeext; then
17859 ac_cv_lib_dl_dlopen=yes
17861 echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17864 ac_cv_lib_dl_dlopen=no
17867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17868 conftest$ac_exeext conftest.$ac_ext
17869 LIBS=$ac_check_lib_save_LIBS
17871 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17872 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17873 if test $ac_cv_lib_dl_dlopen = yes; then
17874 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17877 lt_cv_dlopen="dyld"
17879 lt_cv_dlopen_self=yes
17886 { echo "$as_me:$LINENO: checking for shl_load" >&5
17887 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17888 if test "${ac_cv_func_shl_load+set}" = set; then
17889 echo $ECHO_N "(cached) $ECHO_C" >&6
17891 cat >conftest.$ac_ext <<_ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17897 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17899 #define shl_load innocuous_shl_load
17901 /* System header to define __stub macros and hopefully few prototypes,
17902 which can conflict with char shl_load (); below.
17903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17904 <limits.h> exists even on freestanding compilers. */
17907 # include <limits.h>
17909 # include <assert.h>
17914 /* Override any GCC internal prototype to avoid an error.
17915 Use char because int might match the return type of a GCC
17916 builtin and then its argument prototype would still apply. */
17921 /* The GNU C library defines this for functions which it implements
17922 to always fail with ENOSYS. Some functions are actually named
17923 something starting with __ and the normal name is an alias. */
17924 #if defined __stub_shl_load || defined __stub___shl_load
17931 return shl_load ();
17936 rm -f conftest.$ac_objext conftest$ac_exeext
17937 if { (ac_try="$ac_link"
17938 case "(($ac_try" in
17939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940 *) ac_try_echo=$ac_try;;
17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943 (eval "$ac_link") 2>conftest.er1
17945 grep -v '^ *+' conftest.er1 >conftest.err
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } && {
17950 test -z "$ac_c_werror_flag" ||
17951 test ! -s conftest.err
17952 } && test -s conftest$ac_exeext &&
17953 $as_test_x conftest$ac_exeext; then
17954 ac_cv_func_shl_load=yes
17956 echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17959 ac_cv_func_shl_load=no
17962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17963 conftest$ac_exeext conftest.$ac_ext
17965 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17966 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17967 if test $ac_cv_func_shl_load = yes; then
17968 lt_cv_dlopen="shl_load"
17970 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17971 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17972 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17973 echo $ECHO_N "(cached) $ECHO_C" >&6
17975 ac_check_lib_save_LIBS=$LIBS
17977 cat >conftest.$ac_ext <<_ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h. */
17984 /* Override any GCC internal prototype to avoid an error.
17985 Use char because int might match the return type of a GCC
17986 builtin and then its argument prototype would still apply. */
17994 return shl_load ();
17999 rm -f conftest.$ac_objext conftest$ac_exeext
18000 if { (ac_try="$ac_link"
18001 case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006 (eval "$ac_link") 2>conftest.er1
18008 grep -v '^ *+' conftest.er1 >conftest.err
18010 cat conftest.err >&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); } && {
18013 test -z "$ac_c_werror_flag" ||
18014 test ! -s conftest.err
18015 } && test -s conftest$ac_exeext &&
18016 $as_test_x conftest$ac_exeext; then
18017 ac_cv_lib_dld_shl_load=yes
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 ac_cv_lib_dld_shl_load=no
18025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18026 conftest$ac_exeext conftest.$ac_ext
18027 LIBS=$ac_check_lib_save_LIBS
18029 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18030 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18031 if test $ac_cv_lib_dld_shl_load = yes; then
18032 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18034 { echo "$as_me:$LINENO: checking for dlopen" >&5
18035 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18036 if test "${ac_cv_func_dlopen+set}" = set; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18039 cat >conftest.$ac_ext <<_ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h. */
18045 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18047 #define dlopen innocuous_dlopen
18049 /* System header to define __stub macros and hopefully few prototypes,
18050 which can conflict with char dlopen (); below.
18051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18052 <limits.h> exists even on freestanding compilers. */
18055 # include <limits.h>
18057 # include <assert.h>
18062 /* Override any GCC internal prototype to avoid an error.
18063 Use char because int might match the return type of a GCC
18064 builtin and then its argument prototype would still apply. */
18069 /* The GNU C library defines this for functions which it implements
18070 to always fail with ENOSYS. Some functions are actually named
18071 something starting with __ and the normal name is an alias. */
18072 #if defined __stub_dlopen || defined __stub___dlopen
18084 rm -f conftest.$ac_objext conftest$ac_exeext
18085 if { (ac_try="$ac_link"
18086 case "(($ac_try" in
18087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18088 *) ac_try_echo=$ac_try;;
18090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18091 (eval "$ac_link") 2>conftest.er1
18093 grep -v '^ *+' conftest.er1 >conftest.err
18095 cat conftest.err >&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); } && {
18098 test -z "$ac_c_werror_flag" ||
18099 test ! -s conftest.err
18100 } && test -s conftest$ac_exeext &&
18101 $as_test_x conftest$ac_exeext; then
18102 ac_cv_func_dlopen=yes
18104 echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18107 ac_cv_func_dlopen=no
18110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18111 conftest$ac_exeext conftest.$ac_ext
18113 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18114 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18115 if test $ac_cv_func_dlopen = yes; then
18116 lt_cv_dlopen="dlopen"
18118 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18119 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18120 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18123 ac_check_lib_save_LIBS=$LIBS
18125 cat >conftest.$ac_ext <<_ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18132 /* Override any GCC internal prototype to avoid an error.
18133 Use char because int might match the return type of a GCC
18134 builtin and then its argument prototype would still apply. */
18147 rm -f conftest.$ac_objext conftest$ac_exeext
18148 if { (ac_try="$ac_link"
18149 case "(($ac_try" in
18150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18151 *) ac_try_echo=$ac_try;;
18153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18154 (eval "$ac_link") 2>conftest.er1
18156 grep -v '^ *+' conftest.er1 >conftest.err
18158 cat conftest.err >&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); } && {
18161 test -z "$ac_c_werror_flag" ||
18162 test ! -s conftest.err
18163 } && test -s conftest$ac_exeext &&
18164 $as_test_x conftest$ac_exeext; then
18165 ac_cv_lib_dl_dlopen=yes
18167 echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18170 ac_cv_lib_dl_dlopen=no
18173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18174 conftest$ac_exeext conftest.$ac_ext
18175 LIBS=$ac_check_lib_save_LIBS
18177 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18178 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18179 if test $ac_cv_lib_dl_dlopen = yes; then
18180 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18182 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18183 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18184 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18185 echo $ECHO_N "(cached) $ECHO_C" >&6
18187 ac_check_lib_save_LIBS=$LIBS
18188 LIBS="-lsvld $LIBS"
18189 cat >conftest.$ac_ext <<_ACEOF
18192 cat confdefs.h >>conftest.$ac_ext
18193 cat >>conftest.$ac_ext <<_ACEOF
18194 /* end confdefs.h. */
18196 /* Override any GCC internal prototype to avoid an error.
18197 Use char because int might match the return type of a GCC
18198 builtin and then its argument prototype would still apply. */
18211 rm -f conftest.$ac_objext conftest$ac_exeext
18212 if { (ac_try="$ac_link"
18213 case "(($ac_try" in
18214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215 *) ac_try_echo=$ac_try;;
18217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218 (eval "$ac_link") 2>conftest.er1
18220 grep -v '^ *+' conftest.er1 >conftest.err
18222 cat conftest.err >&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); } && {
18225 test -z "$ac_c_werror_flag" ||
18226 test ! -s conftest.err
18227 } && test -s conftest$ac_exeext &&
18228 $as_test_x conftest$ac_exeext; then
18229 ac_cv_lib_svld_dlopen=yes
18231 echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18234 ac_cv_lib_svld_dlopen=no
18237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18238 conftest$ac_exeext conftest.$ac_ext
18239 LIBS=$ac_check_lib_save_LIBS
18241 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18242 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
18243 if test $ac_cv_lib_svld_dlopen = yes; then
18244 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18246 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18247 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
18248 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18251 ac_check_lib_save_LIBS=$LIBS
18253 cat >conftest.$ac_ext <<_ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18260 /* Override any GCC internal prototype to avoid an error.
18261 Use char because int might match the return type of a GCC
18262 builtin and then its argument prototype would still apply. */
18270 return dld_link ();
18275 rm -f conftest.$ac_objext conftest$ac_exeext
18276 if { (ac_try="$ac_link"
18277 case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_link") 2>conftest.er1
18284 grep -v '^ *+' conftest.er1 >conftest.err
18286 cat conftest.err >&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); } && {
18289 test -z "$ac_c_werror_flag" ||
18290 test ! -s conftest.err
18291 } && test -s conftest$ac_exeext &&
18292 $as_test_x conftest$ac_exeext; then
18293 ac_cv_lib_dld_dld_link=yes
18295 echo "$as_me: failed program was:" >&5
18296 sed 's/^/| /' conftest.$ac_ext >&5
18298 ac_cv_lib_dld_dld_link=no
18301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18302 conftest$ac_exeext conftest.$ac_ext
18303 LIBS=$ac_check_lib_save_LIBS
18305 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18306 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18307 if test $ac_cv_lib_dld_dld_link = yes; then
18308 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18329 if test "x$lt_cv_dlopen" != xno; then
18335 case $lt_cv_dlopen in
18337 save_CPPFLAGS="$CPPFLAGS"
18338 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18340 save_LDFLAGS="$LDFLAGS"
18341 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18344 LIBS="$lt_cv_dlopen_libs $LIBS"
18346 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18347 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18348 if test "${lt_cv_dlopen_self+set}" = set; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18351 if test "$cross_compiling" = yes; then :
18352 lt_cv_dlopen_self=cross
18354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18355 lt_status=$lt_dlunknown
18356 cat > conftest.$ac_ext <<EOF
18357 #line 18357 "configure"
18358 #include "confdefs.h"
18367 # define LT_DLGLOBAL RTLD_GLOBAL
18370 # define LT_DLGLOBAL DL_GLOBAL
18372 # define LT_DLGLOBAL 0
18376 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18377 find out it does not work in some platform. */
18378 #ifndef LT_DLLAZY_OR_NOW
18380 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18383 # define LT_DLLAZY_OR_NOW DL_LAZY
18386 # define LT_DLLAZY_OR_NOW RTLD_NOW
18389 # define LT_DLLAZY_OR_NOW DL_NOW
18391 # define LT_DLLAZY_OR_NOW 0
18399 extern "C" void exit (int);
18402 void fnord() { int i=42;}
18405 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18406 int status = $lt_dlunknown;
18410 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18411 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18412 /* dlclose (self); */
18418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18419 (eval $ac_link) 2>&5
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18423 (./conftest; exit; ) 2>/dev/null
18425 case x$lt_status in
18426 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18427 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18428 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18431 # compilation failed
18432 lt_cv_dlopen_self=no
18439 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18440 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18442 if test "x$lt_cv_dlopen_self" = xyes; then
18443 LDFLAGS="$LDFLAGS $link_static_flag"
18444 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18445 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18446 if test "${lt_cv_dlopen_self_static+set}" = set; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18449 if test "$cross_compiling" = yes; then :
18450 lt_cv_dlopen_self_static=cross
18452 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18453 lt_status=$lt_dlunknown
18454 cat > conftest.$ac_ext <<EOF
18455 #line 18455 "configure"
18456 #include "confdefs.h"
18465 # define LT_DLGLOBAL RTLD_GLOBAL
18468 # define LT_DLGLOBAL DL_GLOBAL
18470 # define LT_DLGLOBAL 0
18474 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18475 find out it does not work in some platform. */
18476 #ifndef LT_DLLAZY_OR_NOW
18478 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18481 # define LT_DLLAZY_OR_NOW DL_LAZY
18484 # define LT_DLLAZY_OR_NOW RTLD_NOW
18487 # define LT_DLLAZY_OR_NOW DL_NOW
18489 # define LT_DLLAZY_OR_NOW 0
18497 extern "C" void exit (int);
18500 void fnord() { int i=42;}
18503 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18504 int status = $lt_dlunknown;
18508 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18509 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18510 /* dlclose (self); */
18516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18517 (eval $ac_link) 2>&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18521 (./conftest; exit; ) 2>/dev/null
18523 case x$lt_status in
18524 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18525 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18526 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18529 # compilation failed
18530 lt_cv_dlopen_self_static=no
18537 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18538 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18541 CPPFLAGS="$save_CPPFLAGS"
18542 LDFLAGS="$save_LDFLAGS"
18547 case $lt_cv_dlopen_self in
18548 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18549 *) enable_dlopen_self=unknown ;;
18552 case $lt_cv_dlopen_self_static in
18553 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18554 *) enable_dlopen_self_static=unknown ;;
18559 # The else clause should only fire when bootstrapping the
18560 # libtool distribution, otherwise you forgot to ship ltmain.sh
18561 # with your package, and you will get complaints that there are
18562 # no rules to generate ltmain.sh.
18563 if test -f "$ltmain"; then
18564 # See if we are running on zsh, and set the options which allow our commands through
18565 # without removal of \ escapes.
18566 if test -n "${ZSH_VERSION+set}" ; then
18567 setopt NO_GLOB_SUBST
18569 # Now quote all the things that may contain metacharacters while being
18570 # careful not to overquote the AC_SUBSTed values. We take copies of the
18571 # variables and quote the copies for generation of the libtool script.
18572 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18574 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18575 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18576 deplibs_check_method reload_flag reload_cmds need_locks \
18577 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18578 lt_cv_sys_global_symbol_to_c_name_address \
18579 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18580 old_postinstall_cmds old_postuninstall_cmds \
18584 lt_prog_compiler_wl_GCJ \
18585 lt_prog_compiler_pic_GCJ \
18586 lt_prog_compiler_static_GCJ \
18587 lt_prog_compiler_no_builtin_flag_GCJ \
18588 export_dynamic_flag_spec_GCJ \
18589 thread_safe_flag_spec_GCJ \
18590 whole_archive_flag_spec_GCJ \
18591 enable_shared_with_static_runtimes_GCJ \
18592 old_archive_cmds_GCJ \
18593 old_archive_from_new_cmds_GCJ \
18594 predep_objects_GCJ \
18595 postdep_objects_GCJ \
18598 compiler_lib_search_path_GCJ \
18600 archive_expsym_cmds_GCJ \
18601 postinstall_cmds_GCJ \
18602 postuninstall_cmds_GCJ \
18603 old_archive_from_expsyms_cmds_GCJ \
18604 allow_undefined_flag_GCJ \
18605 no_undefined_flag_GCJ \
18606 export_symbols_cmds_GCJ \
18607 hardcode_libdir_flag_spec_GCJ \
18608 hardcode_libdir_flag_spec_ld_GCJ \
18609 hardcode_libdir_separator_GCJ \
18610 hardcode_automatic_GCJ \
18612 module_expsym_cmds_GCJ \
18613 lt_cv_prog_compiler_c_o_GCJ \
18614 exclude_expsyms_GCJ \
18615 include_expsyms_GCJ; do
18618 old_archive_cmds_GCJ | \
18619 old_archive_from_new_cmds_GCJ | \
18620 archive_cmds_GCJ | \
18621 archive_expsym_cmds_GCJ | \
18622 module_cmds_GCJ | \
18623 module_expsym_cmds_GCJ | \
18624 old_archive_from_expsyms_cmds_GCJ | \
18625 export_symbols_cmds_GCJ | \
18626 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18627 postinstall_cmds | postuninstall_cmds | \
18628 old_postinstall_cmds | old_postuninstall_cmds | \
18629 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18630 # Double-quote double-evaled strings.
18631 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18634 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18640 *'\$0 --fallback-echo"')
18641 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18647 cat <<__EOF__ >> "$cfgfile"
18648 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18650 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18652 # Shell to use when invoking shell scripts.
18655 # Whether or not to build shared libraries.
18656 build_libtool_libs=$enable_shared
18658 # Whether or not to build static libraries.
18659 build_old_libs=$enable_static
18661 # Whether or not to add -lc for building shared libraries.
18662 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18664 # Whether or not to disallow shared libs when runtime libs are static
18665 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18667 # Whether or not to optimize for fast installation.
18668 fast_install=$enable_fast_install
18671 host_alias=$host_alias
18674 # An echo program that does not interpret backslashes.
18679 AR_FLAGS=$lt_AR_FLAGS
18684 # A language-specific compiler.
18685 CC=$lt_compiler_GCJ
18687 # Is the compiler the GNU C compiler?
18693 # The linker used to build libraries.
18696 # Whether we need hard or soft links.
18699 # A BSD-compatible nm program.
18702 # A symbol stripping program
18705 # Used to examine libraries when file_magic_cmd begins "file"
18706 MAGIC_CMD=$MAGIC_CMD
18708 # Used on cygwin: DLL creation program.
18711 # Used on cygwin: object dumper.
18714 # Used on cygwin: assembler.
18717 # The name of the directory that contains temporary libtool files.
18720 # How to create reloadable object files.
18721 reload_flag=$lt_reload_flag
18722 reload_cmds=$lt_reload_cmds
18724 # How to pass a linker flag through the compiler.
18725 wl=$lt_lt_prog_compiler_wl_GCJ
18727 # Object file suffix (normally "o").
18728 objext="$ac_objext"
18730 # Old archive suffix (normally "a").
18733 # Shared library suffix (normally ".so").
18734 shrext_cmds='$shrext_cmds'
18736 # Executable file suffix (normally "").
18739 # Additional compiler flags for building library objects.
18740 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18743 # What is the maximum length of a command?
18744 max_cmd_len=$lt_cv_sys_max_cmd_len
18746 # Does compiler simultaneously support -c and -o options?
18747 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18749 # Must we lock files when doing compilation ?
18750 need_locks=$lt_need_locks
18752 # Do we need the lib prefix for modules?
18753 need_lib_prefix=$need_lib_prefix
18755 # Do we need a version for libraries?
18756 need_version=$need_version
18758 # Whether dlopen is supported.
18759 dlopen_support=$enable_dlopen
18761 # Whether dlopen of programs is supported.
18762 dlopen_self=$enable_dlopen_self
18764 # Whether dlopen of statically linked programs is supported.
18765 dlopen_self_static=$enable_dlopen_self_static
18767 # Compiler flag to prevent dynamic linking.
18768 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18770 # Compiler flag to turn off builtin functions.
18771 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18773 # Compiler flag to allow reflexive dlopens.
18774 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18776 # Compiler flag to generate shared objects directly from archives.
18777 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18779 # Compiler flag to generate thread-safe objects.
18780 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18782 # Library versioning type.
18783 version_type=$version_type
18785 # Format of library name prefix.
18786 libname_spec=$lt_libname_spec
18788 # List of archive names. First name is the real one, the rest are links.
18789 # The last name is the one that the linker finds with -lNAME.
18790 library_names_spec=$lt_library_names_spec
18792 # The coded name of the library, if different from the real name.
18793 soname_spec=$lt_soname_spec
18795 # Commands used to build and install an old-style archive.
18797 old_archive_cmds=$lt_old_archive_cmds_GCJ
18798 old_postinstall_cmds=$lt_old_postinstall_cmds
18799 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18801 # Create an old-style archive from a shared archive.
18802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18804 # Create a temporary old-style archive to link instead of a shared archive.
18805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18807 # Commands used to build and install a shared archive.
18808 archive_cmds=$lt_archive_cmds_GCJ
18809 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18810 postinstall_cmds=$lt_postinstall_cmds
18811 postuninstall_cmds=$lt_postuninstall_cmds
18813 # Commands used to build a loadable module (assumed same as above if empty)
18814 module_cmds=$lt_module_cmds_GCJ
18815 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18817 # Commands to strip libraries.
18818 old_striplib=$lt_old_striplib
18819 striplib=$lt_striplib
18821 # Dependencies to place before the objects being linked to create a
18823 predep_objects=$lt_predep_objects_GCJ
18825 # Dependencies to place after the objects being linked to create a
18827 postdep_objects=$lt_postdep_objects_GCJ
18829 # Dependencies to place before the objects being linked to create a
18831 predeps=$lt_predeps_GCJ
18833 # Dependencies to place after the objects being linked to create a
18835 postdeps=$lt_postdeps_GCJ
18837 # The library search path used internally by the compiler when linking
18838 # a shared library.
18839 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18841 # Method to check whether dependent libraries are shared objects.
18842 deplibs_check_method=$lt_deplibs_check_method
18844 # Command to use when deplibs_check_method == file_magic.
18845 file_magic_cmd=$lt_file_magic_cmd
18847 # Flag that allows shared libraries with undefined symbols to be built.
18848 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18850 # Flag that forces no undefined symbols.
18851 no_undefined_flag=$lt_no_undefined_flag_GCJ
18853 # Commands used to finish a libtool library installation in a directory.
18854 finish_cmds=$lt_finish_cmds
18856 # Same as above, but a single script fragment to be evaled but not shown.
18857 finish_eval=$lt_finish_eval
18859 # Take the output of nm and produce a listing of raw symbols and C names.
18860 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18862 # Transform the output of nm in a proper C declaration
18863 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18865 # Transform the output of nm in a C name address pair
18866 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18868 # This is the shared library runtime path variable.
18869 runpath_var=$runpath_var
18871 # This is the shared library path variable.
18872 shlibpath_var=$shlibpath_var
18874 # Is shlibpath searched before the hard-coded library search path?
18875 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18877 # How to hardcode a shared library path into an executable.
18878 hardcode_action=$hardcode_action_GCJ
18880 # Whether we should hardcode library paths into libraries.
18881 hardcode_into_libs=$hardcode_into_libs
18883 # Flag to hardcode \$libdir into a binary during linking.
18884 # This must work even if \$libdir does not exist.
18885 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18887 # If ld is used when linking, flag to hardcode \$libdir into
18888 # a binary during linking. This must work even if \$libdir does
18890 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18892 # Whether we need a single -rpath flag with a separated argument.
18893 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18895 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18896 # resulting binary.
18897 hardcode_direct=$hardcode_direct_GCJ
18899 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18900 # resulting binary.
18901 hardcode_minus_L=$hardcode_minus_L_GCJ
18903 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18904 # the resulting binary.
18905 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18907 # Set to yes if building a shared library automatically hardcodes DIR into the library
18908 # and all subsequent libraries and executables linked against it.
18909 hardcode_automatic=$hardcode_automatic_GCJ
18911 # Variables whose values should be saved in libtool wrapper scripts and
18912 # restored at relink time.
18913 variables_saved_for_relink="$variables_saved_for_relink"
18915 # Whether libtool must link a program against all its dependency libraries.
18916 link_all_deplibs=$link_all_deplibs_GCJ
18918 # Compile-time system search path for libraries
18919 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18921 # Run-time system search path for libraries
18922 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18924 # Fix the shell variable \$srcfile for the compiler.
18925 fix_srcfile_path="$fix_srcfile_path_GCJ"
18927 # Set to yes if exported symbols are required.
18928 always_export_symbols=$always_export_symbols_GCJ
18930 # The commands to list exported symbols.
18931 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18933 # The commands to extract the exported symbol list from a shared archive.
18934 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18936 # Symbols that should not be listed in the preloaded symbols.
18937 exclude_expsyms=$lt_exclude_expsyms_GCJ
18939 # Symbols that must always be exported.
18940 include_expsyms=$lt_include_expsyms_GCJ
18942 # ### END LIBTOOL TAG CONFIG: $tagname
18948 # If there is no Makefile yet, we rely on a make rule to execute
18949 # `config.status --recheck' to rerun these tests and create the
18950 # libtool script then.
18951 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18952 if test -f "$ltmain_in"; then
18953 test -f Makefile && make "$ltmain"
18959 ac_cpp='$CPP $CPPFLAGS'
18960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18974 # Source file extension for RC test sources.
18977 # Object file extension for compiled RC test sources.
18981 # Code to be used in simple compile tests
18982 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18984 # Code to be used in simple link tests
18985 lt_simple_link_test_code="$lt_simple_compile_test_code"
18987 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18989 # If no C compiler was specified, use CC.
18992 # Allow CC to be a program name with arguments.
18996 # Allow CC to be a program name with arguments.
19001 lt_cv_prog_compiler_c_o_RC=yes
19003 # The else clause should only fire when bootstrapping the
19004 # libtool distribution, otherwise you forgot to ship ltmain.sh
19005 # with your package, and you will get complaints that there are
19006 # no rules to generate ltmain.sh.
19007 if test -f "$ltmain"; then
19008 # See if we are running on zsh, and set the options which allow our commands through
19009 # without removal of \ escapes.
19010 if test -n "${ZSH_VERSION+set}" ; then
19011 setopt NO_GLOB_SUBST
19013 # Now quote all the things that may contain metacharacters while being
19014 # careful not to overquote the AC_SUBSTed values. We take copies of the
19015 # variables and quote the copies for generation of the libtool script.
19016 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19018 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19019 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19020 deplibs_check_method reload_flag reload_cmds need_locks \
19021 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19022 lt_cv_sys_global_symbol_to_c_name_address \
19023 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19024 old_postinstall_cmds old_postuninstall_cmds \
19028 lt_prog_compiler_wl_RC \
19029 lt_prog_compiler_pic_RC \
19030 lt_prog_compiler_static_RC \
19031 lt_prog_compiler_no_builtin_flag_RC \
19032 export_dynamic_flag_spec_RC \
19033 thread_safe_flag_spec_RC \
19034 whole_archive_flag_spec_RC \
19035 enable_shared_with_static_runtimes_RC \
19036 old_archive_cmds_RC \
19037 old_archive_from_new_cmds_RC \
19038 predep_objects_RC \
19039 postdep_objects_RC \
19042 compiler_lib_search_path_RC \
19044 archive_expsym_cmds_RC \
19045 postinstall_cmds_RC \
19046 postuninstall_cmds_RC \
19047 old_archive_from_expsyms_cmds_RC \
19048 allow_undefined_flag_RC \
19049 no_undefined_flag_RC \
19050 export_symbols_cmds_RC \
19051 hardcode_libdir_flag_spec_RC \
19052 hardcode_libdir_flag_spec_ld_RC \
19053 hardcode_libdir_separator_RC \
19054 hardcode_automatic_RC \
19056 module_expsym_cmds_RC \
19057 lt_cv_prog_compiler_c_o_RC \
19058 exclude_expsyms_RC \
19059 include_expsyms_RC; do
19062 old_archive_cmds_RC | \
19063 old_archive_from_new_cmds_RC | \
19064 archive_cmds_RC | \
19065 archive_expsym_cmds_RC | \
19067 module_expsym_cmds_RC | \
19068 old_archive_from_expsyms_cmds_RC | \
19069 export_symbols_cmds_RC | \
19070 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19071 postinstall_cmds | postuninstall_cmds | \
19072 old_postinstall_cmds | old_postuninstall_cmds | \
19073 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19074 # Double-quote double-evaled strings.
19075 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19078 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19084 *'\$0 --fallback-echo"')
19085 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19091 cat <<__EOF__ >> "$cfgfile"
19092 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19094 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19096 # Shell to use when invoking shell scripts.
19099 # Whether or not to build shared libraries.
19100 build_libtool_libs=$enable_shared
19102 # Whether or not to build static libraries.
19103 build_old_libs=$enable_static
19105 # Whether or not to add -lc for building shared libraries.
19106 build_libtool_need_lc=$archive_cmds_need_lc_RC
19108 # Whether or not to disallow shared libs when runtime libs are static
19109 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19111 # Whether or not to optimize for fast installation.
19112 fast_install=$enable_fast_install
19115 host_alias=$host_alias
19118 # An echo program that does not interpret backslashes.
19123 AR_FLAGS=$lt_AR_FLAGS
19128 # A language-specific compiler.
19131 # Is the compiler the GNU C compiler?
19137 # The linker used to build libraries.
19140 # Whether we need hard or soft links.
19143 # A BSD-compatible nm program.
19146 # A symbol stripping program
19149 # Used to examine libraries when file_magic_cmd begins "file"
19150 MAGIC_CMD=$MAGIC_CMD
19152 # Used on cygwin: DLL creation program.
19155 # Used on cygwin: object dumper.
19158 # Used on cygwin: assembler.
19161 # The name of the directory that contains temporary libtool files.
19164 # How to create reloadable object files.
19165 reload_flag=$lt_reload_flag
19166 reload_cmds=$lt_reload_cmds
19168 # How to pass a linker flag through the compiler.
19169 wl=$lt_lt_prog_compiler_wl_RC
19171 # Object file suffix (normally "o").
19172 objext="$ac_objext"
19174 # Old archive suffix (normally "a").
19177 # Shared library suffix (normally ".so").
19178 shrext_cmds='$shrext_cmds'
19180 # Executable file suffix (normally "").
19183 # Additional compiler flags for building library objects.
19184 pic_flag=$lt_lt_prog_compiler_pic_RC
19187 # What is the maximum length of a command?
19188 max_cmd_len=$lt_cv_sys_max_cmd_len
19190 # Does compiler simultaneously support -c and -o options?
19191 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19193 # Must we lock files when doing compilation ?
19194 need_locks=$lt_need_locks
19196 # Do we need the lib prefix for modules?
19197 need_lib_prefix=$need_lib_prefix
19199 # Do we need a version for libraries?
19200 need_version=$need_version
19202 # Whether dlopen is supported.
19203 dlopen_support=$enable_dlopen
19205 # Whether dlopen of programs is supported.
19206 dlopen_self=$enable_dlopen_self
19208 # Whether dlopen of statically linked programs is supported.
19209 dlopen_self_static=$enable_dlopen_self_static
19211 # Compiler flag to prevent dynamic linking.
19212 link_static_flag=$lt_lt_prog_compiler_static_RC
19214 # Compiler flag to turn off builtin functions.
19215 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19217 # Compiler flag to allow reflexive dlopens.
19218 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19220 # Compiler flag to generate shared objects directly from archives.
19221 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19223 # Compiler flag to generate thread-safe objects.
19224 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19226 # Library versioning type.
19227 version_type=$version_type
19229 # Format of library name prefix.
19230 libname_spec=$lt_libname_spec
19232 # List of archive names. First name is the real one, the rest are links.
19233 # The last name is the one that the linker finds with -lNAME.
19234 library_names_spec=$lt_library_names_spec
19236 # The coded name of the library, if different from the real name.
19237 soname_spec=$lt_soname_spec
19239 # Commands used to build and install an old-style archive.
19241 old_archive_cmds=$lt_old_archive_cmds_RC
19242 old_postinstall_cmds=$lt_old_postinstall_cmds
19243 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19245 # Create an old-style archive from a shared archive.
19246 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19248 # Create a temporary old-style archive to link instead of a shared archive.
19249 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19251 # Commands used to build and install a shared archive.
19252 archive_cmds=$lt_archive_cmds_RC
19253 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19254 postinstall_cmds=$lt_postinstall_cmds
19255 postuninstall_cmds=$lt_postuninstall_cmds
19257 # Commands used to build a loadable module (assumed same as above if empty)
19258 module_cmds=$lt_module_cmds_RC
19259 module_expsym_cmds=$lt_module_expsym_cmds_RC
19261 # Commands to strip libraries.
19262 old_striplib=$lt_old_striplib
19263 striplib=$lt_striplib
19265 # Dependencies to place before the objects being linked to create a
19267 predep_objects=$lt_predep_objects_RC
19269 # Dependencies to place after the objects being linked to create a
19271 postdep_objects=$lt_postdep_objects_RC
19273 # Dependencies to place before the objects being linked to create a
19275 predeps=$lt_predeps_RC
19277 # Dependencies to place after the objects being linked to create a
19279 postdeps=$lt_postdeps_RC
19281 # The library search path used internally by the compiler when linking
19282 # a shared library.
19283 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19285 # Method to check whether dependent libraries are shared objects.
19286 deplibs_check_method=$lt_deplibs_check_method
19288 # Command to use when deplibs_check_method == file_magic.
19289 file_magic_cmd=$lt_file_magic_cmd
19291 # Flag that allows shared libraries with undefined symbols to be built.
19292 allow_undefined_flag=$lt_allow_undefined_flag_RC
19294 # Flag that forces no undefined symbols.
19295 no_undefined_flag=$lt_no_undefined_flag_RC
19297 # Commands used to finish a libtool library installation in a directory.
19298 finish_cmds=$lt_finish_cmds
19300 # Same as above, but a single script fragment to be evaled but not shown.
19301 finish_eval=$lt_finish_eval
19303 # Take the output of nm and produce a listing of raw symbols and C names.
19304 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19306 # Transform the output of nm in a proper C declaration
19307 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19309 # Transform the output of nm in a C name address pair
19310 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19312 # This is the shared library runtime path variable.
19313 runpath_var=$runpath_var
19315 # This is the shared library path variable.
19316 shlibpath_var=$shlibpath_var
19318 # Is shlibpath searched before the hard-coded library search path?
19319 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19321 # How to hardcode a shared library path into an executable.
19322 hardcode_action=$hardcode_action_RC
19324 # Whether we should hardcode library paths into libraries.
19325 hardcode_into_libs=$hardcode_into_libs
19327 # Flag to hardcode \$libdir into a binary during linking.
19328 # This must work even if \$libdir does not exist.
19329 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19331 # If ld is used when linking, flag to hardcode \$libdir into
19332 # a binary during linking. This must work even if \$libdir does
19334 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19336 # Whether we need a single -rpath flag with a separated argument.
19337 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19339 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19340 # resulting binary.
19341 hardcode_direct=$hardcode_direct_RC
19343 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19344 # resulting binary.
19345 hardcode_minus_L=$hardcode_minus_L_RC
19347 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19348 # the resulting binary.
19349 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19351 # Set to yes if building a shared library automatically hardcodes DIR into the library
19352 # and all subsequent libraries and executables linked against it.
19353 hardcode_automatic=$hardcode_automatic_RC
19355 # Variables whose values should be saved in libtool wrapper scripts and
19356 # restored at relink time.
19357 variables_saved_for_relink="$variables_saved_for_relink"
19359 # Whether libtool must link a program against all its dependency libraries.
19360 link_all_deplibs=$link_all_deplibs_RC
19362 # Compile-time system search path for libraries
19363 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19365 # Run-time system search path for libraries
19366 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19368 # Fix the shell variable \$srcfile for the compiler.
19369 fix_srcfile_path="$fix_srcfile_path_RC"
19371 # Set to yes if exported symbols are required.
19372 always_export_symbols=$always_export_symbols_RC
19374 # The commands to list exported symbols.
19375 export_symbols_cmds=$lt_export_symbols_cmds_RC
19377 # The commands to extract the exported symbol list from a shared archive.
19378 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19380 # Symbols that should not be listed in the preloaded symbols.
19381 exclude_expsyms=$lt_exclude_expsyms_RC
19383 # Symbols that must always be exported.
19384 include_expsyms=$lt_include_expsyms_RC
19386 # ### END LIBTOOL TAG CONFIG: $tagname
19392 # If there is no Makefile yet, we rely on a make rule to execute
19393 # `config.status --recheck' to rerun these tests and create the
19394 # libtool script then.
19395 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19396 if test -f "$ltmain_in"; then
19397 test -f Makefile && make "$ltmain"
19403 ac_cpp='$CPP $CPPFLAGS'
19404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19413 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19414 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19415 { (exit 1); exit 1; }; }
19419 # Append the new tag name to the list of available tags.
19420 if test -n "$tagname" ; then
19421 available_tags="$available_tags $tagname"
19427 # Now substitute the updated list of available tags.
19428 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19429 mv "${ofile}T" "$ofile"
19433 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19434 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19435 { (exit 1); exit 1; }; }
19441 # This can be used to rebuild libtool when needed
19442 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19444 # Always use our own libtool.
19445 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19447 # Prevent multiple expansion
19469 { echo "$as_me:$LINENO: checking location of temporary directory" >&5
19470 echo $ECHO_N "checking location of temporary directory... $ECHO_C" >&6; }
19471 if test -d /var/tmp; then
19472 found_tmp=/var/tmp/
19473 elif test -d /usr/tmp; then
19474 found_tmp=/usr/tmp/
19478 cat >>confdefs.h <<_ACEOF
19479 #define FOUND_TMP "${found_tmp}"
19482 { echo "$as_me:$LINENO: result: ${found_tmp}" >&5
19483 echo "${ECHO_T}${found_tmp}" >&6; }
19485 { echo "$as_me:$LINENO: checking for X" >&5
19486 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19489 # Check whether --with-x was given.
19490 if test "${with_x+set}" = set; then
19494 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19495 if test "x$with_x" = xno; then
19496 # The user explicitly disabled X.
19499 case $x_includes,$x_libraries in #(
19500 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19501 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19502 { (exit 1); exit 1; }; };; #(
19503 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19506 # One or both of the vars are not set, and there is no cached value.
19507 ac_x_includes=no ac_x_libraries=no
19508 rm -f -r conftest.dir
19509 if mkdir conftest.dir; then
19511 cat >Imakefile <<'_ACEOF'
19513 @echo incroot='${INCROOT}'
19515 @echo usrlibdir='${USRLIBDIR}'
19517 @echo libdir='${LIBDIR}'
19519 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19520 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19521 for ac_var in incroot usrlibdir libdir; do
19522 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19524 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19525 for ac_extension in a so sl; do
19526 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19527 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19528 ac_im_usrlibdir=$ac_im_libdir; break
19531 # Screen out bogus values from the imake configuration. They are
19532 # bogus both because they are the default anyway, and because
19533 # using them would break gcc on systems where it needs fixed includes.
19534 case $ac_im_incroot in
19535 /usr/include) ac_x_includes= ;;
19536 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19538 case $ac_im_usrlibdir in
19539 /usr/lib | /lib) ;;
19540 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19544 rm -f -r conftest.dir
19547 # Standard set of common directories for X headers.
19548 # Check X11 before X11Rn because it is often a symlink to the current release.
19560 /usr/local/X11/include
19561 /usr/local/X11R6/include
19562 /usr/local/X11R5/include
19563 /usr/local/X11R4/include
19565 /usr/local/include/X11
19566 /usr/local/include/X11R6
19567 /usr/local/include/X11R5
19568 /usr/local/include/X11R4
19572 /usr/XFree86/include/X11
19576 /usr/unsupported/include
19577 /usr/athena/include
19578 /usr/local/x11r5/include
19579 /usr/lpp/Xamples/include
19581 /usr/openwin/include
19582 /usr/openwin/share/include'
19584 if test "$ac_x_includes" = no; then
19585 # Guess where to find include files, by looking for Xlib.h.
19586 # First, try using that file with no special directory specified.
19587 cat >conftest.$ac_ext <<_ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19593 #include <X11/Xlib.h>
19595 if { (ac_try="$ac_cpp conftest.$ac_ext"
19596 case "(($ac_try" in
19597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598 *) ac_try_echo=$ac_try;;
19600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19603 grep -v '^ *+' conftest.er1 >conftest.err
19605 cat conftest.err >&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } >/dev/null && {
19608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19609 test ! -s conftest.err
19611 # We can compile using X headers with no special include directory.
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19617 for ac_dir in $ac_x_header_dirs; do
19618 if test -r "$ac_dir/X11/Xlib.h"; then
19619 ac_x_includes=$ac_dir
19625 rm -f conftest.err conftest.$ac_ext
19626 fi # $ac_x_includes = no
19628 if test "$ac_x_libraries" = no; then
19629 # Check for the libraries.
19630 # See if we find them without any special options.
19631 # Don't add to $LIBS permanently.
19634 cat >conftest.$ac_ext <<_ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h. */
19640 #include <X11/Xlib.h>
19649 rm -f conftest.$ac_objext conftest$ac_exeext
19650 if { (ac_try="$ac_link"
19651 case "(($ac_try" in
19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656 (eval "$ac_link") 2>conftest.er1
19658 grep -v '^ *+' conftest.er1 >conftest.err
19660 cat conftest.err >&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } && {
19663 test -z "$ac_c_werror_flag" ||
19664 test ! -s conftest.err
19665 } && test -s conftest$ac_exeext &&
19666 $as_test_x conftest$ac_exeext; then
19668 # We can link X programs with no special library path.
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19675 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19677 # Don't even attempt the hair of trying to link an X program!
19678 for ac_extension in a so sl; do
19679 if test -r "$ac_dir/libX11.$ac_extension"; then
19680 ac_x_libraries=$ac_dir
19687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19688 conftest$ac_exeext conftest.$ac_ext
19689 fi # $ac_x_libraries = no
19691 case $ac_x_includes,$ac_x_libraries in #(
19692 no,* | *,no | *\'*)
19693 # Didn't find X, or a directory has "'" in its name.
19694 ac_cv_have_x="have_x=no";; #(
19696 # Record where we found X for the cache.
19697 ac_cv_have_x="have_x=yes\
19698 ac_x_includes='$ac_x_includes'\
19699 ac_x_libraries='$ac_x_libraries'"
19705 eval "$ac_cv_have_x"
19708 if test "$have_x" != yes; then
19709 { echo "$as_me:$LINENO: result: $have_x" >&5
19710 echo "${ECHO_T}$have_x" >&6; }
19713 # If each of the values was on the command line, it overrides each guess.
19714 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19715 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19716 # Update the cache value to reflect the command line values.
19717 ac_cv_have_x="have_x=yes\
19718 ac_x_includes='$x_includes'\
19719 ac_x_libraries='$x_libraries'"
19720 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19721 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
19724 if test "$no_x" = yes; then
19725 # Not all programs may use this symbol, but it does not hurt to define it.
19727 cat >>confdefs.h <<\_ACEOF
19728 #define X_DISPLAY_MISSING 1
19731 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19733 if test -n "$x_includes"; then
19734 X_CFLAGS="$X_CFLAGS -I$x_includes"
19737 # It would also be nice to do this for all -L options, not just this one.
19738 if test -n "$x_libraries"; then
19739 X_LIBS="$X_LIBS -L$x_libraries"
19740 # For Solaris; some versions of Sun CC require a space after -R and
19741 # others require no space. Words are not sufficient . . . .
19742 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19743 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
19744 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19745 ac_xsave_c_werror_flag=$ac_c_werror_flag
19746 ac_c_werror_flag=yes
19747 cat >conftest.$ac_ext <<_ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19762 rm -f conftest.$ac_objext conftest$ac_exeext
19763 if { (ac_try="$ac_link"
19764 case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_link") 2>conftest.er1
19771 grep -v '^ *+' conftest.er1 >conftest.err
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } && {
19776 test -z "$ac_c_werror_flag" ||
19777 test ! -s conftest.err
19778 } && test -s conftest$ac_exeext &&
19779 $as_test_x conftest$ac_exeext; then
19780 { echo "$as_me:$LINENO: result: no" >&5
19781 echo "${ECHO_T}no" >&6; }
19782 X_LIBS="$X_LIBS -R$x_libraries"
19784 echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19787 LIBS="$ac_xsave_LIBS -R $x_libraries"
19788 cat >conftest.$ac_ext <<_ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19803 rm -f conftest.$ac_objext conftest$ac_exeext
19804 if { (ac_try="$ac_link"
19805 case "(($ac_try" in
19806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807 *) ac_try_echo=$ac_try;;
19809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19810 (eval "$ac_link") 2>conftest.er1
19812 grep -v '^ *+' conftest.er1 >conftest.err
19814 cat conftest.err >&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } && {
19817 test -z "$ac_c_werror_flag" ||
19818 test ! -s conftest.err
19819 } && test -s conftest$ac_exeext &&
19820 $as_test_x conftest$ac_exeext; then
19821 { echo "$as_me:$LINENO: result: yes" >&5
19822 echo "${ECHO_T}yes" >&6; }
19823 X_LIBS="$X_LIBS -R $x_libraries"
19825 echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19828 { echo "$as_me:$LINENO: result: neither works" >&5
19829 echo "${ECHO_T}neither works" >&6; }
19832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19833 conftest$ac_exeext conftest.$ac_ext
19836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19837 conftest$ac_exeext conftest.$ac_ext
19838 ac_c_werror_flag=$ac_xsave_c_werror_flag
19839 LIBS=$ac_xsave_LIBS
19842 # Check for system-dependent libraries X programs must link with.
19843 # Do this before checking for the system-independent R6 libraries
19844 # (-lICE), since we may need -lsocket or whatever for X linking.
19846 if test "$ISC" = yes; then
19847 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19849 # Martyn Johnson says this is needed for Ultrix, if the X
19850 # libraries were built with DECnet support. And Karl Berry says
19851 # the Alpha needs dnet_stub (dnet does not exist).
19852 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19853 cat >conftest.$ac_ext <<_ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19860 /* Override any GCC internal prototype to avoid an error.
19861 Use char because int might match the return type of a GCC
19862 builtin and then its argument prototype would still apply. */
19866 char XOpenDisplay ();
19870 return XOpenDisplay ();
19875 rm -f conftest.$ac_objext conftest$ac_exeext
19876 if { (ac_try="$ac_link"
19877 case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_link") 2>conftest.er1
19884 grep -v '^ *+' conftest.er1 >conftest.err
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } && {
19889 test -z "$ac_c_werror_flag" ||
19890 test ! -s conftest.err
19891 } && test -s conftest$ac_exeext &&
19892 $as_test_x conftest$ac_exeext; then
19895 echo "$as_me: failed program was:" >&5
19896 sed 's/^/| /' conftest.$ac_ext >&5
19898 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19899 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
19900 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19901 echo $ECHO_N "(cached) $ECHO_C" >&6
19903 ac_check_lib_save_LIBS=$LIBS
19904 LIBS="-ldnet $LIBS"
19905 cat >conftest.$ac_ext <<_ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19912 /* Override any GCC internal prototype to avoid an error.
19913 Use char because int might match the return type of a GCC
19914 builtin and then its argument prototype would still apply. */
19922 return dnet_ntoa ();
19927 rm -f conftest.$ac_objext conftest$ac_exeext
19928 if { (ac_try="$ac_link"
19929 case "(($ac_try" in
19930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19931 *) ac_try_echo=$ac_try;;
19933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19934 (eval "$ac_link") 2>conftest.er1
19936 grep -v '^ *+' conftest.er1 >conftest.err
19938 cat conftest.err >&5
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); } && {
19941 test -z "$ac_c_werror_flag" ||
19942 test ! -s conftest.err
19943 } && test -s conftest$ac_exeext &&
19944 $as_test_x conftest$ac_exeext; then
19945 ac_cv_lib_dnet_dnet_ntoa=yes
19947 echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19950 ac_cv_lib_dnet_dnet_ntoa=no
19953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19954 conftest$ac_exeext conftest.$ac_ext
19955 LIBS=$ac_check_lib_save_LIBS
19957 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19958 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19959 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19960 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19963 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19964 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19965 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19966 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
19969 ac_check_lib_save_LIBS=$LIBS
19970 LIBS="-ldnet_stub $LIBS"
19971 cat >conftest.$ac_ext <<_ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h. */
19978 /* Override any GCC internal prototype to avoid an error.
19979 Use char because int might match the return type of a GCC
19980 builtin and then its argument prototype would still apply. */
19988 return dnet_ntoa ();
19993 rm -f conftest.$ac_objext conftest$ac_exeext
19994 if { (ac_try="$ac_link"
19995 case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_link") 2>conftest.er1
20002 grep -v '^ *+' conftest.er1 >conftest.err
20004 cat conftest.err >&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } && {
20007 test -z "$ac_c_werror_flag" ||
20008 test ! -s conftest.err
20009 } && test -s conftest$ac_exeext &&
20010 $as_test_x conftest$ac_exeext; then
20011 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20016 ac_cv_lib_dnet_stub_dnet_ntoa=no
20019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20020 conftest$ac_exeext conftest.$ac_ext
20021 LIBS=$ac_check_lib_save_LIBS
20023 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20024 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20025 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20026 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20033 conftest$ac_exeext conftest.$ac_ext
20034 LIBS="$ac_xsave_LIBS"
20036 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20037 # to get the SysV transport functions.
20038 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20040 # The nsl library prevents programs from opening the X display
20041 # on Irix 5.2, according to T.E. Dickey.
20042 # The functions gethostbyname, getservbyname, and inet_addr are
20043 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20044 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20045 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20046 if test "${ac_cv_func_gethostbyname+set}" = set; then
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
20049 cat >conftest.$ac_ext <<_ACEOF
20052 cat confdefs.h >>conftest.$ac_ext
20053 cat >>conftest.$ac_ext <<_ACEOF
20054 /* end confdefs.h. */
20055 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20057 #define gethostbyname innocuous_gethostbyname
20059 /* System header to define __stub macros and hopefully few prototypes,
20060 which can conflict with char gethostbyname (); below.
20061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20062 <limits.h> exists even on freestanding compilers. */
20065 # include <limits.h>
20067 # include <assert.h>
20070 #undef gethostbyname
20072 /* Override any GCC internal prototype to avoid an error.
20073 Use char because int might match the return type of a GCC
20074 builtin and then its argument prototype would still apply. */
20078 char gethostbyname ();
20079 /* The GNU C library defines this for functions which it implements
20080 to always fail with ENOSYS. Some functions are actually named
20081 something starting with __ and the normal name is an alias. */
20082 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20089 return gethostbyname ();
20094 rm -f conftest.$ac_objext conftest$ac_exeext
20095 if { (ac_try="$ac_link"
20096 case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_link") 2>conftest.er1
20103 grep -v '^ *+' conftest.er1 >conftest.err
20105 cat conftest.err >&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); } && {
20108 test -z "$ac_c_werror_flag" ||
20109 test ! -s conftest.err
20110 } && test -s conftest$ac_exeext &&
20111 $as_test_x conftest$ac_exeext; then
20112 ac_cv_func_gethostbyname=yes
20114 echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20117 ac_cv_func_gethostbyname=no
20120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20121 conftest$ac_exeext conftest.$ac_ext
20123 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20124 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20126 if test $ac_cv_func_gethostbyname = no; then
20127 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20128 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20129 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
20132 ac_check_lib_save_LIBS=$LIBS
20134 cat >conftest.$ac_ext <<_ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h. */
20141 /* Override any GCC internal prototype to avoid an error.
20142 Use char because int might match the return type of a GCC
20143 builtin and then its argument prototype would still apply. */
20147 char gethostbyname ();
20151 return gethostbyname ();
20156 rm -f conftest.$ac_objext conftest$ac_exeext
20157 if { (ac_try="$ac_link"
20158 case "(($ac_try" in
20159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160 *) ac_try_echo=$ac_try;;
20162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163 (eval "$ac_link") 2>conftest.er1
20165 grep -v '^ *+' conftest.er1 >conftest.err
20167 cat conftest.err >&5
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); } && {
20170 test -z "$ac_c_werror_flag" ||
20171 test ! -s conftest.err
20172 } && test -s conftest$ac_exeext &&
20173 $as_test_x conftest$ac_exeext; then
20174 ac_cv_lib_nsl_gethostbyname=yes
20176 echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20179 ac_cv_lib_nsl_gethostbyname=no
20182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20183 conftest$ac_exeext conftest.$ac_ext
20184 LIBS=$ac_check_lib_save_LIBS
20186 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20187 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20188 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20189 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20192 if test $ac_cv_lib_nsl_gethostbyname = no; then
20193 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20194 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20195 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20198 ac_check_lib_save_LIBS=$LIBS
20200 cat >conftest.$ac_ext <<_ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h. */
20207 /* Override any GCC internal prototype to avoid an error.
20208 Use char because int might match the return type of a GCC
20209 builtin and then its argument prototype would still apply. */
20213 char gethostbyname ();
20217 return gethostbyname ();
20222 rm -f conftest.$ac_objext conftest$ac_exeext
20223 if { (ac_try="$ac_link"
20224 case "(($ac_try" in
20225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20226 *) ac_try_echo=$ac_try;;
20228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20229 (eval "$ac_link") 2>conftest.er1
20231 grep -v '^ *+' conftest.er1 >conftest.err
20233 cat conftest.err >&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); } && {
20236 test -z "$ac_c_werror_flag" ||
20237 test ! -s conftest.err
20238 } && test -s conftest$ac_exeext &&
20239 $as_test_x conftest$ac_exeext; then
20240 ac_cv_lib_bsd_gethostbyname=yes
20242 echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20245 ac_cv_lib_bsd_gethostbyname=no
20248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20249 conftest$ac_exeext conftest.$ac_ext
20250 LIBS=$ac_check_lib_save_LIBS
20252 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20253 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20254 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20255 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20261 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20262 # socket/setsockopt and other routines are undefined under SCO ODT
20263 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20264 # on later versions), says Simon Leinen: it contains gethostby*
20265 # variants that don't use the name server (or something). -lsocket
20266 # must be given before -lnsl if both are needed. We assume that
20267 # if connect needs -lnsl, so does gethostbyname.
20268 { echo "$as_me:$LINENO: checking for connect" >&5
20269 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20270 if test "${ac_cv_func_connect+set}" = set; then
20271 echo $ECHO_N "(cached) $ECHO_C" >&6
20273 cat >conftest.$ac_ext <<_ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20279 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20281 #define connect innocuous_connect
20283 /* System header to define __stub macros and hopefully few prototypes,
20284 which can conflict with char connect (); below.
20285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20286 <limits.h> exists even on freestanding compilers. */
20289 # include <limits.h>
20291 # include <assert.h>
20296 /* Override any GCC internal prototype to avoid an error.
20297 Use char because int might match the return type of a GCC
20298 builtin and then its argument prototype would still apply. */
20303 /* The GNU C library defines this for functions which it implements
20304 to always fail with ENOSYS. Some functions are actually named
20305 something starting with __ and the normal name is an alias. */
20306 #if defined __stub_connect || defined __stub___connect
20318 rm -f conftest.$ac_objext conftest$ac_exeext
20319 if { (ac_try="$ac_link"
20320 case "(($ac_try" in
20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322 *) ac_try_echo=$ac_try;;
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325 (eval "$ac_link") 2>conftest.er1
20327 grep -v '^ *+' conftest.er1 >conftest.err
20329 cat conftest.err >&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } && {
20332 test -z "$ac_c_werror_flag" ||
20333 test ! -s conftest.err
20334 } && test -s conftest$ac_exeext &&
20335 $as_test_x conftest$ac_exeext; then
20336 ac_cv_func_connect=yes
20338 echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20341 ac_cv_func_connect=no
20344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20345 conftest$ac_exeext conftest.$ac_ext
20347 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20348 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20350 if test $ac_cv_func_connect = no; then
20351 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20352 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20353 if test "${ac_cv_lib_socket_connect+set}" = set; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
20356 ac_check_lib_save_LIBS=$LIBS
20357 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20358 cat >conftest.$ac_ext <<_ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h. */
20365 /* Override any GCC internal prototype to avoid an error.
20366 Use char because int might match the return type of a GCC
20367 builtin and then its argument prototype would still apply. */
20380 rm -f conftest.$ac_objext conftest$ac_exeext
20381 if { (ac_try="$ac_link"
20382 case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_link") 2>conftest.er1
20389 grep -v '^ *+' conftest.er1 >conftest.err
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } && {
20394 test -z "$ac_c_werror_flag" ||
20395 test ! -s conftest.err
20396 } && test -s conftest$ac_exeext &&
20397 $as_test_x conftest$ac_exeext; then
20398 ac_cv_lib_socket_connect=yes
20400 echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20403 ac_cv_lib_socket_connect=no
20406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20407 conftest$ac_exeext conftest.$ac_ext
20408 LIBS=$ac_check_lib_save_LIBS
20410 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20411 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20412 if test $ac_cv_lib_socket_connect = yes; then
20413 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20418 # Guillermo Gomez says -lposix is necessary on A/UX.
20419 { echo "$as_me:$LINENO: checking for remove" >&5
20420 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20421 if test "${ac_cv_func_remove+set}" = set; then
20422 echo $ECHO_N "(cached) $ECHO_C" >&6
20424 cat >conftest.$ac_ext <<_ACEOF
20427 cat confdefs.h >>conftest.$ac_ext
20428 cat >>conftest.$ac_ext <<_ACEOF
20429 /* end confdefs.h. */
20430 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20432 #define remove innocuous_remove
20434 /* System header to define __stub macros and hopefully few prototypes,
20435 which can conflict with char remove (); below.
20436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20437 <limits.h> exists even on freestanding compilers. */
20440 # include <limits.h>
20442 # include <assert.h>
20447 /* Override any GCC internal prototype to avoid an error.
20448 Use char because int might match the return type of a GCC
20449 builtin and then its argument prototype would still apply. */
20454 /* The GNU C library defines this for functions which it implements
20455 to always fail with ENOSYS. Some functions are actually named
20456 something starting with __ and the normal name is an alias. */
20457 #if defined __stub_remove || defined __stub___remove
20469 rm -f conftest.$ac_objext conftest$ac_exeext
20470 if { (ac_try="$ac_link"
20471 case "(($ac_try" in
20472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473 *) ac_try_echo=$ac_try;;
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476 (eval "$ac_link") 2>conftest.er1
20478 grep -v '^ *+' conftest.er1 >conftest.err
20480 cat conftest.err >&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } && {
20483 test -z "$ac_c_werror_flag" ||
20484 test ! -s conftest.err
20485 } && test -s conftest$ac_exeext &&
20486 $as_test_x conftest$ac_exeext; then
20487 ac_cv_func_remove=yes
20489 echo "$as_me: failed program was:" >&5
20490 sed 's/^/| /' conftest.$ac_ext >&5
20492 ac_cv_func_remove=no
20495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20496 conftest$ac_exeext conftest.$ac_ext
20498 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20499 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
20501 if test $ac_cv_func_remove = no; then
20502 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20503 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
20504 if test "${ac_cv_lib_posix_remove+set}" = set; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 ac_check_lib_save_LIBS=$LIBS
20508 LIBS="-lposix $LIBS"
20509 cat >conftest.$ac_ext <<_ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20516 /* Override any GCC internal prototype to avoid an error.
20517 Use char because int might match the return type of a GCC
20518 builtin and then its argument prototype would still apply. */
20531 rm -f conftest.$ac_objext conftest$ac_exeext
20532 if { (ac_try="$ac_link"
20533 case "(($ac_try" in
20534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535 *) ac_try_echo=$ac_try;;
20537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20538 (eval "$ac_link") 2>conftest.er1
20540 grep -v '^ *+' conftest.er1 >conftest.err
20542 cat conftest.err >&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } && {
20545 test -z "$ac_c_werror_flag" ||
20546 test ! -s conftest.err
20547 } && test -s conftest$ac_exeext &&
20548 $as_test_x conftest$ac_exeext; then
20549 ac_cv_lib_posix_remove=yes
20551 echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20554 ac_cv_lib_posix_remove=no
20557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20558 conftest$ac_exeext conftest.$ac_ext
20559 LIBS=$ac_check_lib_save_LIBS
20561 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20562 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
20563 if test $ac_cv_lib_posix_remove = yes; then
20564 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20569 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20570 { echo "$as_me:$LINENO: checking for shmat" >&5
20571 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
20572 if test "${ac_cv_func_shmat+set}" = set; then
20573 echo $ECHO_N "(cached) $ECHO_C" >&6
20575 cat >conftest.$ac_ext <<_ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20581 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20583 #define shmat innocuous_shmat
20585 /* System header to define __stub macros and hopefully few prototypes,
20586 which can conflict with char shmat (); below.
20587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20588 <limits.h> exists even on freestanding compilers. */
20591 # include <limits.h>
20593 # include <assert.h>
20598 /* Override any GCC internal prototype to avoid an error.
20599 Use char because int might match the return type of a GCC
20600 builtin and then its argument prototype would still apply. */
20605 /* The GNU C library defines this for functions which it implements
20606 to always fail with ENOSYS. Some functions are actually named
20607 something starting with __ and the normal name is an alias. */
20608 #if defined __stub_shmat || defined __stub___shmat
20620 rm -f conftest.$ac_objext conftest$ac_exeext
20621 if { (ac_try="$ac_link"
20622 case "(($ac_try" in
20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624 *) ac_try_echo=$ac_try;;
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627 (eval "$ac_link") 2>conftest.er1
20629 grep -v '^ *+' conftest.er1 >conftest.err
20631 cat conftest.err >&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } && {
20634 test -z "$ac_c_werror_flag" ||
20635 test ! -s conftest.err
20636 } && test -s conftest$ac_exeext &&
20637 $as_test_x conftest$ac_exeext; then
20638 ac_cv_func_shmat=yes
20640 echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20643 ac_cv_func_shmat=no
20646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20647 conftest$ac_exeext conftest.$ac_ext
20649 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20650 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
20652 if test $ac_cv_func_shmat = no; then
20653 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20654 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
20655 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20656 echo $ECHO_N "(cached) $ECHO_C" >&6
20658 ac_check_lib_save_LIBS=$LIBS
20660 cat >conftest.$ac_ext <<_ACEOF
20663 cat confdefs.h >>conftest.$ac_ext
20664 cat >>conftest.$ac_ext <<_ACEOF
20665 /* end confdefs.h. */
20667 /* Override any GCC internal prototype to avoid an error.
20668 Use char because int might match the return type of a GCC
20669 builtin and then its argument prototype would still apply. */
20682 rm -f conftest.$ac_objext conftest$ac_exeext
20683 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
20691 grep -v '^ *+' conftest.er1 >conftest.err
20693 cat conftest.err >&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } && {
20696 test -z "$ac_c_werror_flag" ||
20697 test ! -s conftest.err
20698 } && test -s conftest$ac_exeext &&
20699 $as_test_x conftest$ac_exeext; then
20700 ac_cv_lib_ipc_shmat=yes
20702 echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20705 ac_cv_lib_ipc_shmat=no
20708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20709 conftest$ac_exeext conftest.$ac_ext
20710 LIBS=$ac_check_lib_save_LIBS
20712 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20713 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
20714 if test $ac_cv_lib_ipc_shmat = yes; then
20715 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20721 # Check for libraries that X11R6 Xt/Xaw programs need.
20722 ac_save_LDFLAGS=$LDFLAGS
20723 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20724 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20725 # check for ICE first), but we must link in the order -lSM -lICE or
20726 # we get undefined symbols. So assume we have SM if we have ICE.
20727 # These have to be linked with before -lX11, unlike the other
20728 # libraries we check for below, so use a different variable.
20729 # John Interrante, Karl Berry
20730 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20731 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
20732 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20733 echo $ECHO_N "(cached) $ECHO_C" >&6
20735 ac_check_lib_save_LIBS=$LIBS
20736 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20737 cat >conftest.$ac_ext <<_ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20744 /* Override any GCC internal prototype to avoid an error.
20745 Use char because int might match the return type of a GCC
20746 builtin and then its argument prototype would still apply. */
20750 char IceConnectionNumber ();
20754 return IceConnectionNumber ();
20759 rm -f conftest.$ac_objext conftest$ac_exeext
20760 if { (ac_try="$ac_link"
20761 case "(($ac_try" in
20762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763 *) ac_try_echo=$ac_try;;
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766 (eval "$ac_link") 2>conftest.er1
20768 grep -v '^ *+' conftest.er1 >conftest.err
20770 cat conftest.err >&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } && {
20773 test -z "$ac_c_werror_flag" ||
20774 test ! -s conftest.err
20775 } && test -s conftest$ac_exeext &&
20776 $as_test_x conftest$ac_exeext; then
20777 ac_cv_lib_ICE_IceConnectionNumber=yes
20779 echo "$as_me: failed program was:" >&5
20780 sed 's/^/| /' conftest.$ac_ext >&5
20782 ac_cv_lib_ICE_IceConnectionNumber=no
20785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20786 conftest$ac_exeext conftest.$ac_ext
20787 LIBS=$ac_check_lib_save_LIBS
20789 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20790 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20791 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20792 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20795 LDFLAGS=$ac_save_LDFLAGS
20799 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20800 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20801 if test "${ac_cv_header_stdc+set}" = set; then
20802 echo $ECHO_N "(cached) $ECHO_C" >&6
20804 cat >conftest.$ac_ext <<_ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20810 #include <stdlib.h>
20811 #include <stdarg.h>
20812 #include <string.h>
20823 rm -f conftest.$ac_objext
20824 if { (ac_try="$ac_compile"
20825 case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_compile") 2>conftest.er1
20832 grep -v '^ *+' conftest.er1 >conftest.err
20834 cat conftest.err >&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } && {
20837 test -z "$ac_c_werror_flag" ||
20838 test ! -s conftest.err
20839 } && test -s conftest.$ac_objext; then
20840 ac_cv_header_stdc=yes
20842 echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20845 ac_cv_header_stdc=no
20848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20850 if test $ac_cv_header_stdc = yes; then
20851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20852 cat >conftest.$ac_ext <<_ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20858 #include <string.h>
20861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20862 $EGREP "memchr" >/dev/null 2>&1; then
20865 ac_cv_header_stdc=no
20871 if test $ac_cv_header_stdc = yes; then
20872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20873 cat >conftest.$ac_ext <<_ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h. */
20879 #include <stdlib.h>
20882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20883 $EGREP "free" >/dev/null 2>&1; then
20886 ac_cv_header_stdc=no
20892 if test $ac_cv_header_stdc = yes; then
20893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20894 if test "$cross_compiling" = yes; then
20897 cat >conftest.$ac_ext <<_ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h. */
20904 #include <stdlib.h>
20905 #if ((' ' & 0x0FF) == 0x020)
20906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20909 # define ISLOWER(c) \
20910 (('a' <= (c) && (c) <= 'i') \
20911 || ('j' <= (c) && (c) <= 'r') \
20912 || ('s' <= (c) && (c) <= 'z'))
20913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20921 for (i = 0; i < 256; i++)
20922 if (XOR (islower (i), ISLOWER (i))
20923 || toupper (i) != TOUPPER (i))
20928 rm -f conftest$ac_exeext
20929 if { (ac_try="$ac_link"
20930 case "(($ac_try" in
20931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932 *) ac_try_echo=$ac_try;;
20934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935 (eval "$ac_link") 2>&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20939 { (case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944 (eval "$ac_try") 2>&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); }; }; then
20950 echo "$as_me: program exited with status $ac_status" >&5
20951 echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20954 ( exit $ac_status )
20955 ac_cv_header_stdc=no
20957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20963 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20964 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20965 if test $ac_cv_header_stdc = yes; then
20967 cat >>confdefs.h <<\_ACEOF
20968 #define STDC_HEADERS 1
20973 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20974 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20975 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20976 echo $ECHO_N "(cached) $ECHO_C" >&6
20978 cat >conftest.$ac_ext <<_ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h. */
20984 #include <sys/types.h>
20985 #include <sys/wait.h>
20986 #ifndef WEXITSTATUS
20987 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20990 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20998 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21003 rm -f conftest.$ac_objext
21004 if { (ac_try="$ac_compile"
21005 case "(($ac_try" in
21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007 *) ac_try_echo=$ac_try;;
21009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21010 (eval "$ac_compile") 2>conftest.er1
21012 grep -v '^ *+' conftest.er1 >conftest.err
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } && {
21017 test -z "$ac_c_werror_flag" ||
21018 test ! -s conftest.err
21019 } && test -s conftest.$ac_objext; then
21020 ac_cv_header_sys_wait_h=yes
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21025 ac_cv_header_sys_wait_h=no
21028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21030 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21031 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21032 if test $ac_cv_header_sys_wait_h = yes; then
21034 cat >>confdefs.h <<\_ACEOF
21035 #define HAVE_SYS_WAIT_H 1
21047 for ac_header in fcntl.h paths.h termios.h sgtty.h unistd.h malloc.h term.h
21049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21054 echo $ECHO_N "(cached) $ECHO_C" >&6
21056 ac_res=`eval echo '${'$as_ac_Header'}'`
21057 { echo "$as_me:$LINENO: result: $ac_res" >&5
21058 echo "${ECHO_T}$ac_res" >&6; }
21060 # Is the header compilable?
21061 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21063 cat >conftest.$ac_ext <<_ACEOF
21066 cat confdefs.h >>conftest.$ac_ext
21067 cat >>conftest.$ac_ext <<_ACEOF
21068 /* end confdefs.h. */
21069 $ac_includes_default
21070 #include <$ac_header>
21072 rm -f conftest.$ac_objext
21073 if { (ac_try="$ac_compile"
21074 case "(($ac_try" in
21075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076 *) ac_try_echo=$ac_try;;
21078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21079 (eval "$ac_compile") 2>conftest.er1
21081 grep -v '^ *+' conftest.er1 >conftest.err
21083 cat conftest.err >&5
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); } && {
21086 test -z "$ac_c_werror_flag" ||
21087 test ! -s conftest.err
21088 } && test -s conftest.$ac_objext; then
21089 ac_header_compiler=yes
21091 echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21094 ac_header_compiler=no
21097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21099 echo "${ECHO_T}$ac_header_compiler" >&6; }
21101 # Is the header present?
21102 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21104 cat >conftest.$ac_ext <<_ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h. */
21110 #include <$ac_header>
21112 if { (ac_try="$ac_cpp conftest.$ac_ext"
21113 case "(($ac_try" in
21114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21115 *) ac_try_echo=$ac_try;;
21117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21120 grep -v '^ *+' conftest.er1 >conftest.err
21122 cat conftest.err >&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } >/dev/null && {
21125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21126 test ! -s conftest.err
21128 ac_header_preproc=yes
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21133 ac_header_preproc=no
21136 rm -f conftest.err conftest.$ac_ext
21137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21138 echo "${ECHO_T}$ac_header_preproc" >&6; }
21140 # So? What about this header?
21141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21147 ac_header_preproc=yes
21150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21168 echo $ECHO_N "(cached) $ECHO_C" >&6
21170 eval "$as_ac_Header=\$ac_header_preproc"
21172 ac_res=`eval echo '${'$as_ac_Header'}'`
21173 { echo "$as_me:$LINENO: result: $ac_res" >&5
21174 echo "${ECHO_T}$ac_res" >&6; }
21177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21178 cat >>confdefs.h <<_ACEOF
21179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21191 for ac_header in sys/filio.h sys/ioctl.h sys/time.h sys/file.h sys/utsname.h
21193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21198 echo $ECHO_N "(cached) $ECHO_C" >&6
21200 ac_res=`eval echo '${'$as_ac_Header'}'`
21201 { echo "$as_me:$LINENO: result: $ac_res" >&5
21202 echo "${ECHO_T}$ac_res" >&6; }
21204 # Is the header compilable?
21205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21207 cat >conftest.$ac_ext <<_ACEOF
21210 cat confdefs.h >>conftest.$ac_ext
21211 cat >>conftest.$ac_ext <<_ACEOF
21212 /* end confdefs.h. */
21213 $ac_includes_default
21214 #include <$ac_header>
21216 rm -f conftest.$ac_objext
21217 if { (ac_try="$ac_compile"
21218 case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223 (eval "$ac_compile") 2>conftest.er1
21225 grep -v '^ *+' conftest.er1 >conftest.err
21227 cat conftest.err >&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } && {
21230 test -z "$ac_c_werror_flag" ||
21231 test ! -s conftest.err
21232 } && test -s conftest.$ac_objext; then
21233 ac_header_compiler=yes
21235 echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21238 ac_header_compiler=no
21241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21243 echo "${ECHO_T}$ac_header_compiler" >&6; }
21245 # Is the header present?
21246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21248 cat >conftest.$ac_ext <<_ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21254 #include <$ac_header>
21256 if { (ac_try="$ac_cpp conftest.$ac_ext"
21257 case "(($ac_try" in
21258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21259 *) ac_try_echo=$ac_try;;
21261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21264 grep -v '^ *+' conftest.er1 >conftest.err
21266 cat conftest.err >&5
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } >/dev/null && {
21269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21270 test ! -s conftest.err
21272 ac_header_preproc=yes
21274 echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21277 ac_header_preproc=no
21280 rm -f conftest.err conftest.$ac_ext
21281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21282 echo "${ECHO_T}$ac_header_preproc" >&6; }
21284 # So? What about this header?
21285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21291 ac_header_preproc=yes
21294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21312 echo $ECHO_N "(cached) $ECHO_C" >&6
21314 eval "$as_ac_Header=\$ac_header_preproc"
21316 ac_res=`eval echo '${'$as_ac_Header'}'`
21317 { echo "$as_me:$LINENO: result: $ac_res" >&5
21318 echo "${ECHO_T}$ac_res" >&6; }
21321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21322 cat >>confdefs.h <<_ACEOF
21323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21335 for ac_header in sys/select.h sys/msgbuf.h sys/cdefs.h krb5_err.h termcap.h
21337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21339 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21342 echo $ECHO_N "(cached) $ECHO_C" >&6
21344 ac_res=`eval echo '${'$as_ac_Header'}'`
21345 { echo "$as_me:$LINENO: result: $ac_res" >&5
21346 echo "${ECHO_T}$ac_res" >&6; }
21348 # Is the header compilable?
21349 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21351 cat >conftest.$ac_ext <<_ACEOF
21354 cat confdefs.h >>conftest.$ac_ext
21355 cat >>conftest.$ac_ext <<_ACEOF
21356 /* end confdefs.h. */
21357 $ac_includes_default
21358 #include <$ac_header>
21360 rm -f conftest.$ac_objext
21361 if { (ac_try="$ac_compile"
21362 case "(($ac_try" in
21363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21364 *) ac_try_echo=$ac_try;;
21366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21367 (eval "$ac_compile") 2>conftest.er1
21369 grep -v '^ *+' conftest.er1 >conftest.err
21371 cat conftest.err >&5
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); } && {
21374 test -z "$ac_c_werror_flag" ||
21375 test ! -s conftest.err
21376 } && test -s conftest.$ac_objext; then
21377 ac_header_compiler=yes
21379 echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21382 ac_header_compiler=no
21385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21387 echo "${ECHO_T}$ac_header_compiler" >&6; }
21389 # Is the header present?
21390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21392 cat >conftest.$ac_ext <<_ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21398 #include <$ac_header>
21400 if { (ac_try="$ac_cpp conftest.$ac_ext"
21401 case "(($ac_try" in
21402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403 *) ac_try_echo=$ac_try;;
21405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21408 grep -v '^ *+' conftest.er1 >conftest.err
21410 cat conftest.err >&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } >/dev/null && {
21413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21414 test ! -s conftest.err
21416 ac_header_preproc=yes
21418 echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21421 ac_header_preproc=no
21424 rm -f conftest.err conftest.$ac_ext
21425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21426 echo "${ECHO_T}$ac_header_preproc" >&6; }
21428 # So? What about this header?
21429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21435 ac_header_preproc=yes
21438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21458 eval "$as_ac_Header=\$ac_header_preproc"
21460 ac_res=`eval echo '${'$as_ac_Header'}'`
21461 { echo "$as_me:$LINENO: result: $ac_res" >&5
21462 echo "${ECHO_T}$ac_res" >&6; }
21465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21466 cat >>confdefs.h <<_ACEOF
21467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21475 if test "$no_x" != "yes"; then
21481 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21482 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21483 if test "${ac_cv_type_signal+set}" = set; then
21484 echo $ECHO_N "(cached) $ECHO_C" >&6
21486 cat >conftest.$ac_ext <<_ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21492 #include <sys/types.h>
21493 #include <signal.h>
21498 return *(signal (0, 0)) (0) == 1;
21503 rm -f conftest.$ac_objext
21504 if { (ac_try="$ac_compile"
21505 case "(($ac_try" in
21506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21507 *) ac_try_echo=$ac_try;;
21509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21510 (eval "$ac_compile") 2>conftest.er1
21512 grep -v '^ *+' conftest.er1 >conftest.err
21514 cat conftest.err >&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); } && {
21517 test -z "$ac_c_werror_flag" ||
21518 test ! -s conftest.err
21519 } && test -s conftest.$ac_objext; then
21520 ac_cv_type_signal=int
21522 echo "$as_me: failed program was:" >&5
21523 sed 's/^/| /' conftest.$ac_ext >&5
21525 ac_cv_type_signal=void
21528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21530 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21531 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21533 cat >>confdefs.h <<_ACEOF
21534 #define RETSIGTYPE $ac_cv_type_signal
21538 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21539 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21540 if test "${ac_cv_type_uid_t+set}" = set; then
21541 echo $ECHO_N "(cached) $ECHO_C" >&6
21543 cat >conftest.$ac_ext <<_ACEOF
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
21548 /* end confdefs.h. */
21549 #include <sys/types.h>
21552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21553 $EGREP "uid_t" >/dev/null 2>&1; then
21554 ac_cv_type_uid_t=yes
21556 ac_cv_type_uid_t=no
21561 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21562 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21563 if test $ac_cv_type_uid_t = no; then
21565 cat >>confdefs.h <<\_ACEOF
21570 cat >>confdefs.h <<\_ACEOF
21576 { echo "$as_me:$LINENO: checking for short" >&5
21577 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21578 if test "${ac_cv_type_short+set}" = set; then
21579 echo $ECHO_N "(cached) $ECHO_C" >&6
21581 cat >conftest.$ac_ext <<_ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21587 $ac_includes_default
21588 typedef short ac__type_new_;
21592 if ((ac__type_new_ *) 0)
21594 if (sizeof (ac__type_new_))
21600 rm -f conftest.$ac_objext
21601 if { (ac_try="$ac_compile"
21602 case "(($ac_try" in
21603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604 *) ac_try_echo=$ac_try;;
21606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607 (eval "$ac_compile") 2>conftest.er1
21609 grep -v '^ *+' conftest.er1 >conftest.err
21611 cat conftest.err >&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); } && {
21614 test -z "$ac_c_werror_flag" ||
21615 test ! -s conftest.err
21616 } && test -s conftest.$ac_objext; then
21617 ac_cv_type_short=yes
21619 echo "$as_me: failed program was:" >&5
21620 sed 's/^/| /' conftest.$ac_ext >&5
21622 ac_cv_type_short=no
21625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21627 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21628 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21630 # The cast to long int works around a bug in the HP C Compiler
21631 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21632 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21633 # This bug is HP SR number 8606223364.
21634 { echo "$as_me:$LINENO: checking size of short" >&5
21635 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21636 if test "${ac_cv_sizeof_short+set}" = set; then
21637 echo $ECHO_N "(cached) $ECHO_C" >&6
21639 if test "$cross_compiling" = yes; then
21640 # Depending upon the size, compute the lo and hi bounds.
21641 cat >conftest.$ac_ext <<_ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h. */
21647 $ac_includes_default
21648 typedef short ac__type_sizeof_;
21652 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21659 rm -f conftest.$ac_objext
21660 if { (ac_try="$ac_compile"
21661 case "(($ac_try" in
21662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663 *) ac_try_echo=$ac_try;;
21665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21666 (eval "$ac_compile") 2>conftest.er1
21668 grep -v '^ *+' conftest.er1 >conftest.err
21670 cat conftest.err >&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); } && {
21673 test -z "$ac_c_werror_flag" ||
21674 test ! -s conftest.err
21675 } && test -s conftest.$ac_objext; then
21678 cat >conftest.$ac_ext <<_ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h. */
21684 $ac_includes_default
21685 typedef short ac__type_sizeof_;
21689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21696 rm -f conftest.$ac_objext
21697 if { (ac_try="$ac_compile"
21698 case "(($ac_try" in
21699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700 *) ac_try_echo=$ac_try;;
21702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703 (eval "$ac_compile") 2>conftest.er1
21705 grep -v '^ *+' conftest.er1 >conftest.err
21707 cat conftest.err >&5
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); } && {
21710 test -z "$ac_c_werror_flag" ||
21711 test ! -s conftest.err
21712 } && test -s conftest.$ac_objext; then
21713 ac_hi=$ac_mid; break
21715 echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21718 ac_lo=`expr $ac_mid + 1`
21719 if test $ac_lo -le $ac_mid; then
21723 ac_mid=`expr 2 '*' $ac_mid + 1`
21726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21729 echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21732 cat >conftest.$ac_ext <<_ACEOF
21735 cat confdefs.h >>conftest.$ac_ext
21736 cat >>conftest.$ac_ext <<_ACEOF
21737 /* end confdefs.h. */
21738 $ac_includes_default
21739 typedef short ac__type_sizeof_;
21743 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21750 rm -f conftest.$ac_objext
21751 if { (ac_try="$ac_compile"
21752 case "(($ac_try" in
21753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754 *) ac_try_echo=$ac_try;;
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757 (eval "$ac_compile") 2>conftest.er1
21759 grep -v '^ *+' conftest.er1 >conftest.err
21761 cat conftest.err >&5
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); } && {
21764 test -z "$ac_c_werror_flag" ||
21765 test ! -s conftest.err
21766 } && test -s conftest.$ac_objext; then
21769 cat >conftest.$ac_ext <<_ACEOF
21772 cat confdefs.h >>conftest.$ac_ext
21773 cat >>conftest.$ac_ext <<_ACEOF
21774 /* end confdefs.h. */
21775 $ac_includes_default
21776 typedef short ac__type_sizeof_;
21780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21787 rm -f conftest.$ac_objext
21788 if { (ac_try="$ac_compile"
21789 case "(($ac_try" in
21790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21791 *) ac_try_echo=$ac_try;;
21793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21794 (eval "$ac_compile") 2>conftest.er1
21796 grep -v '^ *+' conftest.er1 >conftest.err
21798 cat conftest.err >&5
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); } && {
21801 test -z "$ac_c_werror_flag" ||
21802 test ! -s conftest.err
21803 } && test -s conftest.$ac_objext; then
21804 ac_lo=$ac_mid; break
21806 echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21809 ac_hi=`expr '(' $ac_mid ')' - 1`
21810 if test $ac_mid -le $ac_hi; then
21814 ac_mid=`expr 2 '*' $ac_mid`
21817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21820 echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21830 # Binary search between lo and hi bounds.
21831 while test "x$ac_lo" != "x$ac_hi"; do
21832 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21833 cat >conftest.$ac_ext <<_ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h. */
21839 $ac_includes_default
21840 typedef short ac__type_sizeof_;
21844 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21851 rm -f conftest.$ac_objext
21852 if { (ac_try="$ac_compile"
21853 case "(($ac_try" in
21854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855 *) ac_try_echo=$ac_try;;
21857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21858 (eval "$ac_compile") 2>conftest.er1
21860 grep -v '^ *+' conftest.er1 >conftest.err
21862 cat conftest.err >&5
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); } && {
21865 test -z "$ac_c_werror_flag" ||
21866 test ! -s conftest.err
21867 } && test -s conftest.$ac_objext; then
21870 echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21873 ac_lo=`expr '(' $ac_mid ')' + 1`
21876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21879 ?*) ac_cv_sizeof_short=$ac_lo;;
21880 '') if test "$ac_cv_type_short" = yes; then
21881 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21882 See \`config.log' for more details." >&5
21883 echo "$as_me: error: cannot compute sizeof (short)
21884 See \`config.log' for more details." >&2;}
21885 { (exit 77); exit 77; }; }
21887 ac_cv_sizeof_short=0
21891 cat >conftest.$ac_ext <<_ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h. */
21897 $ac_includes_default
21898 typedef short ac__type_sizeof_;
21899 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21900 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21902 #include <stdlib.h>
21907 FILE *f = fopen ("conftest.val", "w");
21910 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21912 long int i = longval ();
21913 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21915 fprintf (f, "%ld\n", i);
21919 unsigned long int i = ulongval ();
21920 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21922 fprintf (f, "%lu\n", i);
21924 return ferror (f) || fclose (f) != 0;
21930 rm -f conftest$ac_exeext
21931 if { (ac_try="$ac_link"
21932 case "(($ac_try" in
21933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21934 *) ac_try_echo=$ac_try;;
21936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21937 (eval "$ac_link") 2>&5
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21941 { (case "(($ac_try" in
21942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21943 *) ac_try_echo=$ac_try;;
21945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21946 (eval "$ac_try") 2>&5
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); }; }; then
21950 ac_cv_sizeof_short=`cat conftest.val`
21952 echo "$as_me: program exited with status $ac_status" >&5
21953 echo "$as_me: failed program was:" >&5
21954 sed 's/^/| /' conftest.$ac_ext >&5
21956 ( exit $ac_status )
21957 if test "$ac_cv_type_short" = yes; then
21958 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21959 See \`config.log' for more details." >&5
21960 echo "$as_me: error: cannot compute sizeof (short)
21961 See \`config.log' for more details." >&2;}
21962 { (exit 77); exit 77; }; }
21964 ac_cv_sizeof_short=0
21967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21971 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21972 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21976 cat >>confdefs.h <<_ACEOF
21977 #define SIZEOF_SHORT $ac_cv_sizeof_short
21981 { echo "$as_me:$LINENO: checking for int" >&5
21982 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21983 if test "${ac_cv_type_int+set}" = set; then
21984 echo $ECHO_N "(cached) $ECHO_C" >&6
21986 cat >conftest.$ac_ext <<_ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h. */
21992 $ac_includes_default
21993 typedef int ac__type_new_;
21997 if ((ac__type_new_ *) 0)
21999 if (sizeof (ac__type_new_))
22005 rm -f conftest.$ac_objext
22006 if { (ac_try="$ac_compile"
22007 case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012 (eval "$ac_compile") 2>conftest.er1
22014 grep -v '^ *+' conftest.er1 >conftest.err
22016 cat conftest.err >&5
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); } && {
22019 test -z "$ac_c_werror_flag" ||
22020 test ! -s conftest.err
22021 } && test -s conftest.$ac_objext; then
22024 echo "$as_me: failed program was:" >&5
22025 sed 's/^/| /' conftest.$ac_ext >&5
22030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22032 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22033 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22035 # The cast to long int works around a bug in the HP C Compiler
22036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22038 # This bug is HP SR number 8606223364.
22039 { echo "$as_me:$LINENO: checking size of int" >&5
22040 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22041 if test "${ac_cv_sizeof_int+set}" = set; then
22042 echo $ECHO_N "(cached) $ECHO_C" >&6
22044 if test "$cross_compiling" = yes; then
22045 # Depending upon the size, compute the lo and hi bounds.
22046 cat >conftest.$ac_ext <<_ACEOF
22049 cat confdefs.h >>conftest.$ac_ext
22050 cat >>conftest.$ac_ext <<_ACEOF
22051 /* end confdefs.h. */
22052 $ac_includes_default
22053 typedef int ac__type_sizeof_;
22057 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22064 rm -f conftest.$ac_objext
22065 if { (ac_try="$ac_compile"
22066 case "(($ac_try" in
22067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068 *) ac_try_echo=$ac_try;;
22070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071 (eval "$ac_compile") 2>conftest.er1
22073 grep -v '^ *+' conftest.er1 >conftest.err
22075 cat conftest.err >&5
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } && {
22078 test -z "$ac_c_werror_flag" ||
22079 test ! -s conftest.err
22080 } && test -s conftest.$ac_objext; then
22083 cat >conftest.$ac_ext <<_ACEOF
22086 cat confdefs.h >>conftest.$ac_ext
22087 cat >>conftest.$ac_ext <<_ACEOF
22088 /* end confdefs.h. */
22089 $ac_includes_default
22090 typedef int ac__type_sizeof_;
22094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22101 rm -f conftest.$ac_objext
22102 if { (ac_try="$ac_compile"
22103 case "(($ac_try" in
22104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105 *) ac_try_echo=$ac_try;;
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_compile") 2>conftest.er1
22110 grep -v '^ *+' conftest.er1 >conftest.err
22112 cat conftest.err >&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); } && {
22115 test -z "$ac_c_werror_flag" ||
22116 test ! -s conftest.err
22117 } && test -s conftest.$ac_objext; then
22118 ac_hi=$ac_mid; break
22120 echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22123 ac_lo=`expr $ac_mid + 1`
22124 if test $ac_lo -le $ac_mid; then
22128 ac_mid=`expr 2 '*' $ac_mid + 1`
22131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22134 echo "$as_me: failed program was:" >&5
22135 sed 's/^/| /' conftest.$ac_ext >&5
22137 cat >conftest.$ac_ext <<_ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22143 $ac_includes_default
22144 typedef int ac__type_sizeof_;
22148 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22155 rm -f conftest.$ac_objext
22156 if { (ac_try="$ac_compile"
22157 case "(($ac_try" in
22158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159 *) ac_try_echo=$ac_try;;
22161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22162 (eval "$ac_compile") 2>conftest.er1
22164 grep -v '^ *+' conftest.er1 >conftest.err
22166 cat conftest.err >&5
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); } && {
22169 test -z "$ac_c_werror_flag" ||
22170 test ! -s conftest.err
22171 } && test -s conftest.$ac_objext; then
22174 cat >conftest.$ac_ext <<_ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h. */
22180 $ac_includes_default
22181 typedef int ac__type_sizeof_;
22185 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22192 rm -f conftest.$ac_objext
22193 if { (ac_try="$ac_compile"
22194 case "(($ac_try" in
22195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196 *) ac_try_echo=$ac_try;;
22198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22199 (eval "$ac_compile") 2>conftest.er1
22201 grep -v '^ *+' conftest.er1 >conftest.err
22203 cat conftest.err >&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } && {
22206 test -z "$ac_c_werror_flag" ||
22207 test ! -s conftest.err
22208 } && test -s conftest.$ac_objext; then
22209 ac_lo=$ac_mid; break
22211 echo "$as_me: failed program was:" >&5
22212 sed 's/^/| /' conftest.$ac_ext >&5
22214 ac_hi=`expr '(' $ac_mid ')' - 1`
22215 if test $ac_mid -le $ac_hi; then
22219 ac_mid=`expr 2 '*' $ac_mid`
22222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22225 echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22235 # Binary search between lo and hi bounds.
22236 while test "x$ac_lo" != "x$ac_hi"; do
22237 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22238 cat >conftest.$ac_ext <<_ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h. */
22244 $ac_includes_default
22245 typedef int ac__type_sizeof_;
22249 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22256 rm -f conftest.$ac_objext
22257 if { (ac_try="$ac_compile"
22258 case "(($ac_try" in
22259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263 (eval "$ac_compile") 2>conftest.er1
22265 grep -v '^ *+' conftest.er1 >conftest.err
22267 cat conftest.err >&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); } && {
22270 test -z "$ac_c_werror_flag" ||
22271 test ! -s conftest.err
22272 } && test -s conftest.$ac_objext; then
22275 echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22278 ac_lo=`expr '(' $ac_mid ')' + 1`
22281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22284 ?*) ac_cv_sizeof_int=$ac_lo;;
22285 '') if test "$ac_cv_type_int" = yes; then
22286 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22287 See \`config.log' for more details." >&5
22288 echo "$as_me: error: cannot compute sizeof (int)
22289 See \`config.log' for more details." >&2;}
22290 { (exit 77); exit 77; }; }
22296 cat >conftest.$ac_ext <<_ACEOF
22299 cat confdefs.h >>conftest.$ac_ext
22300 cat >>conftest.$ac_ext <<_ACEOF
22301 /* end confdefs.h. */
22302 $ac_includes_default
22303 typedef int ac__type_sizeof_;
22304 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22305 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22307 #include <stdlib.h>
22312 FILE *f = fopen ("conftest.val", "w");
22315 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22317 long int i = longval ();
22318 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22320 fprintf (f, "%ld\n", i);
22324 unsigned long int i = ulongval ();
22325 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22327 fprintf (f, "%lu\n", i);
22329 return ferror (f) || fclose (f) != 0;
22335 rm -f conftest$ac_exeext
22336 if { (ac_try="$ac_link"
22337 case "(($ac_try" in
22338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22339 *) ac_try_echo=$ac_try;;
22341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22342 (eval "$ac_link") 2>&5
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22346 { (case "(($ac_try" in
22347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348 *) ac_try_echo=$ac_try;;
22350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22351 (eval "$ac_try") 2>&5
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); }; }; then
22355 ac_cv_sizeof_int=`cat conftest.val`
22357 echo "$as_me: program exited with status $ac_status" >&5
22358 echo "$as_me: failed program was:" >&5
22359 sed 's/^/| /' conftest.$ac_ext >&5
22361 ( exit $ac_status )
22362 if test "$ac_cv_type_int" = yes; then
22363 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22364 See \`config.log' for more details." >&5
22365 echo "$as_me: error: cannot compute sizeof (int)
22366 See \`config.log' for more details." >&2;}
22367 { (exit 77); exit 77; }; }
22372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22376 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22377 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
22381 cat >>confdefs.h <<_ACEOF
22382 #define SIZEOF_INT $ac_cv_sizeof_int
22386 { echo "$as_me:$LINENO: checking for long" >&5
22387 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22388 if test "${ac_cv_type_long+set}" = set; then
22389 echo $ECHO_N "(cached) $ECHO_C" >&6
22391 cat >conftest.$ac_ext <<_ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h. */
22397 $ac_includes_default
22398 typedef long ac__type_new_;
22402 if ((ac__type_new_ *) 0)
22404 if (sizeof (ac__type_new_))
22410 rm -f conftest.$ac_objext
22411 if { (ac_try="$ac_compile"
22412 case "(($ac_try" in
22413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22414 *) ac_try_echo=$ac_try;;
22416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22417 (eval "$ac_compile") 2>conftest.er1
22419 grep -v '^ *+' conftest.er1 >conftest.err
22421 cat conftest.err >&5
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); } && {
22424 test -z "$ac_c_werror_flag" ||
22425 test ! -s conftest.err
22426 } && test -s conftest.$ac_objext; then
22427 ac_cv_type_long=yes
22429 echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22437 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22438 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22440 # The cast to long int works around a bug in the HP C Compiler
22441 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22442 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22443 # This bug is HP SR number 8606223364.
22444 { echo "$as_me:$LINENO: checking size of long" >&5
22445 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22446 if test "${ac_cv_sizeof_long+set}" = set; then
22447 echo $ECHO_N "(cached) $ECHO_C" >&6
22449 if test "$cross_compiling" = yes; then
22450 # Depending upon the size, compute the lo and hi bounds.
22451 cat >conftest.$ac_ext <<_ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h. */
22457 $ac_includes_default
22458 typedef long ac__type_sizeof_;
22462 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22469 rm -f conftest.$ac_objext
22470 if { (ac_try="$ac_compile"
22471 case "(($ac_try" in
22472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473 *) ac_try_echo=$ac_try;;
22475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22476 (eval "$ac_compile") 2>conftest.er1
22478 grep -v '^ *+' conftest.er1 >conftest.err
22480 cat conftest.err >&5
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); } && {
22483 test -z "$ac_c_werror_flag" ||
22484 test ! -s conftest.err
22485 } && test -s conftest.$ac_objext; then
22488 cat >conftest.$ac_ext <<_ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h. */
22494 $ac_includes_default
22495 typedef long ac__type_sizeof_;
22499 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22506 rm -f conftest.$ac_objext
22507 if { (ac_try="$ac_compile"
22508 case "(($ac_try" in
22509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510 *) ac_try_echo=$ac_try;;
22512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22513 (eval "$ac_compile") 2>conftest.er1
22515 grep -v '^ *+' conftest.er1 >conftest.err
22517 cat conftest.err >&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); } && {
22520 test -z "$ac_c_werror_flag" ||
22521 test ! -s conftest.err
22522 } && test -s conftest.$ac_objext; then
22523 ac_hi=$ac_mid; break
22525 echo "$as_me: failed program was:" >&5
22526 sed 's/^/| /' conftest.$ac_ext >&5
22528 ac_lo=`expr $ac_mid + 1`
22529 if test $ac_lo -le $ac_mid; then
22533 ac_mid=`expr 2 '*' $ac_mid + 1`
22536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539 echo "$as_me: failed program was:" >&5
22540 sed 's/^/| /' conftest.$ac_ext >&5
22542 cat >conftest.$ac_ext <<_ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22548 $ac_includes_default
22549 typedef long ac__type_sizeof_;
22553 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22560 rm -f conftest.$ac_objext
22561 if { (ac_try="$ac_compile"
22562 case "(($ac_try" in
22563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564 *) ac_try_echo=$ac_try;;
22566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22567 (eval "$ac_compile") 2>conftest.er1
22569 grep -v '^ *+' conftest.er1 >conftest.err
22571 cat conftest.err >&5
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); } && {
22574 test -z "$ac_c_werror_flag" ||
22575 test ! -s conftest.err
22576 } && test -s conftest.$ac_objext; then
22579 cat >conftest.$ac_ext <<_ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h. */
22585 $ac_includes_default
22586 typedef long ac__type_sizeof_;
22590 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22597 rm -f conftest.$ac_objext
22598 if { (ac_try="$ac_compile"
22599 case "(($ac_try" in
22600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601 *) ac_try_echo=$ac_try;;
22603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604 (eval "$ac_compile") 2>conftest.er1
22606 grep -v '^ *+' conftest.er1 >conftest.err
22608 cat conftest.err >&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } && {
22611 test -z "$ac_c_werror_flag" ||
22612 test ! -s conftest.err
22613 } && test -s conftest.$ac_objext; then
22614 ac_lo=$ac_mid; break
22616 echo "$as_me: failed program was:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22619 ac_hi=`expr '(' $ac_mid ')' - 1`
22620 if test $ac_mid -le $ac_hi; then
22624 ac_mid=`expr 2 '*' $ac_mid`
22627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22630 echo "$as_me: failed program was:" >&5
22631 sed 's/^/| /' conftest.$ac_ext >&5
22636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22640 # Binary search between lo and hi bounds.
22641 while test "x$ac_lo" != "x$ac_hi"; do
22642 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22643 cat >conftest.$ac_ext <<_ACEOF
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h. */
22649 $ac_includes_default
22650 typedef long ac__type_sizeof_;
22654 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22661 rm -f conftest.$ac_objext
22662 if { (ac_try="$ac_compile"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668 (eval "$ac_compile") 2>conftest.er1
22670 grep -v '^ *+' conftest.er1 >conftest.err
22672 cat conftest.err >&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } && {
22675 test -z "$ac_c_werror_flag" ||
22676 test ! -s conftest.err
22677 } && test -s conftest.$ac_objext; then
22680 echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22683 ac_lo=`expr '(' $ac_mid ')' + 1`
22686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22689 ?*) ac_cv_sizeof_long=$ac_lo;;
22690 '') if test "$ac_cv_type_long" = yes; then
22691 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22692 See \`config.log' for more details." >&5
22693 echo "$as_me: error: cannot compute sizeof (long)
22694 See \`config.log' for more details." >&2;}
22695 { (exit 77); exit 77; }; }
22697 ac_cv_sizeof_long=0
22701 cat >conftest.$ac_ext <<_ACEOF
22704 cat confdefs.h >>conftest.$ac_ext
22705 cat >>conftest.$ac_ext <<_ACEOF
22706 /* end confdefs.h. */
22707 $ac_includes_default
22708 typedef long ac__type_sizeof_;
22709 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22710 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22712 #include <stdlib.h>
22717 FILE *f = fopen ("conftest.val", "w");
22720 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22722 long int i = longval ();
22723 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22725 fprintf (f, "%ld\n", i);
22729 unsigned long int i = ulongval ();
22730 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22732 fprintf (f, "%lu\n", i);
22734 return ferror (f) || fclose (f) != 0;
22740 rm -f conftest$ac_exeext
22741 if { (ac_try="$ac_link"
22742 case "(($ac_try" in
22743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744 *) ac_try_echo=$ac_try;;
22746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747 (eval "$ac_link") 2>&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22751 { (case "(($ac_try" in
22752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753 *) ac_try_echo=$ac_try;;
22755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756 (eval "$ac_try") 2>&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); }; }; then
22760 ac_cv_sizeof_long=`cat conftest.val`
22762 echo "$as_me: program exited with status $ac_status" >&5
22763 echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22766 ( exit $ac_status )
22767 if test "$ac_cv_type_long" = yes; then
22768 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22769 See \`config.log' for more details." >&5
22770 echo "$as_me: error: cannot compute sizeof (long)
22771 See \`config.log' for more details." >&2;}
22772 { (exit 77); exit 77; }; }
22774 ac_cv_sizeof_long=0
22777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22781 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22782 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22786 cat >>confdefs.h <<_ACEOF
22787 #define SIZEOF_LONG $ac_cv_sizeof_long
22791 { echo "$as_me:$LINENO: checking for 32-bit integer type" >&5
22792 echo $ECHO_N "checking for 32-bit integer type... $ECHO_C" >&6; }
22793 if test "$ac_cv_sizeof_long" = 4; then
22795 elif test "$ac_cv_sizeof_int" = 4; then
22797 elif test "$ac_cv_sizeof_short" = 4; then
22800 { echo "$as_me:$LINENO: WARNING: Can't find 32-bit type, using long" >&5
22801 echo "$as_me: WARNING: Can't find 32-bit type, using long" >&2;}
22804 cat >>confdefs.h <<_ACEOF
22805 #define ZEPHYR_INT32 ${int32}
22808 { echo "$as_me:$LINENO: result: ${int32}" >&5
22809 echo "${ECHO_T}${int32}" >&6; }
22812 { echo "$as_me:$LINENO: checking for wslen in -lw" >&5
22813 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6; }
22814 if test "${ac_cv_lib_w_wslen+set}" = set; then
22815 echo $ECHO_N "(cached) $ECHO_C" >&6
22817 ac_check_lib_save_LIBS=$LIBS
22819 cat >conftest.$ac_ext <<_ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h. */
22826 /* Override any GCC internal prototype to avoid an error.
22827 Use char because int might match the return type of a GCC
22828 builtin and then its argument prototype would still apply. */
22841 rm -f conftest.$ac_objext conftest$ac_exeext
22842 if { (ac_try="$ac_link"
22843 case "(($ac_try" in
22844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22845 *) ac_try_echo=$ac_try;;
22847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22848 (eval "$ac_link") 2>conftest.er1
22850 grep -v '^ *+' conftest.er1 >conftest.err
22852 cat conftest.err >&5
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } && {
22855 test -z "$ac_c_werror_flag" ||
22856 test ! -s conftest.err
22857 } && test -s conftest$ac_exeext &&
22858 $as_test_x conftest$ac_exeext; then
22859 ac_cv_lib_w_wslen=yes
22861 echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.$ac_ext >&5
22864 ac_cv_lib_w_wslen=no
22867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22868 conftest$ac_exeext conftest.$ac_ext
22869 LIBS=$ac_check_lib_save_LIBS
22871 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
22872 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6; }
22873 if test $ac_cv_lib_w_wslen = yes; then
22874 cat >>confdefs.h <<_ACEOF
22875 #define HAVE_LIBW 1
22883 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22884 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
22885 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22886 echo $ECHO_N "(cached) $ECHO_C" >&6
22888 ac_check_lib_save_LIBS=$LIBS
22890 cat >conftest.$ac_ext <<_ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h. */
22897 /* Override any GCC internal prototype to avoid an error.
22898 Use char because int might match the return type of a GCC
22899 builtin and then its argument prototype would still apply. */
22912 rm -f conftest.$ac_objext conftest$ac_exeext
22913 if { (ac_try="$ac_link"
22914 case "(($ac_try" in
22915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916 *) ac_try_echo=$ac_try;;
22918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22919 (eval "$ac_link") 2>conftest.er1
22921 grep -v '^ *+' conftest.er1 >conftest.err
22923 cat conftest.err >&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); } && {
22926 test -z "$ac_c_werror_flag" ||
22927 test ! -s conftest.err
22928 } && test -s conftest$ac_exeext &&
22929 $as_test_x conftest$ac_exeext; then
22930 ac_cv_lib_dl_dlopen=yes
22932 echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22935 ac_cv_lib_dl_dlopen=no
22938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22939 conftest$ac_exeext conftest.$ac_ext
22940 LIBS=$ac_check_lib_save_LIBS
22942 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22943 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
22944 if test $ac_cv_lib_dl_dlopen = yes; then
22945 cat >>confdefs.h <<_ACEOF
22946 #define HAVE_LIBDL 1
22954 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
22955 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
22956 if test "${ac_cv_search_gethostbyname+set}" = set; then
22957 echo $ECHO_N "(cached) $ECHO_C" >&6
22959 ac_func_search_save_LIBS=$LIBS
22960 cat >conftest.$ac_ext <<_ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h. */
22967 /* Override any GCC internal prototype to avoid an error.
22968 Use char because int might match the return type of a GCC
22969 builtin and then its argument prototype would still apply. */
22973 char gethostbyname ();
22977 return gethostbyname ();
22982 for ac_lib in '' nsl; do
22983 if test -z "$ac_lib"; then
22984 ac_res="none required"
22987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22989 rm -f conftest.$ac_objext conftest$ac_exeext
22990 if { (ac_try="$ac_link"
22991 case "(($ac_try" in
22992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22993 *) ac_try_echo=$ac_try;;
22995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22996 (eval "$ac_link") 2>conftest.er1
22998 grep -v '^ *+' conftest.er1 >conftest.err
23000 cat conftest.err >&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } && {
23003 test -z "$ac_c_werror_flag" ||
23004 test ! -s conftest.err
23005 } && test -s conftest$ac_exeext &&
23006 $as_test_x conftest$ac_exeext; then
23007 ac_cv_search_gethostbyname=$ac_res
23009 echo "$as_me: failed program was:" >&5
23010 sed 's/^/| /' conftest.$ac_ext >&5
23015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23017 if test "${ac_cv_search_gethostbyname+set}" = set; then
23021 if test "${ac_cv_search_gethostbyname+set}" = set; then
23024 ac_cv_search_gethostbyname=no
23026 rm conftest.$ac_ext
23027 LIBS=$ac_func_search_save_LIBS
23029 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
23030 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
23031 ac_res=$ac_cv_search_gethostbyname
23032 if test "$ac_res" != no; then
23033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23037 { echo "$as_me:$LINENO: checking for library containing socket" >&5
23038 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
23039 if test "${ac_cv_search_socket+set}" = set; then
23040 echo $ECHO_N "(cached) $ECHO_C" >&6
23042 ac_func_search_save_LIBS=$LIBS
23043 cat >conftest.$ac_ext <<_ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h. */
23050 /* Override any GCC internal prototype to avoid an error.
23051 Use char because int might match the return type of a GCC
23052 builtin and then its argument prototype would still apply. */
23065 for ac_lib in '' socket; do
23066 if test -z "$ac_lib"; then
23067 ac_res="none required"
23070 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23072 rm -f conftest.$ac_objext conftest$ac_exeext
23073 if { (ac_try="$ac_link"
23074 case "(($ac_try" in
23075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23076 *) ac_try_echo=$ac_try;;
23078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23079 (eval "$ac_link") 2>conftest.er1
23081 grep -v '^ *+' conftest.er1 >conftest.err
23083 cat conftest.err >&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } && {
23086 test -z "$ac_c_werror_flag" ||
23087 test ! -s conftest.err
23088 } && test -s conftest$ac_exeext &&
23089 $as_test_x conftest$ac_exeext; then
23090 ac_cv_search_socket=$ac_res
23092 echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23100 if test "${ac_cv_search_socket+set}" = set; then
23104 if test "${ac_cv_search_socket+set}" = set; then
23107 ac_cv_search_socket=no
23109 rm conftest.$ac_ext
23110 LIBS=$ac_func_search_save_LIBS
23112 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
23113 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
23114 ac_res=$ac_cv_search_socket
23115 if test "$ac_res" != no; then
23116 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23121 # Hesiod needs -lresolv on Sun systems for res_send.
23122 if test "$hesiod" != "no"; then
23124 { echo "$as_me:$LINENO: checking for strerror in -l44bsd" >&5
23125 echo $ECHO_N "checking for strerror in -l44bsd... $ECHO_C" >&6; }
23126 if test "${ac_cv_lib_44bsd_strerror+set}" = set; then
23127 echo $ECHO_N "(cached) $ECHO_C" >&6
23129 ac_check_lib_save_LIBS=$LIBS
23130 LIBS="-l44bsd $LIBS"
23131 cat >conftest.$ac_ext <<_ACEOF
23134 cat confdefs.h >>conftest.$ac_ext
23135 cat >>conftest.$ac_ext <<_ACEOF
23136 /* end confdefs.h. */
23138 /* Override any GCC internal prototype to avoid an error.
23139 Use char because int might match the return type of a GCC
23140 builtin and then its argument prototype would still apply. */
23148 return strerror ();
23153 rm -f conftest.$ac_objext conftest$ac_exeext
23154 if { (ac_try="$ac_link"
23155 case "(($ac_try" in
23156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157 *) ac_try_echo=$ac_try;;
23159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23160 (eval "$ac_link") 2>conftest.er1
23162 grep -v '^ *+' conftest.er1 >conftest.err
23164 cat conftest.err >&5
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); } && {
23167 test -z "$ac_c_werror_flag" ||
23168 test ! -s conftest.err
23169 } && test -s conftest$ac_exeext &&
23170 $as_test_x conftest$ac_exeext; then
23171 ac_cv_lib_44bsd_strerror=yes
23173 echo "$as_me: failed program was:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23176 ac_cv_lib_44bsd_strerror=no
23179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23180 conftest$ac_exeext conftest.$ac_ext
23181 LIBS=$ac_check_lib_save_LIBS
23183 { echo "$as_me:$LINENO: result: $ac_cv_lib_44bsd_strerror" >&5
23184 echo "${ECHO_T}$ac_cv_lib_44bsd_strerror" >&6; }
23185 if test $ac_cv_lib_44bsd_strerror = yes; then
23186 cat >>confdefs.h <<_ACEOF
23187 #define HAVE_LIB44BSD 1
23190 LIBS="-l44bsd $LIBS"
23195 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
23196 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
23197 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
23198 echo $ECHO_N "(cached) $ECHO_C" >&6
23200 ac_check_lib_save_LIBS=$LIBS
23201 LIBS="-lresolv $LIBS"
23202 cat >conftest.$ac_ext <<_ACEOF
23205 cat confdefs.h >>conftest.$ac_ext
23206 cat >>conftest.$ac_ext <<_ACEOF
23207 /* end confdefs.h. */
23209 /* Override any GCC internal prototype to avoid an error.
23210 Use char because int might match the return type of a GCC
23211 builtin and then its argument prototype would still apply. */
23219 return res_send ();
23224 rm -f conftest.$ac_objext conftest$ac_exeext
23225 if { (ac_try="$ac_link"
23226 case "(($ac_try" in
23227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23228 *) ac_try_echo=$ac_try;;
23230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23231 (eval "$ac_link") 2>conftest.er1
23233 grep -v '^ *+' conftest.er1 >conftest.err
23235 cat conftest.err >&5
23236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237 (exit $ac_status); } && {
23238 test -z "$ac_c_werror_flag" ||
23239 test ! -s conftest.err
23240 } && test -s conftest$ac_exeext &&
23241 $as_test_x conftest$ac_exeext; then
23242 ac_cv_lib_resolv_res_send=yes
23244 echo "$as_me: failed program was:" >&5
23245 sed 's/^/| /' conftest.$ac_ext >&5
23247 ac_cv_lib_resolv_res_send=no
23250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23251 conftest$ac_exeext conftest.$ac_ext
23252 LIBS=$ac_check_lib_save_LIBS
23254 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
23255 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
23256 if test $ac_cv_lib_resolv_res_send = yes; then
23257 cat >>confdefs.h <<_ACEOF
23258 #define HAVE_LIBRESOLV 1
23261 LIBS="-lresolv $LIBS"
23266 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
23267 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
23268 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
23269 echo $ECHO_N "(cached) $ECHO_C" >&6
23271 ac_check_lib_save_LIBS=$LIBS
23272 LIBS="-lresolv $LIBS"
23273 cat >conftest.$ac_ext <<_ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h. */
23280 /* Override any GCC internal prototype to avoid an error.
23281 Use char because int might match the return type of a GCC
23282 builtin and then its argument prototype would still apply. */
23286 char __res_send ();
23290 return __res_send ();
23295 rm -f conftest.$ac_objext conftest$ac_exeext
23296 if { (ac_try="$ac_link"
23297 case "(($ac_try" in
23298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23299 *) ac_try_echo=$ac_try;;
23301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302 (eval "$ac_link") 2>conftest.er1
23304 grep -v '^ *+' conftest.er1 >conftest.err
23306 cat conftest.err >&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); } && {
23309 test -z "$ac_c_werror_flag" ||
23310 test ! -s conftest.err
23311 } && test -s conftest$ac_exeext &&
23312 $as_test_x conftest$ac_exeext; then
23313 ac_cv_lib_resolv___res_send=yes
23315 echo "$as_me: failed program was:" >&5
23316 sed 's/^/| /' conftest.$ac_ext >&5
23318 ac_cv_lib_resolv___res_send=no
23321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23322 conftest$ac_exeext conftest.$ac_ext
23323 LIBS=$ac_check_lib_save_LIBS
23325 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
23326 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
23327 if test $ac_cv_lib_resolv___res_send = yes; then
23328 cat >>confdefs.h <<_ACEOF
23329 #define HAVE_LIBRESOLV 1
23332 LIBS="-lresolv $LIBS"
23338 { echo "$as_me:$LINENO: checking for tgetstr in -lcurses" >&5
23339 echo $ECHO_N "checking for tgetstr in -lcurses... $ECHO_C" >&6; }
23340 if test "${ac_cv_lib_curses_tgetstr+set}" = set; then
23341 echo $ECHO_N "(cached) $ECHO_C" >&6
23343 ac_check_lib_save_LIBS=$LIBS
23344 LIBS="-lcurses $LIBS"
23345 cat >conftest.$ac_ext <<_ACEOF
23348 cat confdefs.h >>conftest.$ac_ext
23349 cat >>conftest.$ac_ext <<_ACEOF
23350 /* end confdefs.h. */
23352 /* Override any GCC internal prototype to avoid an error.
23353 Use char because int might match the return type of a GCC
23354 builtin and then its argument prototype would still apply. */
23367 rm -f conftest.$ac_objext conftest$ac_exeext
23368 if { (ac_try="$ac_link"
23369 case "(($ac_try" in
23370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23371 *) ac_try_echo=$ac_try;;
23373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23374 (eval "$ac_link") 2>conftest.er1
23376 grep -v '^ *+' conftest.er1 >conftest.err
23378 cat conftest.err >&5
23379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); } && {
23381 test -z "$ac_c_werror_flag" ||
23382 test ! -s conftest.err
23383 } && test -s conftest$ac_exeext &&
23384 $as_test_x conftest$ac_exeext; then
23385 ac_cv_lib_curses_tgetstr=yes
23387 echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23390 ac_cv_lib_curses_tgetstr=no
23393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23394 conftest$ac_exeext conftest.$ac_ext
23395 LIBS=$ac_check_lib_save_LIBS
23397 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetstr" >&5
23398 echo "${ECHO_T}$ac_cv_lib_curses_tgetstr" >&6; }
23399 if test $ac_cv_lib_curses_tgetstr = yes; then
23405 { echo "$as_me:$LINENO: checking for srcsrpy in -lsrc" >&5
23406 echo $ECHO_N "checking for srcsrpy in -lsrc... $ECHO_C" >&6; }
23407 if test "${ac_cv_lib_src_srcsrpy+set}" = set; then
23408 echo $ECHO_N "(cached) $ECHO_C" >&6
23410 ac_check_lib_save_LIBS=$LIBS
23412 cat >conftest.$ac_ext <<_ACEOF
23415 cat confdefs.h >>conftest.$ac_ext
23416 cat >>conftest.$ac_ext <<_ACEOF
23417 /* end confdefs.h. */
23419 /* Override any GCC internal prototype to avoid an error.
23420 Use char because int might match the return type of a GCC
23421 builtin and then its argument prototype would still apply. */
23434 rm -f conftest.$ac_objext conftest$ac_exeext
23435 if { (ac_try="$ac_link"
23436 case "(($ac_try" in
23437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23438 *) ac_try_echo=$ac_try;;
23440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23441 (eval "$ac_link") 2>conftest.er1
23443 grep -v '^ *+' conftest.er1 >conftest.err
23445 cat conftest.err >&5
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); } && {
23448 test -z "$ac_c_werror_flag" ||
23449 test ! -s conftest.err
23450 } && test -s conftest$ac_exeext &&
23451 $as_test_x conftest$ac_exeext; then
23452 ac_cv_lib_src_srcsrpy=yes
23454 echo "$as_me: failed program was:" >&5
23455 sed 's/^/| /' conftest.$ac_ext >&5
23457 ac_cv_lib_src_srcsrpy=no
23460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23461 conftest$ac_exeext conftest.$ac_ext
23462 LIBS=$ac_check_lib_save_LIBS
23464 { echo "$as_me:$LINENO: result: $ac_cv_lib_src_srcsrpy" >&5
23465 echo "${ECHO_T}$ac_cv_lib_src_srcsrpy" >&6; }
23466 if test $ac_cv_lib_src_srcsrpy = yes; then
23467 SLIB=-lsrc; cat >>confdefs.h <<\_ACEOF
23478 # Check whether --with-krb4 was given.
23479 if test "${with_krb4+set}" = set; then
23480 withval=$with_krb4; krb4="$withval"
23485 if test "$krb4" != no; then
23486 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23487 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23488 if test "${ac_cv_func_gethostbyname+set}" = set; then
23489 echo $ECHO_N "(cached) $ECHO_C" >&6
23491 cat >conftest.$ac_ext <<_ACEOF
23494 cat confdefs.h >>conftest.$ac_ext
23495 cat >>conftest.$ac_ext <<_ACEOF
23496 /* end confdefs.h. */
23497 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23499 #define gethostbyname innocuous_gethostbyname
23501 /* System header to define __stub macros and hopefully few prototypes,
23502 which can conflict with char gethostbyname (); below.
23503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23504 <limits.h> exists even on freestanding compilers. */
23507 # include <limits.h>
23509 # include <assert.h>
23512 #undef gethostbyname
23514 /* Override any GCC internal prototype to avoid an error.
23515 Use char because int might match the return type of a GCC
23516 builtin and then its argument prototype would still apply. */
23520 char gethostbyname ();
23521 /* The GNU C library defines this for functions which it implements
23522 to always fail with ENOSYS. Some functions are actually named
23523 something starting with __ and the normal name is an alias. */
23524 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23531 return gethostbyname ();
23536 rm -f conftest.$ac_objext conftest$ac_exeext
23537 if { (ac_try="$ac_link"
23538 case "(($ac_try" in
23539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23540 *) ac_try_echo=$ac_try;;
23542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23543 (eval "$ac_link") 2>conftest.er1
23545 grep -v '^ *+' conftest.er1 >conftest.err
23547 cat conftest.err >&5
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); } && {
23550 test -z "$ac_c_werror_flag" ||
23551 test ! -s conftest.err
23552 } && test -s conftest$ac_exeext &&
23553 $as_test_x conftest$ac_exeext; then
23554 ac_cv_func_gethostbyname=yes
23556 echo "$as_me: failed program was:" >&5
23557 sed 's/^/| /' conftest.$ac_ext >&5
23559 ac_cv_func_gethostbyname=no
23562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23563 conftest$ac_exeext conftest.$ac_ext
23565 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23566 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23567 if test $ac_cv_func_gethostbyname = yes; then
23571 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23572 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23573 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23574 echo $ECHO_N "(cached) $ECHO_C" >&6
23576 ac_check_lib_save_LIBS=$LIBS
23578 cat >conftest.$ac_ext <<_ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23585 /* Override any GCC internal prototype to avoid an error.
23586 Use char because int might match the return type of a GCC
23587 builtin and then its argument prototype would still apply. */
23591 char gethostbyname ();
23595 return gethostbyname ();
23600 rm -f conftest.$ac_objext conftest$ac_exeext
23601 if { (ac_try="$ac_link"
23602 case "(($ac_try" in
23603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23604 *) ac_try_echo=$ac_try;;
23606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23607 (eval "$ac_link") 2>conftest.er1
23609 grep -v '^ *+' conftest.er1 >conftest.err
23611 cat conftest.err >&5
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } && {
23614 test -z "$ac_c_werror_flag" ||
23615 test ! -s conftest.err
23616 } && test -s conftest$ac_exeext &&
23617 $as_test_x conftest$ac_exeext; then
23618 ac_cv_lib_nsl_gethostbyname=yes
23620 echo "$as_me: failed program was:" >&5
23621 sed 's/^/| /' conftest.$ac_ext >&5
23623 ac_cv_lib_nsl_gethostbyname=no
23626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23627 conftest$ac_exeext conftest.$ac_ext
23628 LIBS=$ac_check_lib_save_LIBS
23630 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23631 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23632 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23633 cat >>confdefs.h <<_ACEOF
23634 #define HAVE_LIBNSL 1
23643 { echo "$as_me:$LINENO: checking for socket" >&5
23644 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
23645 if test "${ac_cv_func_socket+set}" = set; then
23646 echo $ECHO_N "(cached) $ECHO_C" >&6
23648 cat >conftest.$ac_ext <<_ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23654 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23656 #define socket innocuous_socket
23658 /* System header to define __stub macros and hopefully few prototypes,
23659 which can conflict with char socket (); below.
23660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23661 <limits.h> exists even on freestanding compilers. */
23664 # include <limits.h>
23666 # include <assert.h>
23671 /* Override any GCC internal prototype to avoid an error.
23672 Use char because int might match the return type of a GCC
23673 builtin and then its argument prototype would still apply. */
23678 /* The GNU C library defines this for functions which it implements
23679 to always fail with ENOSYS. Some functions are actually named
23680 something starting with __ and the normal name is an alias. */
23681 #if defined __stub_socket || defined __stub___socket
23693 rm -f conftest.$ac_objext conftest$ac_exeext
23694 if { (ac_try="$ac_link"
23695 case "(($ac_try" in
23696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23697 *) ac_try_echo=$ac_try;;
23699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23700 (eval "$ac_link") 2>conftest.er1
23702 grep -v '^ *+' conftest.er1 >conftest.err
23704 cat conftest.err >&5
23705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706 (exit $ac_status); } && {
23707 test -z "$ac_c_werror_flag" ||
23708 test ! -s conftest.err
23709 } && test -s conftest$ac_exeext &&
23710 $as_test_x conftest$ac_exeext; then
23711 ac_cv_func_socket=yes
23713 echo "$as_me: failed program was:" >&5
23714 sed 's/^/| /' conftest.$ac_ext >&5
23716 ac_cv_func_socket=no
23719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23720 conftest$ac_exeext conftest.$ac_ext
23722 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23723 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
23724 if test $ac_cv_func_socket = yes; then
23728 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
23729 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
23730 if test "${ac_cv_lib_socket_socket+set}" = set; then
23731 echo $ECHO_N "(cached) $ECHO_C" >&6
23733 ac_check_lib_save_LIBS=$LIBS
23734 LIBS="-lsocket $LIBS"
23735 cat >conftest.$ac_ext <<_ACEOF
23738 cat confdefs.h >>conftest.$ac_ext
23739 cat >>conftest.$ac_ext <<_ACEOF
23740 /* end confdefs.h. */
23742 /* Override any GCC internal prototype to avoid an error.
23743 Use char because int might match the return type of a GCC
23744 builtin and then its argument prototype would still apply. */
23757 rm -f conftest.$ac_objext conftest$ac_exeext
23758 if { (ac_try="$ac_link"
23759 case "(($ac_try" in
23760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23761 *) ac_try_echo=$ac_try;;
23763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23764 (eval "$ac_link") 2>conftest.er1
23766 grep -v '^ *+' conftest.er1 >conftest.err
23768 cat conftest.err >&5
23769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); } && {
23771 test -z "$ac_c_werror_flag" ||
23772 test ! -s conftest.err
23773 } && test -s conftest$ac_exeext &&
23774 $as_test_x conftest$ac_exeext; then
23775 ac_cv_lib_socket_socket=yes
23777 echo "$as_me: failed program was:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23780 ac_cv_lib_socket_socket=no
23783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23784 conftest$ac_exeext conftest.$ac_ext
23785 LIBS=$ac_check_lib_save_LIBS
23787 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
23788 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
23789 if test $ac_cv_lib_socket_socket = yes; then
23790 cat >>confdefs.h <<_ACEOF
23791 #define HAVE_LIBSOCKET 1
23794 LIBS="-lsocket $LIBS"
23801 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
23802 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
23803 if test "${ac_cv_lib_gen_compile+set}" = set; then
23804 echo $ECHO_N "(cached) $ECHO_C" >&6
23806 ac_check_lib_save_LIBS=$LIBS
23808 cat >conftest.$ac_ext <<_ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23815 /* Override any GCC internal prototype to avoid an error.
23816 Use char because int might match the return type of a GCC
23817 builtin and then its argument prototype would still apply. */
23830 rm -f conftest.$ac_objext conftest$ac_exeext
23831 if { (ac_try="$ac_link"
23832 case "(($ac_try" in
23833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23834 *) ac_try_echo=$ac_try;;
23836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23837 (eval "$ac_link") 2>conftest.er1
23839 grep -v '^ *+' conftest.er1 >conftest.err
23841 cat conftest.err >&5
23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); } && {
23844 test -z "$ac_c_werror_flag" ||
23845 test ! -s conftest.err
23846 } && test -s conftest$ac_exeext &&
23847 $as_test_x conftest$ac_exeext; then
23848 ac_cv_lib_gen_compile=yes
23850 echo "$as_me: failed program was:" >&5
23851 sed 's/^/| /' conftest.$ac_ext >&5
23853 ac_cv_lib_gen_compile=no
23856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23857 conftest$ac_exeext conftest.$ac_ext
23858 LIBS=$ac_check_lib_save_LIBS
23860 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
23861 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
23862 if test $ac_cv_lib_gen_compile = yes; then
23863 cat >>confdefs.h <<_ACEOF
23864 #define HAVE_LIBGEN 1
23871 if test "$krb4" != yes; then
23872 CPPFLAGS="$CPPFLAGS -I$krb4/include"
23873 if test -d "$krb4/include/kerberosIV"; then
23874 CPPFLAGS="$CPPFLAGS -I$krb4/include/kerberosIV"
23876 LDFLAGS="$LDFLAGS -L$krb4/lib"
23878 { echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb4" >&5
23879 echo $ECHO_N "checking for krb_rd_req in -lkrb4... $ECHO_C" >&6; }
23880 if test "${ac_cv_lib_krb4_krb_rd_req+set}" = set; then
23881 echo $ECHO_N "(cached) $ECHO_C" >&6
23883 ac_check_lib_save_LIBS=$LIBS
23884 LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err $LIBS"
23885 cat >conftest.$ac_ext <<_ACEOF
23888 cat confdefs.h >>conftest.$ac_ext
23889 cat >>conftest.$ac_ext <<_ACEOF
23890 /* end confdefs.h. */
23892 /* Override any GCC internal prototype to avoid an error.
23893 Use char because int might match the return type of a GCC
23894 builtin and then its argument prototype would still apply. */
23898 char krb_rd_req ();
23902 return krb_rd_req ();
23907 rm -f conftest.$ac_objext conftest$ac_exeext
23908 if { (ac_try="$ac_link"
23909 case "(($ac_try" in
23910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911 *) ac_try_echo=$ac_try;;
23913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23914 (eval "$ac_link") 2>conftest.er1
23916 grep -v '^ *+' conftest.er1 >conftest.err
23918 cat conftest.err >&5
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); } && {
23921 test -z "$ac_c_werror_flag" ||
23922 test ! -s conftest.err
23923 } && test -s conftest$ac_exeext &&
23924 $as_test_x conftest$ac_exeext; then
23925 ac_cv_lib_krb4_krb_rd_req=yes
23927 echo "$as_me: failed program was:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23930 ac_cv_lib_krb4_krb_rd_req=no
23933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23934 conftest$ac_exeext conftest.$ac_ext
23935 LIBS=$ac_check_lib_save_LIBS
23937 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_rd_req" >&5
23938 echo "${ECHO_T}$ac_cv_lib_krb4_krb_rd_req" >&6; }
23939 if test $ac_cv_lib_krb4_krb_rd_req = yes; then
23940 KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
23942 { echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb" >&5
23943 echo $ECHO_N "checking for krb_rd_req in -lkrb... $ECHO_C" >&6; }
23944 if test "${ac_cv_lib_krb_krb_rd_req+set}" = set; then
23945 echo $ECHO_N "(cached) $ECHO_C" >&6
23947 ac_check_lib_save_LIBS=$LIBS
23948 LIBS="-lkrb -ldes $LIBS"
23949 cat >conftest.$ac_ext <<_ACEOF
23952 cat confdefs.h >>conftest.$ac_ext
23953 cat >>conftest.$ac_ext <<_ACEOF
23954 /* end confdefs.h. */
23956 /* Override any GCC internal prototype to avoid an error.
23957 Use char because int might match the return type of a GCC
23958 builtin and then its argument prototype would still apply. */
23962 char krb_rd_req ();
23966 return krb_rd_req ();
23971 rm -f conftest.$ac_objext conftest$ac_exeext
23972 if { (ac_try="$ac_link"
23973 case "(($ac_try" in
23974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975 *) ac_try_echo=$ac_try;;
23977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978 (eval "$ac_link") 2>conftest.er1
23980 grep -v '^ *+' conftest.er1 >conftest.err
23982 cat conftest.err >&5
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); } && {
23985 test -z "$ac_c_werror_flag" ||
23986 test ! -s conftest.err
23987 } && test -s conftest$ac_exeext &&
23988 $as_test_x conftest$ac_exeext; then
23989 ac_cv_lib_krb_krb_rd_req=yes
23991 echo "$as_me: failed program was:" >&5
23992 sed 's/^/| /' conftest.$ac_ext >&5
23994 ac_cv_lib_krb_krb_rd_req=no
23997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23998 conftest$ac_exeext conftest.$ac_ext
23999 LIBS=$ac_check_lib_save_LIBS
24001 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_rd_req" >&5
24002 echo "${ECHO_T}$ac_cv_lib_krb_krb_rd_req" >&6; }
24003 if test $ac_cv_lib_krb_krb_rd_req = yes; then
24004 KRB4_LIBS="-lkrb -ldes"
24006 { { echo "$as_me:$LINENO: error: Kerberos 4 libraries not found" >&5
24007 echo "$as_me: error: Kerberos 4 libraries not found" >&2;}
24008 { (exit 1); exit 1; }; }
24013 cat >>confdefs.h <<\_ACEOF
24014 #define HAVE_KRB4 1
24020 # Check whether --with-krb5 was given.
24021 if test "${with_krb5+set}" = set; then
24022 withval=$with_krb5; krb5="$withval"
24027 if test "$krb5" != no; then
24028 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
24029 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
24030 if test "${ac_cv_search_gethostbyname+set}" = set; then
24031 echo $ECHO_N "(cached) $ECHO_C" >&6
24033 ac_func_search_save_LIBS=$LIBS
24034 cat >conftest.$ac_ext <<_ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h. */
24041 /* Override any GCC internal prototype to avoid an error.
24042 Use char because int might match the return type of a GCC
24043 builtin and then its argument prototype would still apply. */
24047 char gethostbyname ();
24051 return gethostbyname ();
24056 for ac_lib in '' nsl; do
24057 if test -z "$ac_lib"; then
24058 ac_res="none required"
24061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24063 rm -f conftest.$ac_objext conftest$ac_exeext
24064 if { (ac_try="$ac_link"
24065 case "(($ac_try" in
24066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24067 *) ac_try_echo=$ac_try;;
24069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24070 (eval "$ac_link") 2>conftest.er1
24072 grep -v '^ *+' conftest.er1 >conftest.err
24074 cat conftest.err >&5
24075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076 (exit $ac_status); } && {
24077 test -z "$ac_c_werror_flag" ||
24078 test ! -s conftest.err
24079 } && test -s conftest$ac_exeext &&
24080 $as_test_x conftest$ac_exeext; then
24081 ac_cv_search_gethostbyname=$ac_res
24083 echo "$as_me: failed program was:" >&5
24084 sed 's/^/| /' conftest.$ac_ext >&5
24089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24091 if test "${ac_cv_search_gethostbyname+set}" = set; then
24095 if test "${ac_cv_search_gethostbyname+set}" = set; then
24098 ac_cv_search_gethostbyname=no
24100 rm conftest.$ac_ext
24101 LIBS=$ac_func_search_save_LIBS
24103 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
24104 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
24105 ac_res=$ac_cv_search_gethostbyname
24106 if test "$ac_res" != no; then
24107 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24111 { echo "$as_me:$LINENO: checking for library containing socket" >&5
24112 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
24113 if test "${ac_cv_search_socket+set}" = set; then
24114 echo $ECHO_N "(cached) $ECHO_C" >&6
24116 ac_func_search_save_LIBS=$LIBS
24117 cat >conftest.$ac_ext <<_ACEOF
24120 cat confdefs.h >>conftest.$ac_ext
24121 cat >>conftest.$ac_ext <<_ACEOF
24122 /* end confdefs.h. */
24124 /* Override any GCC internal prototype to avoid an error.
24125 Use char because int might match the return type of a GCC
24126 builtin and then its argument prototype would still apply. */
24139 for ac_lib in '' socket; do
24140 if test -z "$ac_lib"; then
24141 ac_res="none required"
24144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24146 rm -f conftest.$ac_objext conftest$ac_exeext
24147 if { (ac_try="$ac_link"
24148 case "(($ac_try" in
24149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24150 *) ac_try_echo=$ac_try;;
24152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24153 (eval "$ac_link") 2>conftest.er1
24155 grep -v '^ *+' conftest.er1 >conftest.err
24157 cat conftest.err >&5
24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); } && {
24160 test -z "$ac_c_werror_flag" ||
24161 test ! -s conftest.err
24162 } && test -s conftest$ac_exeext &&
24163 $as_test_x conftest$ac_exeext; then
24164 ac_cv_search_socket=$ac_res
24166 echo "$as_me: failed program was:" >&5
24167 sed 's/^/| /' conftest.$ac_ext >&5
24172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24174 if test "${ac_cv_search_socket+set}" = set; then
24178 if test "${ac_cv_search_socket+set}" = set; then
24181 ac_cv_search_socket=no
24183 rm conftest.$ac_ext
24184 LIBS=$ac_func_search_save_LIBS
24186 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
24187 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
24188 ac_res=$ac_cv_search_socket
24189 if test "$ac_res" != no; then
24190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24195 { echo "$as_me:$LINENO: checking for compile in -lgen" >&5
24196 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
24197 if test "${ac_cv_lib_gen_compile+set}" = set; then
24198 echo $ECHO_N "(cached) $ECHO_C" >&6
24200 ac_check_lib_save_LIBS=$LIBS
24202 cat >conftest.$ac_ext <<_ACEOF
24205 cat confdefs.h >>conftest.$ac_ext
24206 cat >>conftest.$ac_ext <<_ACEOF
24207 /* end confdefs.h. */
24209 /* Override any GCC internal prototype to avoid an error.
24210 Use char because int might match the return type of a GCC
24211 builtin and then its argument prototype would still apply. */
24224 rm -f conftest.$ac_objext conftest$ac_exeext
24225 if { (ac_try="$ac_link"
24226 case "(($ac_try" in
24227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24228 *) ac_try_echo=$ac_try;;
24230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24231 (eval "$ac_link") 2>conftest.er1
24233 grep -v '^ *+' conftest.er1 >conftest.err
24235 cat conftest.err >&5
24236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237 (exit $ac_status); } && {
24238 test -z "$ac_c_werror_flag" ||
24239 test ! -s conftest.err
24240 } && test -s conftest$ac_exeext &&
24241 $as_test_x conftest$ac_exeext; then
24242 ac_cv_lib_gen_compile=yes
24244 echo "$as_me: failed program was:" >&5
24245 sed 's/^/| /' conftest.$ac_ext >&5
24247 ac_cv_lib_gen_compile=no
24250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24251 conftest$ac_exeext conftest.$ac_ext
24252 LIBS=$ac_check_lib_save_LIBS
24254 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
24255 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
24256 if test $ac_cv_lib_gen_compile = yes; then
24257 cat >>confdefs.h <<_ACEOF
24258 #define HAVE_LIBGEN 1
24265 if test "$krb5" != yes; then
24266 CPPFLAGS="$CPPFLAGS -I$krb5/include"
24267 LDFLAGS="$LDFLAGS -L$krb5/lib"
24269 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
24270 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
24271 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
24272 echo $ECHO_N "(cached) $ECHO_C" >&6
24274 ac_check_lib_save_LIBS=$LIBS
24275 LIBS="-lkrb5 -lk5crypto -lcom_err $LIBS"
24276 cat >conftest.$ac_ext <<_ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h. */
24283 /* Override any GCC internal prototype to avoid an error.
24284 Use char because int might match the return type of a GCC
24285 builtin and then its argument prototype would still apply. */
24289 char krb5_init_context ();
24293 return krb5_init_context ();
24298 rm -f conftest.$ac_objext conftest$ac_exeext
24299 if { (ac_try="$ac_link"
24300 case "(($ac_try" in
24301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24302 *) ac_try_echo=$ac_try;;
24304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24305 (eval "$ac_link") 2>conftest.er1
24307 grep -v '^ *+' conftest.er1 >conftest.err
24309 cat conftest.err >&5
24310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); } && {
24312 test -z "$ac_c_werror_flag" ||
24313 test ! -s conftest.err
24314 } && test -s conftest$ac_exeext &&
24315 $as_test_x conftest$ac_exeext; then
24316 ac_cv_lib_krb5_krb5_init_context=yes
24318 echo "$as_me: failed program was:" >&5
24319 sed 's/^/| /' conftest.$ac_ext >&5
24321 ac_cv_lib_krb5_krb5_init_context=no
24324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24325 conftest$ac_exeext conftest.$ac_ext
24326 LIBS=$ac_check_lib_save_LIBS
24328 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
24329 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
24330 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
24333 { { echo "$as_me:$LINENO: error: Kerberos 5 libraries not found" >&5
24334 echo "$as_me: error: Kerberos 5 libraries not found" >&2;}
24335 { (exit 1); exit 1; }; }
24338 KRB5_LIBS="-lkrb5 -lk5crypto -lcom_err"
24339 cat >>confdefs.h <<\_ACEOF
24340 #define HAVE_KRB5 1
24346 # Check whether --with-hesiod was given.
24347 if test "${with_hesiod+set}" = set; then
24348 withval=$with_hesiod; hesiod="$withval"
24353 if test "$hesiod" != no; then
24354 { echo "$as_me:$LINENO: checking for res_send" >&5
24355 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
24356 if test "${ac_cv_func_res_send+set}" = set; then
24357 echo $ECHO_N "(cached) $ECHO_C" >&6
24359 cat >conftest.$ac_ext <<_ACEOF
24362 cat confdefs.h >>conftest.$ac_ext
24363 cat >>conftest.$ac_ext <<_ACEOF
24364 /* end confdefs.h. */
24365 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
24366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24367 #define res_send innocuous_res_send
24369 /* System header to define __stub macros and hopefully few prototypes,
24370 which can conflict with char res_send (); below.
24371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24372 <limits.h> exists even on freestanding compilers. */
24375 # include <limits.h>
24377 # include <assert.h>
24382 /* Override any GCC internal prototype to avoid an error.
24383 Use char because int might match the return type of a GCC
24384 builtin and then its argument prototype would still apply. */
24389 /* The GNU C library defines this for functions which it implements
24390 to always fail with ENOSYS. Some functions are actually named
24391 something starting with __ and the normal name is an alias. */
24392 #if defined __stub_res_send || defined __stub___res_send
24399 return res_send ();
24404 rm -f conftest.$ac_objext conftest$ac_exeext
24405 if { (ac_try="$ac_link"
24406 case "(($ac_try" in
24407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24408 *) ac_try_echo=$ac_try;;
24410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24411 (eval "$ac_link") 2>conftest.er1
24413 grep -v '^ *+' conftest.er1 >conftest.err
24415 cat conftest.err >&5
24416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417 (exit $ac_status); } && {
24418 test -z "$ac_c_werror_flag" ||
24419 test ! -s conftest.err
24420 } && test -s conftest$ac_exeext &&
24421 $as_test_x conftest$ac_exeext; then
24422 ac_cv_func_res_send=yes
24424 echo "$as_me: failed program was:" >&5
24425 sed 's/^/| /' conftest.$ac_ext >&5
24427 ac_cv_func_res_send=no
24430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24431 conftest$ac_exeext conftest.$ac_ext
24433 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
24434 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
24435 if test $ac_cv_func_res_send = yes; then
24439 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
24440 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
24441 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
24442 echo $ECHO_N "(cached) $ECHO_C" >&6
24444 ac_check_lib_save_LIBS=$LIBS
24445 LIBS="-lresolv $LIBS"
24446 cat >conftest.$ac_ext <<_ACEOF
24449 cat confdefs.h >>conftest.$ac_ext
24450 cat >>conftest.$ac_ext <<_ACEOF
24451 /* end confdefs.h. */
24453 /* Override any GCC internal prototype to avoid an error.
24454 Use char because int might match the return type of a GCC
24455 builtin and then its argument prototype would still apply. */
24463 return res_send ();
24468 rm -f conftest.$ac_objext conftest$ac_exeext
24469 if { (ac_try="$ac_link"
24470 case "(($ac_try" in
24471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24472 *) ac_try_echo=$ac_try;;
24474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24475 (eval "$ac_link") 2>conftest.er1
24477 grep -v '^ *+' conftest.er1 >conftest.err
24479 cat conftest.err >&5
24480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); } && {
24482 test -z "$ac_c_werror_flag" ||
24483 test ! -s conftest.err
24484 } && test -s conftest$ac_exeext &&
24485 $as_test_x conftest$ac_exeext; then
24486 ac_cv_lib_resolv_res_send=yes
24488 echo "$as_me: failed program was:" >&5
24489 sed 's/^/| /' conftest.$ac_ext >&5
24491 ac_cv_lib_resolv_res_send=no
24494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24495 conftest$ac_exeext conftest.$ac_ext
24496 LIBS=$ac_check_lib_save_LIBS
24498 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
24499 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
24500 if test $ac_cv_lib_resolv_res_send = yes; then
24501 cat >>confdefs.h <<_ACEOF
24502 #define HAVE_LIBRESOLV 1
24505 LIBS="-lresolv $LIBS"
24511 if test "$hesiod" != yes; then
24512 CPPFLAGS="$CPPFLAGS -I$hesiod/include"
24513 LDFLAGS="$LDFLAGS -L$hesiod/lib"
24515 { echo "$as_me:$LINENO: checking for hes_resolve in -lhesiod" >&5
24516 echo $ECHO_N "checking for hes_resolve in -lhesiod... $ECHO_C" >&6; }
24517 if test "${ac_cv_lib_hesiod_hes_resolve+set}" = set; then
24518 echo $ECHO_N "(cached) $ECHO_C" >&6
24520 ac_check_lib_save_LIBS=$LIBS
24521 LIBS="-lhesiod $LIBS $LIBS"
24522 cat >conftest.$ac_ext <<_ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h. */
24529 /* Override any GCC internal prototype to avoid an error.
24530 Use char because int might match the return type of a GCC
24531 builtin and then its argument prototype would still apply. */
24535 char hes_resolve ();
24539 return hes_resolve ();
24544 rm -f conftest.$ac_objext conftest$ac_exeext
24545 if { (ac_try="$ac_link"
24546 case "(($ac_try" in
24547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24548 *) ac_try_echo=$ac_try;;
24550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24551 (eval "$ac_link") 2>conftest.er1
24553 grep -v '^ *+' conftest.er1 >conftest.err
24555 cat conftest.err >&5
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); } && {
24558 test -z "$ac_c_werror_flag" ||
24559 test ! -s conftest.err
24560 } && test -s conftest$ac_exeext &&
24561 $as_test_x conftest$ac_exeext; then
24562 ac_cv_lib_hesiod_hes_resolve=yes
24564 echo "$as_me: failed program was:" >&5
24565 sed 's/^/| /' conftest.$ac_ext >&5
24567 ac_cv_lib_hesiod_hes_resolve=no
24570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24571 conftest$ac_exeext conftest.$ac_ext
24572 LIBS=$ac_check_lib_save_LIBS
24574 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_resolve" >&5
24575 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_resolve" >&6; }
24576 if test $ac_cv_lib_hesiod_hes_resolve = yes; then
24579 { { echo "$as_me:$LINENO: error: Hesiod library not found" >&5
24580 echo "$as_me: error: Hesiod library not found" >&2;}
24581 { (exit 1); exit 1; }; }
24584 HESIOD_LIBS="-lhesiod"
24585 cat >>confdefs.h <<\_ACEOF
24586 #define HAVE_HESIOD 1
24592 # Check whether --with-regex was given.
24593 if test "${with_regex+set}" = set; then
24594 withval=$with_regex; regex="$withval"
24599 if test "$regex" != no; then
24600 if test "$regex" != yes; then
24601 CPPFLAGS="$CPPFLAGS -I$regex/include"
24602 LDFLAGS="$LDFLAGS -L$regex/lib"
24604 { echo "$as_me:$LINENO: checking for regcomp in -lregex" >&5
24605 echo $ECHO_N "checking for regcomp in -lregex... $ECHO_C" >&6; }
24606 if test "${ac_cv_lib_regex_regcomp+set}" = set; then
24607 echo $ECHO_N "(cached) $ECHO_C" >&6
24609 ac_check_lib_save_LIBS=$LIBS
24610 LIBS="-lregex $LIBS"
24611 cat >conftest.$ac_ext <<_ACEOF
24614 cat confdefs.h >>conftest.$ac_ext
24615 cat >>conftest.$ac_ext <<_ACEOF
24616 /* end confdefs.h. */
24618 /* Override any GCC internal prototype to avoid an error.
24619 Use char because int might match the return type of a GCC
24620 builtin and then its argument prototype would still apply. */
24633 rm -f conftest.$ac_objext conftest$ac_exeext
24634 if { (ac_try="$ac_link"
24635 case "(($ac_try" in
24636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637 *) ac_try_echo=$ac_try;;
24639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24640 (eval "$ac_link") 2>conftest.er1
24642 grep -v '^ *+' conftest.er1 >conftest.err
24644 cat conftest.err >&5
24645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646 (exit $ac_status); } && {
24647 test -z "$ac_c_werror_flag" ||
24648 test ! -s conftest.err
24649 } && test -s conftest$ac_exeext &&
24650 $as_test_x conftest$ac_exeext; then
24651 ac_cv_lib_regex_regcomp=yes
24653 echo "$as_me: failed program was:" >&5
24654 sed 's/^/| /' conftest.$ac_ext >&5
24656 ac_cv_lib_regex_regcomp=no
24659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24660 conftest$ac_exeext conftest.$ac_ext
24661 LIBS=$ac_check_lib_save_LIBS
24663 { echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regcomp" >&5
24664 echo "${ECHO_T}$ac_cv_lib_regex_regcomp" >&6; }
24665 if test $ac_cv_lib_regex_regcomp = yes; then
24668 { { echo "$as_me:$LINENO: error: regex library not found" >&5
24669 echo "$as_me: error: regex library not found" >&2;}
24670 { (exit 1); exit 1; }; }
24674 { echo "$as_me:$LINENO: checking for regcomp" >&5
24675 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6; }
24676 if test "${ac_cv_func_regcomp+set}" = set; then
24677 echo $ECHO_N "(cached) $ECHO_C" >&6
24679 cat >conftest.$ac_ext <<_ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h. */
24685 /* Define regcomp to an innocuous variant, in case <limits.h> declares regcomp.
24686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24687 #define regcomp innocuous_regcomp
24689 /* System header to define __stub macros and hopefully few prototypes,
24690 which can conflict with char regcomp (); below.
24691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24692 <limits.h> exists even on freestanding compilers. */
24695 # include <limits.h>
24697 # include <assert.h>
24702 /* Override any GCC internal prototype to avoid an error.
24703 Use char because int might match the return type of a GCC
24704 builtin and then its argument prototype would still apply. */
24709 /* The GNU C library defines this for functions which it implements
24710 to always fail with ENOSYS. Some functions are actually named
24711 something starting with __ and the normal name is an alias. */
24712 #if defined __stub_regcomp || defined __stub___regcomp
24724 rm -f conftest.$ac_objext conftest$ac_exeext
24725 if { (ac_try="$ac_link"
24726 case "(($ac_try" in
24727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24728 *) ac_try_echo=$ac_try;;
24730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24731 (eval "$ac_link") 2>conftest.er1
24733 grep -v '^ *+' conftest.er1 >conftest.err
24735 cat conftest.err >&5
24736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); } && {
24738 test -z "$ac_c_werror_flag" ||
24739 test ! -s conftest.err
24740 } && test -s conftest$ac_exeext &&
24741 $as_test_x conftest$ac_exeext; then
24742 ac_cv_func_regcomp=yes
24744 echo "$as_me: failed program was:" >&5
24745 sed 's/^/| /' conftest.$ac_ext >&5
24747 ac_cv_func_regcomp=no
24750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24751 conftest$ac_exeext conftest.$ac_ext
24753 { echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
24754 echo "${ECHO_T}$ac_cv_func_regcomp" >&6; }
24755 if test $ac_cv_func_regcomp = yes; then
24758 { { echo "$as_me:$LINENO: error: can't find POSIX regexp support" >&5
24759 echo "$as_me: error: can't find POSIX regexp support" >&2;}
24760 { (exit 1); exit 1; }; }
24766 # Check whether --with-ares was given.
24767 if test "${with_ares+set}" = set; then
24768 withval=$with_ares; ares="$withval"
24773 if test "$ares" != no; then
24774 { echo "$as_me:$LINENO: checking for res_send" >&5
24775 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
24776 if test "${ac_cv_func_res_send+set}" = set; then
24777 echo $ECHO_N "(cached) $ECHO_C" >&6
24779 cat >conftest.$ac_ext <<_ACEOF
24782 cat confdefs.h >>conftest.$ac_ext
24783 cat >>conftest.$ac_ext <<_ACEOF
24784 /* end confdefs.h. */
24785 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
24786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24787 #define res_send innocuous_res_send
24789 /* System header to define __stub macros and hopefully few prototypes,
24790 which can conflict with char res_send (); below.
24791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24792 <limits.h> exists even on freestanding compilers. */
24795 # include <limits.h>
24797 # include <assert.h>
24802 /* Override any GCC internal prototype to avoid an error.
24803 Use char because int might match the return type of a GCC
24804 builtin and then its argument prototype would still apply. */
24809 /* The GNU C library defines this for functions which it implements
24810 to always fail with ENOSYS. Some functions are actually named
24811 something starting with __ and the normal name is an alias. */
24812 #if defined __stub_res_send || defined __stub___res_send
24819 return res_send ();
24824 rm -f conftest.$ac_objext conftest$ac_exeext
24825 if { (ac_try="$ac_link"
24826 case "(($ac_try" in
24827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24828 *) ac_try_echo=$ac_try;;
24830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24831 (eval "$ac_link") 2>conftest.er1
24833 grep -v '^ *+' conftest.er1 >conftest.err
24835 cat conftest.err >&5
24836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 (exit $ac_status); } && {
24838 test -z "$ac_c_werror_flag" ||
24839 test ! -s conftest.err
24840 } && test -s conftest$ac_exeext &&
24841 $as_test_x conftest$ac_exeext; then
24842 ac_cv_func_res_send=yes
24844 echo "$as_me: failed program was:" >&5
24845 sed 's/^/| /' conftest.$ac_ext >&5
24847 ac_cv_func_res_send=no
24850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24851 conftest$ac_exeext conftest.$ac_ext
24853 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
24854 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
24855 if test $ac_cv_func_res_send = yes; then
24859 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
24860 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
24861 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
24862 echo $ECHO_N "(cached) $ECHO_C" >&6
24864 ac_check_lib_save_LIBS=$LIBS
24865 LIBS="-lresolv $LIBS"
24866 cat >conftest.$ac_ext <<_ACEOF
24869 cat confdefs.h >>conftest.$ac_ext
24870 cat >>conftest.$ac_ext <<_ACEOF
24871 /* end confdefs.h. */
24873 /* Override any GCC internal prototype to avoid an error.
24874 Use char because int might match the return type of a GCC
24875 builtin and then its argument prototype would still apply. */
24883 return res_send ();
24888 rm -f conftest.$ac_objext conftest$ac_exeext
24889 if { (ac_try="$ac_link"
24890 case "(($ac_try" in
24891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24892 *) ac_try_echo=$ac_try;;
24894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24895 (eval "$ac_link") 2>conftest.er1
24897 grep -v '^ *+' conftest.er1 >conftest.err
24899 cat conftest.err >&5
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); } && {
24902 test -z "$ac_c_werror_flag" ||
24903 test ! -s conftest.err
24904 } && test -s conftest$ac_exeext &&
24905 $as_test_x conftest$ac_exeext; then
24906 ac_cv_lib_resolv_res_send=yes
24908 echo "$as_me: failed program was:" >&5
24909 sed 's/^/| /' conftest.$ac_ext >&5
24911 ac_cv_lib_resolv_res_send=no
24914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24915 conftest$ac_exeext conftest.$ac_ext
24916 LIBS=$ac_check_lib_save_LIBS
24918 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
24919 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
24920 if test $ac_cv_lib_resolv_res_send = yes; then
24921 cat >>confdefs.h <<_ACEOF
24922 #define HAVE_LIBRESOLV 1
24925 LIBS="-lresolv $LIBS"
24931 if test "$ares" != yes; then
24932 CPPFLAGS="$CPPFLAGS -I$ares/include"
24933 LDFLAGS="$LDFLAGS -L$ares/lib"
24935 { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
24936 echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
24937 if test "${ac_cv_lib_ares_ares_init+set}" = set; then
24938 echo $ECHO_N "(cached) $ECHO_C" >&6
24940 ac_check_lib_save_LIBS=$LIBS
24941 LIBS="-lares $LIBS"
24942 cat >conftest.$ac_ext <<_ACEOF
24945 cat confdefs.h >>conftest.$ac_ext
24946 cat >>conftest.$ac_ext <<_ACEOF
24947 /* end confdefs.h. */
24949 /* Override any GCC internal prototype to avoid an error.
24950 Use char because int might match the return type of a GCC
24951 builtin and then its argument prototype would still apply. */
24959 return ares_init ();
24964 rm -f conftest.$ac_objext conftest$ac_exeext
24965 if { (ac_try="$ac_link"
24966 case "(($ac_try" in
24967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24968 *) ac_try_echo=$ac_try;;
24970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24971 (eval "$ac_link") 2>conftest.er1
24973 grep -v '^ *+' conftest.er1 >conftest.err
24975 cat conftest.err >&5
24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); } && {
24978 test -z "$ac_c_werror_flag" ||
24979 test ! -s conftest.err
24980 } && test -s conftest$ac_exeext &&
24981 $as_test_x conftest$ac_exeext; then
24982 ac_cv_lib_ares_ares_init=yes
24984 echo "$as_me: failed program was:" >&5
24985 sed 's/^/| /' conftest.$ac_ext >&5
24987 ac_cv_lib_ares_ares_init=no
24990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24991 conftest$ac_exeext conftest.$ac_ext
24992 LIBS=$ac_check_lib_save_LIBS
24994 { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
24995 echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
24996 if test $ac_cv_lib_ares_ares_init = yes; then
24999 { { echo "$as_me:$LINENO: error: libares not found" >&5
25000 echo "$as_me: error: libares not found" >&2;}
25001 { (exit 1); exit 1; }; }
25005 cat >>confdefs.h <<\_ACEOF
25006 #define HAVE_ARES 1
25012 # Check whether --with-com_err was given.
25013 if test "${with_com_err+set}" = set; then
25014 withval=$with_com_err; com_err="$withval"
25019 if test "$com_err" != no; then
25020 if test "$com_err" != yes; then
25021 CPPFLAGS="$CPPFLAGS -I$com_err/include"
25022 LDFLAGS="$LDFLAGS -L$com_err/lib"
25024 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
25025 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
25026 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
25027 echo $ECHO_N "(cached) $ECHO_C" >&6
25029 ac_check_lib_save_LIBS=$LIBS
25030 LIBS="-lcom_err $LIBS"
25031 cat >conftest.$ac_ext <<_ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h. */
25038 /* Override any GCC internal prototype to avoid an error.
25039 Use char because int might match the return type of a GCC
25040 builtin and then its argument prototype would still apply. */
25053 rm -f conftest.$ac_objext conftest$ac_exeext
25054 if { (ac_try="$ac_link"
25055 case "(($ac_try" in
25056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25057 *) ac_try_echo=$ac_try;;
25059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25060 (eval "$ac_link") 2>conftest.er1
25062 grep -v '^ *+' conftest.er1 >conftest.err
25064 cat conftest.err >&5
25065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066 (exit $ac_status); } && {
25067 test -z "$ac_c_werror_flag" ||
25068 test ! -s conftest.err
25069 } && test -s conftest$ac_exeext &&
25070 $as_test_x conftest$ac_exeext; then
25071 ac_cv_lib_com_err_com_err=yes
25073 echo "$as_me: failed program was:" >&5
25074 sed 's/^/| /' conftest.$ac_ext >&5
25076 ac_cv_lib_com_err_com_err=no
25079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25080 conftest$ac_exeext conftest.$ac_ext
25081 LIBS=$ac_check_lib_save_LIBS
25083 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
25084 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
25085 if test $ac_cv_lib_com_err_com_err = yes; then
25088 { { echo "$as_me:$LINENO: error: com_err library not found" >&5
25089 echo "$as_me: error: com_err library not found" >&2;}
25090 { (exit 1); exit 1; }; }
25094 { { echo "$as_me:$LINENO: error: This package requires com_err." >&5
25095 echo "$as_me: error: This package requires com_err." >&2;}
25096 { (exit 1); exit 1; }; }
25099 # Check whether --with-ss was given.
25100 if test "${with_ss+set}" = set; then
25101 withval=$with_ss; ss="$withval"
25106 if test "$ss" != no; then
25107 if test "$ss" != yes; then
25108 CPPFLAGS="$CPPFLAGS -I$ss/include"
25109 LDFLAGS="$LDFLAGS -L$ss/lib"
25112 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
25113 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
25114 if test "${ac_cv_lib_curses_initscr+set}" = set; then
25115 echo $ECHO_N "(cached) $ECHO_C" >&6
25117 ac_check_lib_save_LIBS=$LIBS
25118 LIBS="-lcurses $LIBS"
25119 cat >conftest.$ac_ext <<_ACEOF
25122 cat confdefs.h >>conftest.$ac_ext
25123 cat >>conftest.$ac_ext <<_ACEOF
25124 /* end confdefs.h. */
25126 /* Override any GCC internal prototype to avoid an error.
25127 Use char because int might match the return type of a GCC
25128 builtin and then its argument prototype would still apply. */
25141 rm -f conftest.$ac_objext conftest$ac_exeext
25142 if { (ac_try="$ac_link"
25143 case "(($ac_try" in
25144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25145 *) ac_try_echo=$ac_try;;
25147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25148 (eval "$ac_link") 2>conftest.er1
25150 grep -v '^ *+' conftest.er1 >conftest.err
25152 cat conftest.err >&5
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); } && {
25155 test -z "$ac_c_werror_flag" ||
25156 test ! -s conftest.err
25157 } && test -s conftest$ac_exeext &&
25158 $as_test_x conftest$ac_exeext; then
25159 ac_cv_lib_curses_initscr=yes
25161 echo "$as_me: failed program was:" >&5
25162 sed 's/^/| /' conftest.$ac_ext >&5
25164 ac_cv_lib_curses_initscr=no
25167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25168 conftest$ac_exeext conftest.$ac_ext
25169 LIBS=$ac_check_lib_save_LIBS
25171 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
25172 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
25173 if test $ac_cv_lib_curses_initscr = yes; then
25174 cat >>confdefs.h <<_ACEOF
25175 #define HAVE_LIBCURSES 1
25178 LIBS="-lcurses $LIBS"
25183 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
25184 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
25185 if test "${ac_cv_lib_readline_readline+set}" = set; then
25186 echo $ECHO_N "(cached) $ECHO_C" >&6
25188 ac_check_lib_save_LIBS=$LIBS
25189 LIBS="-lreadline $LIBS"
25190 cat >conftest.$ac_ext <<_ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h. */
25197 /* Override any GCC internal prototype to avoid an error.
25198 Use char because int might match the return type of a GCC
25199 builtin and then its argument prototype would still apply. */
25207 return readline ();
25212 rm -f conftest.$ac_objext conftest$ac_exeext
25213 if { (ac_try="$ac_link"
25214 case "(($ac_try" in
25215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25216 *) ac_try_echo=$ac_try;;
25218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25219 (eval "$ac_link") 2>conftest.er1
25221 grep -v '^ *+' conftest.er1 >conftest.err
25223 cat conftest.err >&5
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); } && {
25226 test -z "$ac_c_werror_flag" ||
25227 test ! -s conftest.err
25228 } && test -s conftest$ac_exeext &&
25229 $as_test_x conftest$ac_exeext; then
25230 ac_cv_lib_readline_readline=yes
25232 echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25235 ac_cv_lib_readline_readline=no
25238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25239 conftest$ac_exeext conftest.$ac_ext
25240 LIBS=$ac_check_lib_save_LIBS
25242 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
25243 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
25244 if test $ac_cv_lib_readline_readline = yes; then
25245 cat >>confdefs.h <<_ACEOF
25246 #define HAVE_LIBREADLINE 1
25249 LIBS="-lreadline $LIBS"
25253 { echo "$as_me:$LINENO: checking for ss_perror in -lss" >&5
25254 echo $ECHO_N "checking for ss_perror in -lss... $ECHO_C" >&6; }
25255 if test "${ac_cv_lib_ss_ss_perror+set}" = set; then
25256 echo $ECHO_N "(cached) $ECHO_C" >&6
25258 ac_check_lib_save_LIBS=$LIBS
25259 LIBS="-lss -lcom_err $LIBS"
25260 cat >conftest.$ac_ext <<_ACEOF
25263 cat confdefs.h >>conftest.$ac_ext
25264 cat >>conftest.$ac_ext <<_ACEOF
25265 /* end confdefs.h. */
25267 /* Override any GCC internal prototype to avoid an error.
25268 Use char because int might match the return type of a GCC
25269 builtin and then its argument prototype would still apply. */
25277 return ss_perror ();
25282 rm -f conftest.$ac_objext conftest$ac_exeext
25283 if { (ac_try="$ac_link"
25284 case "(($ac_try" in
25285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25286 *) ac_try_echo=$ac_try;;
25288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25289 (eval "$ac_link") 2>conftest.er1
25291 grep -v '^ *+' conftest.er1 >conftest.err
25293 cat conftest.err >&5
25294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295 (exit $ac_status); } && {
25296 test -z "$ac_c_werror_flag" ||
25297 test ! -s conftest.err
25298 } && test -s conftest$ac_exeext &&
25299 $as_test_x conftest$ac_exeext; then
25300 ac_cv_lib_ss_ss_perror=yes
25302 echo "$as_me: failed program was:" >&5
25303 sed 's/^/| /' conftest.$ac_ext >&5
25305 ac_cv_lib_ss_ss_perror=no
25308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25309 conftest$ac_exeext conftest.$ac_ext
25310 LIBS=$ac_check_lib_save_LIBS
25312 { echo "$as_me:$LINENO: result: $ac_cv_lib_ss_ss_perror" >&5
25313 echo "${ECHO_T}$ac_cv_lib_ss_ss_perror" >&6; }
25314 if test $ac_cv_lib_ss_ss_perror = yes; then
25317 { { echo "$as_me:$LINENO: error: ss library not found" >&5
25318 echo "$as_me: error: ss library not found" >&2;}
25319 { (exit 1); exit 1; }; }
25323 { { echo "$as_me:$LINENO: error: This package requires ss." >&5
25324 echo "$as_me: error: This package requires ss." >&2;}
25325 { (exit 1); exit 1; }; }
25327 LIBS="$KRB5_LIBS $KRB4_LIBS $HESIOD_LIBS $LIBS"
25329 if test $ac_cv_c_compiler_gnu = yes; then
25330 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25331 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25332 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25333 echo $ECHO_N "(cached) $ECHO_C" >&6
25335 ac_pattern="Autoconf.*'x'"
25336 cat >conftest.$ac_ext <<_ACEOF
25339 cat confdefs.h >>conftest.$ac_ext
25340 cat >>conftest.$ac_ext <<_ACEOF
25341 /* end confdefs.h. */
25345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25346 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25347 ac_cv_prog_gcc_traditional=yes
25349 ac_cv_prog_gcc_traditional=no
25354 if test $ac_cv_prog_gcc_traditional = no; then
25355 cat >conftest.$ac_ext <<_ACEOF
25358 cat confdefs.h >>conftest.$ac_ext
25359 cat >>conftest.$ac_ext <<_ACEOF
25360 /* end confdefs.h. */
25361 #include <termio.h>
25364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25365 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25366 ac_cv_prog_gcc_traditional=yes
25372 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25373 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25374 if test $ac_cv_prog_gcc_traditional = yes; then
25375 CC="$CC -traditional"
25380 for ac_func in vprintf
25382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25383 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25385 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25386 echo $ECHO_N "(cached) $ECHO_C" >&6
25388 cat >conftest.$ac_ext <<_ACEOF
25391 cat confdefs.h >>conftest.$ac_ext
25392 cat >>conftest.$ac_ext <<_ACEOF
25393 /* end confdefs.h. */
25394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25396 #define $ac_func innocuous_$ac_func
25398 /* System header to define __stub macros and hopefully few prototypes,
25399 which can conflict with char $ac_func (); below.
25400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25401 <limits.h> exists even on freestanding compilers. */
25404 # include <limits.h>
25406 # include <assert.h>
25411 /* Override any GCC internal prototype to avoid an error.
25412 Use char because int might match the return type of a GCC
25413 builtin and then its argument prototype would still apply. */
25418 /* The GNU C library defines this for functions which it implements
25419 to always fail with ENOSYS. Some functions are actually named
25420 something starting with __ and the normal name is an alias. */
25421 #if defined __stub_$ac_func || defined __stub___$ac_func
25428 return $ac_func ();
25433 rm -f conftest.$ac_objext conftest$ac_exeext
25434 if { (ac_try="$ac_link"
25435 case "(($ac_try" in
25436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25437 *) ac_try_echo=$ac_try;;
25439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25440 (eval "$ac_link") 2>conftest.er1
25442 grep -v '^ *+' conftest.er1 >conftest.err
25444 cat conftest.err >&5
25445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); } && {
25447 test -z "$ac_c_werror_flag" ||
25448 test ! -s conftest.err
25449 } && test -s conftest$ac_exeext &&
25450 $as_test_x conftest$ac_exeext; then
25451 eval "$as_ac_var=yes"
25453 echo "$as_me: failed program was:" >&5
25454 sed 's/^/| /' conftest.$ac_ext >&5
25456 eval "$as_ac_var=no"
25459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25460 conftest$ac_exeext conftest.$ac_ext
25462 ac_res=`eval echo '${'$as_ac_var'}'`
25463 { echo "$as_me:$LINENO: result: $ac_res" >&5
25464 echo "${ECHO_T}$ac_res" >&6; }
25465 if test `eval echo '${'$as_ac_var'}'` = yes; then
25466 cat >>confdefs.h <<_ACEOF
25467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25470 { echo "$as_me:$LINENO: checking for _doprnt" >&5
25471 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
25472 if test "${ac_cv_func__doprnt+set}" = set; then
25473 echo $ECHO_N "(cached) $ECHO_C" >&6
25475 cat >conftest.$ac_ext <<_ACEOF
25478 cat confdefs.h >>conftest.$ac_ext
25479 cat >>conftest.$ac_ext <<_ACEOF
25480 /* end confdefs.h. */
25481 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25483 #define _doprnt innocuous__doprnt
25485 /* System header to define __stub macros and hopefully few prototypes,
25486 which can conflict with char _doprnt (); below.
25487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25488 <limits.h> exists even on freestanding compilers. */
25491 # include <limits.h>
25493 # include <assert.h>
25498 /* Override any GCC internal prototype to avoid an error.
25499 Use char because int might match the return type of a GCC
25500 builtin and then its argument prototype would still apply. */
25505 /* The GNU C library defines this for functions which it implements
25506 to always fail with ENOSYS. Some functions are actually named
25507 something starting with __ and the normal name is an alias. */
25508 #if defined __stub__doprnt || defined __stub____doprnt
25520 rm -f conftest.$ac_objext conftest$ac_exeext
25521 if { (ac_try="$ac_link"
25522 case "(($ac_try" in
25523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524 *) ac_try_echo=$ac_try;;
25526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25527 (eval "$ac_link") 2>conftest.er1
25529 grep -v '^ *+' conftest.er1 >conftest.err
25531 cat conftest.err >&5
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); } && {
25534 test -z "$ac_c_werror_flag" ||
25535 test ! -s conftest.err
25536 } && test -s conftest$ac_exeext &&
25537 $as_test_x conftest$ac_exeext; then
25538 ac_cv_func__doprnt=yes
25540 echo "$as_me: failed program was:" >&5
25541 sed 's/^/| /' conftest.$ac_ext >&5
25543 ac_cv_func__doprnt=no
25546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25547 conftest$ac_exeext conftest.$ac_ext
25549 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25550 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
25551 if test $ac_cv_func__doprnt = yes; then
25553 cat >>confdefs.h <<\_ACEOF
25554 #define HAVE_DOPRNT 1
25563 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
25564 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
25565 if test "${ac_cv_func_getpgrp_void+set}" = set; then
25566 echo $ECHO_N "(cached) $ECHO_C" >&6
25568 # Use it with a single arg.
25569 cat >conftest.$ac_ext <<_ACEOF
25572 cat confdefs.h >>conftest.$ac_ext
25573 cat >>conftest.$ac_ext <<_ACEOF
25574 /* end confdefs.h. */
25575 $ac_includes_default
25584 rm -f conftest.$ac_objext
25585 if { (ac_try="$ac_compile"
25586 case "(($ac_try" in
25587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25588 *) ac_try_echo=$ac_try;;
25590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25591 (eval "$ac_compile") 2>conftest.er1
25593 grep -v '^ *+' conftest.er1 >conftest.err
25595 cat conftest.err >&5
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); } && {
25598 test -z "$ac_c_werror_flag" ||
25599 test ! -s conftest.err
25600 } && test -s conftest.$ac_objext; then
25601 ac_cv_func_getpgrp_void=no
25603 echo "$as_me: failed program was:" >&5
25604 sed 's/^/| /' conftest.$ac_ext >&5
25606 ac_cv_func_getpgrp_void=yes
25609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25612 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
25613 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
25614 if test $ac_cv_func_getpgrp_void = yes; then
25616 cat >>confdefs.h <<\_ACEOF
25617 #define GETPGRP_VOID 1
25622 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
25623 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
25624 if test "${ac_cv_func_setpgrp_void+set}" = set; then
25625 echo $ECHO_N "(cached) $ECHO_C" >&6
25627 if test "$cross_compiling" = yes; then
25628 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
25629 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
25630 { (exit 1); exit 1; }; }
25632 cat >conftest.$ac_ext <<_ACEOF
25635 cat confdefs.h >>conftest.$ac_ext
25636 cat >>conftest.$ac_ext <<_ACEOF
25637 /* end confdefs.h. */
25638 $ac_includes_default
25642 /* If this system has a BSD-style setpgrp which takes arguments,
25643 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
25644 exit successfully. */
25645 return setpgrp (1,1) != -1;
25650 rm -f conftest$ac_exeext
25651 if { (ac_try="$ac_link"
25652 case "(($ac_try" in
25653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25654 *) ac_try_echo=$ac_try;;
25656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25657 (eval "$ac_link") 2>&5
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25661 { (case "(($ac_try" in
25662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25663 *) ac_try_echo=$ac_try;;
25665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25666 (eval "$ac_try") 2>&5
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); }; }; then
25670 ac_cv_func_setpgrp_void=no
25672 echo "$as_me: program exited with status $ac_status" >&5
25673 echo "$as_me: failed program was:" >&5
25674 sed 's/^/| /' conftest.$ac_ext >&5
25676 ( exit $ac_status )
25677 ac_cv_func_setpgrp_void=yes
25679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25684 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
25685 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
25686 if test $ac_cv_func_setpgrp_void = yes; then
25688 cat >>confdefs.h <<\_ACEOF
25689 #define SETPGRP_VOID 1
25702 for ac_func in putenv strchr memcpy memmove waitpid getlogin strerror random
25704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25708 echo $ECHO_N "(cached) $ECHO_C" >&6
25710 cat >conftest.$ac_ext <<_ACEOF
25713 cat confdefs.h >>conftest.$ac_ext
25714 cat >>conftest.$ac_ext <<_ACEOF
25715 /* end confdefs.h. */
25716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25718 #define $ac_func innocuous_$ac_func
25720 /* System header to define __stub macros and hopefully few prototypes,
25721 which can conflict with char $ac_func (); below.
25722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25723 <limits.h> exists even on freestanding compilers. */
25726 # include <limits.h>
25728 # include <assert.h>
25733 /* Override any GCC internal prototype to avoid an error.
25734 Use char because int might match the return type of a GCC
25735 builtin and then its argument prototype would still apply. */
25740 /* The GNU C library defines this for functions which it implements
25741 to always fail with ENOSYS. Some functions are actually named
25742 something starting with __ and the normal name is an alias. */
25743 #if defined __stub_$ac_func || defined __stub___$ac_func
25750 return $ac_func ();
25755 rm -f conftest.$ac_objext conftest$ac_exeext
25756 if { (ac_try="$ac_link"
25757 case "(($ac_try" in
25758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25759 *) ac_try_echo=$ac_try;;
25761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25762 (eval "$ac_link") 2>conftest.er1
25764 grep -v '^ *+' conftest.er1 >conftest.err
25766 cat conftest.err >&5
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); } && {
25769 test -z "$ac_c_werror_flag" ||
25770 test ! -s conftest.err
25771 } && test -s conftest$ac_exeext &&
25772 $as_test_x conftest$ac_exeext; then
25773 eval "$as_ac_var=yes"
25775 echo "$as_me: failed program was:" >&5
25776 sed 's/^/| /' conftest.$ac_ext >&5
25778 eval "$as_ac_var=no"
25781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25782 conftest$ac_exeext conftest.$ac_ext
25784 ac_res=`eval echo '${'$as_ac_var'}'`
25785 { echo "$as_me:$LINENO: result: $ac_res" >&5
25786 echo "${ECHO_T}$ac_res" >&6; }
25787 if test `eval echo '${'$as_ac_var'}'` = yes; then
25788 cat >>confdefs.h <<_ACEOF
25789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25801 for ac_func in lrand48 gethostid getsid getpgid krb_get_err_text krb_log
25803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25807 echo $ECHO_N "(cached) $ECHO_C" >&6
25809 cat >conftest.$ac_ext <<_ACEOF
25812 cat confdefs.h >>conftest.$ac_ext
25813 cat >>conftest.$ac_ext <<_ACEOF
25814 /* end confdefs.h. */
25815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25817 #define $ac_func innocuous_$ac_func
25819 /* System header to define __stub macros and hopefully few prototypes,
25820 which can conflict with char $ac_func (); below.
25821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25822 <limits.h> exists even on freestanding compilers. */
25825 # include <limits.h>
25827 # include <assert.h>
25832 /* Override any GCC internal prototype to avoid an error.
25833 Use char because int might match the return type of a GCC
25834 builtin and then its argument prototype would still apply. */
25839 /* The GNU C library defines this for functions which it implements
25840 to always fail with ENOSYS. Some functions are actually named
25841 something starting with __ and the normal name is an alias. */
25842 #if defined __stub_$ac_func || defined __stub___$ac_func
25849 return $ac_func ();
25854 rm -f conftest.$ac_objext conftest$ac_exeext
25855 if { (ac_try="$ac_link"
25856 case "(($ac_try" in
25857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25858 *) ac_try_echo=$ac_try;;
25860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25861 (eval "$ac_link") 2>conftest.er1
25863 grep -v '^ *+' conftest.er1 >conftest.err
25865 cat conftest.err >&5
25866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867 (exit $ac_status); } && {
25868 test -z "$ac_c_werror_flag" ||
25869 test ! -s conftest.err
25870 } && test -s conftest$ac_exeext &&
25871 $as_test_x conftest$ac_exeext; then
25872 eval "$as_ac_var=yes"
25874 echo "$as_me: failed program was:" >&5
25875 sed 's/^/| /' conftest.$ac_ext >&5
25877 eval "$as_ac_var=no"
25880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25881 conftest$ac_exeext conftest.$ac_ext
25883 ac_res=`eval echo '${'$as_ac_var'}'`
25884 { echo "$as_me:$LINENO: result: $ac_res" >&5
25885 echo "${ECHO_T}$ac_res" >&6; }
25886 if test `eval echo '${'$as_ac_var'}'` = yes; then
25887 cat >>confdefs.h <<_ACEOF
25888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25897 for ac_func in krb5_free_data krb5_c_make_checksum krb5_cc_set_default_name
25899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25900 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25903 echo $ECHO_N "(cached) $ECHO_C" >&6
25905 cat >conftest.$ac_ext <<_ACEOF
25908 cat confdefs.h >>conftest.$ac_ext
25909 cat >>conftest.$ac_ext <<_ACEOF
25910 /* end confdefs.h. */
25911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25913 #define $ac_func innocuous_$ac_func
25915 /* System header to define __stub macros and hopefully few prototypes,
25916 which can conflict with char $ac_func (); below.
25917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25918 <limits.h> exists even on freestanding compilers. */
25921 # include <limits.h>
25923 # include <assert.h>
25928 /* Override any GCC internal prototype to avoid an error.
25929 Use char because int might match the return type of a GCC
25930 builtin and then its argument prototype would still apply. */
25935 /* The GNU C library defines this for functions which it implements
25936 to always fail with ENOSYS. Some functions are actually named
25937 something starting with __ and the normal name is an alias. */
25938 #if defined __stub_$ac_func || defined __stub___$ac_func
25945 return $ac_func ();
25950 rm -f conftest.$ac_objext conftest$ac_exeext
25951 if { (ac_try="$ac_link"
25952 case "(($ac_try" in
25953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25954 *) ac_try_echo=$ac_try;;
25956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25957 (eval "$ac_link") 2>conftest.er1
25959 grep -v '^ *+' conftest.er1 >conftest.err
25961 cat conftest.err >&5
25962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963 (exit $ac_status); } && {
25964 test -z "$ac_c_werror_flag" ||
25965 test ! -s conftest.err
25966 } && test -s conftest$ac_exeext &&
25967 $as_test_x conftest$ac_exeext; then
25968 eval "$as_ac_var=yes"
25970 echo "$as_me: failed program was:" >&5
25971 sed 's/^/| /' conftest.$ac_ext >&5
25973 eval "$as_ac_var=no"
25976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25977 conftest$ac_exeext conftest.$ac_ext
25979 ac_res=`eval echo '${'$as_ac_var'}'`
25980 { echo "$as_me:$LINENO: result: $ac_res" >&5
25981 echo "${ECHO_T}$ac_res" >&6; }
25982 if test `eval echo '${'$as_ac_var'}'` = yes; then
25983 cat >>confdefs.h <<_ACEOF
25984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25991 { echo "$as_me:$LINENO: checking for krb5_auth_con_getauthenticator taking double pointer" >&5
25992 echo $ECHO_N "checking for krb5_auth_con_getauthenticator taking double pointer... $ECHO_C" >&6; }
25993 if test "${ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer+set}" = set; then
25994 echo $ECHO_N "(cached) $ECHO_C" >&6
25997 local_save_CPPFLAGS="$CPPFLAGS"
25998 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
25999 cat >conftest.$ac_ext <<_ACEOF
26002 cat confdefs.h >>conftest.$ac_ext
26003 cat >>conftest.$ac_ext <<_ACEOF
26004 /* end confdefs.h. */
26005 #define socklen_t int
26006 #define ssize_t int
26009 krb5_auth_con_getauthenticator(krb5_context context,
26010 krb5_auth_context auth_context,
26011 krb5_authenticator *authenticator);
26015 krb5_error_code foo = krb5_auth_con_getauthenticator(0, 0, 0);
26020 rm -f conftest.$ac_objext
26021 if { (ac_try="$ac_compile"
26022 case "(($ac_try" in
26023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26024 *) ac_try_echo=$ac_try;;
26026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26027 (eval "$ac_compile") 2>conftest.er1
26029 grep -v '^ *+' conftest.er1 >conftest.err
26031 cat conftest.err >&5
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); } && {
26034 test -z "$ac_c_werror_flag" ||
26035 test ! -s conftest.err
26036 } && test -s conftest.$ac_objext; then
26037 ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=no
26039 echo "$as_me: failed program was:" >&5
26040 sed 's/^/| /' conftest.$ac_ext >&5
26042 ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=yes
26045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26049 CPPFLAGS="${local_save_CPPFLAGS}"
26050 if test "$ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" = yes; then
26051 cat >>confdefs.h <<\_ACEOF
26052 #define KRB5_AUTH_CON_GETAUTHENTICATOR_TAKES_DOUBLE_POINTER 1
26055 { echo "$as_me:$LINENO: result: $ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" >&5
26056 echo "${ECHO_T}$ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" >&6; }
26058 { echo "$as_me:$LINENO: checking for enc_part2 in struct krb5_ticket" >&5
26059 echo $ECHO_N "checking for enc_part2 in struct krb5_ticket... $ECHO_C" >&6; }
26060 if test "${ac_cv_have_krb5_ticket_enc_part2+set}" = set; then
26061 echo $ECHO_N "(cached) $ECHO_C" >&6
26064 local_save_CPPFLAGS="$CPPFLAGS"
26065 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26066 cat >conftest.$ac_ext <<_ACEOF
26069 cat confdefs.h >>conftest.$ac_ext
26070 cat >>conftest.$ac_ext <<_ACEOF
26071 /* end confdefs.h. */
26076 krb5_ticket _tkt; _tkt.enc_part2;
26081 rm -f conftest.$ac_objext
26082 if { (ac_try="$ac_compile"
26083 case "(($ac_try" in
26084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26085 *) ac_try_echo=$ac_try;;
26087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26088 (eval "$ac_compile") 2>conftest.er1
26090 grep -v '^ *+' conftest.er1 >conftest.err
26092 cat conftest.err >&5
26093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094 (exit $ac_status); } && {
26095 test -z "$ac_c_werror_flag" ||
26096 test ! -s conftest.err
26097 } && test -s conftest.$ac_objext; then
26098 ac_cv_have_krb5_ticket_enc_part2=yes
26100 echo "$as_me: failed program was:" >&5
26101 sed 's/^/| /' conftest.$ac_ext >&5
26103 ac_cv_have_krb5_ticket_enc_part2=no
26106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26110 CPPFLAGS="${local_save_CPPFLAGS}"
26111 if test "$ac_cv_have_krb5_ticket_enc_part2" = yes; then
26112 cat >>confdefs.h <<\_ACEOF
26113 #define HAVE_KRB5_TICKET_ENC_PART2 1
26116 { echo "$as_me:$LINENO: result: $ac_cv_have_krb5_ticket_enc_part2" >&5
26117 echo "${ECHO_T}$ac_cv_have_krb5_ticket_enc_part2" >&6; }
26119 { echo "$as_me:$LINENO: checking for enctype in struct krb5_keyblock" >&5
26120 echo $ECHO_N "checking for enctype in struct krb5_keyblock... $ECHO_C" >&6; }
26121 if test "${ac_cv_have_krb5_creds_keyblock_enctype+set}" = set; then
26122 echo $ECHO_N "(cached) $ECHO_C" >&6
26125 local_save_CPPFLAGS="$CPPFLAGS"
26126 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
26127 cat >conftest.$ac_ext <<_ACEOF
26130 cat confdefs.h >>conftest.$ac_ext
26131 cat >>conftest.$ac_ext <<_ACEOF
26132 /* end confdefs.h. */
26137 krb5_creds _creds; _creds.keyblock.enctype;
26142 rm -f conftest.$ac_objext
26143 if { (ac_try="$ac_compile"
26144 case "(($ac_try" in
26145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26146 *) ac_try_echo=$ac_try;;
26148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26149 (eval "$ac_compile") 2>conftest.er1
26151 grep -v '^ *+' conftest.er1 >conftest.err
26153 cat conftest.err >&5
26154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155 (exit $ac_status); } && {
26156 test -z "$ac_c_werror_flag" ||
26157 test ! -s conftest.err
26158 } && test -s conftest.$ac_objext; then
26159 ac_cv_have_krb5_creds_keyblock_enctype=yes
26161 echo "$as_me: failed program was:" >&5
26162 sed 's/^/| /' conftest.$ac_ext >&5
26164 ac_cv_have_krb5_creds_keyblock_enctype=no
26167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26171 CPPFLAGS="${local_save_CPPFLAGS}"
26172 if test "$ac_cv_have_krb5_creds_keyblock_enctype" = yes; then
26173 cat >>confdefs.h <<\_ACEOF
26174 #define HAVE_KRB5_CREDS_KEYBLOCK_ENCTYPE 1
26177 { echo "$as_me:$LINENO: result: $ac_cv_have_krb5_creds_keyblock_enctype" >&5
26178 echo "${ECHO_T}$ac_cv_have_krb5_creds_keyblock_enctype" >&6; }
26180 ac_config_headers="$ac_config_headers h/config.h"
26182 ac_config_files="$ac_config_files Makefile clients/Makefile clients/zaway/Makefile clients/zctl/Makefile clients/zleave/Makefile clients/zlocate/Makefile clients/znol/Makefile clients/zshutdown_notify/Makefile clients/zstat/Makefile clients/zwrite/Makefile lib/Makefile libdyn/Makefile server/Makefile zhm/Makefile zwgc/Makefile"
26184 cat >confcache <<\_ACEOF
26185 # This file is a shell script that caches the results of configure
26186 # tests run on this system so they can be shared between configure
26187 # scripts and configure runs, see configure's option --config-cache.
26188 # It is not useful on other systems. If it contains results you don't
26189 # want to keep, you may remove or edit it.
26191 # config.status only pays attention to the cache file if you give it
26192 # the --recheck option to rerun configure.
26194 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26195 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26196 # following values.
26200 # The following way of writing the cache mishandles newlines in values,
26201 # but we know of no workaround that is simple, portable, and efficient.
26202 # So, we kill variables containing newlines.
26203 # Ultrix sh set writes to stderr and can't be redirected directly,
26204 # and sets the high bit in the cache file unless we assign to the vars.
26206 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26207 eval ac_val=\$$ac_var
26211 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26212 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26215 _ | IFS | as_nl) ;; #(
26216 *) $as_unset $ac_var ;;
26222 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26223 *${as_nl}ac_space=\ *)
26224 # `set' does not quote correctly, so add quotes (double-quote
26225 # substitution turns \\\\ into \\, and sed turns \\ into \).
26228 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26231 # `set' quotes correctly as required by POSIX, so do not add quotes.
26232 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26241 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26243 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26245 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26246 if test -w "$cache_file"; then
26247 test "x$cache_file" != "x/dev/null" &&
26248 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26249 echo "$as_me: updating cache $cache_file" >&6;}
26250 cat confcache >$cache_file
26252 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26253 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26258 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26259 # Let make expand exec_prefix.
26260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26262 DEFS=-DHAVE_CONFIG_H
26266 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26267 # 1. Remove the extension, and $U if already installed.
26268 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26269 ac_i=`echo "$ac_i" | sed "$ac_script"`
26270 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26271 # will be set to the directory where LIBOBJS objects are built.
26272 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26273 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26275 LIBOBJS=$ac_libobjs
26277 LTLIBOBJS=$ac_ltlibobjs
26281 : ${CONFIG_STATUS=./config.status}
26282 ac_clean_files_save=$ac_clean_files
26283 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26284 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26285 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26286 cat >$CONFIG_STATUS <<_ACEOF
26288 # Generated by $as_me.
26289 # Run this file to recreate the current configuration.
26290 # Compiler output produced by configure, useful for debugging
26291 # configure, is in config.log if it exists.
26294 ac_cs_recheck=false
26296 SHELL=\${CONFIG_SHELL-$SHELL}
26299 cat >>$CONFIG_STATUS <<\_ACEOF
26300 ## --------------------- ##
26301 ## M4sh Initialization. ##
26302 ## --------------------- ##
26304 # Be more Bourne compatible
26305 DUALCASE=1; export DUALCASE # for MKS sh
26306 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26309 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26310 # is contrary to our usage. Disable this feature.
26311 alias -g '${1+"$@"}'='"$@"'
26312 setopt NO_GLOB_SUBST
26314 case `(set -o) 2>/dev/null` in
26315 *posix*) set -o posix ;;
26324 # Avoid depending upon Character Ranges.
26325 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26326 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26327 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26328 as_cr_digits='0123456789'
26329 as_cr_alnum=$as_cr_Letters$as_cr_digits
26331 # The user is always right.
26332 if test "${PATH_SEPARATOR+set}" != set; then
26333 echo "#! /bin/sh" >conf$$.sh
26334 echo "exit 0" >>conf$$.sh
26336 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26344 # Support unset when possible.
26345 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26353 # We need space, tab and new line, in precisely that order. Quoting is
26354 # there to prevent editors from complaining about space-tab.
26355 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26356 # splitting by setting IFS to empty value.)
26361 # Find who we are. Look in the path if we contain no directory separator.
26363 *[\\/]* ) as_myself=$0 ;;
26364 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26365 for as_dir in $PATH
26368 test -z "$as_dir" && as_dir=.
26369 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26375 # We did not find ourselves, most probably we were run as `sh COMMAND'
26376 # in which case we are not to be found in the path.
26377 if test "x$as_myself" = x; then
26380 if test ! -f "$as_myself"; then
26381 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26382 { (exit 1); exit 1; }
26385 # Work around bugs in pre-3.0 UWIN ksh.
26386 for as_var in ENV MAIL MAILPATH
26387 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26395 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26396 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26397 LC_TELEPHONE LC_TIME
26399 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26400 eval $as_var=C; export $as_var
26402 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26406 # Required to use basename.
26407 if expr a : '\(a\)' >/dev/null 2>&1 &&
26408 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26414 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26415 as_basename=basename
26421 # Name of the executable.
26422 as_me=`$as_basename -- "$0" ||
26423 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26424 X"$0" : 'X\(//\)$' \| \
26425 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26427 sed '/^.*\/\([^/][^/]*\)\/*$/{
26446 as_lineno_1=$LINENO
26447 as_lineno_2=$LINENO
26448 test "x$as_lineno_1" != "x$as_lineno_2" &&
26449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26452 # uniformly replaced by the line number. The first 'sed' inserts a
26453 # line-number line after each line using $LINENO; the second 'sed'
26454 # does the real work. The second script uses 'N' to pair each
26455 # line-number line with the line containing $LINENO, and appends
26456 # trailing '-' during substitution so that $LINENO is not a special
26457 # case at line end.
26458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26459 # scripts with optimization help from Paolo Bonzini. Blame Lee
26460 # E. McMahon (1931-1989) for sed's syntax. :-)
26472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26475 ' >$as_me.lineno &&
26476 chmod +x "$as_me.lineno" ||
26477 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26478 { (exit 1); exit 1; }; }
26480 # Don't try to exec as it changes $[0], causing all sort of problems
26481 # (the dirname of $[0] is not the place where we might find the
26482 # original and so on. Autoconf is especially sensitive to this).
26483 . "./$as_me.lineno"
26484 # Exit status is that of the last command.
26489 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26495 ECHO_C= ECHO_N= ECHO_T=
26496 case `echo -n x` in
26498 case `echo 'x\c'` in
26499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26506 if expr a : '\(a\)' >/dev/null 2>&1 &&
26507 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26513 rm -f conf$$ conf$$.exe conf$$.file
26514 if test -d conf$$.dir; then
26515 rm -f conf$$.dir/conf$$.file
26521 if ln -s conf$$.file conf$$ 2>/dev/null; then
26523 # ... but there are two gotchas:
26524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26526 # In both cases, we have to default to `cp -p'.
26527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26529 elif ln conf$$.file conf$$ 2>/dev/null; then
26534 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26535 rmdir conf$$.dir 2>/dev/null
26537 if mkdir -p . 2>/dev/null; then
26540 test -d ./-p && rmdir ./-p
26544 if test -x / >/dev/null 2>&1; then
26545 as_test_x='test -x'
26547 if ls -dL / >/dev/null 2>&1; then
26554 if test -d "$1"; then
26560 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26561 ???[sx]*):;;*)false;;esac;fi
26565 as_executable_p=$as_test_x
26567 # Sed expression to map a string onto a valid CPP name.
26568 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26570 # Sed expression to map a string onto a valid variable name.
26571 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26576 # Save the log message, to keep $[0] and so on meaningful, and to
26577 # report actual input values of CONFIG_FILES etc. instead of their
26578 # values after options handling.
26580 This file was extended by $as_me, which was
26581 generated by GNU Autoconf 2.61. Invocation command line was
26583 CONFIG_FILES = $CONFIG_FILES
26584 CONFIG_HEADERS = $CONFIG_HEADERS
26585 CONFIG_LINKS = $CONFIG_LINKS
26586 CONFIG_COMMANDS = $CONFIG_COMMANDS
26589 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26594 cat >>$CONFIG_STATUS <<_ACEOF
26595 # Files that config.status was made for.
26596 config_files="$ac_config_files"
26597 config_headers="$ac_config_headers"
26601 cat >>$CONFIG_STATUS <<\_ACEOF
26603 \`$as_me' instantiates files from templates according to the
26604 current configuration.
26606 Usage: $0 [OPTIONS] [FILE]...
26608 -h, --help print this help, then exit
26609 -V, --version print version number and configuration settings, then exit
26610 -q, --quiet do not print progress messages
26611 -d, --debug don't remove temporary files
26612 --recheck update $as_me by reconfiguring in the same conditions
26613 --file=FILE[:TEMPLATE]
26614 instantiate the configuration file FILE
26615 --header=FILE[:TEMPLATE]
26616 instantiate the configuration header FILE
26618 Configuration files:
26621 Configuration headers:
26624 Report bugs to <bug-autoconf@gnu.org>."
26627 cat >>$CONFIG_STATUS <<_ACEOF
26630 configured by $0, generated by GNU Autoconf 2.61,
26631 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26633 Copyright (C) 2006 Free Software Foundation, Inc.
26634 This config.status script is free software; the Free Software Foundation
26635 gives unlimited permission to copy, distribute and modify it."
26642 cat >>$CONFIG_STATUS <<\_ACEOF
26643 # If no file are specified by the user, then we need to provide default
26644 # value. By we need to know if files were specified by the user.
26650 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26651 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26662 # Handling of the options.
26663 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26665 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26666 echo "$ac_cs_version"; exit ;;
26667 --debug | --debu | --deb | --de | --d | -d )
26669 --file | --fil | --fi | --f )
26671 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26672 ac_need_defaults=false;;
26673 --header | --heade | --head | --hea )
26675 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26676 ac_need_defaults=false;;
26678 # Conflict between --help and --header
26679 { echo "$as_me: error: ambiguous option: $1
26680 Try \`$0 --help' for more information." >&2
26681 { (exit 1); exit 1; }; };;
26682 --help | --hel | -h )
26683 echo "$ac_cs_usage"; exit ;;
26684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26685 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26688 # This is an error.
26689 -*) { echo "$as_me: error: unrecognized option: $1
26690 Try \`$0 --help' for more information." >&2
26691 { (exit 1); exit 1; }; } ;;
26693 *) ac_config_targets="$ac_config_targets $1"
26694 ac_need_defaults=false ;;
26700 ac_configure_extra_args=
26702 if $ac_cs_silent; then
26704 ac_configure_extra_args="$ac_configure_extra_args --silent"
26708 cat >>$CONFIG_STATUS <<_ACEOF
26709 if \$ac_cs_recheck; then
26710 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26711 CONFIG_SHELL=$SHELL
26712 export CONFIG_SHELL
26713 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26717 cat >>$CONFIG_STATUS <<\_ACEOF
26721 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26722 ## Running $as_me. ##
26728 cat >>$CONFIG_STATUS <<_ACEOF
26731 cat >>$CONFIG_STATUS <<\_ACEOF
26733 # Handling of arguments.
26734 for ac_config_target in $ac_config_targets
26736 case $ac_config_target in
26737 "h/config.h") CONFIG_HEADERS="$CONFIG_HEADERS h/config.h" ;;
26738 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26739 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
26740 "clients/zaway/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zaway/Makefile" ;;
26741 "clients/zctl/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zctl/Makefile" ;;
26742 "clients/zleave/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zleave/Makefile" ;;
26743 "clients/zlocate/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zlocate/Makefile" ;;
26744 "clients/znol/Makefile") CONFIG_FILES="$CONFIG_FILES clients/znol/Makefile" ;;
26745 "clients/zshutdown_notify/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zshutdown_notify/Makefile" ;;
26746 "clients/zstat/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zstat/Makefile" ;;
26747 "clients/zwrite/Makefile") CONFIG_FILES="$CONFIG_FILES clients/zwrite/Makefile" ;;
26748 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26749 "libdyn/Makefile") CONFIG_FILES="$CONFIG_FILES libdyn/Makefile" ;;
26750 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
26751 "zhm/Makefile") CONFIG_FILES="$CONFIG_FILES zhm/Makefile" ;;
26752 "zwgc/Makefile") CONFIG_FILES="$CONFIG_FILES zwgc/Makefile" ;;
26754 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26755 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26756 { (exit 1); exit 1; }; };;
26761 # If the user did not use the arguments to specify the items to instantiate,
26762 # then the envvar interface is used. Set only those that are not.
26763 # We use the long form for the default assignment because of an extremely
26764 # bizarre bug on SunOS 4.1.3.
26765 if $ac_need_defaults; then
26766 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26767 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26770 # Have a temporary directory for convenience. Make it in the build tree
26771 # simply because there is no reason against having it here, and in addition,
26772 # creating and moving files from /tmp can sometimes cause problems.
26773 # Hook for its removal unless debugging.
26774 # Note that there is a small window in which the directory will not be cleaned:
26775 # after its creation but before its name has been assigned to `$tmp'.
26779 trap 'exit_status=$?
26780 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26782 trap '{ (exit 1); exit 1; }' 1 2 13 15
26784 # Create a (secure) tmp directory for tmp files.
26787 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26788 test -n "$tmp" && test -d "$tmp"
26791 tmp=./conf$$-$RANDOM
26792 (umask 077 && mkdir "$tmp")
26795 echo "$me: cannot create a temporary directory in ." >&2
26796 { (exit 1); exit 1; }
26800 # Set up the sed scripts for CONFIG_FILES section.
26803 # No need to generate the scripts if there are no CONFIG_FILES.
26804 # This happens for instance when ./config.status config.h
26805 if test -n "$CONFIG_FILES"; then
26812 for ac_last_try in false false false false false :; do
26813 cat >conf$$subs.sed <<_ACEOF
26814 SHELL!$SHELL$ac_delim
26815 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26816 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26817 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26818 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26819 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26820 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26821 exec_prefix!$exec_prefix$ac_delim
26822 prefix!$prefix$ac_delim
26823 program_transform_name!$program_transform_name$ac_delim
26824 bindir!$bindir$ac_delim
26825 sbindir!$sbindir$ac_delim
26826 libexecdir!$libexecdir$ac_delim
26827 datarootdir!$datarootdir$ac_delim
26828 datadir!$datadir$ac_delim
26829 sysconfdir!$sysconfdir$ac_delim
26830 sharedstatedir!$sharedstatedir$ac_delim
26831 localstatedir!$localstatedir$ac_delim
26832 includedir!$includedir$ac_delim
26833 oldincludedir!$oldincludedir$ac_delim
26834 docdir!$docdir$ac_delim
26835 infodir!$infodir$ac_delim
26836 htmldir!$htmldir$ac_delim
26837 dvidir!$dvidir$ac_delim
26838 pdfdir!$pdfdir$ac_delim
26839 psdir!$psdir$ac_delim
26840 libdir!$libdir$ac_delim
26841 localedir!$localedir$ac_delim
26842 mandir!$mandir$ac_delim
26843 DEFS!$DEFS$ac_delim
26844 ECHO_C!$ECHO_C$ac_delim
26845 ECHO_N!$ECHO_N$ac_delim
26846 ECHO_T!$ECHO_T$ac_delim
26847 LIBS!$LIBS$ac_delim
26848 build_alias!$build_alias$ac_delim
26849 host_alias!$host_alias$ac_delim
26850 target_alias!$target_alias$ac_delim
26851 lbindir!$lbindir$ac_delim
26852 lsbindir!$lsbindir$ac_delim
26853 build!$build$ac_delim
26854 build_cpu!$build_cpu$ac_delim
26855 build_vendor!$build_vendor$ac_delim
26856 build_os!$build_os$ac_delim
26857 host!$host$ac_delim
26858 host_cpu!$host_cpu$ac_delim
26859 host_vendor!$host_vendor$ac_delim
26860 host_os!$host_os$ac_delim
26861 target!$target$ac_delim
26862 target_cpu!$target_cpu$ac_delim
26863 target_vendor!$target_vendor$ac_delim
26864 target_os!$target_os$ac_delim
26866 CFLAGS!$CFLAGS$ac_delim
26867 LDFLAGS!$LDFLAGS$ac_delim
26868 CPPFLAGS!$CPPFLAGS$ac_delim
26869 ac_ct_CC!$ac_ct_CC$ac_delim
26870 EXEEXT!$EXEEXT$ac_delim
26871 OBJEXT!$OBJEXT$ac_delim
26872 YACC!$YACC$ac_delim
26873 YFLAGS!$YFLAGS$ac_delim
26875 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
26876 LEXLIB!$LEXLIB$ac_delim
26877 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26878 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26879 INSTALL_DATA!$INSTALL_DATA$ac_delim
26880 RANLIB!$RANLIB$ac_delim
26881 GREP!$GREP$ac_delim
26882 EGREP!$EGREP$ac_delim
26883 LN_S!$LN_S$ac_delim
26884 ECHO!$ECHO$ac_delim
26886 STRIP!$STRIP$ac_delim
26889 CXXFLAGS!$CXXFLAGS$ac_delim
26890 ac_ct_CXX!$ac_ct_CXX$ac_delim
26891 CXXCPP!$CXXCPP$ac_delim
26893 FFLAGS!$FFLAGS$ac_delim
26894 ac_ct_F77!$ac_ct_F77$ac_delim
26895 LIBTOOL!$LIBTOOL$ac_delim
26896 XMKMF!$XMKMF$ac_delim
26897 X_CFLAGS!$X_CFLAGS$ac_delim
26898 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
26899 X_LIBS!$X_LIBS$ac_delim
26900 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
26901 XCLIENTS!$XCLIENTS$ac_delim
26902 ZWGC_LIBX11!$ZWGC_LIBX11$ac_delim
26903 TLIB!$TLIB$ac_delim
26904 RLIB!$RLIB$ac_delim
26905 SLIB!$SLIB$ac_delim
26906 KRB4_LIBS!$KRB4_LIBS$ac_delim
26907 KRB5_LIBS!$KRB5_LIBS$ac_delim
26908 HESIOD_LIBS!$HESIOD_LIBS$ac_delim
26909 REGEX_LIBS!$REGEX_LIBS$ac_delim
26910 ARES_LIBS!$ARES_LIBS$ac_delim
26913 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26915 elif $ac_last_try; then
26916 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26917 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26918 { (exit 1); exit 1; }; }
26920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26924 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26925 if test -n "$ac_eof"; then
26926 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26927 ac_eof=`expr $ac_eof + 1`
26930 cat >>$CONFIG_STATUS <<_ACEOF
26931 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26932 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26935 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26936 s/^/s,@/; s/!/@,|#_!!_#|/
26939 s/'"$ac_delim"'$/,g/; t
26941 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26942 ' >>$CONFIG_STATUS <conf$$subs.sed
26943 rm -f conf$$subs.sed
26944 cat >>$CONFIG_STATUS <<_ACEOF
26950 for ac_last_try in false false false false false :; do
26951 cat >conf$$subs.sed <<_ACEOF
26952 LIBOBJS!$LIBOBJS$ac_delim
26953 LTLIBOBJS!$LTLIBOBJS$ac_delim
26956 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
26958 elif $ac_last_try; then
26959 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26960 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26961 { (exit 1); exit 1; }; }
26963 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26967 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26968 if test -n "$ac_eof"; then
26969 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26970 ac_eof=`expr $ac_eof + 1`
26973 cat >>$CONFIG_STATUS <<_ACEOF
26974 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26975 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26978 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26979 s/^/s,@/; s/!/@,|#_!!_#|/
26982 s/'"$ac_delim"'$/,g/; t
26984 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26985 ' >>$CONFIG_STATUS <conf$$subs.sed
26986 rm -f conf$$subs.sed
26987 cat >>$CONFIG_STATUS <<_ACEOF
26994 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26995 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26996 # trailing colons and then remove the whole line if VPATH becomes empty
26997 # (actually we leave an empty line to preserve line numbers).
26998 if test "x$srcdir" = x.; then
26999 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27000 s/:*\$(srcdir):*/:/
27001 s/:*\${srcdir}:*/:/
27003 s/^\([^=]*=[ ]*\):*/\1/
27009 cat >>$CONFIG_STATUS <<\_ACEOF
27010 fi # test -n "$CONFIG_FILES"
27013 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
27016 :[FHLC]) ac_mode=$ac_tag; continue;;
27018 case $ac_mode$ac_tag in
27020 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27021 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27022 { (exit 1); exit 1; }; };;
27023 :[FH]-) ac_tag=-:-;;
27024 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27041 -) ac_f="$tmp/stdin";;
27042 *) # Look for the file first in the build tree, then in the source tree
27043 # (if the path is not absolute). The absolute path cannot be DOS-style,
27044 # because $ac_f cannot contain `:'.
27048 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27050 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27051 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27052 { (exit 1); exit 1; }; };;
27054 ac_file_inputs="$ac_file_inputs $ac_f"
27057 # Let's still pretend it is `configure' which instantiates (i.e., don't
27058 # use $as_me), people would be surprised to read:
27059 # /* config.h. Generated by config.status. */
27060 configure_input="Generated from "`IFS=:
27061 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27062 if test x"$ac_file" != x-; then
27063 configure_input="$ac_file. $configure_input"
27064 { echo "$as_me:$LINENO: creating $ac_file" >&5
27065 echo "$as_me: creating $ac_file" >&6;}
27069 *:-:* | *:-) cat >"$tmp/stdin";;
27074 ac_dir=`$as_dirname -- "$ac_file" ||
27075 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27076 X"$ac_file" : 'X\(//\)[^/]' \| \
27077 X"$ac_file" : 'X\(//\)$' \| \
27078 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27084 /^X\(\/\/\)[^/].*/{
27099 -*) as_dir=./$as_dir;;
27101 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27105 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27106 *) as_qdir=$as_dir;;
27108 as_dirs="'$as_qdir' $as_dirs"
27109 as_dir=`$as_dirname -- "$as_dir" ||
27110 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27111 X"$as_dir" : 'X\(//\)[^/]' \| \
27112 X"$as_dir" : 'X\(//\)$' \| \
27113 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27119 /^X\(\/\/\)[^/].*/{
27132 test -d "$as_dir" && break
27134 test -z "$as_dirs" || eval "mkdir $as_dirs"
27135 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27136 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27137 { (exit 1); exit 1; }; }; }
27141 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27143 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27144 # A ".." for each directory in $ac_dir_suffix.
27145 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27146 case $ac_top_builddir_sub in
27147 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27148 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27151 ac_abs_top_builddir=$ac_pwd
27152 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27153 # for backward compatibility:
27154 ac_top_builddir=$ac_top_build_prefix
27157 .) # We are building in place.
27159 ac_top_srcdir=$ac_top_builddir_sub
27160 ac_abs_top_srcdir=$ac_pwd ;;
27161 [\\/]* | ?:[\\/]* ) # Absolute name.
27162 ac_srcdir=$srcdir$ac_dir_suffix;
27163 ac_top_srcdir=$srcdir
27164 ac_abs_top_srcdir=$srcdir ;;
27165 *) # Relative name.
27166 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27167 ac_top_srcdir=$ac_top_build_prefix$srcdir
27168 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27170 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27180 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27181 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27185 cat >>$CONFIG_STATUS <<\_ACEOF
27186 # If the template does not know about datarootdir, expand it.
27187 # FIXME: This hack should be removed a few years after 2.60.
27188 ac_datarootdir_hack=; ac_datarootdir_seen=
27190 case `sed -n '/datarootdir/ {
27199 ' $ac_file_inputs` in
27200 *datarootdir*) ac_datarootdir_seen=yes;;
27201 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27202 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27203 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27205 cat >>$CONFIG_STATUS <<_ACEOF
27206 ac_datarootdir_hack='
27207 s&@datadir@&$datadir&g
27208 s&@docdir@&$docdir&g
27209 s&@infodir@&$infodir&g
27210 s&@localedir@&$localedir&g
27211 s&@mandir@&$mandir&g
27212 s&\\\${datarootdir}&$datarootdir&g' ;;
27216 # Neutralize VPATH when `$srcdir' = `.'.
27217 # Shell code in configure.ac might set extrasub.
27218 # FIXME: do we really want to maintain this feature?
27219 cat >>$CONFIG_STATUS <<_ACEOF
27223 cat >>$CONFIG_STATUS <<\_ACEOF
27225 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27226 s&@configure_input@&$configure_input&;t t
27227 s&@top_builddir@&$ac_top_builddir_sub&;t t
27228 s&@srcdir@&$ac_srcdir&;t t
27229 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27230 s&@top_srcdir@&$ac_top_srcdir&;t t
27231 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27232 s&@builddir@&$ac_builddir&;t t
27233 s&@abs_builddir@&$ac_abs_builddir&;t t
27234 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27235 s&@INSTALL@&$ac_INSTALL&;t t
27236 $ac_datarootdir_hack
27237 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27239 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27240 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27241 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27242 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27243 which seems to be undefined. Please make sure it is defined." >&5
27244 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27245 which seems to be undefined. Please make sure it is defined." >&2;}
27249 -) cat "$tmp/out"; rm -f "$tmp/out";;
27250 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27259 # Transform confdefs.h into a sed script `conftest.defines', that
27260 # substitutes the proper values into config.h.in to produce config.h.
27261 rm -f conftest.defines conftest.tail
27262 # First, append a space to every undef/define line, to ease matching.
27263 echo 's/$/ /' >conftest.defines
27264 # Then, protect against being on the right side of a sed subst, or in
27265 # an unquoted here document, in config.status. If some macros were
27266 # called several times there might be several #defines for the same
27267 # symbol, which is useless. But do not sort them, since the last
27268 # AC_DEFINE must be honored.
27269 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27270 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27271 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27272 # PARAMS is the parameter list in the macro definition--in most cases, it's
27273 # just an empty string.
27274 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27275 ac_dB='\\)[ (].*,\\1define\\2'
27283 s/^[ ]*#[ ]*define[ ][ ]*//
27288 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27289 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27290 ' >>conftest.defines
27292 # Remove the space that was appended to ease matching.
27293 # Then replace #undef with comments. This is necessary, for
27294 # example, in the case of _POSIX_SOURCE, which is predefined and required
27295 # on some systems where configure will not decide to define it.
27296 # (The regexp can be short, since the line contains either #define or #undef.)
27298 s,^[ #]*u.*,/* & */,' >>conftest.defines
27300 # Break up conftest.defines:
27301 ac_max_sed_lines=50
27303 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27304 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27305 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27307 ac_in='$ac_file_inputs'
27308 ac_out='"$tmp/out1"'
27309 ac_nxt='"$tmp/out2"'
27313 # Write a here document:
27314 cat >>$CONFIG_STATUS <<_ACEOF
27315 # First, check the format of the line:
27316 cat >"\$tmp/defines.sed" <<\\CEOF
27317 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27318 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27322 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27324 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27325 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27326 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27327 grep . conftest.tail >/dev/null || break
27328 rm -f conftest.defines
27329 mv conftest.tail conftest.defines
27331 rm -f conftest.defines conftest.tail
27333 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27334 cat >>$CONFIG_STATUS <<\_ACEOF
27335 if test x"$ac_file" != x-; then
27336 echo "/* $configure_input */" >"$tmp/config.h"
27337 cat "$ac_result" >>"$tmp/config.h"
27338 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27339 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27340 echo "$as_me: $ac_file is unchanged" >&6;}
27343 mv "$tmp/config.h" $ac_file
27346 echo "/* $configure_input */"
27358 { (exit 0); exit 0; }
27360 chmod +x $CONFIG_STATUS
27361 ac_clean_files=$ac_clean_files_save
27364 # configure is writing to config.log, and then calls config.status.
27365 # config.status does its own redirection, appending to config.log.
27366 # Unfortunately, on DOS this fails, as config.log is still kept open
27367 # by configure, so config.status won't be able to write to it; its
27368 # output is simply discarded. So we exec the FD to /dev/null,
27369 # effectively closing config.log, so it can be properly (re)opened and
27370 # appended to by config.status. When coming back to configure, we
27371 # need to make the FD available again.
27372 if test "$no_create" != yes; then
27374 ac_config_status_args=
27375 test "$silent" = yes &&
27376 ac_config_status_args="$ac_config_status_args --quiet"
27378 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27380 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27381 # would make configure fail if this is the last instruction.
27382 $ac_cs_success || { (exit 1); exit 1; }