2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for linux nfs-utils 1.0.8-rc4.
5 # Report bugs to <nfs@lists.sf.net>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
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+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='linux nfs-utils'
425 PACKAGE_TARNAME='nfs-utils'
426 PACKAGE_VERSION='1.0.8-rc4'
427 PACKAGE_STRING='linux nfs-utils 1.0.8-rc4'
428 PACKAGE_BUGREPORT='nfs@lists.sf.net'
430 ac_unique_file="tools/getiversion/getiversion.c"
431 ac_default_prefix=/usr
432 ac_unique_file="support/include/config.h.in"
433 # Factoring default headers for most tests.
434 ac_includes_default="\
437 # include <sys/types.h>
440 # include <sys/stat.h>
451 # if !STDC_HEADERS && HAVE_MEMORY_H
457 # include <strings.h>
460 # include <inttypes.h>
470 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar RELEASE statedir statduser enable_nfsv3 IDMAPD enable_nfsv4 CONFIG_NFSV4_TRUE CONFIG_NFSV4_FALSE GSSD SVCGSSD enable_gss CONFIG_GSS_TRUE CONFIG_GSS_FALSE kprefix secure_statd CONFIG_RQUOTAD_TRUE CONFIG_RQUOTAD_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBWRAP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CC_FOR_BUILD LD ac_ct_LD PKG_CONFIG ac_pt_PKG_CONFIG RPCSECGSS_CFLAGS RPCSECGSS_LIBS LIBSOCKET LIBNSL LIBCRYPT LIBBSD KRBDIR KRBLIBS KRBCFLAGS K5VERS ALLOCA LIBOBJS CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD AM_CPPFLAGS AM_CFLAGS ACLOCAL_AMFLAGS LTLIBOBJS'
473 # Initialize some variables set by options.
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
485 program_transform_name=s,x,x,
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
514 # If the previous option needs an argument, assign it.
515 if test -n "$ac_prev"; then
516 eval "$ac_prev=\$ac_option"
521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523 # Accept the important Cygnus configure options, so we can diagnose typos.
527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
532 -build | --build | --buil | --bui | --bu)
533 ac_prev=build_alias ;;
534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535 build_alias=$ac_optarg ;;
537 -cache-file | --cache-file | --cache-fil | --cache-fi \
538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539 ac_prev=cache_file ;;
540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542 cache_file=$ac_optarg ;;
545 cache_file=config.cache ;;
547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551 datadir=$ac_optarg ;;
553 -disable-* | --disable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 eval "enable_$ac_feature=no" ;;
562 -enable-* | --enable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
573 eval "enable_$ac_feature='$ac_optarg'" ;;
575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577 | --exec | --exe | --ex)
578 ac_prev=exec_prefix ;;
579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581 | --exec=* | --exe=* | --ex=*)
582 exec_prefix=$ac_optarg ;;
584 -gas | --gas | --ga | --g)
585 # Obsolete; use --with-gas.
588 -help | --help | --hel | --he | -h)
590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591 ac_init_help=recursive ;;
592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593 ac_init_help=short ;;
595 -host | --host | --hos | --ho)
596 ac_prev=host_alias ;;
597 -host=* | --host=* | --hos=* | --ho=*)
598 host_alias=$ac_optarg ;;
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
605 includedir=$ac_optarg ;;
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610 infodir=$ac_optarg ;;
612 -libdir | --libdir | --libdi | --libd)
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
622 libexecdir=$ac_optarg ;;
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631 localstatedir=$ac_optarg ;;
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
639 # Obsolete; use --without-fp.
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643 | --no-cr | --no-c | -n)
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657 oldincludedir=$ac_optarg ;;
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669 program_prefix=$ac_optarg ;;
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676 program_suffix=$ac_optarg ;;
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
693 program_transform_name=$ac_optarg ;;
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 sbindir=$ac_optarg ;;
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 sharedstatedir=$ac_optarg ;;
716 -site | --site | --sit)
718 -site=* | --site=* | --sit=*)
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731 sysconfdir=$ac_optarg ;;
733 -target | --target | --targe | --targ | --tar | --ta | --t)
734 ac_prev=target_alias ;;
735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736 target_alias=$ac_optarg ;;
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
741 -version | --version | --versio | --versi | --vers | -V)
745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package| sed 's/-/_/g'`
752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
755 eval "with_$ac_package='$ac_optarg'" ;;
757 -without-* | --without-*)
758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759 # Reject names that are not valid shell variable names.
760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package | sed 's/-/_/g'`
764 eval "with_$ac_package=no" ;;
767 # Obsolete; use --with-x.
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775 x_includes=$ac_optarg ;;
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782 x_libraries=$ac_optarg ;;
784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
800 # FIXME: should be removed in autoconf 3.0.
801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810 if test -n "$ac_prev"; then
811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
819 eval ac_val=$`echo $ac_var`
821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
831 eval ac_val=$`echo $ac_var`
833 [\\/$]* | ?:[\\/]* ) ;;
834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835 { (exit 1); exit 1; }; };;
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860 test "$silent" = yes && exec 6>/dev/null
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
867 ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
880 if test ! -r $srcdir/$ac_unique_file; then
884 ac_srcdir_defaulted=no
886 if test ! -r $srcdir/$ac_unique_file; then
887 if test "$ac_srcdir_defaulted" = yes; then
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CC_set=${CC+set}
913 ac_cv_env_CC_set=${CC+set}
914 ac_cv_env_CC_value=$CC
915 ac_env_CFLAGS_set=${CFLAGS+set}
916 ac_env_CFLAGS_value=$CFLAGS
917 ac_cv_env_CFLAGS_set=${CFLAGS+set}
918 ac_cv_env_CFLAGS_value=$CFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
943 ac_env_F77_set=${F77+set}
944 ac_env_F77_value=$F77
945 ac_cv_env_F77_set=${F77+set}
946 ac_cv_env_F77_value=$F77
947 ac_env_FFLAGS_set=${FFLAGS+set}
948 ac_env_FFLAGS_value=$FFLAGS
949 ac_cv_env_FFLAGS_set=${FFLAGS+set}
950 ac_cv_env_FFLAGS_value=$FFLAGS
951 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
952 ac_env_PKG_CONFIG_value=$PKG_CONFIG
953 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
954 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
955 ac_env_RPCSECGSS_CFLAGS_set=${RPCSECGSS_CFLAGS+set}
956 ac_env_RPCSECGSS_CFLAGS_value=$RPCSECGSS_CFLAGS
957 ac_cv_env_RPCSECGSS_CFLAGS_set=${RPCSECGSS_CFLAGS+set}
958 ac_cv_env_RPCSECGSS_CFLAGS_value=$RPCSECGSS_CFLAGS
959 ac_env_RPCSECGSS_LIBS_set=${RPCSECGSS_LIBS+set}
960 ac_env_RPCSECGSS_LIBS_value=$RPCSECGSS_LIBS
961 ac_cv_env_RPCSECGSS_LIBS_set=${RPCSECGSS_LIBS+set}
962 ac_cv_env_RPCSECGSS_LIBS_value=$RPCSECGSS_LIBS
965 # Report the --help message.
967 if test "$ac_init_help" = "long"; then
968 # Omit some internal or obsolete options to make the list less imposing.
969 # This message is too long to be a string in the A/UX 3.1 sh.
971 \`configure' configures linux nfs-utils 1.0.8-rc4 to adapt to many kinds of systems.
973 Usage: $0 [OPTION]... [VAR=VALUE]...
975 To assign environment variables (e.g., CC, CFLAGS...), specify them as
976 VAR=VALUE. See below for descriptions of some of the useful variables.
978 Defaults for the options are specified in brackets.
981 -h, --help display this help and exit
982 --help=short display options specific to this package
983 --help=recursive display the short help of all the included packages
984 -V, --version display version information and exit
985 -q, --quiet, --silent do not print \`checking...' messages
986 --cache-file=FILE cache test results in FILE [disabled]
987 -C, --config-cache alias for \`--cache-file=config.cache'
988 -n, --no-create do not create output files
989 --srcdir=DIR find the sources in DIR [configure dir or \`..']
994 Installation directories:
995 --prefix=PREFIX install architecture-independent files in PREFIX
997 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1000 By default, \`make install' will install all the files in
1001 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1002 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1003 for instance \`--prefix=\$HOME'.
1005 For better control, use the options below.
1007 Fine tuning of the installation directories:
1008 --bindir=DIR user executables [EPREFIX/bin]
1009 --sbindir=DIR system admin executables [EPREFIX/sbin]
1010 --libexecdir=DIR program executables [EPREFIX/libexec]
1011 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1012 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1013 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1014 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1015 --libdir=DIR object code libraries [EPREFIX/lib]
1016 --includedir=DIR C header files [PREFIX/include]
1017 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1018 --infodir=DIR info documentation [PREFIX/info]
1019 --mandir=DIR man documentation [PREFIX/man]
1025 --program-prefix=PREFIX prepend PREFIX to installed program names
1026 --program-suffix=SUFFIX append SUFFIX to installed program names
1027 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1030 --build=BUILD configure for building on BUILD [guessed]
1031 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1035 if test -n "$ac_init_help"; then
1036 case $ac_init_help in
1037 short | recursive ) echo "Configuration of linux nfs-utils 1.0.8-rc4:";;
1042 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1043 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1044 --enable-nfsv3 enable support for NFSv3 [default=yes]
1045 --enable-nfsv4 enable support for NFSv4 [default=yes]
1046 --enable-gss enable support for rpcsec_gss [default=yes]
1047 --enable-kprefix install progs as rpc.knfsd etc
1048 --enable-secure-statd Only lockd can use statd (security)
1049 --enable-rquotad enable rquotad [default=yes]
1050 --disable-dependency-tracking speeds up one-time build
1051 --enable-dependency-tracking do not reject slow dependency extractors
1052 --enable-shared[=PKGS]
1053 build shared libraries [default=yes]
1054 --enable-static[=PKGS]
1055 build static libraries [default=yes]
1056 --enable-fast-install[=PKGS]
1057 optimize for fast installation [default=yes]
1058 --disable-libtool-lock avoid locking (might break parallel builds)
1061 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1062 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1063 --with-release=XXX set release to XXX [1]
1064 --with-statedir=/foo use state dir /foo /var/lib/nfs
1065 --with-statduser=rpcuser
1066 statd to run under [rpcuser or nobody]
1067 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1068 (optionally in PATH)
1069 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1070 --with-pic try to use only PIC/non-PIC objects [default=use
1073 include additional configurations [automatic]
1074 --with-krb5=DIR use Kerberos v5 installation in DIR
1076 Some influential environment variables:
1077 CC C compiler command
1078 CFLAGS C compiler flags
1079 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1080 nonstandard directory <lib dir>
1081 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1082 headers in a nonstandard directory <include dir>
1083 CXX C++ compiler command
1084 CXXFLAGS C++ compiler flags
1086 CXXCPP C++ preprocessor
1087 F77 Fortran 77 compiler command
1088 FFLAGS Fortran 77 compiler flags
1089 PKG_CONFIG path to pkg-config utility
1091 C compiler flags for RPCSECGSS, overriding pkg-config
1093 linker flags for RPCSECGSS, overriding pkg-config
1095 Use these variables to override the choices made by `configure' or to help
1096 it to find libraries and programs with nonstandard names/locations.
1098 Report bugs to <nfs@lists.sf.net>.
1102 if test "$ac_init_help" = "recursive"; then
1103 # If there are subdirs, report their specific --help.
1105 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1106 test -d $ac_dir || continue
1109 if test "$ac_dir" != .; then
1110 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1111 # A "../" for each directory in $ac_dir_suffix.
1112 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1114 ac_dir_suffix= ac_top_builddir=
1118 .) # No --srcdir option. We are building in place.
1120 if test -z "$ac_top_builddir"; then
1123 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1125 [\\/]* | ?:[\\/]* ) # Absolute path.
1126 ac_srcdir=$srcdir$ac_dir_suffix;
1127 ac_top_srcdir=$srcdir ;;
1129 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1130 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1133 # Do not use `cd foo && pwd` to compute absolute paths, because
1134 # the directories may not exist.
1136 .) ac_abs_builddir="$ac_dir";;
1139 .) ac_abs_builddir=`pwd`;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1141 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1144 case $ac_abs_builddir in
1145 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1147 case ${ac_top_builddir}. in
1148 .) ac_abs_top_builddir=$ac_abs_builddir;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1150 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1153 case $ac_abs_builddir in
1154 .) ac_abs_srcdir=$ac_srcdir;;
1157 .) ac_abs_srcdir=$ac_abs_builddir;;
1158 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1159 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1162 case $ac_abs_builddir in
1163 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1165 case $ac_top_srcdir in
1166 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1167 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1168 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1173 # Check for guested configure; otherwise get Cygnus style configure.
1174 if test -f $ac_srcdir/configure.gnu; then
1176 $SHELL $ac_srcdir/configure.gnu --help=recursive
1177 elif test -f $ac_srcdir/configure; then
1179 $SHELL $ac_srcdir/configure --help=recursive
1180 elif test -f $ac_srcdir/configure.ac ||
1181 test -f $ac_srcdir/configure.in; then
1183 $ac_configure --help
1185 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1191 test -n "$ac_init_help" && exit 0
1192 if $ac_init_version; then
1194 linux nfs-utils configure 1.0.8-rc4
1195 generated by GNU Autoconf 2.59
1197 Copyright (C) 2003 Free Software Foundation, Inc.
1198 This configure script is free software; the Free Software Foundation
1199 gives unlimited permission to copy, distribute and modify it.
1205 This file contains any messages produced by compilers while
1206 running configure, to aid debugging if configure makes a mistake.
1208 It was created by linux nfs-utils $as_me 1.0.8-rc4, which was
1209 generated by GNU Autoconf 2.59. Invocation command line was
1220 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1221 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1222 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1223 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1224 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1226 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1227 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1229 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1230 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1231 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1232 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1233 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1234 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1235 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1243 test -z "$as_dir" && as_dir=.
1244 echo "PATH: $as_dir"
1259 # Keep a trace of the command line.
1260 # Strip out --no-create and --no-recursion so they do not pile up.
1261 # Strip out --silent because we don't want to record it for future runs.
1262 # Also quote any args containing shell meta-characters.
1263 # Make two passes to allow for proper duplicate-argument suppression.
1268 ac_must_keep_next=false
1274 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276 | -silent | --silent | --silen | --sile | --sil)
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1284 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1285 if test $ac_must_keep_next = true; then
1286 ac_must_keep_next=false # Got value, back to normal.
1289 *=* | --config-cache | -C | -disable-* | --disable-* \
1290 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1291 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1292 | -with-* | --with-* | -without-* | --without-* | --x)
1293 case "$ac_configure_args0 " in
1294 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1297 -* ) ac_must_keep_next=true ;;
1300 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1301 # Get rid of the leading space.
1307 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1308 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1310 # When interrupted or exit'd, cleanup temporary files, and complete
1311 # config.log. We remove comments because anyway the quotes in there
1312 # would cause problems or look ugly.
1313 # WARNING: Be sure not to use single quotes in there, as some shells,
1314 # such as our DU 5.0 friend, will then `close' the trap.
1315 trap 'exit_status=$?
1316 # Save into config.log some information that might help in debugging.
1321 ## ---------------- ##
1322 ## Cache variables. ##
1323 ## ---------------- ##
1326 # The following way of writing the cache mishandles newlines in values,
1329 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1332 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1344 ## ----------------- ##
1345 ## Output variables. ##
1346 ## ----------------- ##
1349 for ac_var in $ac_subst_vars
1351 eval ac_val=$`echo $ac_var`
1352 echo "$ac_var='"'"'$ac_val'"'"'"
1356 if test -n "$ac_subst_files"; then
1363 for ac_var in $ac_subst_files
1365 eval ac_val=$`echo $ac_var`
1366 echo "$ac_var='"'"'$ac_val'"'"'"
1371 if test -s confdefs.h; then
1378 sed "/^$/d" confdefs.h | sort
1381 test "$ac_signal" != 0 &&
1382 echo "$as_me: caught signal $ac_signal"
1383 echo "$as_me: exit $exit_status"
1385 rm -f core *.core &&
1386 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1389 for ac_signal in 1 2 13 15; do
1390 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1394 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1395 rm -rf conftest* confdefs.h
1396 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1399 # Predefined preprocessor variables.
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_NAME "$PACKAGE_NAME"
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1411 cat >>confdefs.h <<_ACEOF
1412 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_STRING "$PACKAGE_STRING"
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1426 # Let the site file select an alternate cache file if it wants to.
1427 # Prefer explicitly selected file to automatically selected ones.
1428 if test -z "$CONFIG_SITE"; then
1429 if test "x$prefix" != xNONE; then
1430 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1432 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1435 for ac_site_file in $CONFIG_SITE; do
1436 if test -r "$ac_site_file"; then
1437 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1438 echo "$as_me: loading site script $ac_site_file" >&6;}
1439 sed 's/^/| /' "$ac_site_file" >&5
1444 if test -r "$cache_file"; then
1445 # Some versions of bash will fail to source /dev/null (special
1446 # files actually), so we avoid doing that.
1447 if test -f "$cache_file"; then
1448 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1449 echo "$as_me: loading cache $cache_file" >&6;}
1451 [\\/]* | ?:[\\/]* ) . $cache_file;;
1452 *) . ./$cache_file;;
1456 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1457 echo "$as_me: creating cache $cache_file" >&6;}
1461 # Check that the precious variables saved in the cache have kept the same
1463 ac_cache_corrupted=false
1464 for ac_var in `(set) 2>&1 |
1465 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1466 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1467 eval ac_new_set=\$ac_env_${ac_var}_set
1468 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1469 eval ac_new_val="\$ac_env_${ac_var}_value"
1470 case $ac_old_set,$ac_new_set in
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1477 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1481 if test "x$ac_old_val" != "x$ac_new_val"; then
1482 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1483 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1484 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1485 echo "$as_me: former value: $ac_old_val" >&2;}
1486 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1487 echo "$as_me: current value: $ac_new_val" >&2;}
1488 ac_cache_corrupted=:
1491 # Pass precious variables to config.status.
1492 if test "$ac_new_set" = set; then
1494 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1495 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1496 *) ac_arg=$ac_var=$ac_new_val ;;
1498 case " $ac_configure_args " in
1499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1500 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1504 if $ac_cache_corrupted; then
1505 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1506 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1507 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1508 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1509 { (exit 1); exit 1; }; }
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546 if test -f $ac_dir/install-sh; then
1548 ac_install_sh="$ac_aux_dir/install-sh -c"
1550 elif test -f $ac_dir/install.sh; then
1552 ac_install_sh="$ac_aux_dir/install.sh -c"
1554 elif test -f $ac_dir/shtool; then
1556 ac_install_sh="$ac_aux_dir/shtool install -c"
1560 if test -z "$ac_aux_dir"; then
1561 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563 { (exit 1); exit 1; }; }
1565 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1569 # Make sure we can run config.sub.
1570 $ac_config_sub sun4 >/dev/null 2>&1 ||
1571 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573 { (exit 1); exit 1; }; }
1575 echo "$as_me:$LINENO: checking build system type" >&5
1576 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577 if test "${ac_cv_build+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 ac_cv_build_alias=$build_alias
1581 test -z "$ac_cv_build_alias" &&
1582 ac_cv_build_alias=`$ac_config_guess`
1583 test -z "$ac_cv_build_alias" &&
1584 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586 { (exit 1); exit 1; }; }
1587 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590 { (exit 1); exit 1; }; }
1593 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594 echo "${ECHO_T}$ac_cv_build" >&6
1596 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601 echo "$as_me:$LINENO: checking host system type" >&5
1602 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603 if test "${ac_cv_host+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 ac_cv_host_alias=$host_alias
1607 test -z "$ac_cv_host_alias" &&
1608 ac_cv_host_alias=$ac_cv_build_alias
1609 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1615 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616 echo "${ECHO_T}$ac_cv_host" >&6
1618 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1625 [\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal ;;
1626 *) ac_macro_dir=$srcdir/aclocal ;;
1628 if test -d "$ac_macro_dir"; then :
1630 { { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
1631 echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
1632 { (exit 1); exit 1; }; }
1635 am__api_version="1.9"
1636 # Find a good install program. We prefer a C program (faster),
1637 # so one script is as good as another. But avoid the broken or
1638 # incompatible versions:
1639 # SysV /etc/install, /usr/sbin/install
1640 # SunOS /usr/etc/install
1641 # IRIX /sbin/install
1643 # AmigaOS /C/install, which installs bootblocks on floppy discs
1644 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1645 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1646 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1647 # OS/2's system install, which has a completely different semantic
1648 # ./install, which can be erroneously created by make from ./install.sh.
1649 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1650 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1651 if test -z "$INSTALL"; then
1652 if test "${ac_cv_path_install+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 test -z "$as_dir" && as_dir=.
1660 # Account for people who put trailing slashes in PATH elements.
1662 ./ | .// | /cC/* | \
1663 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1664 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1667 # OSF1 and SCO ODT 3.0 have their own names for install.
1668 # Don't use installbsd from OSF since it installs stuff as root
1670 for ac_prog in ginstall scoinst install; do
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1673 if test $ac_prog = install &&
1674 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1675 # AIX install. It has an incompatible calling convention.
1677 elif test $ac_prog = install &&
1678 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1679 # program-specific install script used by HP pwplus--don't use.
1682 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1694 if test "${ac_cv_path_install+set}" = set; then
1695 INSTALL=$ac_cv_path_install
1697 # As a last resort, use the slow shell script. We don't cache a
1698 # path for INSTALL within a source directory, because that will
1699 # break other packages using the cache if that directory is
1700 # removed, or if the path is relative.
1701 INSTALL=$ac_install_sh
1704 echo "$as_me:$LINENO: result: $INSTALL" >&5
1705 echo "${ECHO_T}$INSTALL" >&6
1707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1708 # It thinks the first close brace ends the variable substitution.
1709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1715 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1716 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1719 echo timestamp > conftest.file
1720 # Do `set' in a subshell so we don't clobber the current shell's
1721 # arguments. Must try -L first in case configure is actually a
1722 # symlink; some systems play weird games with the mod time of symlinks
1723 # (eg FreeBSD returns the mod time of the symlink's containing
1726 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1727 if test "$*" = "X"; then
1729 set X `ls -t $srcdir/configure conftest.file`
1732 if test "$*" != "X $srcdir/configure conftest.file" \
1733 && test "$*" != "X conftest.file $srcdir/configure"; then
1735 # If neither matched, then we have a broken ls. This can happen
1736 # if, for instance, CONFIG_SHELL is bash and it inherits a
1737 # broken ls alias from the environment. This has actually
1738 # happened. Such a system could not be considered "sane".
1739 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1740 alias in your environment" >&5
1741 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1742 alias in your environment" >&2;}
1743 { (exit 1); exit 1; }; }
1746 test "$2" = conftest.file
1752 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1753 Check your system clock" >&5
1754 echo "$as_me: error: newly created file is older than distributed files!
1755 Check your system clock" >&2;}
1756 { (exit 1); exit 1; }; }
1758 echo "$as_me:$LINENO: result: yes" >&5
1759 echo "${ECHO_T}yes" >&6
1760 test "$program_prefix" != NONE &&
1761 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1762 # Use a double $ so make ignores it.
1763 test "$program_suffix" != NONE &&
1764 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1765 # Double any \ or $. echo might interpret backslashes.
1766 # By default was `s,x,x', remove it if useless.
1767 cat <<\_ACEOF >conftest.sed
1768 s/[\\$]/&&/g;s/;s,x,x,$//
1770 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1773 # expand $ac_aux_dir to an absolute path
1774 am_aux_dir=`cd $ac_aux_dir && pwd`
1776 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1777 # Use eval to expand $SHELL
1778 if eval "$MISSING --run true"; then
1779 am_missing_run="$MISSING --run "
1782 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1783 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1786 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1787 # We used to keeping the `.' as first argument, in order to
1788 # allow $(mkdir_p) to be used without argument. As in
1789 # $(mkdir_p) $(somedir)
1790 # where $(somedir) is conditionally defined. However this is wrong
1792 # 1. if the package is installed by a user who cannot write `.'
1793 # make install will fail,
1794 # 2. the above comment should most certainly read
1795 # $(mkdir_p) $(DESTDIR)$(somedir)
1796 # so it does not work when $(somedir) is undefined and
1797 # $(DESTDIR) is not.
1798 # To support the latter case, we have to write
1799 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1800 # so the `.' trick is pointless.
1801 mkdir_p='mkdir -p --'
1803 # On NextStep and OpenStep, the `mkdir' command does not
1804 # recognize any option. It will interpret all options as
1805 # directories to create, and then abort because `.' already
1807 for d in ./-p ./--version;
1809 test -d $d && rmdir $d
1811 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1812 if test -f "$ac_aux_dir/mkinstalldirs"; then
1813 mkdir_p='$(mkinstalldirs)'
1815 mkdir_p='$(install_sh) -d'
1819 for ac_prog in gawk mawk nawk awk
1821 # Extract the first word of "$ac_prog", so it can be a program name with args.
1822 set dummy $ac_prog; ac_word=$2
1823 echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825 if test "${ac_cv_prog_AWK+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1828 if test -n "$AWK"; then
1829 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 test -z "$as_dir" && as_dir=.
1836 for ac_exec_ext in '' $ac_executable_extensions; do
1837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838 ac_cv_prog_AWK="$ac_prog"
1839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848 if test -n "$AWK"; then
1849 echo "$as_me:$LINENO: result: $AWK" >&5
1850 echo "${ECHO_T}$AWK" >&6
1852 echo "$as_me:$LINENO: result: no" >&5
1853 echo "${ECHO_T}no" >&6
1856 test -n "$AWK" && break
1859 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1860 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1861 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1862 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 cat >conftest.make <<\_ACEOF
1867 @echo 'ac_maketemp="$(MAKE)"'
1869 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1870 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1871 if test -n "$ac_maketemp"; then
1872 eval ac_cv_prog_make_${ac_make}_set=yes
1874 eval ac_cv_prog_make_${ac_make}_set=no
1878 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1879 echo "$as_me:$LINENO: result: yes" >&5
1880 echo "${ECHO_T}yes" >&6
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1885 SET_MAKE="MAKE=${MAKE-make}"
1888 rm -rf .tst 2>/dev/null
1889 mkdir .tst 2>/dev/null
1890 if test -d .tst; then
1895 rmdir .tst 2>/dev/null
1897 # test to see if srcdir already configured
1898 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1899 test -f $srcdir/config.status; then
1900 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1901 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1902 { (exit 1); exit 1; }; }
1905 # test whether we have cygpath
1906 if test -z "$CYGPATH_W"; then
1907 if (cygpath --version) >/dev/null 2>/dev/null; then
1908 CYGPATH_W='cygpath -w'
1915 # Define the identity of the package.
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE "$PACKAGE"
1925 cat >>confdefs.h <<_ACEOF
1926 #define VERSION "$VERSION"
1929 # Some tools Automake needs.
1931 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1934 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1937 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1940 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1943 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1945 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1947 # Installed binaries are usually stripped using `strip' when the user
1948 # run `make install-strip'. However `strip' might not be the right
1949 # tool to use in cross-compilation environments, therefore Automake
1950 # will honor the `STRIP' environment variable to overrule this program.
1951 if test "$cross_compiling" != no; then
1952 if test -n "$ac_tool_prefix"; then
1953 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1954 set dummy ${ac_tool_prefix}strip; ac_word=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_STRIP+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 if test -n "$STRIP"; then
1961 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 STRIP=$ac_cv_prog_STRIP
1980 if test -n "$STRIP"; then
1981 echo "$as_me:$LINENO: result: $STRIP" >&5
1982 echo "${ECHO_T}$STRIP" >&6
1984 echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1989 if test -z "$ac_cv_prog_STRIP"; then
1991 # Extract the first word of "strip", so it can be a program name with args.
1992 set dummy strip; ac_word=$2
1993 echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 if test -n "$ac_ct_STRIP"; then
1999 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008 ac_cv_prog_ac_ct_STRIP="strip"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2018 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2019 if test -n "$ac_ct_STRIP"; then
2020 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2021 echo "${ECHO_T}$ac_ct_STRIP" >&6
2023 echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2029 STRIP="$ac_cv_prog_STRIP"
2033 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2035 # We need awk for the "check" target. The system "awk" is bad on
2037 # Always define AMTAR for backward compatibility.
2039 AMTAR=${AMTAR-"${am_missing_run}tar"}
2041 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2051 # Check whether --with-release or --without-release was given.
2052 if test "${with_release+set}" = set; then
2053 withval="$with_release"
2060 # Check whether --with-statedir or --without-statedir was given.
2061 if test "${with_statedir+set}" = set; then
2062 withval="$with_statedir"
2065 statedir=/var/lib/nfs
2069 # Check whether --with-statduser or --without-statduser was given.
2070 if test "${with_statduser+set}" = set; then
2071 withval="$with_statduser"
2074 if test "x$cross_compiling" = "xno"; then
2075 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2085 # Check whether --enable-nfsv3 or --disable-nfsv3 was given.
2086 if test "${enable_nfsv3+set}" = set; then
2087 enableval="$enable_nfsv3"
2088 enable_nfsv3=$enableval
2092 if test "$enable_nfsv3" = yes; then
2094 cat >>confdefs.h <<\_ACEOF
2095 #define NFS3_SUPPORTED 1
2102 # Check whether --enable-nfsv4 or --disable-nfsv4 was given.
2103 if test "${enable_nfsv4+set}" = set; then
2104 enableval="$enable_nfsv4"
2105 enable_nfsv4=$enableval
2109 if test "$enable_nfsv4" = yes; then
2111 cat >>confdefs.h <<\_ACEOF
2112 #define NFS4_SUPPORTED 1
2124 if test "$enable_nfsv4" = "yes"; then
2126 CONFIG_NFSV4_FALSE='#'
2128 CONFIG_NFSV4_TRUE='#'
2132 # Check whether --enable-gss or --disable-gss was given.
2133 if test "${enable_gss+set}" = set; then
2134 enableval="$enable_gss"
2135 enable_gss=$enableval
2139 if test "$enable_gss" = yes; then
2141 cat >>confdefs.h <<\_ACEOF
2142 #define GSS_SUPPORTED 1
2157 if test "$enable_gss" = "yes"; then
2159 CONFIG_GSS_FALSE='#'
2165 # Check whether --enable-kprefix or --disable-kprefix was given.
2166 if test "${enable_kprefix+set}" = set; then
2167 enableval="$enable_kprefix"
2168 test "$enableval" = "yes" && kprefix=k
2173 # Check whether --enable-secure-statd or --disable-secure-statd was given.
2174 if test "${enable_secure_statd+set}" = set; then
2175 enableval="$enable_secure_statd"
2176 test "$enableval" = "yes" && secure_statd=yes
2180 if test "$secure_statd" = yes; then
2182 cat >>confdefs.h <<\_ACEOF
2183 #define RESTRICTED_STATD 1
2188 # Check whether --enable-rquotad or --disable-rquotad was given.
2189 if test "${enable_rquotad+set}" = set; then
2190 enableval="$enable_rquotad"
2191 enable_rquotad=$enableval
2195 if test "$enable_rquotad" = yes; then
2202 if test "$enable_rquotad" = "yes"; then
2203 CONFIG_RQUOTAD_TRUE=
2204 CONFIG_RQUOTAD_FALSE='#'
2206 CONFIG_RQUOTAD_TRUE='#'
2207 CONFIG_RQUOTAD_FALSE=
2211 # Check whether user wants TCP wrappers support
2212 DEPDIR="${am__leading_dot}deps"
2214 ac_config_commands="$ac_config_commands depfiles"
2217 am_make=${MAKE-make}
2218 cat > confinc << 'END'
2223 # If we don't find an include directive, just comment out the code.
2224 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2225 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2229 # First try GNU make style include.
2230 echo "include confinc" > confmf
2231 # We grep out `Entering directory' and `Leaving directory'
2232 # messages which can occur if `w' ends up in MAKEFLAGS.
2233 # In particular we don't look at `^make:' because GNU make might
2234 # be invoked under some other name (usually "gmake"), in which
2235 # case it prints its new name instead of `make'.
2236 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2241 # Now try BSD make style include.
2242 if test "$am__include" = "#"; then
2243 echo '.include "confinc"' > confmf
2244 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2245 am__include=.include
2252 echo "$as_me:$LINENO: result: $_am_result" >&5
2253 echo "${ECHO_T}$_am_result" >&6
2254 rm -f confinc confmf
2256 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2257 if test "${enable_dependency_tracking+set}" = set; then
2258 enableval="$enable_dependency_tracking"
2261 if test "x$enable_dependency_tracking" != xno; then
2262 am_depcomp="$ac_aux_dir/depcomp"
2267 if test "x$enable_dependency_tracking" != xno; then
2278 ac_cpp='$CPP $CPPFLAGS'
2279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282 if test -n "$ac_tool_prefix"; then
2283 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2285 echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC="$CC" # Let the user override the test.
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 if test -n "$CC"; then
2311 echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6
2314 echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2319 if test -z "$ac_cv_prog_CC"; then
2321 # Extract the first word of "gcc", so it can be a program name with args.
2322 set dummy gcc; ac_word=$2
2323 echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 if test -n "$ac_ct_CC"; then
2329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2338 ac_cv_prog_ac_ct_CC="gcc"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2348 if test -n "$ac_ct_CC"; then
2349 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2350 echo "${ECHO_T}$ac_ct_CC" >&6
2352 echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6
2361 if test -z "$CC"; then
2362 if test -n "$ac_tool_prefix"; then
2363 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2364 set dummy ${ac_tool_prefix}cc; ac_word=$2
2365 echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 if test -n "$CC"; then
2371 ac_cv_prog_CC="$CC" # Let the user override the test.
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2380 ac_cv_prog_CC="${ac_tool_prefix}cc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 if test -n "$CC"; then
2391 echo "$as_me:$LINENO: result: $CC" >&5
2392 echo "${ECHO_T}$CC" >&6
2394 echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6
2399 if test -z "$ac_cv_prog_CC"; then
2401 # Extract the first word of "cc", so it can be a program name with args.
2402 set dummy cc; ac_word=$2
2403 echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2405 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2408 if test -n "$ac_ct_CC"; then
2409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 test -z "$as_dir" && as_dir=.
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2418 ac_cv_prog_ac_ct_CC="cc"
2419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428 if test -n "$ac_ct_CC"; then
2429 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2430 echo "${ECHO_T}$ac_ct_CC" >&6
2432 echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6
2442 if test -z "$CC"; then
2443 # Extract the first word of "cc", so it can be a program name with args.
2444 set dummy cc; ac_word=$2
2445 echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2447 if test "${ac_cv_prog_CC+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 if test -n "$CC"; then
2451 ac_cv_prog_CC="$CC" # Let the user override the test.
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2461 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2462 ac_prog_rejected=yes
2466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 if test $ac_prog_rejected = yes; then
2473 # We found a bogon in the path, so make sure we never use it.
2474 set dummy $ac_cv_prog_CC
2476 if test $# != 0; then
2477 # We chose a different compiler from the bogus one.
2478 # However, it has the same basename, so the bogon will be chosen
2479 # first if we set CC to just the basename; use the full file name.
2481 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2487 if test -n "$CC"; then
2488 echo "$as_me:$LINENO: result: $CC" >&5
2489 echo "${ECHO_T}$CC" >&6
2491 echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6
2496 if test -z "$CC"; then
2497 if test -n "$ac_tool_prefix"; then
2500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2502 echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2504 if test "${ac_cv_prog_CC+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 if test -n "$CC"; then
2508 ac_cv_prog_CC="$CC" # Let the user override the test.
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2517 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 if test -n "$CC"; then
2528 echo "$as_me:$LINENO: result: $CC" >&5
2529 echo "${ECHO_T}$CC" >&6
2531 echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6
2535 test -n "$CC" && break
2538 if test -z "$CC"; then
2542 # Extract the first word of "$ac_prog", so it can be a program name with args.
2543 set dummy $ac_prog; ac_word=$2
2544 echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2546 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 if test -n "$ac_ct_CC"; then
2550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2559 ac_cv_prog_ac_ct_CC="$ac_prog"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2569 if test -n "$ac_ct_CC"; then
2570 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2571 echo "${ECHO_T}$ac_ct_CC" >&6
2573 echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2577 test -n "$ac_ct_CC" && break
2586 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2587 See \`config.log' for more details." >&5
2588 echo "$as_me: error: no acceptable C compiler found in \$PATH
2589 See \`config.log' for more details." >&2;}
2590 { (exit 1); exit 1; }; }
2592 # Provide some information about the compiler.
2593 echo "$as_me:$LINENO:" \
2594 "checking for C compiler version" >&5
2595 ac_compiler=`set X $ac_compile; echo $2`
2596 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2597 (eval $ac_compiler --version </dev/null >&5) 2>&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }
2601 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2602 (eval $ac_compiler -v </dev/null >&5) 2>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }
2606 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2607 (eval $ac_compiler -V </dev/null >&5) 2>&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }
2612 cat >conftest.$ac_ext <<_ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2627 ac_clean_files_save=$ac_clean_files
2628 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2629 # Try to create an executable without -o first, disregard a.out.
2630 # It will help us diagnose broken compilers, and finding out an intuition
2632 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2633 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2634 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2635 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2636 (eval $ac_link_default) 2>&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; then
2640 # Find the output, starting from the most likely. This scheme is
2641 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2644 # Be careful to initialize this variable, since it used to be cached.
2645 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2647 # b.out is created by i960 compilers.
2648 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2650 test -f "$ac_file" || continue
2652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2655 # This is the source file.
2658 # We found the default executable, but exeext='' is most
2662 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2663 # FIXME: I believe we export ac_cv_exeext for Libtool,
2664 # but it would be cool to find out if it's true. Does anybody
2665 # maintain Libtool? --akim.
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2676 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2677 See \`config.log' for more details." >&5
2678 echo "$as_me: error: C compiler cannot create executables
2679 See \`config.log' for more details." >&2;}
2680 { (exit 77); exit 77; }; }
2683 ac_exeext=$ac_cv_exeext
2684 echo "$as_me:$LINENO: result: $ac_file" >&5
2685 echo "${ECHO_T}$ac_file" >&6
2687 # Check the compiler produces executables we can run. If not, either
2688 # the compiler is broken, or we cross compile.
2689 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2690 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2691 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2692 # If not cross compiling, check that we can run a simple program.
2693 if test "$cross_compiling" != yes; then
2694 if { ac_try='./$ac_file'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2702 if test "$cross_compiling" = maybe; then
2705 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2706 If you meant to cross compile, use \`--host'.
2707 See \`config.log' for more details." >&5
2708 echo "$as_me: error: cannot run C compiled programs.
2709 If you meant to cross compile, use \`--host'.
2710 See \`config.log' for more details." >&2;}
2711 { (exit 1); exit 1; }; }
2715 echo "$as_me:$LINENO: result: yes" >&5
2716 echo "${ECHO_T}yes" >&6
2718 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2719 ac_clean_files=$ac_clean_files_save
2720 # Check the compiler produces executables we can run. If not, either
2721 # the compiler is broken, or we cross compile.
2722 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2723 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2724 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2725 echo "${ECHO_T}$cross_compiling" >&6
2727 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2728 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2730 (eval $ac_link) 2>&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; then
2734 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2735 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2736 # work properly (i.e., refer to `conftest.exe'), while it won't with
2738 for ac_file in conftest.exe conftest conftest.*; do
2739 test -f "$ac_file" || continue
2741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2749 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2750 See \`config.log' for more details." >&5
2751 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2752 See \`config.log' for more details." >&2;}
2753 { (exit 1); exit 1; }; }
2756 rm -f conftest$ac_cv_exeext
2757 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2758 echo "${ECHO_T}$ac_cv_exeext" >&6
2760 rm -f conftest.$ac_ext
2761 EXEEXT=$ac_cv_exeext
2763 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2764 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2765 if test "${ac_cv_objext+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 cat >conftest.$ac_ext <<_ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2783 rm -f conftest.o conftest.obj
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785 (eval $ac_compile) 2>&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; then
2789 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2792 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2800 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2801 See \`config.log' for more details." >&5
2802 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2803 See \`config.log' for more details." >&2;}
2804 { (exit 1); exit 1; }; }
2807 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2809 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2810 echo "${ECHO_T}$ac_cv_objext" >&6
2811 OBJEXT=$ac_cv_objext
2813 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2814 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2815 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 cat >conftest.$ac_ext <<_ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2836 rm -f conftest.$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838 (eval $ac_compile) 2>conftest.er1
2840 grep -v '^ *+' conftest.er1 >conftest.err
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try='test -s conftest.$ac_objext'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2865 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2868 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2869 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2870 GCC=`test $ac_compiler_gnu = yes && echo yes`
2871 ac_test_CFLAGS=${CFLAGS+set}
2872 ac_save_CFLAGS=$CFLAGS
2874 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2875 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2876 if test "${ac_cv_prog_cc_g+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 cat >conftest.$ac_ext <<_ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896 (eval $ac_compile) 2>conftest.er1
2898 grep -v '^ *+' conftest.er1 >conftest.err
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } &&
2903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; } &&
2909 { ac_try='test -s conftest.$ac_objext'
2910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; }; then
2917 echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2924 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2925 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2926 if test "$ac_test_CFLAGS" = set; then
2927 CFLAGS=$ac_save_CFLAGS
2928 elif test $ac_cv_prog_cc_g = yes; then
2929 if test "$GCC" = yes; then
2935 if test "$GCC" = yes; then
2941 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2942 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2943 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 ac_cv_prog_cc_stdc=no
2948 cat >conftest.$ac_ext <<_ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2956 #include <sys/types.h>
2957 #include <sys/stat.h>
2958 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2959 struct buf { int x; };
2960 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2961 static char *e (p, i)
2967 static char *f (char * (*g) (char **, int), char **p, ...)
2972 s = g (p, va_arg (v,int));
2977 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2978 function prototypes and stuff, but not '\xHH' hex character constants.
2979 These don't provoke an error unfortunately, instead are silently treated
2980 as 'x'. The following induces an error, until -std1 is added to get
2981 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2982 array size at least. It's necessary to write '\x00'==0 to get something
2983 that's true only with -std1. */
2984 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2986 int test (int i, double x);
2987 struct s1 {int (*f) (int a);};
2988 struct s2 {int (*f) (double a);};
2989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2995 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3000 # Don't try gcc -ansi; that turns off useful extensions and
3001 # breaks some systems' header files.
3002 # AIX -qlanglvl=ansi
3003 # Ultrix and OSF/1 -std1
3004 # HP-UX 10.20 and later -Ae
3005 # HP-UX older versions -Aa -D_HPUX_SOURCE
3006 # SVR4 -Xc -D__EXTENSIONS__
3007 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3009 CC="$ac_save_CC $ac_arg"
3010 rm -f conftest.$ac_objext
3011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3012 (eval $ac_compile) 2>conftest.er1
3014 grep -v '^ *+' conftest.er1 >conftest.err
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; } &&
3025 { ac_try='test -s conftest.$ac_objext'
3026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
3031 ac_cv_prog_cc_stdc=$ac_arg
3034 echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3038 rm -f conftest.err conftest.$ac_objext
3040 rm -f conftest.$ac_ext conftest.$ac_objext
3045 case "x$ac_cv_prog_cc_stdc" in
3047 echo "$as_me:$LINENO: result: none needed" >&5
3048 echo "${ECHO_T}none needed" >&6 ;;
3050 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3051 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3052 CC="$CC $ac_cv_prog_cc_stdc" ;;
3055 # Some people use a C++ compiler to compile C. Since we use `exit',
3056 # in C++ we need to declare it. In case someone uses the same compiler
3057 # for both compiling C and C++ we need to have the C++ compiler decide
3058 # the declaration of exit, since it's the most demanding environment.
3059 cat >conftest.$ac_ext <<_ACEOF
3064 rm -f conftest.$ac_objext
3065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3066 (eval $ac_compile) 2>conftest.er1
3068 grep -v '^ *+' conftest.er1 >conftest.err
3070 cat conftest.err >&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); } &&
3073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; } &&
3079 { ac_try='test -s conftest.$ac_objext'
3080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; }; then
3085 for ac_declaration in \
3087 'extern "C" void std::exit (int) throw (); using std::exit;' \
3088 'extern "C" void std::exit (int); using std::exit;' \
3089 'extern "C" void exit (int) throw ();' \
3090 'extern "C" void exit (int);' \
3093 cat >conftest.$ac_ext <<_ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3109 rm -f conftest.$ac_objext
3110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111 (eval $ac_compile) 2>conftest.er1
3113 grep -v '^ *+' conftest.er1 >conftest.err
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } &&
3118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; } &&
3124 { ac_try='test -s conftest.$ac_objext'
3125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; }; then
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3138 cat >conftest.$ac_ext <<_ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3153 rm -f conftest.$ac_objext
3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155 (eval $ac_compile) 2>conftest.er1
3157 grep -v '^ *+' conftest.er1 >conftest.err
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; } &&
3168 { ac_try='test -s conftest.$ac_objext'
3169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; }; then
3176 echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3183 if test -n "$ac_declaration"; then
3184 echo '#ifdef __cplusplus' >>confdefs.h
3185 echo $ac_declaration >>confdefs.h
3186 echo '#endif' >>confdefs.h
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201 depcc="$CC" am_compiler_list=
3203 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3204 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3205 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3209 # We make a subdir and do the tests there. Otherwise we can end up
3210 # making bogus files that we don't know about and never remove. For
3211 # instance it was reported that on HP-UX the gcc test will end up
3212 # making a dummy file named `D' -- because `-MD' means `put the output
3215 # Copy depcomp to subdir because otherwise we won't find it if we're
3216 # using a relative directory.
3217 cp "$am_depcomp" conftest.dir
3219 # We will build objects and dependencies in a subdirectory because
3220 # it helps to detect inapplicable dependency modes. For instance
3221 # both Tru64's cc and ICC support -MD to output dependencies as a
3222 # side effect of compilation, but ICC will put the dependencies in
3223 # the current directory while Tru64 will put them in the object
3227 am_cv_CC_dependencies_compiler_type=none
3228 if test "$am_compiler_list" = ""; then
3229 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3231 for depmode in $am_compiler_list; do
3232 # Setup a source with many dependencies, because some compilers
3233 # like to wrap large dependency lists on column 80 (with \), and
3234 # we should not choose a depcomp mode which is confused by this.
3236 # We need to recreate these files for each test, as the compiler may
3237 # overwrite some of them when testing with obscure command lines.
3238 # This happens at least with the AIX C compiler.
3240 for i in 1 2 3 4 5 6; do
3241 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3242 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3243 # Solaris 8's {/usr,}/bin/sh.
3244 touch sub/conftst$i.h
3246 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3250 # after this tag, mechanisms are not by side-effect, so they'll
3251 # only be used when explicitly requested
3252 if test "x$enable_dependency_tracking" = xyes; then
3260 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3261 # mode. It turns out that the SunPro C++ compiler does not properly
3262 # handle `-M -o', and we need to detect this.
3263 if depmode=$depmode \
3264 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3265 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3266 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3267 >/dev/null 2>conftest.err &&
3268 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3269 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3270 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3271 # icc doesn't choke on unknown options, it will just issue warnings
3272 # or remarks (even with -Werror). So we grep stderr for any message
3273 # that says an option was ignored or not supported.
3274 # When given -MP, icc 7.0 and 7.1 complain thusly:
3275 # icc: Command line warning: ignoring option '-M'; no argument required
3276 # The diagnosis changed in icc 8.0:
3277 # icc: Command line remark: option '-MP' not supported
3278 if (grep 'ignoring option' conftest.err ||
3279 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3280 am_cv_CC_dependencies_compiler_type=$depmode
3289 am_cv_CC_dependencies_compiler_type=none
3293 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3294 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3295 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3300 test "x$enable_dependency_tracking" != xno \
3301 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3303 am__fastdepCC_FALSE='#'
3305 am__fastdepCC_TRUE='#'
3306 am__fastdepCC_FALSE=
3314 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3315 if test "${with_tcp_wrappers+set}" = set; then
3316 withval="$with_tcp_wrappers"
3318 if test "x$withval" != "xno" ; then
3320 saved_LDFLAGS="$LDFLAGS"
3321 saved_CPPFLAGS="$CPPFLAGS"
3322 if test -n "${withval}" -a "${withval}" != "yes"; then
3323 if test -d "${withval}/lib"; then
3324 if test -n "${need_dash_r}"; then
3325 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3327 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3330 if test -n "${need_dash_r}"; then
3331 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3333 LDFLAGS="-L${withval} ${LDFLAGS}"
3336 if test -d "${withval}/include"; then
3337 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3339 CPPFLAGS="-I${withval} ${CPPFLAGS}"
3343 LIBS="$LIBWRAP $LIBS"
3344 echo "$as_me:$LINENO: checking for libwrap" >&5
3345 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
3346 cat >conftest.$ac_ext <<_ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3354 int deny_severity = 0, allow_severity = 0;
3364 rm -f conftest.$ac_objext conftest$ac_exeext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3366 (eval $ac_link) 2>conftest.er1
3368 grep -v '^ *+' conftest.er1 >conftest.err
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } &&
3373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try='test -s conftest$ac_exeext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3386 echo "$as_me:$LINENO: result: yes" >&5
3387 echo "${ECHO_T}yes" >&6
3390 cat >>confdefs.h <<\_ACEOF
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3401 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3402 echo "$as_me: error: *** libwrap missing" >&2;}
3403 { (exit 1); exit 1; }; }
3407 rm -f conftest.err conftest.$ac_objext \
3408 conftest$ac_exeext conftest.$ac_ext
3418 ac_config_headers="$ac_config_headers support/include/config.h"
3421 # Checks for programs.
3423 ac_cpp='$CXXCPP $CPPFLAGS'
3424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3427 if test -n "$ac_tool_prefix"; then
3428 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3432 echo "$as_me:$LINENO: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434 if test "${ac_cv_prog_CXX+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 if test -n "$CXX"; then
3438 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 if test -n "$CXX"; then
3458 echo "$as_me:$LINENO: result: $CXX" >&5
3459 echo "${ECHO_T}$CXX" >&6
3461 echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6
3465 test -n "$CXX" && break
3468 if test -z "$CXX"; then
3470 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3472 # Extract the first word of "$ac_prog", so it can be a program name with args.
3473 set dummy $ac_prog; ac_word=$2
3474 echo "$as_me:$LINENO: checking for $ac_word" >&5
3475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3476 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 if test -n "$ac_ct_CXX"; then
3480 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489 ac_cv_prog_ac_ct_CXX="$ac_prog"
3490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3499 if test -n "$ac_ct_CXX"; then
3500 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3501 echo "${ECHO_T}$ac_ct_CXX" >&6
3503 echo "$as_me:$LINENO: result: no" >&5
3504 echo "${ECHO_T}no" >&6
3507 test -n "$ac_ct_CXX" && break
3509 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3515 # Provide some information about the compiler.
3516 echo "$as_me:$LINENO:" \
3517 "checking for C++ compiler version" >&5
3518 ac_compiler=`set X $ac_compile; echo $2`
3519 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3520 (eval $ac_compiler --version </dev/null >&5) 2>&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }
3524 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3525 (eval $ac_compiler -v </dev/null >&5) 2>&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }
3529 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3530 (eval $ac_compiler -V </dev/null >&5) 2>&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }
3535 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3536 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3537 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 cat >conftest.$ac_ext <<_ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3558 rm -f conftest.$ac_objext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560 (eval $ac_compile) 2>conftest.er1
3562 grep -v '^ *+' conftest.er1 >conftest.err
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; } &&
3573 { ac_try='test -s conftest.$ac_objext'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; }; then
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3590 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3591 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3592 GXX=`test $ac_compiler_gnu = yes && echo yes`
3593 ac_test_CXXFLAGS=${CXXFLAGS+set}
3594 ac_save_CXXFLAGS=$CXXFLAGS
3596 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3597 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3598 if test "${ac_cv_prog_cxx_g+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 cat >conftest.$ac_ext <<_ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3616 rm -f conftest.$ac_objext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618 (eval $ac_compile) 2>conftest.er1
3620 grep -v '^ *+' conftest.er1 >conftest.err
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } &&
3625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest.$ac_objext'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 ac_cv_prog_cxx_g=yes
3639 echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3646 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3647 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3648 if test "$ac_test_CXXFLAGS" = set; then
3649 CXXFLAGS=$ac_save_CXXFLAGS
3650 elif test $ac_cv_prog_cxx_g = yes; then
3651 if test "$GXX" = yes; then
3657 if test "$GXX" = yes; then
3663 for ac_declaration in \
3665 'extern "C" void std::exit (int) throw (); using std::exit;' \
3666 'extern "C" void std::exit (int); using std::exit;' \
3667 'extern "C" void exit (int) throw ();' \
3668 'extern "C" void exit (int);' \
3671 cat >conftest.$ac_ext <<_ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3687 rm -f conftest.$ac_objext
3688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689 (eval $ac_compile) 2>conftest.er1
3691 grep -v '^ *+' conftest.er1 >conftest.err
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } &&
3696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; } &&
3702 { ac_try='test -s conftest.$ac_objext'
3703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; }; then
3710 echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3716 cat >conftest.$ac_ext <<_ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3731 rm -f conftest.$ac_objext
3732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733 (eval $ac_compile) 2>conftest.er1
3735 grep -v '^ *+' conftest.er1 >conftest.err
3737 cat conftest.err >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } &&
3740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }; } &&
3746 { ac_try='test -s conftest.$ac_objext'
3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; }; then
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3761 if test -n "$ac_declaration"; then
3762 echo '#ifdef __cplusplus' >>confdefs.h
3763 echo $ac_declaration >>confdefs.h
3764 echo '#endif' >>confdefs.h
3768 ac_cpp='$CPP $CPPFLAGS'
3769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773 depcc="$CXX" am_compiler_list=
3775 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3776 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3777 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3781 # We make a subdir and do the tests there. Otherwise we can end up
3782 # making bogus files that we don't know about and never remove. For
3783 # instance it was reported that on HP-UX the gcc test will end up
3784 # making a dummy file named `D' -- because `-MD' means `put the output
3787 # Copy depcomp to subdir because otherwise we won't find it if we're
3788 # using a relative directory.
3789 cp "$am_depcomp" conftest.dir
3791 # We will build objects and dependencies in a subdirectory because
3792 # it helps to detect inapplicable dependency modes. For instance
3793 # both Tru64's cc and ICC support -MD to output dependencies as a
3794 # side effect of compilation, but ICC will put the dependencies in
3795 # the current directory while Tru64 will put them in the object
3799 am_cv_CXX_dependencies_compiler_type=none
3800 if test "$am_compiler_list" = ""; then
3801 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3803 for depmode in $am_compiler_list; do
3804 # Setup a source with many dependencies, because some compilers
3805 # like to wrap large dependency lists on column 80 (with \), and
3806 # we should not choose a depcomp mode which is confused by this.
3808 # We need to recreate these files for each test, as the compiler may
3809 # overwrite some of them when testing with obscure command lines.
3810 # This happens at least with the AIX C compiler.
3812 for i in 1 2 3 4 5 6; do
3813 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3814 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3815 # Solaris 8's {/usr,}/bin/sh.
3816 touch sub/conftst$i.h
3818 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3822 # after this tag, mechanisms are not by side-effect, so they'll
3823 # only be used when explicitly requested
3824 if test "x$enable_dependency_tracking" = xyes; then
3832 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3833 # mode. It turns out that the SunPro C++ compiler does not properly
3834 # handle `-M -o', and we need to detect this.
3835 if depmode=$depmode \
3836 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3837 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3838 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3839 >/dev/null 2>conftest.err &&
3840 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3841 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3842 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3843 # icc doesn't choke on unknown options, it will just issue warnings
3844 # or remarks (even with -Werror). So we grep stderr for any message
3845 # that says an option was ignored or not supported.
3846 # When given -MP, icc 7.0 and 7.1 complain thusly:
3847 # icc: Command line warning: ignoring option '-M'; no argument required
3848 # The diagnosis changed in icc 8.0:
3849 # icc: Command line remark: option '-MP' not supported
3850 if (grep 'ignoring option' conftest.err ||
3851 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3852 am_cv_CXX_dependencies_compiler_type=$depmode
3861 am_cv_CXX_dependencies_compiler_type=none
3865 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3866 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3867 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3872 test "x$enable_dependency_tracking" != xno \
3873 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3874 am__fastdepCXX_TRUE=
3875 am__fastdepCXX_FALSE='#'
3877 am__fastdepCXX_TRUE='#'
3878 am__fastdepCXX_FALSE=
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887 if test -n "$ac_tool_prefix"; then
3888 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3889 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3890 echo "$as_me:$LINENO: checking for $ac_word" >&5
3891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3892 if test "${ac_cv_prog_CC+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 if test -n "$CC"; then
3896 ac_cv_prog_CC="$CC" # Let the user override the test.
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 if test -n "$CC"; then
3916 echo "$as_me:$LINENO: result: $CC" >&5
3917 echo "${ECHO_T}$CC" >&6
3919 echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3924 if test -z "$ac_cv_prog_CC"; then
3926 # Extract the first word of "gcc", so it can be a program name with args.
3927 set dummy gcc; ac_word=$2
3928 echo "$as_me:$LINENO: checking for $ac_word" >&5
3929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3930 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 if test -n "$ac_ct_CC"; then
3934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943 ac_cv_prog_ac_ct_CC="gcc"
3944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3953 if test -n "$ac_ct_CC"; then
3954 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3955 echo "${ECHO_T}$ac_ct_CC" >&6
3957 echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6
3966 if test -z "$CC"; then
3967 if test -n "$ac_tool_prefix"; then
3968 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3969 set dummy ${ac_tool_prefix}cc; ac_word=$2
3970 echo "$as_me:$LINENO: checking for $ac_word" >&5
3971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3972 if test "${ac_cv_prog_CC+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 if test -n "$CC"; then
3976 ac_cv_prog_CC="$CC" # Let the user override the test.
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 test -z "$as_dir" && as_dir=.
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3985 ac_cv_prog_CC="${ac_tool_prefix}cc"
3986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 if test -n "$CC"; then
3996 echo "$as_me:$LINENO: result: $CC" >&5
3997 echo "${ECHO_T}$CC" >&6
3999 echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6
4004 if test -z "$ac_cv_prog_CC"; then
4006 # Extract the first word of "cc", so it can be a program name with args.
4007 set dummy cc; ac_word=$2
4008 echo "$as_me:$LINENO: checking for $ac_word" >&5
4009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 if test -n "$ac_ct_CC"; then
4014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4023 ac_cv_prog_ac_ct_CC="cc"
4024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4033 if test -n "$ac_ct_CC"; then
4034 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4035 echo "${ECHO_T}$ac_ct_CC" >&6
4037 echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4047 if test -z "$CC"; then
4048 # Extract the first word of "cc", so it can be a program name with args.
4049 set dummy cc; ac_word=$2
4050 echo "$as_me:$LINENO: checking for $ac_word" >&5
4051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4052 if test "${ac_cv_prog_CC+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 if test -n "$CC"; then
4056 ac_cv_prog_CC="$CC" # Let the user override the test.
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 test -z "$as_dir" && as_dir=.
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4066 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4067 ac_prog_rejected=yes
4071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 if test $ac_prog_rejected = yes; then
4078 # We found a bogon in the path, so make sure we never use it.
4079 set dummy $ac_cv_prog_CC
4081 if test $# != 0; then
4082 # We chose a different compiler from the bogus one.
4083 # However, it has the same basename, so the bogon will be chosen
4084 # first if we set CC to just the basename; use the full file name.
4086 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4092 if test -n "$CC"; then
4093 echo "$as_me:$LINENO: result: $CC" >&5
4094 echo "${ECHO_T}$CC" >&6
4096 echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4101 if test -z "$CC"; then
4102 if test -n "$ac_tool_prefix"; then
4105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4107 echo "$as_me:$LINENO: checking for $ac_word" >&5
4108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4109 if test "${ac_cv_prog_CC+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 if test -n "$CC"; then
4113 ac_cv_prog_CC="$CC" # Let the user override the test.
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 if test -n "$CC"; then
4133 echo "$as_me:$LINENO: result: $CC" >&5
4134 echo "${ECHO_T}$CC" >&6
4136 echo "$as_me:$LINENO: result: no" >&5
4137 echo "${ECHO_T}no" >&6
4140 test -n "$CC" && break
4143 if test -z "$CC"; then
4147 # Extract the first word of "$ac_prog", so it can be a program name with args.
4148 set dummy $ac_prog; ac_word=$2
4149 echo "$as_me:$LINENO: checking for $ac_word" >&5
4150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4151 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 if test -n "$ac_ct_CC"; then
4155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164 ac_cv_prog_ac_ct_CC="$ac_prog"
4165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4174 if test -n "$ac_ct_CC"; then
4175 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4176 echo "${ECHO_T}$ac_ct_CC" >&6
4178 echo "$as_me:$LINENO: result: no" >&5
4179 echo "${ECHO_T}no" >&6
4182 test -n "$ac_ct_CC" && break
4191 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4192 See \`config.log' for more details." >&5
4193 echo "$as_me: error: no acceptable C compiler found in \$PATH
4194 See \`config.log' for more details." >&2;}
4195 { (exit 1); exit 1; }; }
4197 # Provide some information about the compiler.
4198 echo "$as_me:$LINENO:" \
4199 "checking for C compiler version" >&5
4200 ac_compiler=`set X $ac_compile; echo $2`
4201 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4202 (eval $ac_compiler --version </dev/null >&5) 2>&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }
4206 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4207 (eval $ac_compiler -v </dev/null >&5) 2>&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }
4211 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4212 (eval $ac_compiler -V </dev/null >&5) 2>&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }
4217 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4218 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4219 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 cat >conftest.$ac_ext <<_ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4240 rm -f conftest.$ac_objext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242 (eval $ac_compile) 2>conftest.er1
4244 grep -v '^ *+' conftest.er1 >conftest.err
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; } &&
4255 { ac_try='test -s conftest.$ac_objext'
4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4269 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4272 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4273 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4274 GCC=`test $ac_compiler_gnu = yes && echo yes`
4275 ac_test_CFLAGS=${CFLAGS+set}
4276 ac_save_CFLAGS=$CFLAGS
4278 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4279 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4280 if test "${ac_cv_prog_cc_g+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 cat >conftest.$ac_ext <<_ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h. */
4298 rm -f conftest.$ac_objext
4299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4300 (eval $ac_compile) 2>conftest.er1
4302 grep -v '^ *+' conftest.er1 >conftest.err
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } &&
4307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; } &&
4313 { ac_try='test -s conftest.$ac_objext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4328 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4329 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4330 if test "$ac_test_CFLAGS" = set; then
4331 CFLAGS=$ac_save_CFLAGS
4332 elif test $ac_cv_prog_cc_g = yes; then
4333 if test "$GCC" = yes; then
4339 if test "$GCC" = yes; then
4345 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4346 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4347 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 ac_cv_prog_cc_stdc=no
4352 cat >conftest.$ac_ext <<_ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4360 #include <sys/types.h>
4361 #include <sys/stat.h>
4362 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4363 struct buf { int x; };
4364 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4365 static char *e (p, i)
4371 static char *f (char * (*g) (char **, int), char **p, ...)
4376 s = g (p, va_arg (v,int));
4381 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4382 function prototypes and stuff, but not '\xHH' hex character constants.
4383 These don't provoke an error unfortunately, instead are silently treated
4384 as 'x'. The following induces an error, until -std1 is added to get
4385 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4386 array size at least. It's necessary to write '\x00'==0 to get something
4387 that's true only with -std1. */
4388 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4390 int test (int i, double x);
4391 struct s1 {int (*f) (int a);};
4392 struct s2 {int (*f) (double a);};
4393 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4399 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4404 # Don't try gcc -ansi; that turns off useful extensions and
4405 # breaks some systems' header files.
4406 # AIX -qlanglvl=ansi
4407 # Ultrix and OSF/1 -std1
4408 # HP-UX 10.20 and later -Ae
4409 # HP-UX older versions -Aa -D_HPUX_SOURCE
4410 # SVR4 -Xc -D__EXTENSIONS__
4411 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4413 CC="$ac_save_CC $ac_arg"
4414 rm -f conftest.$ac_objext
4415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416 (eval $ac_compile) 2>conftest.er1
4418 grep -v '^ *+' conftest.er1 >conftest.err
4420 cat conftest.err >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } &&
4423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; } &&
4429 { ac_try='test -s conftest.$ac_objext'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; }; then
4435 ac_cv_prog_cc_stdc=$ac_arg
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4442 rm -f conftest.err conftest.$ac_objext
4444 rm -f conftest.$ac_ext conftest.$ac_objext
4449 case "x$ac_cv_prog_cc_stdc" in
4451 echo "$as_me:$LINENO: result: none needed" >&5
4452 echo "${ECHO_T}none needed" >&6 ;;
4454 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4455 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4456 CC="$CC $ac_cv_prog_cc_stdc" ;;
4459 # Some people use a C++ compiler to compile C. Since we use `exit',
4460 # in C++ we need to declare it. In case someone uses the same compiler
4461 # for both compiling C and C++ we need to have the C++ compiler decide
4462 # the declaration of exit, since it's the most demanding environment.
4463 cat >conftest.$ac_ext <<_ACEOF
4468 rm -f conftest.$ac_objext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470 (eval $ac_compile) 2>conftest.er1
4472 grep -v '^ *+' conftest.er1 >conftest.err
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } &&
4477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; } &&
4483 { ac_try='test -s conftest.$ac_objext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4489 for ac_declaration in \
4491 'extern "C" void std::exit (int) throw (); using std::exit;' \
4492 'extern "C" void std::exit (int); using std::exit;' \
4493 'extern "C" void exit (int) throw ();' \
4494 'extern "C" void exit (int);' \
4497 cat >conftest.$ac_ext <<_ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4513 rm -f conftest.$ac_objext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515 (eval $ac_compile) 2>conftest.er1
4517 grep -v '^ *+' conftest.er1 >conftest.err
4519 cat conftest.err >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; } &&
4528 { ac_try='test -s conftest.$ac_objext'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4542 cat >conftest.$ac_ext <<_ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4557 rm -f conftest.$ac_objext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>conftest.er1
4561 grep -v '^ *+' conftest.er1 >conftest.err
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
4566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; } &&
4572 { ac_try='test -s conftest.$ac_objext'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4587 if test -n "$ac_declaration"; then
4588 echo '#ifdef __cplusplus' >>confdefs.h
4589 echo $ac_declaration >>confdefs.h
4590 echo '#endif' >>confdefs.h
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4600 ac_cpp='$CPP $CPPFLAGS'
4601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4605 depcc="$CC" am_compiler_list=
4607 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4608 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4609 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4613 # We make a subdir and do the tests there. Otherwise we can end up
4614 # making bogus files that we don't know about and never remove. For
4615 # instance it was reported that on HP-UX the gcc test will end up
4616 # making a dummy file named `D' -- because `-MD' means `put the output
4619 # Copy depcomp to subdir because otherwise we won't find it if we're
4620 # using a relative directory.
4621 cp "$am_depcomp" conftest.dir
4623 # We will build objects and dependencies in a subdirectory because
4624 # it helps to detect inapplicable dependency modes. For instance
4625 # both Tru64's cc and ICC support -MD to output dependencies as a
4626 # side effect of compilation, but ICC will put the dependencies in
4627 # the current directory while Tru64 will put them in the object
4631 am_cv_CC_dependencies_compiler_type=none
4632 if test "$am_compiler_list" = ""; then
4633 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4635 for depmode in $am_compiler_list; do
4636 # Setup a source with many dependencies, because some compilers
4637 # like to wrap large dependency lists on column 80 (with \), and
4638 # we should not choose a depcomp mode which is confused by this.
4640 # We need to recreate these files for each test, as the compiler may
4641 # overwrite some of them when testing with obscure command lines.
4642 # This happens at least with the AIX C compiler.
4644 for i in 1 2 3 4 5 6; do
4645 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4646 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4647 # Solaris 8's {/usr,}/bin/sh.
4648 touch sub/conftst$i.h
4650 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4654 # after this tag, mechanisms are not by side-effect, so they'll
4655 # only be used when explicitly requested
4656 if test "x$enable_dependency_tracking" = xyes; then
4664 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4665 # mode. It turns out that the SunPro C++ compiler does not properly
4666 # handle `-M -o', and we need to detect this.
4667 if depmode=$depmode \
4668 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4669 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4670 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4671 >/dev/null 2>conftest.err &&
4672 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4673 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4674 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4675 # icc doesn't choke on unknown options, it will just issue warnings
4676 # or remarks (even with -Werror). So we grep stderr for any message
4677 # that says an option was ignored or not supported.
4678 # When given -MP, icc 7.0 and 7.1 complain thusly:
4679 # icc: Command line warning: ignoring option '-M'; no argument required
4680 # The diagnosis changed in icc 8.0:
4681 # icc: Command line remark: option '-MP' not supported
4682 if (grep 'ignoring option' conftest.err ||
4683 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4684 am_cv_CC_dependencies_compiler_type=$depmode
4693 am_cv_CC_dependencies_compiler_type=none
4697 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4698 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4699 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4704 test "x$enable_dependency_tracking" != xno \
4705 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4707 am__fastdepCC_FALSE='#'
4709 am__fastdepCC_TRUE='#'
4710 am__fastdepCC_FALSE=
4715 ac_cpp='$CPP $CPPFLAGS'
4716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4719 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4720 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4721 # On Suns, sometimes $CPP names a directory.
4722 if test -n "$CPP" && test -d "$CPP"; then
4725 if test -z "$CPP"; then
4726 if test "${ac_cv_prog_CPP+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 # Double quotes because CPP needs to be expanded
4730 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4733 for ac_c_preproc_warn_flag in '' yes
4735 # Use a header file that comes with gcc, so configuring glibc
4736 # with a fresh cross-compiler works.
4737 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4738 # <limits.h> exists even on freestanding compilers.
4739 # On the NeXT, cc -E runs the code through the compiler's parser,
4740 # not just through cpp. "Syntax error" is here to catch this case.
4741 cat >conftest.$ac_ext <<_ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4748 # include <limits.h>
4750 # include <assert.h>
4754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4757 grep -v '^ *+' conftest.er1 >conftest.err
4759 cat conftest.err >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } >/dev/null; then
4762 if test -s conftest.err; then
4763 ac_cpp_err=$ac_c_preproc_warn_flag
4764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4771 if test -z "$ac_cpp_err"; then
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4777 # Broken: fails on valid input.
4780 rm -f conftest.err conftest.$ac_ext
4782 # OK, works on sane cases. Now check whether non-existent headers
4783 # can be detected and how.
4784 cat >conftest.$ac_ext <<_ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <ac_nonexistent.h>
4792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4795 grep -v '^ *+' conftest.er1 >conftest.err
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } >/dev/null; then
4800 if test -s conftest.err; then
4801 ac_cpp_err=$ac_c_preproc_warn_flag
4802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4809 if test -z "$ac_cpp_err"; then
4810 # Broken: success on invalid input.
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4816 # Passes both tests.
4820 rm -f conftest.err conftest.$ac_ext
4823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4824 rm -f conftest.err conftest.$ac_ext
4825 if $ac_preproc_ok; then
4837 echo "$as_me:$LINENO: result: $CPP" >&5
4838 echo "${ECHO_T}$CPP" >&6
4840 for ac_c_preproc_warn_flag in '' yes
4842 # Use a header file that comes with gcc, so configuring glibc
4843 # with a fresh cross-compiler works.
4844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4845 # <limits.h> exists even on freestanding compilers.
4846 # On the NeXT, cc -E runs the code through the compiler's parser,
4847 # not just through cpp. "Syntax error" is here to catch this case.
4848 cat >conftest.$ac_ext <<_ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4855 # include <limits.h>
4857 # include <assert.h>
4861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4864 grep -v '^ *+' conftest.er1 >conftest.err
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } >/dev/null; then
4869 if test -s conftest.err; then
4870 ac_cpp_err=$ac_c_preproc_warn_flag
4871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4878 if test -z "$ac_cpp_err"; then
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4884 # Broken: fails on valid input.
4887 rm -f conftest.err conftest.$ac_ext
4889 # OK, works on sane cases. Now check whether non-existent headers
4890 # can be detected and how.
4891 cat >conftest.$ac_ext <<_ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 #include <ac_nonexistent.h>
4899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4902 grep -v '^ *+' conftest.er1 >conftest.err
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } >/dev/null; then
4907 if test -s conftest.err; then
4908 ac_cpp_err=$ac_c_preproc_warn_flag
4909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4916 if test -z "$ac_cpp_err"; then
4917 # Broken: success on invalid input.
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4923 # Passes both tests.
4927 rm -f conftest.err conftest.$ac_ext
4930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4931 rm -f conftest.err conftest.$ac_ext
4932 if $ac_preproc_ok; then
4935 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4936 See \`config.log' for more details." >&5
4937 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4938 See \`config.log' for more details." >&2;}
4939 { (exit 1); exit 1; }; }
4943 ac_cpp='$CPP $CPPFLAGS'
4944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4948 # Find a good install program. We prefer a C program (faster),
4949 # so one script is as good as another. But avoid the broken or
4950 # incompatible versions:
4951 # SysV /etc/install, /usr/sbin/install
4952 # SunOS /usr/etc/install
4953 # IRIX /sbin/install
4955 # AmigaOS /C/install, which installs bootblocks on floppy discs
4956 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4957 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4958 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4959 # OS/2's system install, which has a completely different semantic
4960 # ./install, which can be erroneously created by make from ./install.sh.
4961 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4962 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4963 if test -z "$INSTALL"; then
4964 if test "${ac_cv_path_install+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 test -z "$as_dir" && as_dir=.
4972 # Account for people who put trailing slashes in PATH elements.
4974 ./ | .// | /cC/* | \
4975 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4976 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4979 # OSF1 and SCO ODT 3.0 have their own names for install.
4980 # Don't use installbsd from OSF since it installs stuff as root
4982 for ac_prog in ginstall scoinst install; do
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4985 if test $ac_prog = install &&
4986 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4987 # AIX install. It has an incompatible calling convention.
4989 elif test $ac_prog = install &&
4990 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4991 # program-specific install script used by HP pwplus--don't use.
4994 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5006 if test "${ac_cv_path_install+set}" = set; then
5007 INSTALL=$ac_cv_path_install
5009 # As a last resort, use the slow shell script. We don't cache a
5010 # path for INSTALL within a source directory, because that will
5011 # break other packages using the cache if that directory is
5012 # removed, or if the path is relative.
5013 INSTALL=$ac_install_sh
5016 echo "$as_me:$LINENO: result: $INSTALL" >&5
5017 echo "${ECHO_T}$INSTALL" >&6
5019 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5020 # It thinks the first close brace ends the variable substitution.
5021 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5023 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5025 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5027 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5028 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5030 if test "$LN_S" = "ln -s"; then
5031 echo "$as_me:$LINENO: result: yes" >&5
5032 echo "${ECHO_T}yes" >&6
5034 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5035 echo "${ECHO_T}no, using $LN_S" >&6
5038 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5039 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5040 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5041 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 cat >conftest.make <<\_ACEOF
5046 @echo 'ac_maketemp="$(MAKE)"'
5048 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5049 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5050 if test -n "$ac_maketemp"; then
5051 eval ac_cv_prog_make_${ac_make}_set=yes
5053 eval ac_cv_prog_make_${ac_make}_set=no
5057 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5058 echo "$as_me:$LINENO: result: yes" >&5
5059 echo "${ECHO_T}yes" >&6
5062 echo "$as_me:$LINENO: result: no" >&5
5063 echo "${ECHO_T}no" >&6
5064 SET_MAKE="MAKE=${MAKE-make}"
5067 # Check whether --enable-shared or --disable-shared was given.
5068 if test "${enable_shared+set}" = set; then
5069 enableval="$enable_shared"
5070 p=${PACKAGE-default}
5072 yes) enable_shared=yes ;;
5073 no) enable_shared=no ;;
5076 # Look at the argument we got. We use all the common list separators.
5077 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5078 for pkg in $enableval; do
5080 if test "X$pkg" = "X$p"; then
5091 # Check whether --enable-static or --disable-static was given.
5092 if test "${enable_static+set}" = set; then
5093 enableval="$enable_static"
5094 p=${PACKAGE-default}
5096 yes) enable_static=yes ;;
5097 no) enable_static=no ;;
5100 # Look at the argument we got. We use all the common list separators.
5101 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5102 for pkg in $enableval; do
5104 if test "X$pkg" = "X$p"; then
5115 # Check whether --enable-fast-install or --disable-fast-install was given.
5116 if test "${enable_fast_install+set}" = set; then
5117 enableval="$enable_fast_install"
5118 p=${PACKAGE-default}
5120 yes) enable_fast_install=yes ;;
5121 no) enable_fast_install=no ;;
5123 enable_fast_install=no
5124 # Look at the argument we got. We use all the common list separators.
5125 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5126 for pkg in $enableval; do
5128 if test "X$pkg" = "X$p"; then
5129 enable_fast_install=yes
5136 enable_fast_install=yes
5139 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5140 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5141 if test "${lt_cv_path_SED+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 # Loop through the user's path and test for sed and gsed.
5145 # Then use that list of sed's as ones to test for truncation.
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 test -z "$as_dir" && as_dir=.
5151 for lt_ac_prog in sed gsed; do
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5154 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5161 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5162 # along with /bin/sed that truncates output.
5163 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5164 test ! -f $lt_ac_sed && continue
5165 cat /dev/null > conftest.in
5167 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5168 # Check for GNU sed and select it if it is found.
5169 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5170 lt_cv_path_SED=$lt_ac_sed
5174 cat conftest.in conftest.in >conftest.tmp
5175 mv conftest.tmp conftest.in
5176 cp conftest.in conftest.nl
5178 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5179 cmp -s conftest.out conftest.nl || break
5180 # 10000 chars as input seems more than enough
5181 test $lt_ac_count -gt 10 && break
5182 lt_ac_count=`expr $lt_ac_count + 1`
5183 if test $lt_ac_count -gt $lt_ac_max; then
5184 lt_ac_max=$lt_ac_count
5185 lt_cv_path_SED=$lt_ac_sed
5193 echo "$as_me:$LINENO: result: $SED" >&5
5194 echo "${ECHO_T}$SED" >&6
5196 echo "$as_me:$LINENO: checking for egrep" >&5
5197 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5198 if test "${ac_cv_prog_egrep+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5202 then ac_cv_prog_egrep='grep -E'
5203 else ac_cv_prog_egrep='egrep'
5206 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5207 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5208 EGREP=$ac_cv_prog_egrep
5212 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5213 if test "${with_gnu_ld+set}" = set; then
5214 withval="$with_gnu_ld"
5215 test "$withval" = no || with_gnu_ld=yes
5220 if test "$GCC" = yes; then
5221 # Check if gcc -print-prog-name=ld gives a path.
5222 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5223 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5226 # gcc leaves a trailing carriage return which upsets mingw
5227 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5229 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5232 # Accept absolute paths.
5234 re_direlt='/[^/][^/]*/\.\./'
5235 # Canonicalize the pathname of ld
5236 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5237 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5238 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5240 test -z "$LD" && LD="$ac_prog"
5243 # If it fails, then pretend we aren't using GCC.
5247 # If it is relative, then search for the first ld in PATH.
5251 elif test "$with_gnu_ld" = yes; then
5252 echo "$as_me:$LINENO: checking for GNU ld" >&5
5253 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5255 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5256 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5258 if test "${lt_cv_path_LD+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 if test -z "$LD"; then
5262 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5263 for ac_dir in $PATH; do
5265 test -z "$ac_dir" && ac_dir=.
5266 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5267 lt_cv_path_LD="$ac_dir/$ac_prog"
5268 # Check to see if the program is GNU ld. I'd rather use --version,
5269 # but apparently some variants of GNU ld only accept -v.
5270 # Break only if it was the GNU/non-GNU ld that we prefer.
5271 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5272 *GNU* | *'with BFD'*)
5273 test "$with_gnu_ld" != no && break
5276 test "$with_gnu_ld" != yes && break
5283 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5288 if test -n "$LD"; then
5289 echo "$as_me:$LINENO: result: $LD" >&5
5290 echo "${ECHO_T}$LD" >&6
5292 echo "$as_me:$LINENO: result: no" >&5
5293 echo "${ECHO_T}no" >&6
5295 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5296 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5297 { (exit 1); exit 1; }; }
5298 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5299 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5300 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5304 case `$LD -v 2>&1 </dev/null` in
5305 *GNU* | *'with BFD'*)
5306 lt_cv_prog_gnu_ld=yes
5309 lt_cv_prog_gnu_ld=no
5313 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5314 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5315 with_gnu_ld=$lt_cv_prog_gnu_ld
5318 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5319 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5320 if test "${lt_cv_ld_reload_flag+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 lt_cv_ld_reload_flag='-r'
5325 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5326 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5327 reload_flag=$lt_cv_ld_reload_flag
5328 case $reload_flag in
5330 *) reload_flag=" $reload_flag" ;;
5332 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5335 if test "$GCC" = yes; then
5336 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5338 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5343 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5344 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5345 if test "${lt_cv_path_NM+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 if test -n "$NM"; then
5349 # Let the user override the test.
5352 lt_nm_to_check="${ac_tool_prefix}nm"
5353 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5354 lt_nm_to_check="$lt_nm_to_check nm"
5356 for lt_tmp_nm in $lt_nm_to_check; do
5357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5358 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5360 test -z "$ac_dir" && ac_dir=.
5361 tmp_nm="$ac_dir/$lt_tmp_nm"
5362 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5363 # Check to see if the nm accepts a BSD-compat flag.
5364 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5365 # nm: unknown option "B" ignored
5366 # Tru64's nm complains that /dev/null is an invalid object file
5367 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5368 */dev/null* | *'Invalid file or object type'*)
5369 lt_cv_path_NM="$tmp_nm -B"
5373 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5375 lt_cv_path_NM="$tmp_nm -p"
5379 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5380 continue # so that we can try to find one that supports BSD flags
5389 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5392 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5393 echo "${ECHO_T}$lt_cv_path_NM" >&6
5396 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5397 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5398 if test "${lt_cv_deplibs_check_method+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 lt_cv_file_magic_cmd='$MAGIC_CMD'
5402 lt_cv_file_magic_test_file=
5403 lt_cv_deplibs_check_method='unknown'
5404 # Need to set the preceding variable on all platforms that support
5405 # interlibrary dependencies.
5406 # 'none' -- dependencies not supported.
5407 # `unknown' -- same as none, but documents that we really don't know.
5408 # 'pass_all' -- all dependencies passed with no checks.
5409 # 'test_compile' -- check by making test program.
5410 # 'file_magic [[regex]]' -- check by looking for files in library path
5411 # which responds to the $file_magic_cmd with a given extended regex.
5412 # If you have `file' or equivalent on your system and you're not sure
5413 # whether `pass_all' will *always* work, you probably want this one.
5417 lt_cv_deplibs_check_method=pass_all
5421 lt_cv_deplibs_check_method=pass_all
5425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5426 lt_cv_file_magic_cmd='/usr/bin/file -L'
5427 lt_cv_file_magic_test_file=/shlib/libc.so
5431 # func_win32_libid is a shell function defined in ltmain.sh
5432 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5433 lt_cv_file_magic_cmd='func_win32_libid'
5437 # Base MSYS/MinGW do not provide the 'file' command needed by
5438 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5439 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5440 lt_cv_file_magic_cmd='$OBJDUMP -f'
5443 darwin* | rhapsody*)
5444 lt_cv_deplibs_check_method=pass_all
5447 freebsd* | dragonfly*)
5448 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5451 # Not sure whether the presence of OpenBSD here was a mistake.
5452 # Let's accept both of them until this is cleared up.
5453 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5454 lt_cv_file_magic_cmd=/usr/bin/file
5455 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5459 lt_cv_deplibs_check_method=pass_all
5464 lt_cv_deplibs_check_method=pass_all
5467 hpux10.20* | hpux11*)
5468 lt_cv_file_magic_cmd=/usr/bin/file
5471 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5472 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5475 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]'
5476 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5479 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5480 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5486 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5490 irix5* | irix6* | nonstopux*)
5492 *-32|*"-32 ") libmagic=32-bit;;
5493 *-n32|*"-n32 ") libmagic=N32;;
5494 *-64|*"-64 ") libmagic=64-bit;;
5495 *) libmagic=never-match;;
5497 lt_cv_deplibs_check_method=pass_all
5500 # This must be Linux ELF.
5501 linux* | k*bsd*-gnu)
5502 lt_cv_deplibs_check_method=pass_all
5505 netbsd* | netbsdelf*-gnu)
5506 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5515 lt_cv_file_magic_cmd=/usr/bin/file
5516 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5520 lt_cv_deplibs_check_method=unknown
5524 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5531 osf3* | osf4* | osf5*)
5532 lt_cv_deplibs_check_method=pass_all
5536 lt_cv_deplibs_check_method=pass_all
5540 case $host_vendor in
5542 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]'
5543 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5546 lt_cv_deplibs_check_method=pass_all
5549 lt_cv_file_magic_cmd='/bin/file'
5550 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5553 lt_cv_file_magic_cmd='/bin/file'
5554 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5555 lt_cv_file_magic_test_file=/lib/libc.so
5558 lt_cv_deplibs_check_method=pass_all
5561 lt_cv_deplibs_check_method=pass_all
5566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5567 lt_cv_deplibs_check_method=pass_all
5572 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5573 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5574 file_magic_cmd=$lt_cv_file_magic_cmd
5575 deplibs_check_method=$lt_cv_deplibs_check_method
5576 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5581 # If no C compiler was specified, use CC.
5584 # If no C compiler flags were specified, use CFLAGS.
5585 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5587 # Allow CC to be a program name with arguments.
5590 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5591 if test "${enable_libtool_lock+set}" = set; then
5592 enableval="$enable_libtool_lock"
5595 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5597 # Some flags need to be propagated to the compiler or linker for good
5601 # Find out which ABI we are using.
5602 echo 'int i;' > conftest.$ac_ext
5603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5604 (eval $ac_compile) 2>&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; then
5608 case `/usr/bin/file conftest.$ac_objext` in
5620 # Find out which ABI we are using.
5621 echo '#line 5621 "configure"' > conftest.$ac_ext
5622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5623 (eval $ac_compile) 2>&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; then
5627 if test "$lt_cv_prog_gnu_ld" = yes; then
5628 case `/usr/bin/file conftest.$ac_objext` in
5630 LD="${LD-ld} -melf32bsmip"
5633 LD="${LD-ld} -melf32bmipn32"
5636 LD="${LD-ld} -melf64bmip"
5640 case `/usr/bin/file conftest.$ac_objext` in
5656 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5657 # Find out which ABI we are using.
5658 echo 'int i;' > conftest.$ac_ext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660 (eval $ac_compile) 2>&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; then
5664 case `/usr/bin/file conftest.o` in
5668 LD="${LD-ld} -m elf_i386"
5670 ppc64-*linux*|powerpc64-*linux*)
5671 LD="${LD-ld} -m elf32ppclinux"
5674 LD="${LD-ld} -m elf_s390"
5677 LD="${LD-ld} -m elf32_sparc"
5684 LD="${LD-ld} -m elf_x86_64"
5686 ppc*-*linux*|powerpc*-*linux*)
5687 LD="${LD-ld} -m elf64ppc"
5690 LD="${LD-ld} -m elf64_s390"
5693 LD="${LD-ld} -m elf64_sparc"
5703 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5704 SAVE_CFLAGS="$CFLAGS"
5705 CFLAGS="$CFLAGS -belf"
5706 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5707 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5708 if test "${lt_cv_cc_needs_belf+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 ac_cpp='$CPP $CPPFLAGS'
5713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5717 cat >conftest.$ac_ext <<_ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5732 rm -f conftest.$ac_objext conftest$ac_exeext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734 (eval $ac_link) 2>conftest.er1
5736 grep -v '^ *+' conftest.er1 >conftest.err
5738 cat conftest.err >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } &&
5741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; } &&
5747 { ac_try='test -s conftest$ac_exeext'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; }; then
5753 lt_cv_cc_needs_belf=yes
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5758 lt_cv_cc_needs_belf=no
5760 rm -f conftest.err conftest.$ac_objext \
5761 conftest$ac_exeext conftest.$ac_ext
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
5769 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5770 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5771 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5772 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5773 CFLAGS="$SAVE_CFLAGS"
5777 # Find out which ABI we are using.
5778 echo 'int i;' > conftest.$ac_ext
5779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780 (eval $ac_compile) 2>&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; then
5784 case `/usr/bin/file conftest.o` in
5786 case $lt_cv_prog_gnu_ld in
5787 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5788 *) LD="${LD-ld} -64" ;;
5799 need_locks="$enable_libtool_lock"
5803 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5805 if test "${ac_cv_header_stdc+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 cat >conftest.$ac_ext <<_ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5827 rm -f conftest.$ac_objext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5829 (eval $ac_compile) 2>conftest.er1
5831 grep -v '^ *+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; } &&
5842 { ac_try='test -s conftest.$ac_objext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 ac_cv_header_stdc=yes
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5853 ac_cv_header_stdc=no
5855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5857 if test $ac_cv_header_stdc = yes; then
5858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5859 cat >conftest.$ac_ext <<_ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5869 $EGREP "memchr" >/dev/null 2>&1; then
5872 ac_cv_header_stdc=no
5878 if test $ac_cv_header_stdc = yes; then
5879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5880 cat >conftest.$ac_ext <<_ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5890 $EGREP "free" >/dev/null 2>&1; then
5893 ac_cv_header_stdc=no
5899 if test $ac_cv_header_stdc = yes; then
5900 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5901 if test "$cross_compiling" = yes; then
5904 cat >conftest.$ac_ext <<_ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5911 #if ((' ' & 0x0FF) == 0x020)
5912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5915 # define ISLOWER(c) \
5916 (('a' <= (c) && (c) <= 'i') \
5917 || ('j' <= (c) && (c) <= 'r') \
5918 || ('s' <= (c) && (c) <= 'z'))
5919 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5927 for (i = 0; i < 256; i++)
5928 if (XOR (islower (i), ISLOWER (i))
5929 || toupper (i) != TOUPPER (i))
5934 rm -f conftest$ac_exeext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5936 (eval $ac_link) 2>&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5947 echo "$as_me: program exited with status $ac_status" >&5
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5952 ac_cv_header_stdc=no
5954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5958 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5959 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5960 if test $ac_cv_header_stdc = yes; then
5962 cat >>confdefs.h <<\_ACEOF
5963 #define STDC_HEADERS 1
5968 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5979 inttypes.h stdint.h unistd.h
5981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5982 echo "$as_me:$LINENO: checking for $ac_header" >&5
5983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 cat >conftest.$ac_ext <<_ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h. */
5993 $ac_includes_default
5995 #include <$ac_header>
5997 rm -f conftest.$ac_objext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5999 (eval $ac_compile) 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; } &&
6012 { ac_try='test -s conftest.$ac_objext'
6013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); }; }; then
6018 eval "$as_ac_Header=yes"
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6023 eval "$as_ac_Header=no"
6025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6030 cat >>confdefs.h <<_ACEOF
6031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6040 for ac_header in dlfcn.h
6042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6044 echo "$as_me:$LINENO: checking for $ac_header" >&5
6045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6052 # Is the header compilable?
6053 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6055 cat >conftest.$ac_ext <<_ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 $ac_includes_default
6062 #include <$ac_header>
6064 rm -f conftest.$ac_objext
6065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6066 (eval $ac_compile) 2>conftest.er1
6068 grep -v '^ *+' conftest.er1 >conftest.err
6070 cat conftest.err >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } &&
6073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; } &&
6079 { ac_try='test -s conftest.$ac_objext'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6085 ac_header_compiler=yes
6087 echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6090 ac_header_compiler=no
6092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6094 echo "${ECHO_T}$ac_header_compiler" >&6
6096 # Is the header present?
6097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6099 cat >conftest.$ac_ext <<_ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 #include <$ac_header>
6107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6110 grep -v '^ *+' conftest.er1 >conftest.err
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } >/dev/null; then
6115 if test -s conftest.err; then
6116 ac_cpp_err=$ac_c_preproc_warn_flag
6117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6124 if test -z "$ac_cpp_err"; then
6125 ac_header_preproc=yes
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6130 ac_header_preproc=no
6132 rm -f conftest.err conftest.$ac_ext
6133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6134 echo "${ECHO_T}$ac_header_preproc" >&6
6136 # So? What about this header?
6137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6143 ac_header_preproc=yes
6146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6160 ## ------------------------------- ##
6161 ## Report this to nfs@lists.sf.net ##
6162 ## ------------------------------- ##
6165 sed "s/^/$as_me: WARNING: /" >&2
6168 echo "$as_me:$LINENO: checking for $ac_header" >&5
6169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 eval "$as_ac_Header=\$ac_header_preproc"
6175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6180 cat >>confdefs.h <<_ACEOF
6181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6190 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6191 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6192 (test "X$CXX" != "Xg++"))) ; then
6194 ac_cpp='$CXXCPP $CPPFLAGS'
6195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6198 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6199 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6200 if test -z "$CXXCPP"; then
6201 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 # Double quotes because CXXCPP needs to be expanded
6205 for CXXCPP in "$CXX -E" "/lib/cpp"
6208 for ac_cxx_preproc_warn_flag in '' yes
6210 # Use a header file that comes with gcc, so configuring glibc
6211 # with a fresh cross-compiler works.
6212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6213 # <limits.h> exists even on freestanding compilers.
6214 # On the NeXT, cc -E runs the code through the compiler's parser,
6215 # not just through cpp. "Syntax error" is here to catch this case.
6216 cat >conftest.$ac_ext <<_ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6223 # include <limits.h>
6225 # include <assert.h>
6229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6232 grep -v '^ *+' conftest.er1 >conftest.err
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } >/dev/null; then
6237 if test -s conftest.err; then
6238 ac_cpp_err=$ac_cxx_preproc_warn_flag
6239 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6246 if test -z "$ac_cpp_err"; then
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6252 # Broken: fails on valid input.
6255 rm -f conftest.err conftest.$ac_ext
6257 # OK, works on sane cases. Now check whether non-existent headers
6258 # can be detected and how.
6259 cat >conftest.$ac_ext <<_ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6265 #include <ac_nonexistent.h>
6267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6270 grep -v '^ *+' conftest.er1 >conftest.err
6272 cat conftest.err >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } >/dev/null; then
6275 if test -s conftest.err; then
6276 ac_cpp_err=$ac_cxx_preproc_warn_flag
6277 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6284 if test -z "$ac_cpp_err"; then
6285 # Broken: success on invalid input.
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6291 # Passes both tests.
6295 rm -f conftest.err conftest.$ac_ext
6298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6299 rm -f conftest.err conftest.$ac_ext
6300 if $ac_preproc_ok; then
6305 ac_cv_prog_CXXCPP=$CXXCPP
6308 CXXCPP=$ac_cv_prog_CXXCPP
6310 ac_cv_prog_CXXCPP=$CXXCPP
6312 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6313 echo "${ECHO_T}$CXXCPP" >&6
6315 for ac_cxx_preproc_warn_flag in '' yes
6317 # Use a header file that comes with gcc, so configuring glibc
6318 # with a fresh cross-compiler works.
6319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6320 # <limits.h> exists even on freestanding compilers.
6321 # On the NeXT, cc -E runs the code through the compiler's parser,
6322 # not just through cpp. "Syntax error" is here to catch this case.
6323 cat >conftest.$ac_ext <<_ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6330 # include <limits.h>
6332 # include <assert.h>
6336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6339 grep -v '^ *+' conftest.er1 >conftest.err
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } >/dev/null; then
6344 if test -s conftest.err; then
6345 ac_cpp_err=$ac_cxx_preproc_warn_flag
6346 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6353 if test -z "$ac_cpp_err"; then
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6359 # Broken: fails on valid input.
6362 rm -f conftest.err conftest.$ac_ext
6364 # OK, works on sane cases. Now check whether non-existent headers
6365 # can be detected and how.
6366 cat >conftest.$ac_ext <<_ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6372 #include <ac_nonexistent.h>
6374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6377 grep -v '^ *+' conftest.er1 >conftest.err
6379 cat conftest.err >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } >/dev/null; then
6382 if test -s conftest.err; then
6383 ac_cpp_err=$ac_cxx_preproc_warn_flag
6384 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6391 if test -z "$ac_cpp_err"; then
6392 # Broken: success on invalid input.
6395 echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6398 # Passes both tests.
6402 rm -f conftest.err conftest.$ac_ext
6405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6406 rm -f conftest.err conftest.$ac_ext
6407 if $ac_preproc_ok; then
6410 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6411 See \`config.log' for more details." >&5
6412 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6413 See \`config.log' for more details." >&2;}
6414 { (exit 1); exit 1; }; }
6418 ac_cpp='$CXXCPP $CPPFLAGS'
6419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6427 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6428 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6429 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6430 if test -n "$ac_tool_prefix"; then
6431 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6435 echo "$as_me:$LINENO: checking for $ac_word" >&5
6436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6437 if test "${ac_cv_prog_F77+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6440 if test -n "$F77"; then
6441 ac_cv_prog_F77="$F77" # Let the user override the test.
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6450 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 if test -n "$F77"; then
6461 echo "$as_me:$LINENO: result: $F77" >&5
6462 echo "${ECHO_T}$F77" >&6
6464 echo "$as_me:$LINENO: result: no" >&5
6465 echo "${ECHO_T}no" >&6
6468 test -n "$F77" && break
6471 if test -z "$F77"; then
6473 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6475 # Extract the first word of "$ac_prog", so it can be a program name with args.
6476 set dummy $ac_prog; ac_word=$2
6477 echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6479 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 if test -n "$ac_ct_F77"; then
6483 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6492 ac_cv_prog_ac_ct_F77="$ac_prog"
6493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6502 if test -n "$ac_ct_F77"; then
6503 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6504 echo "${ECHO_T}$ac_ct_F77" >&6
6506 echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6
6510 test -n "$ac_ct_F77" && break
6517 # Provide some information about the compiler.
6518 echo "$as_me:6518:" \
6519 "checking for Fortran 77 compiler version" >&5
6520 ac_compiler=`set X $ac_compile; echo $2`
6521 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6522 (eval $ac_compiler --version </dev/null >&5) 2>&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }
6526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6527 (eval $ac_compiler -v </dev/null >&5) 2>&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }
6531 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6532 (eval $ac_compiler -V </dev/null >&5) 2>&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }
6538 # If we don't use `.F' as extension, the preprocessor is not run on the
6539 # input file. (Note that this only needs to work for GNU compilers.)
6542 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6543 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6544 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 cat >conftest.$ac_ext <<_ACEOF
6555 rm -f conftest.$ac_objext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557 (eval $ac_compile) 2>conftest.er1
6559 grep -v '^ *+' conftest.er1 >conftest.err
6561 cat conftest.err >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } &&
6564 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; } &&
6570 { ac_try='test -s conftest.$ac_objext'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6584 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6587 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6588 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6590 ac_test_FFLAGS=${FFLAGS+set}
6591 ac_save_FFLAGS=$FFLAGS
6593 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6594 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6595 if test "${ac_cv_prog_f77_g+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 cat >conftest.$ac_ext <<_ACEOF
6604 rm -f conftest.$ac_objext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606 (eval $ac_compile) 2>conftest.er1
6608 grep -v '^ *+' conftest.er1 >conftest.err
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; } &&
6619 { ac_try='test -s conftest.$ac_objext'
6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); }; }; then
6625 ac_cv_prog_f77_g=yes
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
6632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6635 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6636 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6637 if test "$ac_test_FFLAGS" = set; then
6638 FFLAGS=$ac_save_FFLAGS
6639 elif test $ac_cv_prog_f77_g = yes; then
6640 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6646 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6653 G77=`test $ac_compiler_gnu = yes && echo yes`
6655 ac_cpp='$CPP $CPPFLAGS'
6656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6662 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6664 # find the maximum length of command line arguments
6665 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6666 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6667 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 # On DJGPP, this test can blow up pretty badly due to problems in libc
6676 # (any single argument exceeding 2000 bytes causes a buffer overrun
6677 # during glob expansion). Even if it were fixed, the result of this
6678 # check would be larger than it should be.
6679 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6683 # Under GNU Hurd, this test is not required because there is
6684 # no limit to the length of command line arguments.
6685 # Libtool will interpret -1 as no limit whatsoever
6686 lt_cv_sys_max_cmd_len=-1;
6690 # On Win9x/ME, this test blows up -- it succeeds, but takes
6691 # about 5 minutes as the teststring grows exponentially.
6692 # Worse, since 9x/ME are not pre-emptively multitasking,
6693 # you end up with a "frozen" computer, even though with patience
6694 # the test eventually succeeds (with a max line length of 256k).
6695 # Instead, let's just punt: use the minimum linelength reported by
6696 # all of the supported platforms: 8192 (on NT/2K/XP).
6697 lt_cv_sys_max_cmd_len=8192;
6701 # On AmigaOS with pdksh, this test takes hours, literally.
6702 # So we just punt and use a minimum line length of 8192.
6703 lt_cv_sys_max_cmd_len=8192;
6706 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6707 # This has been around since 386BSD, at least. Likely further.
6708 if test -x /sbin/sysctl; then
6709 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6710 elif test -x /usr/sbin/sysctl; then
6711 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6713 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6715 # And add a safety zone
6716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6721 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6722 lt_cv_sys_max_cmd_len=196608
6726 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6727 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6728 # nice to cause kernel panics so lets avoid the loop below.
6729 # First set a reasonable default.
6730 lt_cv_sys_max_cmd_len=16384
6732 if test -x /sbin/sysconfig; then
6733 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6734 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6739 lt_cv_sys_max_cmd_len=102400
6741 sysv5* | sco5v6* | sysv4.2uw2*)
6742 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6743 if test -n "$kargmax"; then
6744 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6746 lt_cv_sys_max_cmd_len=32768
6750 # If test is not a shell built-in, we'll probably end up computing a
6751 # maximum length that is only half of the actual maximum length, but
6753 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6754 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6755 = "XX$teststring") >/dev/null 2>&1 &&
6756 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6757 lt_cv_sys_max_cmd_len=$new_result &&
6758 test $i != 17 # 1/2 MB should be enough
6761 teststring=$teststring$teststring
6764 # Add a significant safety factor because C++ compilers can tack on massive
6765 # amounts of additional arguments before passing them to the linker.
6766 # It appears as though 1/2 is a usable value.
6767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6773 if test -n $lt_cv_sys_max_cmd_len ; then
6774 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6775 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6777 echo "$as_me:$LINENO: result: none" >&5
6778 echo "${ECHO_T}none" >&6
6784 # Check for command to grab the raw symbol name followed by C symbol from nm.
6785 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6786 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6787 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 # These are sane defaults that work on at least a few old systems.
6792 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6794 # Character class describing NM global symbol codes.
6795 symcode='[BCDEGRST]'
6797 # Regexp to match symbols that can be accessed directly from C.
6798 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6800 # Transform an extracted symbol line into a proper C declaration
6801 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6803 # Transform an extracted symbol line into symbol name and symbol address
6804 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'"
6806 # Define system-specific variables.
6811 cygwin* | mingw* | pw32*)
6812 symcode='[ABCDGISTW]'
6814 hpux*) # Its linker distinguishes data from code symbols
6815 if test "$host_cpu" = ia64; then
6816 symcode='[ABCDEGRST]'
6818 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6819 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'"
6821 linux* | k*bsd*-gnu)
6822 if test "$host_cpu" = ia64; then
6823 symcode='[ABCDGIRSTW]'
6824 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6825 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'"
6829 symcode='[BCDEGRST]'
6832 symcode='[BCDEGQRST]'
6843 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6851 # Handle CRLF in mingw tool chain
6855 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6859 # If we're using GNU nm, then use its standard symbol codes.
6860 case `$NM -V 2>&1` in
6861 *GNU* | *'with BFD'*)
6862 symcode='[ABCDGIRSTW]' ;;
6865 # Try without a prefix undercore, then with it.
6866 for ac_symprfx in "" "_"; do
6868 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6869 symxfrm="\\1 $ac_symprfx\\2 \\2"
6871 # Write the raw and C identifiers.
6872 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6874 # Check to see that the pipe works correctly.
6878 cat > conftest.$ac_ext <<EOF
6883 void nm_test_func(){}
6887 int main(){nm_test_var='a';nm_test_func();return(0);}
6890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6891 (eval $ac_compile) 2>&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; then
6895 # Now try to grab the symbols.
6897 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6898 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } && test -s "$nlist"; then
6902 # Try sorting and uniquifying the output.
6903 if sort "$nlist" | uniq > "$nlist"T; then
6904 mv -f "$nlist"T "$nlist"
6909 # Make sure that we snagged all the symbols we need.
6910 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6911 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6912 cat <<EOF > conftest.$ac_ext
6918 # Now generate the symbol file.
6919 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6921 cat <<EOF >> conftest.$ac_ext
6922 #if defined (__STDC__) && __STDC__
6923 # define lt_ptr_t void *
6925 # define lt_ptr_t char *
6929 /* The mapping between symbol names and symbols. */
6934 lt_preloaded_symbols[] =
6937 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6938 cat <<\EOF >> conftest.$ac_ext
6946 # Now try linking the two files.
6947 mv conftest.$ac_objext conftstm.$ac_objext
6948 lt_save_LIBS="$LIBS"
6949 lt_save_CFLAGS="$CFLAGS"
6950 LIBS="conftstm.$ac_objext"
6951 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953 (eval $ac_link) 2>&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6959 LIBS="$lt_save_LIBS"
6960 CFLAGS="$lt_save_CFLAGS"
6962 echo "cannot find nm_test_func in $nlist" >&5
6965 echo "cannot find nm_test_var in $nlist" >&5
6968 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6971 echo "$progname: failed program was:" >&5
6972 cat conftest.$ac_ext >&5
6974 rm -f conftest* conftst*
6976 # Do not use the global_symbol_pipe unless it works.
6977 if test "$pipe_works" = yes; then
6980 lt_cv_sys_global_symbol_pipe=
6986 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6987 lt_cv_sys_global_symbol_to_cdecl=
6989 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6990 echo "$as_me:$LINENO: result: failed" >&5
6991 echo "${ECHO_T}failed" >&6
6993 echo "$as_me:$LINENO: result: ok" >&5
6994 echo "${ECHO_T}ok" >&6
6997 echo "$as_me:$LINENO: checking for objdir" >&5
6998 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6999 if test "${lt_cv_objdir+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 rm -f .libs 2>/dev/null
7003 mkdir .libs 2>/dev/null
7004 if test -d .libs; then
7007 # MS-DOS does not allow filenames that begin with a dot.
7010 rmdir .libs 2>/dev/null
7012 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7013 echo "${ECHO_T}$lt_cv_objdir" >&6
7014 objdir=$lt_cv_objdir
7022 # AIX sometimes has problems with the GCC collect2 program. For some
7023 # reason, if we set the COLLECT_NAMES environment variable, the problems
7024 # vanish in a puff of smoke.
7025 if test "X${COLLECT_NAMES+set}" != Xset; then
7027 export COLLECT_NAMES
7032 # Sed substitution that helps us do robust quoting. It backslashifies
7033 # metacharacters that are still active within double-quoted strings.
7034 Xsed='sed -e 1s/^X//'
7035 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7037 # Same as above, but do not quote variable references.
7038 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7040 # Sed substitution to delay expansion of an escaped shell variable in a
7041 # double_quote_subst'ed string.
7042 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7044 # Sed substitution to avoid accidental globbing in evaled expressions
7045 no_glob_subst='s/\*/\\\*/g'
7051 default_ofile=libtool
7052 can_build_shared=yes
7054 # All known linkers require a `.a' archive for static linking (except MSVC,
7055 # which needs '.lib').
7057 ltmain="$ac_aux_dir/ltmain.sh"
7058 ofile="$default_ofile"
7059 with_gnu_ld="$lt_cv_prog_gnu_ld"
7061 if test -n "$ac_tool_prefix"; then
7062 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7063 set dummy ${ac_tool_prefix}ar; ac_word=$2
7064 echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7066 if test "${ac_cv_prog_AR+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 if test -n "$AR"; then
7070 ac_cv_prog_AR="$AR" # Let the user override the test.
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_AR="${ac_tool_prefix}ar"
7080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 if test -n "$AR"; then
7090 echo "$as_me:$LINENO: result: $AR" >&5
7091 echo "${ECHO_T}$AR" >&6
7093 echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6
7098 if test -z "$ac_cv_prog_AR"; then
7100 # Extract the first word of "ar", so it can be a program name with args.
7101 set dummy ar; ac_word=$2
7102 echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7104 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 if test -n "$ac_ct_AR"; then
7108 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117 ac_cv_prog_ac_ct_AR="ar"
7118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7127 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7128 if test -n "$ac_ct_AR"; then
7129 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7130 echo "${ECHO_T}$ac_ct_AR" >&6
7132 echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6
7141 if test -n "$ac_tool_prefix"; then
7142 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7143 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7144 echo "$as_me:$LINENO: checking for $ac_word" >&5
7145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7146 if test "${ac_cv_prog_RANLIB+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 if test -n "$RANLIB"; then
7150 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 RANLIB=$ac_cv_prog_RANLIB
7169 if test -n "$RANLIB"; then
7170 echo "$as_me:$LINENO: result: $RANLIB" >&5
7171 echo "${ECHO_T}$RANLIB" >&6
7173 echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6
7178 if test -z "$ac_cv_prog_RANLIB"; then
7179 ac_ct_RANLIB=$RANLIB
7180 # Extract the first word of "ranlib", so it can be a program name with args.
7181 set dummy ranlib; ac_word=$2
7182 echo "$as_me:$LINENO: checking for $ac_word" >&5
7183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7184 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 if test -n "$ac_ct_RANLIB"; then
7188 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_ac_ct_RANLIB="ranlib"
7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7207 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7208 if test -n "$ac_ct_RANLIB"; then
7209 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7210 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7212 echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6
7216 RANLIB=$ac_ct_RANLIB
7218 RANLIB="$ac_cv_prog_RANLIB"
7221 if test -n "$ac_tool_prefix"; then
7222 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}strip; ac_word=$2
7224 echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7226 if test "${ac_cv_prog_STRIP+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 if test -n "$STRIP"; then
7230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 STRIP=$ac_cv_prog_STRIP
7249 if test -n "$STRIP"; then
7250 echo "$as_me:$LINENO: result: $STRIP" >&5
7251 echo "${ECHO_T}$STRIP" >&6
7253 echo "$as_me:$LINENO: result: no" >&5
7254 echo "${ECHO_T}no" >&6
7258 if test -z "$ac_cv_prog_STRIP"; then
7260 # Extract the first word of "strip", so it can be a program name with args.
7261 set dummy strip; ac_word=$2
7262 echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7264 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 if test -n "$ac_ct_STRIP"; then
7268 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_ac_ct_STRIP="strip"
7278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7287 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7288 if test -n "$ac_ct_STRIP"; then
7289 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7290 echo "${ECHO_T}$ac_ct_STRIP" >&6
7292 echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6
7298 STRIP="$ac_cv_prog_STRIP"
7303 old_CFLAGS="$CFLAGS"
7305 # Set sane defaults for various variables
7306 test -z "$AR" && AR=ar
7307 test -z "$AR_FLAGS" && AR_FLAGS=cru
7308 test -z "$AS" && AS=as
7309 test -z "$CC" && CC=cc
7310 test -z "$LTCC" && LTCC=$CC
7311 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7312 test -z "$DLLTOOL" && DLLTOOL=dlltool
7313 test -z "$LD" && LD=ld
7314 test -z "$LN_S" && LN_S="ln -s"
7315 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7316 test -z "$NM" && NM=nm
7317 test -z "$SED" && SED=sed
7318 test -z "$OBJDUMP" && OBJDUMP=objdump
7319 test -z "$RANLIB" && RANLIB=:
7320 test -z "$STRIP" && STRIP=:
7321 test -z "$ac_objext" && ac_objext=o
7323 # Determine commands to create old-style static archives.
7324 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7325 old_postinstall_cmds='chmod 644 $oldlib'
7326 old_postuninstall_cmds=
7328 if test -n "$RANLIB"; then
7331 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7334 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7337 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7340 for cc_temp in $compiler""; do
7342 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7343 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7348 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7351 # Only perform the check for file, if the check method requires it
7352 case $deplibs_check_method in
7354 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7355 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7356 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7357 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7365 lt_save_MAGIC_CMD="$MAGIC_CMD"
7366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7367 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7368 for ac_dir in $ac_dummy; do
7370 test -z "$ac_dir" && ac_dir=.
7371 if test -f $ac_dir/${ac_tool_prefix}file; then
7372 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7373 if test -n "$file_magic_test_file"; then
7374 case $deplibs_check_method in
7376 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7378 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7379 $EGREP "$file_magic_regex" > /dev/null; then
7384 *** Warning: the command libtool uses to detect shared libraries,
7385 *** $file_magic_cmd, produces output that libtool cannot recognize.
7386 *** The result is that libtool may fail to recognize shared libraries
7387 *** as such. This will affect the creation of libtool libraries that
7388 *** depend on shared libraries, but programs linked with such libtool
7389 *** libraries will work regardless of this problem. Nevertheless, you
7390 *** may want to report the problem to your system manager and/or to
7391 *** bug-libtool@gnu.org
7401 MAGIC_CMD="$lt_save_MAGIC_CMD"
7406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7407 if test -n "$MAGIC_CMD"; then
7408 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7409 echo "${ECHO_T}$MAGIC_CMD" >&6
7411 echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6
7415 if test -z "$lt_cv_path_MAGIC_CMD"; then
7416 if test -n "$ac_tool_prefix"; then
7417 echo "$as_me:$LINENO: checking for file" >&5
7418 echo $ECHO_N "checking for file... $ECHO_C" >&6
7419 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7427 lt_save_MAGIC_CMD="$MAGIC_CMD"
7428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7429 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7430 for ac_dir in $ac_dummy; do
7432 test -z "$ac_dir" && ac_dir=.
7433 if test -f $ac_dir/file; then
7434 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7435 if test -n "$file_magic_test_file"; then
7436 case $deplibs_check_method in
7438 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7440 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7441 $EGREP "$file_magic_regex" > /dev/null; then
7446 *** Warning: the command libtool uses to detect shared libraries,
7447 *** $file_magic_cmd, produces output that libtool cannot recognize.
7448 *** The result is that libtool may fail to recognize shared libraries
7449 *** as such. This will affect the creation of libtool libraries that
7450 *** depend on shared libraries, but programs linked with such libtool
7451 *** libraries will work regardless of this problem. Nevertheless, you
7452 *** may want to report the problem to your system manager and/or to
7453 *** bug-libtool@gnu.org
7463 MAGIC_CMD="$lt_save_MAGIC_CMD"
7468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7469 if test -n "$MAGIC_CMD"; then
7470 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7471 echo "${ECHO_T}$MAGIC_CMD" >&6
7473 echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6
7489 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7490 if test "${enable_libtool_lock+set}" = set; then
7491 enableval="$enable_libtool_lock"
7494 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7497 # Check whether --with-pic or --without-pic was given.
7498 if test "${with_pic+set}" = set; then
7504 test -z "$pic_mode" && pic_mode=default
7506 # Use C for the default configuration in the libtool script
7510 ac_cpp='$CPP $CPPFLAGS'
7511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7516 # Source file extension for C test sources.
7519 # Object file extension for compiled C test sources.
7523 # Code to be used in simple compile tests
7524 lt_simple_compile_test_code="int some_variable = 0;\n"
7526 # Code to be used in simple link tests
7527 lt_simple_link_test_code='int main(){return(0);}\n'
7530 # If no C compiler was specified, use CC.
7533 # If no C compiler flags were specified, use CFLAGS.
7534 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7536 # Allow CC to be a program name with arguments.
7540 # save warnings/boilerplate of simple test code
7541 ac_outfile=conftest.$ac_objext
7542 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7543 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7544 _lt_compiler_boilerplate=`cat conftest.err`
7547 ac_outfile=conftest.$ac_objext
7548 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7549 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7550 _lt_linker_boilerplate=`cat conftest.err`
7555 lt_prog_compiler_no_builtin_flag=
7557 if test "$GCC" = yes; then
7558 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7561 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7562 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7563 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 lt_cv_prog_compiler_rtti_exceptions=no
7567 ac_outfile=conftest.$ac_objext
7568 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7569 lt_compiler_flag="-fno-rtti -fno-exceptions"
7570 # Insert the option either (1) after the last *FLAGS variable, or
7571 # (2) before a word containing "conftest.", or (3) at the end.
7572 # Note that $ac_compile itself does not contain backslashes and begins
7573 # with a dollar sign (not a hyphen), so the echo should work correctly.
7574 # The option is referenced via a variable to avoid confusing sed.
7575 lt_compile=`echo "$ac_compile" | $SED \
7576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7578 -e 's:$: $lt_compiler_flag:'`
7579 (eval echo "\"\$as_me:7579: $lt_compile\"" >&5)
7580 (eval "$lt_compile" 2>conftest.err)
7582 cat conftest.err >&5
7583 echo "$as_me:7583: \$? = $ac_status" >&5
7584 if (exit $ac_status) && test -s "$ac_outfile"; then
7585 # The compiler can only warn and ignore the option if not recognized
7586 # So say no if there are warnings other than the usual output.
7587 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7588 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7589 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7590 lt_cv_prog_compiler_rtti_exceptions=yes
7596 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7597 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7599 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7600 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7607 lt_prog_compiler_wl=
7608 lt_prog_compiler_pic=
7609 lt_prog_compiler_static=
7611 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7612 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7614 if test "$GCC" = yes; then
7615 lt_prog_compiler_wl='-Wl,'
7616 lt_prog_compiler_static='-static'
7620 # All AIX code is PIC.
7621 if test "$host_cpu" = ia64; then
7622 # AIX 5 now supports IA64 processor
7623 lt_prog_compiler_static='-Bstatic'
7628 # FIXME: we need at least 68020 code to build shared libraries, but
7629 # adding the `-m68020' flag to GCC prevents building anything better,
7631 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7634 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7635 # PIC is the default for these OSes.
7638 mingw* | pw32* | os2*)
7639 # This hack is so that the source file can tell whether it is being
7640 # built for inclusion in a dll (and should export symbols for example).
7641 lt_prog_compiler_pic='-DDLL_EXPORT'
7644 darwin* | rhapsody*)
7645 # PIC is the default on this platform
7646 # Common symbols not allowed in MH_DYLIB files
7647 lt_prog_compiler_pic='-fno-common'
7651 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7652 # Instead, we relocate shared libraries at runtime.
7656 # Just because we use GCC doesn't mean we suddenly get shared libraries
7657 # on systems that don't support them.
7658 lt_prog_compiler_can_build_shared=no
7663 if test -d /usr/nec; then
7664 lt_prog_compiler_pic=-Kconform_pic
7669 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7676 lt_prog_compiler_pic='-fPIC'
7682 lt_prog_compiler_pic='-fPIC'
7686 # PORTME Check for flag to pass linker flags through the system compiler.
7689 lt_prog_compiler_wl='-Wl,'
7690 if test "$host_cpu" = ia64; then
7691 # AIX 5 now supports IA64 processor
7692 lt_prog_compiler_static='-Bstatic'
7694 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7698 # PIC is the default on this platform
7699 # Common symbols not allowed in MH_DYLIB files
7700 case $cc_basename in
7702 lt_prog_compiler_pic='-qnocommon'
7703 lt_prog_compiler_wl='-Wl,'
7708 mingw* | pw32* | os2*)
7709 # This hack is so that the source file can tell whether it is being
7710 # built for inclusion in a dll (and should export symbols for example).
7711 lt_prog_compiler_pic='-DDLL_EXPORT'
7714 hpux9* | hpux10* | hpux11*)
7715 lt_prog_compiler_wl='-Wl,'
7716 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7723 lt_prog_compiler_pic='+Z'
7726 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7727 lt_prog_compiler_static='${wl}-a ${wl}archive'
7730 irix5* | irix6* | nonstopux*)
7731 lt_prog_compiler_wl='-Wl,'
7732 # PIC (with -KPIC) is the default.
7733 lt_prog_compiler_static='-non_shared'
7737 lt_prog_compiler_pic='-KPIC'
7738 lt_prog_compiler_static='-Bstatic'
7741 linux* | k*bsd*-gnu)
7742 case $cc_basename in
7744 lt_prog_compiler_wl='-Wl,'
7745 lt_prog_compiler_pic='-KPIC'
7746 lt_prog_compiler_static='-static'
7748 pgcc* | pgf77* | pgf90* | pgf95*)
7749 # Portland Group compilers (*not* the Pentium gcc compiler,
7750 # which looks to be a dead project)
7751 lt_prog_compiler_wl='-Wl,'
7752 lt_prog_compiler_pic='-fpic'
7753 lt_prog_compiler_static='-Bstatic'
7756 lt_prog_compiler_wl='-Wl,'
7757 # All Alpha code is PIC.
7758 lt_prog_compiler_static='-non_shared'
7763 osf3* | osf4* | osf5*)
7764 lt_prog_compiler_wl='-Wl,'
7765 # All OSF/1 code is PIC.
7766 lt_prog_compiler_static='-non_shared'
7770 lt_prog_compiler_pic='-KPIC'
7771 lt_prog_compiler_static='-Bstatic'
7772 case $cc_basename in
7774 lt_prog_compiler_wl='-Qoption ld ';;
7776 lt_prog_compiler_wl='-Wl,';;
7781 lt_prog_compiler_wl='-Qoption ld '
7782 lt_prog_compiler_pic='-PIC'
7783 lt_prog_compiler_static='-Bstatic'
7786 sysv4 | sysv4.2uw2* | sysv4.3*)
7787 lt_prog_compiler_wl='-Wl,'
7788 lt_prog_compiler_pic='-KPIC'
7789 lt_prog_compiler_static='-Bstatic'
7793 if test -d /usr/nec ;then
7794 lt_prog_compiler_pic='-Kconform_pic'
7795 lt_prog_compiler_static='-Bstatic'
7799 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7800 lt_prog_compiler_wl='-Wl,'
7801 lt_prog_compiler_pic='-KPIC'
7802 lt_prog_compiler_static='-Bstatic'
7806 lt_prog_compiler_wl='-Wl,'
7807 lt_prog_compiler_can_build_shared=no
7811 lt_prog_compiler_pic='-pic'
7812 lt_prog_compiler_static='-Bstatic'
7816 lt_prog_compiler_can_build_shared=no
7821 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7822 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7825 # Check to make sure the PIC flag actually works.
7827 if test -n "$lt_prog_compiler_pic"; then
7829 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7830 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7831 if test "${lt_prog_compiler_pic_works+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 lt_prog_compiler_pic_works=no
7835 ac_outfile=conftest.$ac_objext
7836 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7837 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7838 # Insert the option either (1) after the last *FLAGS variable, or
7839 # (2) before a word containing "conftest.", or (3) at the end.
7840 # Note that $ac_compile itself does not contain backslashes and begins
7841 # with a dollar sign (not a hyphen), so the echo should work correctly.
7842 # The option is referenced via a variable to avoid confusing sed.
7843 lt_compile=`echo "$ac_compile" | $SED \
7844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7846 -e 's:$: $lt_compiler_flag:'`
7847 (eval echo "\"\$as_me:7847: $lt_compile\"" >&5)
7848 (eval "$lt_compile" 2>conftest.err)
7850 cat conftest.err >&5
7851 echo "$as_me:7851: \$? = $ac_status" >&5
7852 if (exit $ac_status) && test -s "$ac_outfile"; then
7853 # The compiler can only warn and ignore the option if not recognized
7854 # So say no if there are warnings other than the usual output.
7855 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7857 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7858 lt_prog_compiler_pic_works=yes
7864 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7865 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7867 if test x"$lt_prog_compiler_pic_works" = xyes; then
7868 case $lt_prog_compiler_pic in
7870 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7873 lt_prog_compiler_pic=
7874 lt_prog_compiler_can_build_shared=no
7879 # For platforms which do not support PIC, -DPIC is meaningless:
7881 lt_prog_compiler_pic=
7884 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7889 # Check to make sure the static flag actually works.
7891 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7892 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7893 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7894 if test "${lt_prog_compiler_static_works+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 lt_prog_compiler_static_works=no
7898 save_LDFLAGS="$LDFLAGS"
7899 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7900 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7901 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7902 # The linker can only warn and ignore the option if not recognized
7903 # So say no if there are warnings
7904 if test -s conftest.err; then
7905 # Append any errors to the config.log.
7906 cat conftest.err 1>&5
7907 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7909 if diff conftest.exp conftest.er2 >/dev/null; then
7910 lt_prog_compiler_static_works=yes
7913 lt_prog_compiler_static_works=yes
7917 LDFLAGS="$save_LDFLAGS"
7920 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7921 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7923 if test x"$lt_prog_compiler_static_works" = xyes; then
7926 lt_prog_compiler_static=
7930 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7931 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7932 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7935 lt_cv_prog_compiler_c_o=no
7936 $rm -r conftest 2>/dev/null
7940 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7942 lt_compiler_flag="-o out/conftest2.$ac_objext"
7943 # Insert the option either (1) after the last *FLAGS variable, or
7944 # (2) before a word containing "conftest.", or (3) at the end.
7945 # Note that $ac_compile itself does not contain backslashes and begins
7946 # with a dollar sign (not a hyphen), so the echo should work correctly.
7947 lt_compile=`echo "$ac_compile" | $SED \
7948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7950 -e 's:$: $lt_compiler_flag:'`
7951 (eval echo "\"\$as_me:7951: $lt_compile\"" >&5)
7952 (eval "$lt_compile" 2>out/conftest.err)
7954 cat out/conftest.err >&5
7955 echo "$as_me:7955: \$? = $ac_status" >&5
7956 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7958 # The compiler can only warn and ignore the option if not recognized
7959 # So say no if there are warnings
7960 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7961 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7962 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7963 lt_cv_prog_compiler_c_o=yes
7968 # SGI C++ compiler will create directory out/ii_files/ for
7969 # template instantiation
7970 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7971 $rm out/* && rmdir out
7977 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7978 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7981 hard_links="nottested"
7982 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7983 # do not overwrite the value of need_locks provided by the user
7984 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7985 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7988 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7990 ln conftest.a conftest.b 2>&5 || hard_links=no
7991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7992 echo "$as_me:$LINENO: result: $hard_links" >&5
7993 echo "${ECHO_T}$hard_links" >&6
7994 if test "$hard_links" = no; then
7995 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7996 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8003 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8004 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8007 allow_undefined_flag=
8008 enable_shared_with_static_runtimes=no
8010 archive_expsym_cmds=
8011 old_archive_From_new_cmds=
8012 old_archive_from_expsyms_cmds=
8013 export_dynamic_flag_spec=
8014 whole_archive_flag_spec=
8015 thread_safe_flag_spec=
8016 hardcode_libdir_flag_spec=
8017 hardcode_libdir_flag_spec_ld=
8018 hardcode_libdir_separator=
8021 hardcode_shlibpath_var=unsupported
8022 link_all_deplibs=unknown
8023 hardcode_automatic=no
8026 always_export_symbols=no
8027 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8028 # include_expsyms should be a list of space-separated symbols to be *always*
8029 # included in the symbol list
8031 # exclude_expsyms can be an extended regexp of symbols to exclude
8032 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8033 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8034 # as well as any symbol that contains `d'.
8035 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8036 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8037 # platforms (ab)use it in PIC code, but their linkers get confused if
8038 # the symbol is explicitly referenced. Since portable code cannot
8039 # rely on this symbol name, it's probably fine to never include it in
8040 # preloaded symbol tables.
8041 extract_expsyms_cmds=
8042 # Just being paranoid about ensuring that cc_basename is set.
8043 for cc_temp in $compiler""; do
8045 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8046 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8051 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8054 cygwin* | mingw* | pw32*)
8055 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8056 # When not using gcc, we currently assume that we are using
8057 # Microsoft Visual C++.
8058 if test "$GCC" != yes; then
8063 # we just hope/assume this is gcc and not c89 (= MSVC++)
8072 if test "$with_gnu_ld" = yes; then
8073 # If archive_cmds runs LD, not CC, wlarc should be empty
8076 # Set some defaults for GNU ld with shared library support. These
8077 # are reset later if shared libraries are not supported. Putting them
8078 # here allows them to be overridden if necessary.
8079 runpath_var=LD_RUN_PATH
8080 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8081 export_dynamic_flag_spec='${wl}--export-dynamic'
8082 # ancient GNU ld didn't support --whole-archive et. al.
8083 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8084 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8086 whole_archive_flag_spec=
8088 supports_anon_versioning=no
8089 case `$LD -v 2>/dev/null` in
8090 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8091 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8092 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8093 *\ 2.11.*) ;; # other 2.11 versions
8094 *) supports_anon_versioning=yes ;;
8097 # See if GNU ld supports shared libraries.
8099 aix3* | aix4* | aix5*)
8100 # On AIX/PPC, the GNU linker is very broken
8101 if test "$host_cpu" != ia64; then
8105 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8106 *** to be unable to reliably create shared libraries on AIX.
8107 *** Therefore, libtool is disabling shared libraries support. If you
8108 *** really care for shared libraries, you may want to modify your PATH
8109 *** so that a non-GNU linker is found, and then restart.
8116 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)'
8117 hardcode_libdir_flag_spec='-L$libdir'
8118 hardcode_minus_L=yes
8120 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8121 # that the semantics of dynamic libraries on AmigaOS, at least up
8122 # to version 4, is to share data among multiple programs linked
8123 # with the same dynamic library. Since this doesn't match the
8124 # behavior of shared libraries on other platforms, we can't use
8130 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8131 allow_undefined_flag=unsupported
8132 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8133 # support --undefined. This deserves some investigation. FIXME
8134 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8140 cygwin* | mingw* | pw32*)
8141 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8142 # as there is no search path for DLLs.
8143 hardcode_libdir_flag_spec='-L$libdir'
8144 allow_undefined_flag=unsupported
8145 always_export_symbols=no
8146 enable_shared_with_static_runtimes=yes
8147 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8149 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8151 # If the export-symbols file already is a .def file (1st line
8152 # is EXPORTS), use it as is; otherwise, prepend...
8153 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8154 cp $export_symbols $output_objdir/$soname.def;
8156 echo EXPORTS > $output_objdir/$soname.def;
8157 cat $export_symbols >> $output_objdir/$soname.def;
8159 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8167 hardcode_shlibpath_var=no
8168 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8169 export_dynamic_flag_spec='${wl}-E'
8170 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8171 # Instead, shared libraries are loaded at an image base (0x10000000 by
8172 # default) and relocated if they conflict, which is a slow very memory
8173 # consuming and fragmenting process. To avoid this, we pick a random,
8174 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8175 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8176 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8177 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8180 linux* | k*bsd*-gnu)
8181 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8183 case $cc_basename,$host_cpu in
8184 pgcc*) # Portland Group C compiler
8185 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8186 tmp_addflag=' $pic_flag'
8188 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8189 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8190 tmp_addflag=' $pic_flag -Mnomain' ;;
8191 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8192 tmp_addflag=' -i_dynamic' ;;
8193 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8194 tmp_addflag=' -i_dynamic -nofor_main' ;;
8195 ifc* | ifort*) # Intel Fortran compiler
8196 tmp_addflag=' -nofor_main' ;;
8198 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8200 if test $supports_anon_versioning = yes; then
8201 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8203 $echo "local: *; };" >> $output_objdir/$libname.ver~
8204 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8212 netbsd* | netbsdelf*-gnu)
8213 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8214 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8218 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8223 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8227 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8228 *** create shared libraries on Solaris systems. Therefore, libtool
8229 *** is disabling shared libraries support. We urge you to upgrade GNU
8230 *** binutils to release 2.9.1 or newer. Another option is to modify
8231 *** your PATH or compiler configuration so that the native linker is
8232 *** used, and then restart.
8235 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8237 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8244 case `$LD -v 2>&1` in
8245 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8249 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8250 *** reliably create shared libraries on SCO systems. Therefore, libtool
8251 *** is disabling shared libraries support. We urge you to upgrade GNU
8252 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8253 *** your PATH or compiler configuration so that the native linker is
8254 *** used, and then restart.
8259 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8260 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8262 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8271 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8274 hardcode_shlibpath_var=no
8278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8280 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8287 if test "$ld_shlibs" = no; then
8289 hardcode_libdir_flag_spec=
8290 export_dynamic_flag_spec=
8291 whole_archive_flag_spec=
8294 # PORTME fill in a description of your system's linker (not GNU ld)
8297 allow_undefined_flag=unsupported
8298 always_export_symbols=yes
8299 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'
8300 # Note: this linker hardcodes the directories in LIBPATH if there
8301 # are no directories specified by -L.
8302 hardcode_minus_L=yes
8303 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8304 # Neither direct hardcoding nor static linking is supported with a
8306 hardcode_direct=unsupported
8311 if test "$host_cpu" = ia64; then
8312 # On IA64, the linker does run time linking by default, so we don't
8313 # have to do anything special.
8314 aix_use_runtimelinking=no
8315 exp_sym_flag='-Bexport'
8318 # If we're using GNU nm, then we don't want the "-C" option.
8319 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8320 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8321 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'
8323 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'
8325 aix_use_runtimelinking=no
8327 # Test if we are trying to use run time linking or normal
8328 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8329 # need to do runtime linking.
8330 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8331 for ld_flag in $LDFLAGS; do
8332 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8333 aix_use_runtimelinking=yes
8340 exp_sym_flag='-bexport'
8341 no_entry_flag='-bnoentry'
8344 # When large executables or shared objects are built, AIX ld can
8345 # have problems creating the table of contents. If linking a library
8346 # or program results in "error TOC overflow" add -mminimal-toc to
8347 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8348 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8352 hardcode_libdir_separator=':'
8353 link_all_deplibs=yes
8355 if test "$GCC" = yes; then
8356 case $host_os in aix4.[012]|aix4.[012].*)
8357 # We only want to do this on AIX 4.2 and lower, the check
8358 # below for broken collect2 doesn't work under 4.3+
8359 collect2name=`${CC} -print-prog-name=collect2`
8360 if test -f "$collect2name" && \
8361 strings "$collect2name" | grep resolve_lib_name >/dev/null
8363 # We have reworked collect2
8366 # We have old collect2
8367 hardcode_direct=unsupported
8368 # It fails to find uninstalled libraries when the uninstalled
8369 # path is not listed in the libpath. Setting hardcode_minus_L
8370 # to unsupported forces relinking
8371 hardcode_minus_L=yes
8372 hardcode_libdir_flag_spec='-L$libdir'
8373 hardcode_libdir_separator=
8377 shared_flag='-shared'
8378 if test "$aix_use_runtimelinking" = yes; then
8379 shared_flag="$shared_flag "'${wl}-G'
8383 if test "$host_cpu" = ia64; then
8384 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8385 # chokes on -Wl,-G. The following line is correct:
8388 if test "$aix_use_runtimelinking" = yes; then
8389 shared_flag='${wl}-G'
8391 shared_flag='${wl}-bM:SRE'
8396 # It seems that -bexpall does not export symbols beginning with
8397 # underscore (_), so it is better to generate a list of symbols to export.
8398 always_export_symbols=yes
8399 if test "$aix_use_runtimelinking" = yes; then
8400 # Warning - without using the other runtime loading flags (-brtl),
8401 # -berok will link without error, but may produce a broken library.
8402 allow_undefined_flag='-berok'
8403 # Determine the default libpath from the value encoded in an empty executable.
8404 cat >conftest.$ac_ext <<_ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8419 rm -f conftest.$ac_objext conftest$ac_exeext
8420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8421 (eval $ac_link) 2>conftest.er1
8423 grep -v '^ *+' conftest.er1 >conftest.err
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } &&
8428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; } &&
8434 { ac_try='test -s conftest$ac_exeext'
8435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); }; }; then
8441 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8443 # Check for a 64-bit object if we didn't find anything.
8444 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; }
8447 echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8451 rm -f conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext conftest.$ac_ext
8453 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8455 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8456 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8458 if test "$host_cpu" = ia64; then
8459 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8460 allow_undefined_flag="-z nodefs"
8461 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8463 # Determine the default libpath from the value encoded in an empty executable.
8464 cat >conftest.$ac_ext <<_ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8481 (eval $ac_link) 2>conftest.er1
8483 grep -v '^ *+' conftest.er1 >conftest.err
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; } &&
8494 { ac_try='test -s conftest$ac_exeext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8503 # Check for a 64-bit object if we didn't find anything.
8504 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; }
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8511 rm -f conftest.err conftest.$ac_objext \
8512 conftest$ac_exeext conftest.$ac_ext
8513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8515 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8516 # Warning - without using the other run time loading flags,
8517 # -berok will link without error, but may produce a broken library.
8518 no_undefined_flag=' ${wl}-bernotok'
8519 allow_undefined_flag=' ${wl}-berok'
8520 # Exported symbols can be pulled into shared objects from archives
8521 whole_archive_flag_spec='$convenience'
8522 archive_cmds_need_lc=yes
8523 # This is similar to how AIX traditionally builds its shared libraries.
8524 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8530 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)'
8531 hardcode_libdir_flag_spec='-L$libdir'
8532 hardcode_minus_L=yes
8533 # see comment about different semantics on the GNU ld section
8538 export_dynamic_flag_spec=-rdynamic
8541 cygwin* | mingw* | pw32*)
8542 # When not using gcc, we currently assume that we are using
8543 # Microsoft Visual C++.
8544 # hardcode_libdir_flag_spec is actually meaningless, as there is
8545 # no search path for DLLs.
8546 hardcode_libdir_flag_spec=' '
8547 allow_undefined_flag=unsupported
8548 # Tell ltmain to make .lib files, not .a files.
8550 # Tell ltmain to make .dll files, not .so files.
8552 # FIXME: Setting linknames here is a bad hack.
8553 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8554 # The linker will automatically build a .lib file if we build a DLL.
8555 old_archive_From_new_cmds='true'
8556 # FIXME: Should let the user specify the lib program.
8557 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8558 fix_srcfile_path='`cygpath -w "$srcfile"`'
8559 enable_shared_with_static_runtimes=yes
8562 darwin* | rhapsody*)
8564 rhapsody* | darwin1.[012])
8565 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8568 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8569 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8571 case ${MACOSX_DEPLOYMENT_TARGET} in
8573 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8576 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8582 archive_cmds_need_lc=no
8584 hardcode_automatic=yes
8585 hardcode_shlibpath_var=unsupported
8586 whole_archive_flag_spec=''
8587 link_all_deplibs=yes
8588 if test "$GCC" = yes ; then
8589 output_verbose_link_cmd='echo'
8590 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8591 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8592 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8593 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}'
8594 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}'
8596 case $cc_basename in
8598 output_verbose_link_cmd='echo'
8599 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8600 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8601 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8602 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8603 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}'
8613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8614 hardcode_libdir_flag_spec='-L$libdir'
8615 hardcode_shlibpath_var=no
8622 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8623 # support. Future versions do this automatically, but an explicit c++rt0.o
8624 # does not break anything, and helps significantly (at the cost of a little
8627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8628 hardcode_libdir_flag_spec='-R$libdir'
8630 hardcode_shlibpath_var=no
8633 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8637 hardcode_minus_L=yes
8638 hardcode_shlibpath_var=no
8641 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8642 freebsd* | dragonfly*)
8643 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8644 hardcode_libdir_flag_spec='-R$libdir'
8646 hardcode_shlibpath_var=no
8650 if test "$GCC" = yes; then
8651 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'
8653 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'
8655 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8656 hardcode_libdir_separator=:
8659 # hardcode_minus_L: Not really in the search PATH,
8660 # but as the default location of the library.
8661 hardcode_minus_L=yes
8662 export_dynamic_flag_spec='${wl}-E'
8666 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8667 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8669 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8671 if test "$with_gnu_ld" = no; then
8672 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8673 hardcode_libdir_separator=:
8676 export_dynamic_flag_spec='${wl}-E'
8678 # hardcode_minus_L: Not really in the search PATH,
8679 # but as the default location of the library.
8680 hardcode_minus_L=yes
8685 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8688 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8691 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8694 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8700 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8703 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8706 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8710 if test "$with_gnu_ld" = no; then
8711 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8712 hardcode_libdir_separator=:
8716 hardcode_libdir_flag_spec_ld='+b $libdir'
8718 hardcode_shlibpath_var=no
8722 export_dynamic_flag_spec='${wl}-E'
8724 # hardcode_minus_L: Not really in the search PATH,
8725 # but as the default location of the library.
8726 hardcode_minus_L=yes
8732 irix5* | irix6* | nonstopux*)
8733 if test "$GCC" = yes; then
8734 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'
8736 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'
8737 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8740 hardcode_libdir_separator=:
8741 link_all_deplibs=yes
8744 netbsd* | netbsdelf*-gnu)
8745 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8746 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8748 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8750 hardcode_libdir_flag_spec='-R$libdir'
8752 hardcode_shlibpath_var=no
8756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8758 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8759 hardcode_libdir_separator=:
8760 hardcode_shlibpath_var=no
8765 hardcode_shlibpath_var=no
8766 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8768 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8769 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8770 export_dynamic_flag_spec='${wl}-E'
8773 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8775 hardcode_libdir_flag_spec='-R$libdir'
8778 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8779 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8786 hardcode_libdir_flag_spec='-L$libdir'
8787 hardcode_minus_L=yes
8788 allow_undefined_flag=unsupported
8789 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'
8790 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8794 if test "$GCC" = yes; then
8795 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8796 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'
8798 allow_undefined_flag=' -expect_unresolved \*'
8799 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'
8801 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8802 hardcode_libdir_separator=:
8805 osf4* | osf5*) # as osf3* with the addition of -msym flag
8806 if test "$GCC" = yes; then
8807 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8808 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'
8809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8811 allow_undefined_flag=' -expect_unresolved \*'
8812 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'
8813 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8814 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8816 # Both c and cxx compiler support -rpath directly
8817 hardcode_libdir_flag_spec='-rpath $libdir'
8819 hardcode_libdir_separator=:
8823 no_undefined_flag=' -z text'
8824 if test "$GCC" = yes; then
8826 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8827 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8828 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8831 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8832 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8833 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8835 hardcode_libdir_flag_spec='-R$libdir'
8836 hardcode_shlibpath_var=no
8838 solaris2.[0-5] | solaris2.[0-5].*) ;;
8840 # The compiler driver will combine linker options so we
8841 # cannot just pass the convience library names through
8842 # without $wl, iff we do not link with $LD.
8843 # Luckily, gcc supports the same syntax we need for Sun Studio.
8844 # Supported since Solaris 2.6 (maybe 2.5.1?)
8847 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8849 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8852 link_all_deplibs=yes
8856 if test "x$host_vendor" = xsequent; then
8857 # Use $CC to link under sequent, because it throws in some extra .o
8858 # files that make .init and .fini sections work.
8859 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8861 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8863 hardcode_libdir_flag_spec='-L$libdir'
8865 hardcode_minus_L=yes
8866 hardcode_shlibpath_var=no
8870 case $host_vendor in
8872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873 hardcode_direct=yes # is this really true???
8876 ## LD is ld it makes a PLAMLIB
8877 ## CC just makes a GrossModule.
8878 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8879 reload_cmds='$CC -r -o $output$reload_objs'
8883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8887 runpath_var='LD_RUN_PATH'
8888 hardcode_shlibpath_var=no
8892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8893 hardcode_shlibpath_var=no
8894 export_dynamic_flag_spec='-Bexport'
8898 if test -d /usr/nec; then
8899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8900 hardcode_shlibpath_var=no
8901 runpath_var=LD_RUN_PATH
8902 hardcode_runpath_var=yes
8907 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8908 no_undefined_flag='${wl}-z,text'
8909 archive_cmds_need_lc=no
8910 hardcode_shlibpath_var=no
8911 runpath_var='LD_RUN_PATH'
8913 if test "$GCC" = yes; then
8914 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8915 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8917 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8918 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8922 sysv5* | sco3.2v5* | sco5v6*)
8923 # Note: We can NOT use -z defs as we might desire, because we do not
8924 # link with -lc, and that would cause any symbols used from libc to
8925 # always be unresolved, which means just about no library would
8926 # ever link correctly. If we're not using GNU ld we use -z text
8927 # though, which does catch some bad symbols but isn't as heavy-handed
8929 no_undefined_flag='${wl}-z,text'
8930 allow_undefined_flag='${wl}-z,nodefs'
8931 archive_cmds_need_lc=no
8932 hardcode_shlibpath_var=no
8933 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8934 hardcode_libdir_separator=':'
8935 link_all_deplibs=yes
8936 export_dynamic_flag_spec='${wl}-Bexport'
8937 runpath_var='LD_RUN_PATH'
8939 if test "$GCC" = yes; then
8940 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8941 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8943 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8944 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8950 hardcode_libdir_flag_spec='-L$libdir'
8951 hardcode_shlibpath_var=no
8960 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8961 echo "${ECHO_T}$ld_shlibs" >&6
8962 test "$ld_shlibs" = no && can_build_shared=no
8965 # Do we need to explicitly link libc?
8967 case "x$archive_cmds_need_lc" in
8969 # Assume -lc should be added
8970 archive_cmds_need_lc=yes
8972 if test "$enable_shared" = yes && test "$GCC" = yes; then
8973 case $archive_cmds in
8975 # FIXME: we may have to deal with multi-command sequences.
8978 # Test whether the compiler implicitly links with -lc since on some
8979 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8980 # to ld, don't add -lc before -lgcc.
8981 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8982 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8987 (eval $ac_compile) 2>&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } 2>conftest.err; then
8993 libobjs=conftest.$ac_objext
8995 wl=$lt_prog_compiler_wl
8996 pic_flag=$lt_prog_compiler_pic
9002 lt_save_allow_undefined_flag=$allow_undefined_flag
9003 allow_undefined_flag=
9004 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9005 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }
9010 archive_cmds_need_lc=no
9012 archive_cmds_need_lc=yes
9014 allow_undefined_flag=$lt_save_allow_undefined_flag
9016 cat conftest.err 1>&5
9019 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9020 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9027 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9028 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9030 libname_spec='lib$name'
9038 shlibpath_overrides_runpath=unknown
9040 dynamic_linker="$host_os ld.so"
9041 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9042 if test "$GCC" = yes; then
9043 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9044 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9045 # if the path contains ";" then we assume it to be the separator
9046 # otherwise default to the standard path separator (i.e. ":") - it is
9047 # assumed that no part of a normal pathname contains ";" but that should
9048 # okay in the real world where ";" in dirpaths is itself problematic.
9049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9054 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9056 need_lib_prefix=unknown
9057 hardcode_into_libs=no
9059 # when you set need_version to no, make sure it does not cause -set_version
9060 # flags to be left without arguments
9061 need_version=unknown
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9067 shlibpath_var=LIBPATH
9069 # AIX 3 has no versioning support, so we append a major version to the name.
9070 soname_spec='${libname}${release}${shared_ext}$major'
9077 hardcode_into_libs=yes
9078 if test "$host_cpu" = ia64; then
9079 # AIX 5 supports IA64
9080 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9081 shlibpath_var=LD_LIBRARY_PATH
9083 # With GCC up to 2.95.x, collect2 would create an import file
9084 # for dependence libraries. The import file would start with
9085 # the line `#! .'. This would cause the generated library to
9086 # depend on `.', always an invalid library. This was fixed in
9087 # development snapshots of GCC prior to 3.0.
9089 aix4 | aix4.[01] | aix4.[01].*)
9090 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9092 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9099 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9100 # soname into executable. Probably we can add versioning support to
9101 # collect2, so additional links can be useful in future.
9102 if test "$aix_use_runtimelinking" = yes; then
9103 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9104 # instead of lib<name>.a to let people know that these are not
9105 # typical AIX shared libraries.
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9108 # We preserve .a as extension for shared libraries through AIX4.2
9109 # and later when we are not doing run time linking.
9110 library_names_spec='${libname}${release}.a $libname.a'
9111 soname_spec='${libname}${release}${shared_ext}$major'
9113 shlibpath_var=LIBPATH
9118 library_names_spec='$libname.ixlibrary $libname.a'
9119 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9120 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'
9124 library_names_spec='${libname}${shared_ext}'
9125 dynamic_linker="$host_os ld.so"
9126 shlibpath_var=LIBRARY_PATH
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9135 shlibpath_var=LD_LIBRARY_PATH
9136 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9137 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9138 # the default ld.so.conf also contains /usr/contrib/lib and
9139 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9140 # libtool to hard-code these into programs
9143 cygwin* | mingw* | pw32*)
9144 version_type=windows
9149 case $GCC,$host_os in
9150 yes,cygwin* | yes,mingw* | yes,pw32*)
9151 library_names_spec='$libname.dll.a'
9152 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9153 postinstall_cmds='base_file=`basename \${file}`~
9154 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9155 dldir=$destdir/`dirname \$dlpath`~
9156 test -d \$dldir || mkdir -p \$dldir~
9157 $install_prog $dir/$dlname \$dldir/$dlname~
9158 chmod a+x \$dldir/$dlname'
9159 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9160 dlpath=$dir/\$dldll~
9162 shlibpath_overrides_runpath=yes
9166 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9167 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9168 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9171 # MinGW DLLs use traditional 'lib' prefix
9172 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9173 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9174 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9175 # It is most probably a Windows format PATH printed by
9176 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9177 # path with ; separators, and with drive letters. We can handle the
9178 # drive letters (cygwin fileutils understands them), so leave them,
9179 # especially as we might pass files found there to a mingw objdump,
9180 # which wouldn't understand a cygwinified path. Ahh.
9181 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9183 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9187 # pw32 DLLs use 'pw' prefix rather than 'lib'
9188 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9194 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9197 dynamic_linker='Win32 ld.exe'
9198 # FIXME: first we should search . and the directory the executable is in
9202 darwin* | rhapsody*)
9203 dynamic_linker="$host_os dyld"
9207 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9208 soname_spec='${libname}${release}${major}$shared_ext'
9209 shlibpath_overrides_runpath=yes
9210 shlibpath_var=DYLD_LIBRARY_PATH
9211 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9212 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9213 if test "$GCC" = yes; then
9214 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"`
9216 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9218 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9226 soname_spec='${libname}${release}${shared_ext}$major'
9227 shlibpath_var=LD_LIBRARY_PATH
9234 freebsd* | dragonfly*)
9235 # DragonFly does not have aout. When/if they implement a new
9236 # versioning mechanism, adjust this.
9237 if test -x /usr/bin/objformat; then
9238 objformat=`/usr/bin/objformat`
9241 freebsd[123]*) objformat=aout ;;
9245 version_type=freebsd-$objformat
9246 case $version_type in
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9257 shlibpath_var=LD_LIBRARY_PATH
9260 shlibpath_overrides_runpath=yes
9262 freebsd3.[01]* | freebsdelf3.[01]*)
9263 shlibpath_overrides_runpath=yes
9264 hardcode_into_libs=yes
9266 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9267 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9268 shlibpath_overrides_runpath=no
9269 hardcode_into_libs=yes
9271 freebsd*) # from 4.6 on
9272 shlibpath_overrides_runpath=yes
9273 hardcode_into_libs=yes
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 hardcode_into_libs=yes
9288 hpux9* | hpux10* | hpux11*)
9289 # Give a soname corresponding to the major version so that dld.sl refuses to
9290 # link against other versions.
9297 hardcode_into_libs=yes
9298 dynamic_linker="$host_os dld.so"
9299 shlibpath_var=LD_LIBRARY_PATH
9300 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9302 soname_spec='${libname}${release}${shared_ext}$major'
9303 if test "X$HPUX_IA64_MODE" = X32; then
9304 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9306 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9312 hardcode_into_libs=yes
9313 dynamic_linker="$host_os dld.sl"
9314 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9315 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9318 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9319 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9323 dynamic_linker="$host_os dld.sl"
9324 shlibpath_var=SHLIB_PATH
9325 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327 soname_spec='${libname}${release}${shared_ext}$major'
9330 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9331 postinstall_cmds='chmod 555 $lib'
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9339 soname_spec='${libname}${release}${shared_ext}$major'
9340 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9341 shlibpath_var=LD_LIBRARY_PATH
9342 shlibpath_overrides_runpath=no
9343 hardcode_into_libs=yes
9346 irix5* | irix6* | nonstopux*)
9348 nonstopux*) version_type=nonstopux ;;
9350 if test "$lt_cv_prog_gnu_ld" = yes; then
9358 soname_spec='${libname}${release}${shared_ext}$major'
9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9361 irix5* | nonstopux*)
9365 case $LD in # libtool.m4 will add one of these switches to LD
9366 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9367 libsuff= shlibsuff= libmagic=32-bit;;
9368 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9369 libsuff=32 shlibsuff=N32 libmagic=N32;;
9370 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9371 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9372 *) libsuff= shlibsuff= libmagic=never-match;;
9376 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9377 shlibpath_overrides_runpath=no
9378 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9379 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9380 hardcode_into_libs=yes
9383 # No shared lib support for Linux oldld, aout, or coff.
9384 linux*oldld* | linux*aout* | linux*coff*)
9388 # This must be Linux ELF.
9389 linux* | k*bsd*-gnu)
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394 soname_spec='${libname}${release}${shared_ext}$major'
9395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9396 shlibpath_var=LD_LIBRARY_PATH
9397 shlibpath_overrides_runpath=no
9398 # This implies no fast_install, which is unacceptable.
9399 # Some rework will be needed to allow for fast_install
9400 # before this can be enabled.
9401 hardcode_into_libs=yes
9403 # Append ld.so.conf contents to the search path
9404 if test -f /etc/ld.so.conf; then
9405 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9406 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9409 # We used to test for /lib/ld.so.1 and disable shared libraries on
9410 # powerpc, because MkLinux only supported shared libraries with the
9411 # GNU dynamic linker. Since this was broken with cross compilers,
9412 # most powerpc-linux boxes support dynamic linking these days and
9413 # people can always --disable-shared, the test was removed, and we
9414 # assume the GNU/Linux dynamic linker is in use.
9415 dynamic_linker='GNU/Linux ld.so'
9422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9423 soname_spec='${libname}${release}${shared_ext}$major'
9424 shlibpath_var=LD_LIBRARY_PATH
9425 shlibpath_overrides_runpath=no
9426 hardcode_into_libs=yes
9427 dynamic_linker='NetBSD ld.elf_so'
9434 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9437 dynamic_linker='NetBSD (a.out) ld.so'
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 dynamic_linker='NetBSD ld.elf_so'
9443 shlibpath_var=LD_LIBRARY_PATH
9444 shlibpath_overrides_runpath=yes
9445 hardcode_into_libs=yes
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451 shlibpath_var=LD_LIBRARY_PATH
9452 shlibpath_overrides_runpath=yes
9459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9460 soname_spec='${libname}${release}${shared_ext}$major'
9461 shlibpath_var=LD_LIBRARY_PATH
9462 shlibpath_overrides_runpath=yes
9467 sys_lib_dlsearch_path_spec="/usr/lib"
9469 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9471 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9472 *) need_version=no ;;
9474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9476 shlibpath_var=LD_LIBRARY_PATH
9477 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9479 openbsd2.[89] | openbsd2.[89].*)
9480 shlibpath_overrides_runpath=no
9483 shlibpath_overrides_runpath=yes
9487 shlibpath_overrides_runpath=yes
9492 libname_spec='$name'
9495 library_names_spec='$libname${shared_ext} $libname.a'
9496 dynamic_linker='OS/2 ld.exe'
9497 shlibpath_var=LIBPATH
9500 osf3* | osf4* | osf5*)
9504 soname_spec='${libname}${release}${shared_ext}$major'
9505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9506 shlibpath_var=LD_LIBRARY_PATH
9507 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9508 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9516 soname_spec='${libname}${release}${shared_ext}$major'
9517 shlibpath_var=LD_LIBRARY_PATH
9518 shlibpath_overrides_runpath=yes
9519 hardcode_into_libs=yes
9520 # ldd complains unless libraries are executable
9521 postinstall_cmds='chmod +x $lib'
9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9527 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 shlibpath_overrides_runpath=yes
9530 if test "$with_gnu_ld" = yes; then
9538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539 soname_spec='${libname}${release}${shared_ext}$major'
9540 shlibpath_var=LD_LIBRARY_PATH
9541 case $host_vendor in
9543 shlibpath_overrides_runpath=no
9545 export_dynamic_flag_spec='${wl}-Blargedynsym'
9546 runpath_var=LD_RUN_PATH
9554 shlibpath_overrides_runpath=no
9555 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9561 if test -d /usr/nec ;then
9563 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9564 soname_spec='$libname${shared_ext}.$major'
9565 shlibpath_var=LD_LIBRARY_PATH
9569 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9570 version_type=freebsd-elf
9573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9574 soname_spec='${libname}${release}${shared_ext}$major'
9575 shlibpath_var=LD_LIBRARY_PATH
9576 hardcode_into_libs=yes
9577 if test "$with_gnu_ld" = yes; then
9578 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9579 shlibpath_overrides_runpath=no
9581 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9582 shlibpath_overrides_runpath=yes
9585 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9589 sys_lib_dlsearch_path_spec='/usr/lib'
9594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9595 soname_spec='${libname}${release}${shared_ext}$major'
9596 shlibpath_var=LD_LIBRARY_PATH
9603 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9604 echo "${ECHO_T}$dynamic_linker" >&6
9605 test "$dynamic_linker" = no && can_build_shared=no
9607 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9608 if test "$GCC" = yes; then
9609 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9612 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9613 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9615 if test -n "$hardcode_libdir_flag_spec" || \
9616 test -n "$runpath_var" || \
9617 test "X$hardcode_automatic" = "Xyes" ; then
9619 # We can hardcode non-existant directories.
9620 if test "$hardcode_direct" != no &&
9621 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9622 # have to relink, otherwise we might link with an installed library
9623 # when we should be linking with a yet-to-be-installed one
9624 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9625 test "$hardcode_minus_L" != no; then
9626 # Linking always hardcodes the temporary library directory.
9627 hardcode_action=relink
9629 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9630 hardcode_action=immediate
9633 # We cannot hardcode anything, or else we can only hardcode existing
9635 hardcode_action=unsupported
9637 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9638 echo "${ECHO_T}$hardcode_action" >&6
9640 if test "$hardcode_action" = relink; then
9641 # Fast installation is not supported
9642 enable_fast_install=no
9643 elif test "$shlibpath_overrides_runpath" = yes ||
9644 test "$enable_shared" = no; then
9645 # Fast installation is not necessary
9646 enable_fast_install=needless
9651 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9652 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9653 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9654 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9655 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9656 echo "$as_me:$LINENO: result: yes" >&5
9657 echo "${ECHO_T}yes" >&6
9659 # FIXME - insert some real tests, host_os isn't really good enough
9662 if test -n "$STRIP" ; then
9663 striplib="$STRIP -x"
9664 echo "$as_me:$LINENO: result: yes" >&5
9665 echo "${ECHO_T}yes" >&6
9667 echo "$as_me:$LINENO: result: no" >&5
9668 echo "${ECHO_T}no" >&6
9672 echo "$as_me:$LINENO: result: no" >&5
9673 echo "${ECHO_T}no" >&6
9678 if test "x$enable_dlopen" != xyes; then
9679 enable_dlopen=unknown
9680 enable_dlopen_self=unknown
9681 enable_dlopen_self_static=unknown
9688 lt_cv_dlopen="load_add_on"
9690 lt_cv_dlopen_self=yes
9694 lt_cv_dlopen="LoadLibrary"
9699 lt_cv_dlopen="dlopen"
9704 # if libdl is installed we need to link against it
9705 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9706 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9707 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 ac_check_lib_save_LIBS=$LIBS
9712 cat >conftest.$ac_ext <<_ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9719 /* Override any gcc2 internal prototype to avoid an error. */
9723 /* We use char because int might match the return type of a gcc2
9724 builtin and then its argument prototype would still apply. */
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9736 (eval $ac_link) 2>conftest.er1
9738 grep -v '^ *+' conftest.er1 >conftest.err
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
9743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try='test -s conftest$ac_exeext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 ac_cv_lib_dl_dlopen=yes
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9760 ac_cv_lib_dl_dlopen=no
9762 rm -f conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9764 LIBS=$ac_check_lib_save_LIBS
9766 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9767 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9768 if test $ac_cv_lib_dl_dlopen = yes; then
9769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9774 lt_cv_dlopen_self=yes
9781 echo "$as_me:$LINENO: checking for shl_load" >&5
9782 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9783 if test "${ac_cv_func_shl_load+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9794 #define shl_load innocuous_shl_load
9796 /* System header to define __stub macros and hopefully few prototypes,
9797 which can conflict with char shl_load (); below.
9798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799 <limits.h> exists even on freestanding compilers. */
9802 # include <limits.h>
9804 # include <assert.h>
9809 /* Override any gcc2 internal prototype to avoid an error. */
9814 /* We use char because int might match the return type of a gcc2
9815 builtin and then its argument prototype would still apply. */
9817 /* The GNU C library defines this for functions which it implements
9818 to always fail with ENOSYS. Some functions are actually named
9819 something starting with __ and the normal name is an alias. */
9820 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9823 char (*f) () = shl_load;
9832 return f != shl_load;
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839 (eval $ac_link) 2>conftest.er1
9841 grep -v '^ *+' conftest.er1 >conftest.err
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; } &&
9852 { ac_try='test -s conftest$ac_exeext'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; }; then
9858 ac_cv_func_shl_load=yes
9860 echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9863 ac_cv_func_shl_load=no
9865 rm -f conftest.err conftest.$ac_objext \
9866 conftest$ac_exeext conftest.$ac_ext
9868 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9869 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9870 if test $ac_cv_func_shl_load = yes; then
9871 lt_cv_dlopen="shl_load"
9873 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9874 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9875 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 ac_check_lib_save_LIBS=$LIBS
9880 cat >conftest.$ac_ext <<_ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9887 /* Override any gcc2 internal prototype to avoid an error. */
9891 /* We use char because int might match the return type of a gcc2
9892 builtin and then its argument prototype would still apply. */
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9904 (eval $ac_link) 2>conftest.er1
9906 grep -v '^ *+' conftest.er1 >conftest.err
9908 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } &&
9911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try='test -s conftest$ac_exeext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 ac_cv_lib_dld_shl_load=yes
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9928 ac_cv_lib_dld_shl_load=no
9930 rm -f conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext conftest.$ac_ext
9932 LIBS=$ac_check_lib_save_LIBS
9934 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9935 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9936 if test $ac_cv_lib_dld_shl_load = yes; then
9937 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9939 echo "$as_me:$LINENO: checking for dlopen" >&5
9940 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9941 if test "${ac_cv_func_dlopen+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 cat >conftest.$ac_ext <<_ACEOF
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9950 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9952 #define dlopen innocuous_dlopen
9954 /* System header to define __stub macros and hopefully few prototypes,
9955 which can conflict with char dlopen (); below.
9956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9957 <limits.h> exists even on freestanding compilers. */
9960 # include <limits.h>
9962 # include <assert.h>
9967 /* Override any gcc2 internal prototype to avoid an error. */
9972 /* We use char because int might match the return type of a gcc2
9973 builtin and then its argument prototype would still apply. */
9975 /* The GNU C library defines this for functions which it implements
9976 to always fail with ENOSYS. Some functions are actually named
9977 something starting with __ and the normal name is an alias. */
9978 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9981 char (*f) () = dlopen;
9995 rm -f conftest.$ac_objext conftest$ac_exeext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9997 (eval $ac_link) 2>conftest.er1
9999 grep -v '^ *+' conftest.er1 >conftest.err
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } &&
10004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; } &&
10010 { ac_try='test -s conftest$ac_exeext'
10011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012 (eval $ac_try) 2>&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }; }; then
10016 ac_cv_func_dlopen=yes
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10021 ac_cv_func_dlopen=no
10023 rm -f conftest.err conftest.$ac_objext \
10024 conftest$ac_exeext conftest.$ac_ext
10026 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10027 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10028 if test $ac_cv_func_dlopen = yes; then
10029 lt_cv_dlopen="dlopen"
10031 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10032 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10033 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10036 ac_check_lib_save_LIBS=$LIBS
10038 cat >conftest.$ac_ext <<_ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h. */
10045 /* Override any gcc2 internal prototype to avoid an error. */
10049 /* We use char because int might match the return type of a gcc2
10050 builtin and then its argument prototype would still apply. */
10060 rm -f conftest.$ac_objext conftest$ac_exeext
10061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10062 (eval $ac_link) 2>conftest.er1
10064 grep -v '^ *+' conftest.er1 >conftest.err
10066 cat conftest.err >&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } &&
10069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; } &&
10075 { ac_try='test -s conftest$ac_exeext'
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
10081 ac_cv_lib_dl_dlopen=yes
10083 echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10086 ac_cv_lib_dl_dlopen=no
10088 rm -f conftest.err conftest.$ac_objext \
10089 conftest$ac_exeext conftest.$ac_ext
10090 LIBS=$ac_check_lib_save_LIBS
10092 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10093 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10094 if test $ac_cv_lib_dl_dlopen = yes; then
10095 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10097 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10098 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10099 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 ac_check_lib_save_LIBS=$LIBS
10103 LIBS="-lsvld $LIBS"
10104 cat >conftest.$ac_ext <<_ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10111 /* Override any gcc2 internal prototype to avoid an error. */
10115 /* We use char because int might match the return type of a gcc2
10116 builtin and then its argument prototype would still apply. */
10126 rm -f conftest.$ac_objext conftest$ac_exeext
10127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10128 (eval $ac_link) 2>conftest.er1
10130 grep -v '^ *+' conftest.er1 >conftest.err
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } &&
10135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; } &&
10141 { ac_try='test -s conftest$ac_exeext'
10142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143 (eval $ac_try) 2>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; }; then
10147 ac_cv_lib_svld_dlopen=yes
10149 echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10152 ac_cv_lib_svld_dlopen=no
10154 rm -f conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
10156 LIBS=$ac_check_lib_save_LIBS
10158 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10159 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10160 if test $ac_cv_lib_svld_dlopen = yes; then
10161 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10163 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10164 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10165 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 ac_check_lib_save_LIBS=$LIBS
10170 cat >conftest.$ac_ext <<_ACEOF
10173 cat confdefs.h >>conftest.$ac_ext
10174 cat >>conftest.$ac_ext <<_ACEOF
10175 /* end confdefs.h. */
10177 /* Override any gcc2 internal prototype to avoid an error. */
10181 /* We use char because int might match the return type of a gcc2
10182 builtin and then its argument prototype would still apply. */
10192 rm -f conftest.$ac_objext conftest$ac_exeext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10194 (eval $ac_link) 2>conftest.er1
10196 grep -v '^ *+' conftest.er1 >conftest.err
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; } &&
10207 { ac_try='test -s conftest$ac_exeext'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_cv_lib_dld_dld_link=yes
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10218 ac_cv_lib_dld_dld_link=no
10220 rm -f conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 LIBS=$ac_check_lib_save_LIBS
10224 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10225 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10226 if test $ac_cv_lib_dld_dld_link = yes; then
10227 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10248 if test "x$lt_cv_dlopen" != xno; then
10254 case $lt_cv_dlopen in
10256 save_CPPFLAGS="$CPPFLAGS"
10257 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10259 save_LDFLAGS="$LDFLAGS"
10260 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10263 LIBS="$lt_cv_dlopen_libs $LIBS"
10265 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10266 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10267 if test "${lt_cv_dlopen_self+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 if test "$cross_compiling" = yes; then :
10271 lt_cv_dlopen_self=cross
10273 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10274 lt_status=$lt_dlunknown
10275 cat > conftest.$ac_ext <<EOF
10276 #line 10276 "configure"
10277 #include "confdefs.h"
10286 # define LT_DLGLOBAL RTLD_GLOBAL
10289 # define LT_DLGLOBAL DL_GLOBAL
10291 # define LT_DLGLOBAL 0
10295 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10296 find out it does not work in some platform. */
10297 #ifndef LT_DLLAZY_OR_NOW
10299 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10302 # define LT_DLLAZY_OR_NOW DL_LAZY
10305 # define LT_DLLAZY_OR_NOW RTLD_NOW
10308 # define LT_DLLAZY_OR_NOW DL_NOW
10310 # define LT_DLLAZY_OR_NOW 0
10318 extern "C" void exit (int);
10321 void fnord() { int i=42;}
10324 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10325 int status = $lt_dlunknown;
10329 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10330 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10331 /* dlclose (self); */
10339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10340 (eval $ac_link) 2>&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10344 (./conftest; exit; ) >&5 2>/dev/null
10346 case x$lt_status in
10347 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10348 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10349 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10352 # compilation failed
10353 lt_cv_dlopen_self=no
10360 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10361 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10363 if test "x$lt_cv_dlopen_self" = xyes; then
10364 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10365 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10366 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10367 if test "${lt_cv_dlopen_self_static+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 if test "$cross_compiling" = yes; then :
10371 lt_cv_dlopen_self_static=cross
10373 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10374 lt_status=$lt_dlunknown
10375 cat > conftest.$ac_ext <<EOF
10376 #line 10376 "configure"
10377 #include "confdefs.h"
10386 # define LT_DLGLOBAL RTLD_GLOBAL
10389 # define LT_DLGLOBAL DL_GLOBAL
10391 # define LT_DLGLOBAL 0
10395 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10396 find out it does not work in some platform. */
10397 #ifndef LT_DLLAZY_OR_NOW
10399 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10402 # define LT_DLLAZY_OR_NOW DL_LAZY
10405 # define LT_DLLAZY_OR_NOW RTLD_NOW
10408 # define LT_DLLAZY_OR_NOW DL_NOW
10410 # define LT_DLLAZY_OR_NOW 0
10418 extern "C" void exit (int);
10421 void fnord() { int i=42;}
10424 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10425 int status = $lt_dlunknown;
10429 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10430 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10431 /* dlclose (self); */
10439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10440 (eval $ac_link) 2>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10444 (./conftest; exit; ) >&5 2>/dev/null
10446 case x$lt_status in
10447 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10448 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10449 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10452 # compilation failed
10453 lt_cv_dlopen_self_static=no
10460 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10461 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10464 CPPFLAGS="$save_CPPFLAGS"
10465 LDFLAGS="$save_LDFLAGS"
10470 case $lt_cv_dlopen_self in
10471 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10472 *) enable_dlopen_self=unknown ;;
10475 case $lt_cv_dlopen_self_static in
10476 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10477 *) enable_dlopen_self_static=unknown ;;
10482 # Report which library types will actually be built
10483 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10484 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10485 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10486 echo "${ECHO_T}$can_build_shared" >&6
10488 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10489 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10490 test "$can_build_shared" = "no" && enable_shared=no
10492 # On AIX, shared libraries and static libraries use the same namespace, and
10493 # are all built from PIC.
10496 test "$enable_shared" = yes && enable_static=no
10497 if test -n "$RANLIB"; then
10498 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10499 postinstall_cmds='$RANLIB $lib'
10504 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10505 test "$enable_shared" = yes && enable_static=no
10509 echo "$as_me:$LINENO: result: $enable_shared" >&5
10510 echo "${ECHO_T}$enable_shared" >&6
10512 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10513 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10514 # Make sure either enable_shared or enable_static is yes.
10515 test "$enable_shared" = yes || enable_static=yes
10516 echo "$as_me:$LINENO: result: $enable_static" >&5
10517 echo "${ECHO_T}$enable_static" >&6
10519 # The else clause should only fire when bootstrapping the
10520 # libtool distribution, otherwise you forgot to ship ltmain.sh
10521 # with your package, and you will get complaints that there are
10522 # no rules to generate ltmain.sh.
10523 if test -f "$ltmain"; then
10524 # See if we are running on zsh, and set the options which allow our commands through
10525 # without removal of \ escapes.
10526 if test -n "${ZSH_VERSION+set}" ; then
10527 setopt NO_GLOB_SUBST
10529 # Now quote all the things that may contain metacharacters while being
10530 # careful not to overquote the AC_SUBSTed values. We take copies of the
10531 # variables and quote the copies for generation of the libtool script.
10532 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10534 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10535 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10536 deplibs_check_method reload_flag reload_cmds need_locks \
10537 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10538 lt_cv_sys_global_symbol_to_c_name_address \
10539 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10540 old_postinstall_cmds old_postuninstall_cmds \
10544 lt_prog_compiler_wl \
10545 lt_prog_compiler_pic \
10546 lt_prog_compiler_static \
10547 lt_prog_compiler_no_builtin_flag \
10548 export_dynamic_flag_spec \
10549 thread_safe_flag_spec \
10550 whole_archive_flag_spec \
10551 enable_shared_with_static_runtimes \
10553 old_archive_from_new_cmds \
10558 compiler_lib_search_path \
10560 archive_expsym_cmds \
10562 postuninstall_cmds \
10563 old_archive_from_expsyms_cmds \
10564 allow_undefined_flag \
10565 no_undefined_flag \
10566 export_symbols_cmds \
10567 hardcode_libdir_flag_spec \
10568 hardcode_libdir_flag_spec_ld \
10569 hardcode_libdir_separator \
10570 hardcode_automatic \
10572 module_expsym_cmds \
10573 lt_cv_prog_compiler_c_o \
10575 include_expsyms; do
10578 old_archive_cmds | \
10579 old_archive_from_new_cmds | \
10581 archive_expsym_cmds | \
10583 module_expsym_cmds | \
10584 old_archive_from_expsyms_cmds | \
10585 export_symbols_cmds | \
10586 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10587 postinstall_cmds | postuninstall_cmds | \
10588 old_postinstall_cmds | old_postuninstall_cmds | \
10589 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10590 # Double-quote double-evaled strings.
10591 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10594 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10600 *'\$0 --fallback-echo"')
10601 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10605 cfgfile="${ofile}T"
10606 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10608 { echo "$as_me:$LINENO: creating $ofile" >&5
10609 echo "$as_me: creating $ofile" >&6;}
10611 cat <<__EOF__ >> "$cfgfile"
10614 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10615 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10616 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10618 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10619 # Free Software Foundation, Inc.
10621 # This file is part of GNU Libtool:
10622 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10624 # This program is free software; you can redistribute it and/or modify
10625 # it under the terms of the GNU General Public License as published by
10626 # the Free Software Foundation; either version 2 of the License, or
10627 # (at your option) any later version.
10629 # This program is distributed in the hope that it will be useful, but
10630 # WITHOUT ANY WARRANTY; without even the implied warranty of
10631 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10632 # General Public License for more details.
10634 # You should have received a copy of the GNU General Public License
10635 # along with this program; if not, write to the Free Software
10636 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10638 # As a special exception to the GNU General Public License, if you
10639 # distribute this file as part of a program that contains a
10640 # configuration script generated by Autoconf, you may include it under
10641 # the same distribution terms that you use for the rest of that program.
10643 # A sed program that does not truncate output.
10646 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10647 Xsed="$SED -e 1s/^X//"
10649 # The HP-UX ksh and POSIX shell print the target directory to stdout
10650 # if CDPATH is set.
10651 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10653 # The names of the tagged configurations supported by this script.
10656 # ### BEGIN LIBTOOL CONFIG
10658 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10660 # Shell to use when invoking shell scripts.
10663 # Whether or not to build shared libraries.
10664 build_libtool_libs=$enable_shared
10666 # Whether or not to build static libraries.
10667 build_old_libs=$enable_static
10669 # Whether or not to add -lc for building shared libraries.
10670 build_libtool_need_lc=$archive_cmds_need_lc
10672 # Whether or not to disallow shared libs when runtime libs are static
10673 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10675 # Whether or not to optimize for fast installation.
10676 fast_install=$enable_fast_install
10679 host_alias=$host_alias
10683 # The build system.
10684 build_alias=$build_alias
10688 # An echo program that does not interpret backslashes.
10693 AR_FLAGS=$lt_AR_FLAGS
10698 # LTCC compiler flags.
10699 LTCFLAGS=$lt_LTCFLAGS
10701 # A language-specific compiler.
10704 # Is the compiler the GNU C compiler?
10710 # The linker used to build libraries.
10713 # Whether we need hard or soft links.
10716 # A BSD-compatible nm program.
10719 # A symbol stripping program
10722 # Used to examine libraries when file_magic_cmd begins "file"
10723 MAGIC_CMD=$MAGIC_CMD
10725 # Used on cygwin: DLL creation program.
10728 # Used on cygwin: object dumper.
10731 # Used on cygwin: assembler.
10734 # The name of the directory that contains temporary libtool files.
10737 # How to create reloadable object files.
10738 reload_flag=$lt_reload_flag
10739 reload_cmds=$lt_reload_cmds
10741 # How to pass a linker flag through the compiler.
10742 wl=$lt_lt_prog_compiler_wl
10744 # Object file suffix (normally "o").
10745 objext="$ac_objext"
10747 # Old archive suffix (normally "a").
10750 # Shared library suffix (normally ".so").
10751 shrext_cmds='$shrext_cmds'
10753 # Executable file suffix (normally "").
10756 # Additional compiler flags for building library objects.
10757 pic_flag=$lt_lt_prog_compiler_pic
10760 # What is the maximum length of a command?
10761 max_cmd_len=$lt_cv_sys_max_cmd_len
10763 # Does compiler simultaneously support -c and -o options?
10764 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10766 # Must we lock files when doing compilation?
10767 need_locks=$lt_need_locks
10769 # Do we need the lib prefix for modules?
10770 need_lib_prefix=$need_lib_prefix
10772 # Do we need a version for libraries?
10773 need_version=$need_version
10775 # Whether dlopen is supported.
10776 dlopen_support=$enable_dlopen
10778 # Whether dlopen of programs is supported.
10779 dlopen_self=$enable_dlopen_self
10781 # Whether dlopen of statically linked programs is supported.
10782 dlopen_self_static=$enable_dlopen_self_static
10784 # Compiler flag to prevent dynamic linking.
10785 link_static_flag=$lt_lt_prog_compiler_static
10787 # Compiler flag to turn off builtin functions.
10788 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10790 # Compiler flag to allow reflexive dlopens.
10791 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10793 # Compiler flag to generate shared objects directly from archives.
10794 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10796 # Compiler flag to generate thread-safe objects.
10797 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10799 # Library versioning type.
10800 version_type=$version_type
10802 # Format of library name prefix.
10803 libname_spec=$lt_libname_spec
10805 # List of archive names. First name is the real one, the rest are links.
10806 # The last name is the one that the linker finds with -lNAME.
10807 library_names_spec=$lt_library_names_spec
10809 # The coded name of the library, if different from the real name.
10810 soname_spec=$lt_soname_spec
10812 # Commands used to build and install an old-style archive.
10814 old_archive_cmds=$lt_old_archive_cmds
10815 old_postinstall_cmds=$lt_old_postinstall_cmds
10816 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10818 # Create an old-style archive from a shared archive.
10819 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10821 # Create a temporary old-style archive to link instead of a shared archive.
10822 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10824 # Commands used to build and install a shared archive.
10825 archive_cmds=$lt_archive_cmds
10826 archive_expsym_cmds=$lt_archive_expsym_cmds
10827 postinstall_cmds=$lt_postinstall_cmds
10828 postuninstall_cmds=$lt_postuninstall_cmds
10830 # Commands used to build a loadable module (assumed same as above if empty)
10831 module_cmds=$lt_module_cmds
10832 module_expsym_cmds=$lt_module_expsym_cmds
10834 # Commands to strip libraries.
10835 old_striplib=$lt_old_striplib
10836 striplib=$lt_striplib
10838 # Dependencies to place before the objects being linked to create a
10840 predep_objects=$lt_predep_objects
10842 # Dependencies to place after the objects being linked to create a
10844 postdep_objects=$lt_postdep_objects
10846 # Dependencies to place before the objects being linked to create a
10848 predeps=$lt_predeps
10850 # Dependencies to place after the objects being linked to create a
10852 postdeps=$lt_postdeps
10854 # The library search path used internally by the compiler when linking
10855 # a shared library.
10856 compiler_lib_search_path=$lt_compiler_lib_search_path
10858 # Method to check whether dependent libraries are shared objects.
10859 deplibs_check_method=$lt_deplibs_check_method
10861 # Command to use when deplibs_check_method == file_magic.
10862 file_magic_cmd=$lt_file_magic_cmd
10864 # Flag that allows shared libraries with undefined symbols to be built.
10865 allow_undefined_flag=$lt_allow_undefined_flag
10867 # Flag that forces no undefined symbols.
10868 no_undefined_flag=$lt_no_undefined_flag
10870 # Commands used to finish a libtool library installation in a directory.
10871 finish_cmds=$lt_finish_cmds
10873 # Same as above, but a single script fragment to be evaled but not shown.
10874 finish_eval=$lt_finish_eval
10876 # Take the output of nm and produce a listing of raw symbols and C names.
10877 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10879 # Transform the output of nm in a proper C declaration
10880 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10882 # Transform the output of nm in a C name address pair
10883 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10885 # This is the shared library runtime path variable.
10886 runpath_var=$runpath_var
10888 # This is the shared library path variable.
10889 shlibpath_var=$shlibpath_var
10891 # Is shlibpath searched before the hard-coded library search path?
10892 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10894 # How to hardcode a shared library path into an executable.
10895 hardcode_action=$hardcode_action
10897 # Whether we should hardcode library paths into libraries.
10898 hardcode_into_libs=$hardcode_into_libs
10900 # Flag to hardcode \$libdir into a binary during linking.
10901 # This must work even if \$libdir does not exist.
10902 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10904 # If ld is used when linking, flag to hardcode \$libdir into
10905 # a binary during linking. This must work even if \$libdir does
10907 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10909 # Whether we need a single -rpath flag with a separated argument.
10910 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10912 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10913 # resulting binary.
10914 hardcode_direct=$hardcode_direct
10916 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10917 # resulting binary.
10918 hardcode_minus_L=$hardcode_minus_L
10920 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10921 # the resulting binary.
10922 hardcode_shlibpath_var=$hardcode_shlibpath_var
10924 # Set to yes if building a shared library automatically hardcodes DIR into the library
10925 # and all subsequent libraries and executables linked against it.
10926 hardcode_automatic=$hardcode_automatic
10928 # Variables whose values should be saved in libtool wrapper scripts and
10929 # restored at relink time.
10930 variables_saved_for_relink="$variables_saved_for_relink"
10932 # Whether libtool must link a program against all its dependency libraries.
10933 link_all_deplibs=$link_all_deplibs
10935 # Compile-time system search path for libraries
10936 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10938 # Run-time system search path for libraries
10939 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10941 # Fix the shell variable \$srcfile for the compiler.
10942 fix_srcfile_path="$fix_srcfile_path"
10944 # Set to yes if exported symbols are required.
10945 always_export_symbols=$always_export_symbols
10947 # The commands to list exported symbols.
10948 export_symbols_cmds=$lt_export_symbols_cmds
10950 # The commands to extract the exported symbol list from a shared archive.
10951 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10953 # Symbols that should not be listed in the preloaded symbols.
10954 exclude_expsyms=$lt_exclude_expsyms
10956 # Symbols that must always be exported.
10957 include_expsyms=$lt_include_expsyms
10959 # ### END LIBTOOL CONFIG
10966 cat <<\EOF >> "$cfgfile"
10968 # AIX sometimes has problems with the GCC collect2 program. For some
10969 # reason, if we set the COLLECT_NAMES environment variable, the problems
10970 # vanish in a puff of smoke.
10971 if test "X${COLLECT_NAMES+set}" != Xset; then
10973 export COLLECT_NAMES
10979 # We use sed instead of cat because bash on DJGPP gets confused if
10980 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10981 # text mode, it properly converts lines to CR/LF. This bash problem
10982 # is reportedly fixed, but why not run on old versions too?
10983 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10985 mv -f "$cfgfile" "$ofile" || \
10986 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10990 # If there is no Makefile yet, we rely on a make rule to execute
10991 # `config.status --recheck' to rerun these tests and create the
10992 # libtool script then.
10993 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10994 if test -f "$ltmain_in"; then
10995 test -f Makefile && make "$ltmain"
11001 ac_cpp='$CPP $CPPFLAGS'
11002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11009 # Check whether --with-tags or --without-tags was given.
11010 if test "${with_tags+set}" = set; then
11011 withval="$with_tags"
11012 tagnames="$withval"
11015 if test -f "$ltmain" && test -n "$tagnames"; then
11016 if test ! -f "${ofile}"; then
11017 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11018 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11021 if test -z "$LTCC"; then
11022 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11023 if test -z "$LTCC"; then
11024 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11025 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11027 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11028 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11031 if test -z "$LTCFLAGS"; then
11032 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11035 # Extract list of available tagged configurations in $ofile.
11036 # Note that this assumes the entire list is on one line.
11037 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11040 for tagname in $tagnames; do
11042 # Check whether tagname contains only valid characters
11043 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11045 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11046 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11047 { (exit 1); exit 1; }; }
11051 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11053 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11054 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11055 { (exit 1); exit 1; }; }
11058 # Update the list of available tags.
11059 if test -n "$tagname"; then
11060 echo appending configuration tag \"$tagname\" to $ofile
11064 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11065 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11066 (test "X$CXX" != "Xg++"))) ; then
11068 ac_cpp='$CXXCPP $CPPFLAGS'
11069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11076 archive_cmds_need_lc_CXX=no
11077 allow_undefined_flag_CXX=
11078 always_export_symbols_CXX=no
11079 archive_expsym_cmds_CXX=
11080 export_dynamic_flag_spec_CXX=
11081 hardcode_direct_CXX=no
11082 hardcode_libdir_flag_spec_CXX=
11083 hardcode_libdir_flag_spec_ld_CXX=
11084 hardcode_libdir_separator_CXX=
11085 hardcode_minus_L_CXX=no
11086 hardcode_shlibpath_var_CXX=unsupported
11087 hardcode_automatic_CXX=no
11089 module_expsym_cmds_CXX=
11090 link_all_deplibs_CXX=unknown
11091 old_archive_cmds_CXX=$old_archive_cmds
11092 no_undefined_flag_CXX=
11093 whole_archive_flag_spec_CXX=
11094 enable_shared_with_static_runtimes_CXX=no
11096 # Dependencies to place before and after the object being linked:
11097 predep_objects_CXX=
11098 postdep_objects_CXX=
11101 compiler_lib_search_path_CXX=
11103 # Source file extension for C++ test sources.
11106 # Object file extension for compiled C++ test sources.
11110 # Code to be used in simple compile tests
11111 lt_simple_compile_test_code="int some_variable = 0;\n"
11113 # Code to be used in simple link tests
11114 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11116 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11118 # If no C compiler was specified, use CC.
11121 # If no C compiler flags were specified, use CFLAGS.
11122 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11124 # Allow CC to be a program name with arguments.
11128 # save warnings/boilerplate of simple test code
11129 ac_outfile=conftest.$ac_objext
11130 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11131 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11132 _lt_compiler_boilerplate=`cat conftest.err`
11135 ac_outfile=conftest.$ac_objext
11136 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11137 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11138 _lt_linker_boilerplate=`cat conftest.err`
11142 # Allow CC to be a program name with arguments.
11147 lt_save_with_gnu_ld=$with_gnu_ld
11148 lt_save_path_LD=$lt_cv_path_LD
11149 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11150 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11152 $as_unset lt_cv_prog_gnu_ld
11154 if test -n "${lt_cv_path_LDCXX+set}"; then
11155 lt_cv_path_LD=$lt_cv_path_LDCXX
11157 $as_unset lt_cv_path_LD
11159 test -z "${LDCXX+set}" || LD=$LDCXX
11163 for cc_temp in $compiler""; do
11165 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11166 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11171 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11174 # We don't want -fno-exception wen compiling C++ code, so set the
11175 # no_builtin_flag separately
11176 if test "$GXX" = yes; then
11177 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11179 lt_prog_compiler_no_builtin_flag_CXX=
11182 if test "$GXX" = yes; then
11183 # Set up default GNU C++ configuration
11186 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11187 if test "${with_gnu_ld+set}" = set; then
11188 withval="$with_gnu_ld"
11189 test "$withval" = no || with_gnu_ld=yes
11194 if test "$GCC" = yes; then
11195 # Check if gcc -print-prog-name=ld gives a path.
11196 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11197 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11200 # gcc leaves a trailing carriage return which upsets mingw
11201 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11203 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11206 # Accept absolute paths.
11208 re_direlt='/[^/][^/]*/\.\./'
11209 # Canonicalize the pathname of ld
11210 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11211 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11212 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11214 test -z "$LD" && LD="$ac_prog"
11217 # If it fails, then pretend we aren't using GCC.
11221 # If it is relative, then search for the first ld in PATH.
11222 with_gnu_ld=unknown
11225 elif test "$with_gnu_ld" = yes; then
11226 echo "$as_me:$LINENO: checking for GNU ld" >&5
11227 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11229 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11230 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11232 if test "${lt_cv_path_LD+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 if test -z "$LD"; then
11236 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11237 for ac_dir in $PATH; do
11239 test -z "$ac_dir" && ac_dir=.
11240 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11241 lt_cv_path_LD="$ac_dir/$ac_prog"
11242 # Check to see if the program is GNU ld. I'd rather use --version,
11243 # but apparently some variants of GNU ld only accept -v.
11244 # Break only if it was the GNU/non-GNU ld that we prefer.
11245 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11246 *GNU* | *'with BFD'*)
11247 test "$with_gnu_ld" != no && break
11250 test "$with_gnu_ld" != yes && break
11257 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11261 LD="$lt_cv_path_LD"
11262 if test -n "$LD"; then
11263 echo "$as_me:$LINENO: result: $LD" >&5
11264 echo "${ECHO_T}$LD" >&6
11266 echo "$as_me:$LINENO: result: no" >&5
11267 echo "${ECHO_T}no" >&6
11269 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11270 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11271 { (exit 1); exit 1; }; }
11272 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11273 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11274 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11278 case `$LD -v 2>&1 </dev/null` in
11279 *GNU* | *'with BFD'*)
11280 lt_cv_prog_gnu_ld=yes
11283 lt_cv_prog_gnu_ld=no
11287 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11288 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11289 with_gnu_ld=$lt_cv_prog_gnu_ld
11293 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11294 # archiving commands below assume that GNU ld is being used.
11295 if test "$with_gnu_ld" = yes; then
11296 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11297 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'
11299 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11300 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11302 # If archive_cmds runs LD, not CC, wlarc should be empty
11303 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11304 # investigate it a little bit more. (MM)
11307 # ancient GNU ld didn't support --whole-archive et. al.
11308 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11309 grep 'no-whole-archive' > /dev/null; then
11310 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11312 whole_archive_flag_spec_CXX=
11318 # A generic and very simple default shared library creation
11319 # command for GNU C++ for the case where it uses the native
11320 # linker, instead of GNU ld. If possible, this setting should
11321 # overridden to take advantage of the native linker features on
11322 # the platform it is being used on.
11323 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11326 # Commands to make compiler produce verbose output that lists
11327 # what "hidden" libraries, object files and flags are used when
11328 # linking a shared library.
11329 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11337 # PORTME: fill in a description of your system's C++ link characteristics
11338 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11339 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11343 # FIXME: insert proper C++ library support
11347 if test "$host_cpu" = ia64; then
11348 # On IA64, the linker does run time linking by default, so we don't
11349 # have to do anything special.
11350 aix_use_runtimelinking=no
11351 exp_sym_flag='-Bexport'
11354 aix_use_runtimelinking=no
11356 # Test if we are trying to use run time linking or normal
11357 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11358 # need to do runtime linking.
11359 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11360 for ld_flag in $LDFLAGS; do
11363 aix_use_runtimelinking=yes
11371 exp_sym_flag='-bexport'
11372 no_entry_flag='-bnoentry'
11375 # When large executables or shared objects are built, AIX ld can
11376 # have problems creating the table of contents. If linking a library
11377 # or program results in "error TOC overflow" add -mminimal-toc to
11378 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11379 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11381 archive_cmds_CXX=''
11382 hardcode_direct_CXX=yes
11383 hardcode_libdir_separator_CXX=':'
11384 link_all_deplibs_CXX=yes
11386 if test "$GXX" = yes; then
11387 case $host_os in aix4.[012]|aix4.[012].*)
11388 # We only want to do this on AIX 4.2 and lower, the check
11389 # below for broken collect2 doesn't work under 4.3+
11390 collect2name=`${CC} -print-prog-name=collect2`
11391 if test -f "$collect2name" && \
11392 strings "$collect2name" | grep resolve_lib_name >/dev/null
11394 # We have reworked collect2
11395 hardcode_direct_CXX=yes
11397 # We have old collect2
11398 hardcode_direct_CXX=unsupported
11399 # It fails to find uninstalled libraries when the uninstalled
11400 # path is not listed in the libpath. Setting hardcode_minus_L
11401 # to unsupported forces relinking
11402 hardcode_minus_L_CXX=yes
11403 hardcode_libdir_flag_spec_CXX='-L$libdir'
11404 hardcode_libdir_separator_CXX=
11408 shared_flag='-shared'
11409 if test "$aix_use_runtimelinking" = yes; then
11410 shared_flag="$shared_flag "'${wl}-G'
11414 if test "$host_cpu" = ia64; then
11415 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11416 # chokes on -Wl,-G. The following line is correct:
11419 if test "$aix_use_runtimelinking" = yes; then
11420 shared_flag='${wl}-G'
11422 shared_flag='${wl}-bM:SRE'
11427 # It seems that -bexpall does not export symbols beginning with
11428 # underscore (_), so it is better to generate a list of symbols to export.
11429 always_export_symbols_CXX=yes
11430 if test "$aix_use_runtimelinking" = yes; then
11431 # Warning - without using the other runtime loading flags (-brtl),
11432 # -berok will link without error, but may produce a broken library.
11433 allow_undefined_flag_CXX='-berok'
11434 # Determine the default libpath from the value encoded in an empty executable.
11435 cat >conftest.$ac_ext <<_ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11450 rm -f conftest.$ac_objext conftest$ac_exeext
11451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11452 (eval $ac_link) 2>conftest.er1
11454 grep -v '^ *+' conftest.er1 >conftest.err
11456 cat conftest.err >&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
11459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; } &&
11465 { ac_try='test -s conftest$ac_exeext'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
11472 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11474 # Check for a 64-bit object if we didn't find anything.
11475 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; }
11478 echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11482 rm -f conftest.err conftest.$ac_objext \
11483 conftest$ac_exeext conftest.$ac_ext
11484 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11486 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11488 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11490 if test "$host_cpu" = ia64; then
11491 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11492 allow_undefined_flag_CXX="-z nodefs"
11493 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11495 # Determine the default libpath from the value encoded in an empty executable.
11496 cat >conftest.$ac_ext <<_ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11511 rm -f conftest.$ac_objext conftest$ac_exeext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11513 (eval $ac_link) 2>conftest.er1
11515 grep -v '^ *+' conftest.er1 >conftest.err
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; } &&
11526 { ac_try='test -s conftest$ac_exeext'
11527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528 (eval $ac_try) 2>&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }; }; then
11533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11535 # Check for a 64-bit object if we didn't find anything.
11536 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; }
11539 echo "$as_me: failed program was:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11543 rm -f conftest.err conftest.$ac_objext \
11544 conftest$ac_exeext conftest.$ac_ext
11545 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11547 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11548 # Warning - without using the other run time loading flags,
11549 # -berok will link without error, but may produce a broken library.
11550 no_undefined_flag_CXX=' ${wl}-bernotok'
11551 allow_undefined_flag_CXX=' ${wl}-berok'
11552 # Exported symbols can be pulled into shared objects from archives
11553 whole_archive_flag_spec_CXX='$convenience'
11554 archive_cmds_need_lc_CXX=yes
11555 # This is similar to how AIX traditionally builds its shared libraries.
11556 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11563 allow_undefined_flag_CXX=unsupported
11564 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11565 # support --undefined. This deserves some investigation. FIXME
11566 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11573 case $cc_basename in
11575 # FIXME: insert proper C++ library support
11581 cygwin* | mingw* | pw32*)
11582 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11583 # as there is no search path for DLLs.
11584 hardcode_libdir_flag_spec_CXX='-L$libdir'
11585 allow_undefined_flag_CXX=unsupported
11586 always_export_symbols_CXX=no
11587 enable_shared_with_static_runtimes_CXX=yes
11589 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11590 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11591 # If the export-symbols file already is a .def file (1st line
11592 # is EXPORTS), use it as is; otherwise, prepend...
11593 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11594 cp $export_symbols $output_objdir/$soname.def;
11596 echo EXPORTS > $output_objdir/$soname.def;
11597 cat $export_symbols >> $output_objdir/$soname.def;
11599 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11604 darwin* | rhapsody*)
11606 rhapsody* | darwin1.[012])
11607 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11610 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11611 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11613 case ${MACOSX_DEPLOYMENT_TARGET} in
11615 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11618 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11624 archive_cmds_need_lc_CXX=no
11625 hardcode_direct_CXX=no
11626 hardcode_automatic_CXX=yes
11627 hardcode_shlibpath_var_CXX=unsupported
11628 whole_archive_flag_spec_CXX=''
11629 link_all_deplibs_CXX=yes
11631 if test "$GXX" = yes ; then
11632 lt_int_apple_cc_single_mod=no
11633 output_verbose_link_cmd='echo'
11634 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11635 lt_int_apple_cc_single_mod=yes
11637 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11638 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11640 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11642 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11643 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11644 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11645 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}'
11647 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11649 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}'
11651 case $cc_basename in
11653 output_verbose_link_cmd='echo'
11654 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11655 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11656 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11657 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11658 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}'
11668 case $cc_basename in
11670 # FIXME: insert proper C++ library support
11674 # Green Hills C++ Compiler
11675 # FIXME: insert proper C++ library support
11679 # FIXME: insert proper C++ library support
11685 # C++ shared libraries reported to be fairly broken before switch to ELF
11689 archive_cmds_need_lc_CXX=no
11691 freebsd* | dragonfly*)
11692 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11699 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11700 hardcode_libdir_separator_CXX=:
11701 export_dynamic_flag_spec_CXX='${wl}-E'
11702 hardcode_direct_CXX=yes
11703 hardcode_minus_L_CXX=yes # Not in the search PATH,
11704 # but as the default
11705 # location of the library.
11707 case $cc_basename in
11709 # FIXME: insert proper C++ library support
11713 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'
11714 # Commands to make compiler produce verbose output that lists
11715 # what "hidden" libraries, object files and flags are used when
11716 # linking a shared library.
11718 # There doesn't appear to be a way to prevent this compiler from
11719 # explicitly linking system object files so we need to strip them
11720 # from the output so that they don't get included in the library
11722 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'
11725 if test "$GXX" = yes; then
11726 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'
11728 # FIXME: insert proper C++ library support
11735 if test $with_gnu_ld = no; then
11736 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11737 hardcode_libdir_separator_CXX=:
11741 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11744 export_dynamic_flag_spec_CXX='${wl}-E'
11750 hardcode_direct_CXX=no
11751 hardcode_shlibpath_var_CXX=no
11754 hardcode_direct_CXX=yes
11755 hardcode_minus_L_CXX=yes # Not in the search PATH,
11756 # but as the default
11757 # location of the library.
11761 case $cc_basename in
11763 # FIXME: insert proper C++ library support
11769 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11772 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11775 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11778 # Commands to make compiler produce verbose output that lists
11779 # what "hidden" libraries, object files and flags are used when
11780 # linking a shared library.
11782 # There doesn't appear to be a way to prevent this compiler from
11783 # explicitly linking system object files so we need to strip them
11784 # from the output so that they don't get included in the library
11786 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'
11789 if test "$GXX" = yes; then
11790 if test $with_gnu_ld = no; then
11793 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11796 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11799 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'
11804 # FIXME: insert proper C++ library support
11811 hardcode_direct_CXX=no
11812 hardcode_shlibpath_var_CXX=no
11813 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11814 export_dynamic_flag_spec_CXX='${wl}-E'
11815 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11816 # Instead, shared libraries are loaded at an image base (0x10000000 by
11817 # default) and relocated if they conflict, which is a slow very memory
11818 # consuming and fragmenting process. To avoid this, we pick a random,
11819 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11820 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11821 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11822 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11825 case $cc_basename in
11828 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11830 # Archives containing C++ object files must be created using
11831 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11832 # necessary to make sure instantiated templates are included
11834 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11837 if test "$GXX" = yes; then
11838 if test "$with_gnu_ld" = no; then
11839 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11841 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'
11844 link_all_deplibs_CXX=yes
11847 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11848 hardcode_libdir_separator_CXX=:
11850 linux* | k*bsd*-gnu)
11851 case $cc_basename in
11853 # Kuck and Associates, Inc. (KAI) C++ Compiler
11855 # KCC will only create a shared library if the output file
11856 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11857 # to its proper name (with version) after linking.
11858 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'
11859 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'
11860 # Commands to make compiler produce verbose output that lists
11861 # what "hidden" libraries, object files and flags are used when
11862 # linking a shared library.
11864 # There doesn't appear to be a way to prevent this compiler from
11865 # explicitly linking system object files so we need to strip them
11866 # from the output so that they don't get included in the library
11868 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'
11870 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11871 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11873 # Archives containing C++ object files must be created using
11874 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11875 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11880 # version 8.0 and above of icpc choke on multiply defined symbols
11881 # if we add $predep_objects and $postdep_objects, however 7.1 and
11882 # earlier do not add the objects themselves.
11883 case `$CC -V 2>&1` in
11885 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11886 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'
11888 *) # Version 8.0 or newer
11891 ia64*) tmp_idyn=' -i_dynamic';;
11893 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11894 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11897 archive_cmds_need_lc_CXX=no
11898 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11899 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11900 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11903 # Portland Group C++ compiler
11904 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11905 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11907 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11908 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11909 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11913 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11914 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'
11916 runpath_var=LD_RUN_PATH
11917 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11918 hardcode_libdir_separator_CXX=:
11920 # Commands to make compiler produce verbose output that lists
11921 # what "hidden" libraries, object files and flags are used when
11922 # linking a shared library.
11924 # There doesn't appear to be a way to prevent this compiler from
11925 # explicitly linking system object files so we need to strip them
11926 # from the output so that they don't get included in the library
11928 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'
11933 # FIXME: insert proper C++ library support
11937 # FIXME: insert proper C++ library support
11941 case $cc_basename in
11943 # FIXME: insert proper C++ library support
11947 # FIXME: insert proper C++ library support
11952 netbsd* | netbsdelf*-gnu)
11953 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11954 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11956 hardcode_libdir_flag_spec_CXX='-R$libdir'
11957 hardcode_direct_CXX=yes
11958 hardcode_shlibpath_var_CXX=no
11960 # Workaround some broken pre-1.5 toolchains
11961 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11964 # C++ shared libraries are fairly broken
11968 hardcode_direct_CXX=yes
11969 hardcode_shlibpath_var_CXX=no
11970 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11971 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11972 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11973 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11974 export_dynamic_flag_spec_CXX='${wl}-E'
11975 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11977 output_verbose_link_cmd='echo'
11980 case $cc_basename in
11982 # Kuck and Associates, Inc. (KAI) C++ Compiler
11984 # KCC will only create a shared library if the output file
11985 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11986 # to its proper name (with version) after linking.
11987 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'
11989 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11990 hardcode_libdir_separator_CXX=:
11992 # Archives containing C++ object files must be created using
11993 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11994 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11998 # Rational C++ 2.4.1
11999 # FIXME: insert proper C++ library support
12003 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12004 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12006 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12007 hardcode_libdir_separator_CXX=:
12009 # Commands to make compiler produce verbose output that lists
12010 # what "hidden" libraries, object files and flags are used when
12011 # linking a shared library.
12013 # There doesn't appear to be a way to prevent this compiler from
12014 # explicitly linking system object files so we need to strip them
12015 # from the output so that they don't get included in the library
12017 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'
12020 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12021 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12022 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12024 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12025 hardcode_libdir_separator_CXX=:
12027 # Commands to make compiler produce verbose output that lists
12028 # what "hidden" libraries, object files and flags are used when
12029 # linking a shared library.
12030 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12033 # FIXME: insert proper C++ library support
12040 case $cc_basename in
12042 # Kuck and Associates, Inc. (KAI) C++ Compiler
12044 # KCC will only create a shared library if the output file
12045 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12046 # to its proper name (with version) after linking.
12047 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'
12049 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12050 hardcode_libdir_separator_CXX=:
12052 # Archives containing C++ object files must be created using
12053 # the KAI C++ compiler.
12054 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12057 # Rational C++ 2.4.1
12058 # FIXME: insert proper C++ library support
12062 allow_undefined_flag_CXX=' -expect_unresolved \*'
12063 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12064 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12065 echo "-hidden">> $lib.exp~
12066 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12069 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12070 hardcode_libdir_separator_CXX=:
12072 # Commands to make compiler produce verbose output that lists
12073 # what "hidden" libraries, object files and flags are used when
12074 # linking a shared library.
12076 # There doesn't appear to be a way to prevent this compiler from
12077 # explicitly linking system object files so we need to strip them
12078 # from the output so that they don't get included in the library
12080 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'
12083 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12084 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12085 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12087 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12088 hardcode_libdir_separator_CXX=:
12090 # Commands to make compiler produce verbose output that lists
12091 # what "hidden" libraries, object files and flags are used when
12092 # linking a shared library.
12093 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12096 # FIXME: insert proper C++ library support
12103 # FIXME: insert proper C++ library support
12107 case $cc_basename in
12110 # FIXME: insert proper C++ library support
12115 # FIXME: insert proper C++ library support
12119 # FIXME: insert proper C++ library support
12125 case $cc_basename in
12127 # Sun C++ 4.2, 5.x and Centerline C++
12128 archive_cmds_need_lc_CXX=yes
12129 no_undefined_flag_CXX=' -zdefs'
12130 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12131 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12132 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12134 hardcode_libdir_flag_spec_CXX='-R$libdir'
12135 hardcode_shlibpath_var_CXX=no
12137 solaris2.[0-5] | solaris2.[0-5].*) ;;
12139 # The C++ compiler is used as linker so we must use $wl
12140 # flag to pass the commands to the underlying system
12141 # linker. We must also pass each convience library through
12142 # to the system linker between allextract/defaultextract.
12143 # The C++ compiler will combine linker options so we
12144 # cannot just pass the convience library names through
12146 # Supported since Solaris 2.6 (maybe 2.5.1?)
12147 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12150 link_all_deplibs_CXX=yes
12152 output_verbose_link_cmd='echo'
12154 # Archives containing C++ object files must be created using
12155 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12156 # necessary to make sure instantiated templates are included
12158 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12161 # Green Hills C++ Compiler
12162 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12164 # The C++ compiler must be used to create the archive.
12165 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12168 # GNU C++ compiler with Solaris linker
12169 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12170 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12171 if $CC --version | grep -v '^2\.7' > /dev/null; then
12172 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12173 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12174 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12176 # Commands to make compiler produce verbose output that lists
12177 # what "hidden" libraries, object files and flags are used when
12178 # linking a shared library.
12179 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12181 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12183 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12184 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12185 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12187 # Commands to make compiler produce verbose output that lists
12188 # what "hidden" libraries, object files and flags are used when
12189 # linking a shared library.
12190 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12193 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12198 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12199 no_undefined_flag_CXX='${wl}-z,text'
12200 archive_cmds_need_lc_CXX=no
12201 hardcode_shlibpath_var_CXX=no
12202 runpath_var='LD_RUN_PATH'
12204 case $cc_basename in
12206 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12207 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12210 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12211 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12215 sysv5* | sco3.2v5* | sco5v6*)
12216 # Note: We can NOT use -z defs as we might desire, because we do not
12217 # link with -lc, and that would cause any symbols used from libc to
12218 # always be unresolved, which means just about no library would
12219 # ever link correctly. If we're not using GNU ld we use -z text
12220 # though, which does catch some bad symbols but isn't as heavy-handed
12222 # For security reasons, it is highly recommended that you always
12223 # use absolute paths for naming shared libraries, and exclude the
12224 # DT_RUNPATH tag from executables and libraries. But doing so
12225 # requires that you compile everything twice, which is a pain.
12226 # So that behaviour is only enabled if SCOABSPATH is set to a
12227 # non-empty value in the environment. Most likely only useful for
12228 # creating official distributions of packages.
12229 # This is a hack until libtool officially supports absolute path
12230 # names for shared libraries.
12231 no_undefined_flag_CXX='${wl}-z,text'
12232 allow_undefined_flag_CXX='${wl}-z,nodefs'
12233 archive_cmds_need_lc_CXX=no
12234 hardcode_shlibpath_var_CXX=no
12235 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12236 hardcode_libdir_separator_CXX=':'
12237 link_all_deplibs_CXX=yes
12238 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12239 runpath_var='LD_RUN_PATH'
12241 case $cc_basename in
12243 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12244 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12247 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12248 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12253 case $cc_basename in
12255 # NonStop-UX NCC 3.20
12256 # FIXME: insert proper C++ library support
12260 # FIXME: insert proper C++ library support
12266 # FIXME: insert proper C++ library support
12270 # FIXME: insert proper C++ library support
12274 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12275 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12276 test "$ld_shlibs_CXX" = no && can_build_shared=no
12282 cat > conftest.$ac_ext <<EOF
12286 Foo (void) { a = 0; }
12292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12293 (eval $ac_compile) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; then
12297 # Parse the compiler output and extract the necessary
12298 # objects, libraries and library flags.
12300 # Sentinel used to keep track of whether or not we are before
12301 # the conftest object file.
12302 pre_test_object_deps_done=no
12304 # The `*' in the case matches for architectures that use `case' in
12305 # $output_verbose_cmd can trigger glob expansion during the loop
12306 # eval without this substitution.
12307 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12309 for p in `eval $output_verbose_link_cmd`; do
12313 # Some compilers place space between "-{L,R}" and the path.
12314 # Remove the space.
12315 if test $p = "-L" \
12316 || test $p = "-R"; then
12323 if test "$pre_test_object_deps_done" = no; then
12326 # Internal compiler library paths should come after those
12327 # provided the user. The postdeps already come after the
12328 # user supplied libs so there is no need to process them.
12329 if test -z "$compiler_lib_search_path_CXX"; then
12330 compiler_lib_search_path_CXX="${prev}${p}"
12332 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12335 # The "-l" case would never come before the object being
12336 # linked, so don't bother handling this case.
12339 if test -z "$postdeps_CXX"; then
12340 postdeps_CXX="${prev}${p}"
12342 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12348 # This assumes that the test object file only shows up
12349 # once in the compiler output.
12350 if test "$p" = "conftest.$objext"; then
12351 pre_test_object_deps_done=yes
12355 if test "$pre_test_object_deps_done" = no; then
12356 if test -z "$predep_objects_CXX"; then
12357 predep_objects_CXX="$p"
12359 predep_objects_CXX="$predep_objects_CXX $p"
12362 if test -z "$postdep_objects_CXX"; then
12363 postdep_objects_CXX="$p"
12365 postdep_objects_CXX="$postdep_objects_CXX $p"
12370 *) ;; # Ignore the rest.
12378 echo "libtool.m4: error: problem compiling CXX test program"
12381 $rm -f confest.$objext
12383 # PORTME: override above test on systems where it is broken
12386 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12387 # hack all around it, let's just trust "g++" to DTRT.
12388 predep_objects_CXX=
12389 postdep_objects_CXX=
12394 case $cc_basename in
12396 # Adding this requires a known-good setup of shared libraries for
12397 # Sun compiler versions before 5.6, else PIC objects from an old
12398 # archive will be linked into the output, leading to subtle bugs.
12399 postdeps_CXX='-lCstd -lCrun'
12406 case " $postdeps_CXX " in
12407 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12410 lt_prog_compiler_wl_CXX=
12411 lt_prog_compiler_pic_CXX=
12412 lt_prog_compiler_static_CXX=
12414 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12415 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12417 # C++ specific cases for pic, static, wl, etc.
12418 if test "$GXX" = yes; then
12419 lt_prog_compiler_wl_CXX='-Wl,'
12420 lt_prog_compiler_static_CXX='-static'
12424 # All AIX code is PIC.
12425 if test "$host_cpu" = ia64; then
12426 # AIX 5 now supports IA64 processor
12427 lt_prog_compiler_static_CXX='-Bstatic'
12431 # FIXME: we need at least 68020 code to build shared libraries, but
12432 # adding the `-m68020' flag to GCC prevents building anything better,
12434 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12436 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12437 # PIC is the default for these OSes.
12439 mingw* | os2* | pw32*)
12440 # This hack is so that the source file can tell whether it is being
12441 # built for inclusion in a dll (and should export symbols for example).
12442 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12444 darwin* | rhapsody*)
12445 # PIC is the default on this platform
12446 # Common symbols not allowed in MH_DYLIB files
12447 lt_prog_compiler_pic_CXX='-fno-common'
12450 # DJGPP does not support shared libraries at all
12451 lt_prog_compiler_pic_CXX=
12454 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12455 # Instead, we relocate shared libraries at runtime.
12458 if test -d /usr/nec; then
12459 lt_prog_compiler_pic_CXX=-Kconform_pic
12463 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12464 # not for PA HP-UX.
12469 lt_prog_compiler_pic_CXX='-fPIC'
12474 lt_prog_compiler_pic_CXX='-fPIC'
12480 # All AIX code is PIC.
12481 if test "$host_cpu" = ia64; then
12482 # AIX 5 now supports IA64 processor
12483 lt_prog_compiler_static_CXX='-Bstatic'
12485 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12489 case $cc_basename in
12491 # Green Hills C++ Compiler
12492 # _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"
12497 # PIC is the default on this platform
12498 # Common symbols not allowed in MH_DYLIB files
12499 case $cc_basename in
12501 lt_prog_compiler_pic_CXX='-qnocommon'
12502 lt_prog_compiler_wl_CXX='-Wl,'
12507 case $cc_basename in
12509 lt_prog_compiler_pic_CXX='-KPIC'
12512 # Green Hills C++ Compiler
12513 lt_prog_compiler_pic_CXX='-pic'
12519 freebsd* | dragonfly*)
12520 # FreeBSD uses GNU C++
12522 hpux9* | hpux10* | hpux11*)
12523 case $cc_basename in
12525 lt_prog_compiler_wl_CXX='-Wl,'
12526 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12527 if test "$host_cpu" != ia64; then
12528 lt_prog_compiler_pic_CXX='+Z'
12532 lt_prog_compiler_wl_CXX='-Wl,'
12533 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12539 lt_prog_compiler_pic_CXX='+Z'
12548 # This is c89, which is MS Visual C++ (no shared libs)
12549 # Anyone wants to do a port?
12551 irix5* | irix6* | nonstopux*)
12552 case $cc_basename in
12554 lt_prog_compiler_wl_CXX='-Wl,'
12555 lt_prog_compiler_static_CXX='-non_shared'
12556 # CC pic flag -KPIC is the default.
12562 linux* | k*bsd*-gnu)
12563 case $cc_basename in
12566 lt_prog_compiler_wl_CXX='--backend -Wl,'
12567 lt_prog_compiler_pic_CXX='-fPIC'
12571 lt_prog_compiler_wl_CXX='-Wl,'
12572 lt_prog_compiler_pic_CXX='-KPIC'
12573 lt_prog_compiler_static_CXX='-static'
12576 # Portland Group C++ compiler.
12577 lt_prog_compiler_wl_CXX='-Wl,'
12578 lt_prog_compiler_pic_CXX='-fpic'
12579 lt_prog_compiler_static_CXX='-Bstatic'
12583 # Make sure the PIC flag is empty. It appears that all Alpha
12584 # Linux and Compaq Tru64 Unix objects are PIC.
12585 lt_prog_compiler_pic_CXX=
12586 lt_prog_compiler_static_CXX='-non_shared'
12597 case $cc_basename in
12599 lt_prog_compiler_pic_CXX='-W c,exportall'
12605 netbsd* | netbsdelf*-gnu)
12607 osf3* | osf4* | osf5*)
12608 case $cc_basename in
12610 lt_prog_compiler_wl_CXX='--backend -Wl,'
12613 # Rational C++ 2.4.1
12614 lt_prog_compiler_pic_CXX='-pic'
12617 # Digital/Compaq C++
12618 lt_prog_compiler_wl_CXX='-Wl,'
12619 # Make sure the PIC flag is empty. It appears that all Alpha
12620 # Linux and Compaq Tru64 Unix objects are PIC.
12621 lt_prog_compiler_pic_CXX=
12622 lt_prog_compiler_static_CXX='-non_shared'
12631 case $cc_basename in
12633 # Sun C++ 4.2, 5.x and Centerline C++
12634 lt_prog_compiler_pic_CXX='-KPIC'
12635 lt_prog_compiler_static_CXX='-Bstatic'
12636 lt_prog_compiler_wl_CXX='-Qoption ld '
12639 # Green Hills C++ Compiler
12640 lt_prog_compiler_pic_CXX='-PIC'
12647 case $cc_basename in
12650 lt_prog_compiler_pic_CXX='-pic'
12651 lt_prog_compiler_static_CXX='-Bstatic'
12655 lt_prog_compiler_pic_CXX='-pic'
12662 case $cc_basename in
12664 # NonStop-UX NCC 3.20
12665 lt_prog_compiler_pic_CXX='-KPIC'
12671 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12672 case $cc_basename in
12674 lt_prog_compiler_wl_CXX='-Wl,'
12675 lt_prog_compiler_pic_CXX='-KPIC'
12676 lt_prog_compiler_static_CXX='-Bstatic'
12683 lt_prog_compiler_can_build_shared_CXX=no
12688 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12689 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12692 # Check to make sure the PIC flag actually works.
12694 if test -n "$lt_prog_compiler_pic_CXX"; then
12696 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12697 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12698 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 lt_prog_compiler_pic_works_CXX=no
12702 ac_outfile=conftest.$ac_objext
12703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12704 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12705 # Insert the option either (1) after the last *FLAGS variable, or
12706 # (2) before a word containing "conftest.", or (3) at the end.
12707 # Note that $ac_compile itself does not contain backslashes and begins
12708 # with a dollar sign (not a hyphen), so the echo should work correctly.
12709 # The option is referenced via a variable to avoid confusing sed.
12710 lt_compile=`echo "$ac_compile" | $SED \
12711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12713 -e 's:$: $lt_compiler_flag:'`
12714 (eval echo "\"\$as_me:12714: $lt_compile\"" >&5)
12715 (eval "$lt_compile" 2>conftest.err)
12717 cat conftest.err >&5
12718 echo "$as_me:12718: \$? = $ac_status" >&5
12719 if (exit $ac_status) && test -s "$ac_outfile"; then
12720 # The compiler can only warn and ignore the option if not recognized
12721 # So say no if there are warnings other than the usual output.
12722 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12725 lt_prog_compiler_pic_works_CXX=yes
12731 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12732 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12734 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12735 case $lt_prog_compiler_pic_CXX in
12737 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12740 lt_prog_compiler_pic_CXX=
12741 lt_prog_compiler_can_build_shared_CXX=no
12746 # For platforms which do not support PIC, -DPIC is meaningless:
12748 lt_prog_compiler_pic_CXX=
12751 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12756 # Check to make sure the static flag actually works.
12758 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12759 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12760 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12761 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12764 lt_prog_compiler_static_works_CXX=no
12765 save_LDFLAGS="$LDFLAGS"
12766 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12767 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12768 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12769 # The linker can only warn and ignore the option if not recognized
12770 # So say no if there are warnings
12771 if test -s conftest.err; then
12772 # Append any errors to the config.log.
12773 cat conftest.err 1>&5
12774 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12776 if diff conftest.exp conftest.er2 >/dev/null; then
12777 lt_prog_compiler_static_works_CXX=yes
12780 lt_prog_compiler_static_works_CXX=yes
12784 LDFLAGS="$save_LDFLAGS"
12787 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12788 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12790 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12793 lt_prog_compiler_static_CXX=
12797 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12798 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12799 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 lt_cv_prog_compiler_c_o_CXX=no
12803 $rm -r conftest 2>/dev/null
12807 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12809 lt_compiler_flag="-o out/conftest2.$ac_objext"
12810 # Insert the option either (1) after the last *FLAGS variable, or
12811 # (2) before a word containing "conftest.", or (3) at the end.
12812 # Note that $ac_compile itself does not contain backslashes and begins
12813 # with a dollar sign (not a hyphen), so the echo should work correctly.
12814 lt_compile=`echo "$ac_compile" | $SED \
12815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12817 -e 's:$: $lt_compiler_flag:'`
12818 (eval echo "\"\$as_me:12818: $lt_compile\"" >&5)
12819 (eval "$lt_compile" 2>out/conftest.err)
12821 cat out/conftest.err >&5
12822 echo "$as_me:12822: \$? = $ac_status" >&5
12823 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12825 # The compiler can only warn and ignore the option if not recognized
12826 # So say no if there are warnings
12827 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12828 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12829 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12830 lt_cv_prog_compiler_c_o_CXX=yes
12835 # SGI C++ compiler will create directory out/ii_files/ for
12836 # template instantiation
12837 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12838 $rm out/* && rmdir out
12844 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12845 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12848 hard_links="nottested"
12849 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12850 # do not overwrite the value of need_locks provided by the user
12851 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12852 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12855 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12857 ln conftest.a conftest.b 2>&5 || hard_links=no
12858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12859 echo "$as_me:$LINENO: result: $hard_links" >&5
12860 echo "${ECHO_T}$hard_links" >&6
12861 if test "$hard_links" = no; then
12862 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12863 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12870 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12871 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12873 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12876 # If we're using GNU nm, then we don't want the "-C" option.
12877 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12878 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12879 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'
12881 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'
12885 export_symbols_cmds_CXX="$ltdll_cmds"
12888 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12890 linux* | k*bsd*-gnu)
12891 link_all_deplibs_CXX=no
12894 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12898 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12899 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12900 test "$ld_shlibs_CXX" = no && can_build_shared=no
12903 # Do we need to explicitly link libc?
12905 case "x$archive_cmds_need_lc_CXX" in
12907 # Assume -lc should be added
12908 archive_cmds_need_lc_CXX=yes
12910 if test "$enable_shared" = yes && test "$GCC" = yes; then
12911 case $archive_cmds_CXX in
12913 # FIXME: we may have to deal with multi-command sequences.
12916 # Test whether the compiler implicitly links with -lc since on some
12917 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12918 # to ld, don't add -lc before -lgcc.
12919 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12920 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12922 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12925 (eval $ac_compile) 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } 2>conftest.err; then
12931 libobjs=conftest.$ac_objext
12933 wl=$lt_prog_compiler_wl_CXX
12934 pic_flag=$lt_prog_compiler_pic_CXX
12940 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12941 allow_undefined_flag_CXX=
12942 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12943 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }
12948 archive_cmds_need_lc_CXX=no
12950 archive_cmds_need_lc_CXX=yes
12952 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12954 cat conftest.err 1>&5
12957 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12958 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12965 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12966 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12967 library_names_spec=
12968 libname_spec='lib$name'
12972 postuninstall_cmds=
12976 shlibpath_overrides_runpath=unknown
12978 dynamic_linker="$host_os ld.so"
12979 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12980 if test "$GCC" = yes; then
12981 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12982 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12983 # if the path contains ";" then we assume it to be the separator
12984 # otherwise default to the standard path separator (i.e. ":") - it is
12985 # assumed that no part of a normal pathname contains ";" but that should
12986 # okay in the real world where ";" in dirpaths is itself problematic.
12987 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12992 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12994 need_lib_prefix=unknown
12995 hardcode_into_libs=no
12997 # when you set need_version to no, make sure it does not cause -set_version
12998 # flags to be left without arguments
12999 need_version=unknown
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13005 shlibpath_var=LIBPATH
13007 # AIX 3 has no versioning support, so we append a major version to the name.
13008 soname_spec='${libname}${release}${shared_ext}$major'
13015 hardcode_into_libs=yes
13016 if test "$host_cpu" = ia64; then
13017 # AIX 5 supports IA64
13018 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13019 shlibpath_var=LD_LIBRARY_PATH
13021 # With GCC up to 2.95.x, collect2 would create an import file
13022 # for dependence libraries. The import file would start with
13023 # the line `#! .'. This would cause the generated library to
13024 # depend on `.', always an invalid library. This was fixed in
13025 # development snapshots of GCC prior to 3.0.
13027 aix4 | aix4.[01] | aix4.[01].*)
13028 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13030 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13033 can_build_shared=no
13037 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13038 # soname into executable. Probably we can add versioning support to
13039 # collect2, so additional links can be useful in future.
13040 if test "$aix_use_runtimelinking" = yes; then
13041 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13042 # instead of lib<name>.a to let people know that these are not
13043 # typical AIX shared libraries.
13044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13046 # We preserve .a as extension for shared libraries through AIX4.2
13047 # and later when we are not doing run time linking.
13048 library_names_spec='${libname}${release}.a $libname.a'
13049 soname_spec='${libname}${release}${shared_ext}$major'
13051 shlibpath_var=LIBPATH
13056 library_names_spec='$libname.ixlibrary $libname.a'
13057 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13058 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'
13062 library_names_spec='${libname}${shared_ext}'
13063 dynamic_linker="$host_os ld.so"
13064 shlibpath_var=LIBRARY_PATH
13070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13071 soname_spec='${libname}${release}${shared_ext}$major'
13072 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13073 shlibpath_var=LD_LIBRARY_PATH
13074 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13075 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13076 # the default ld.so.conf also contains /usr/contrib/lib and
13077 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13078 # libtool to hard-code these into programs
13081 cygwin* | mingw* | pw32*)
13082 version_type=windows
13087 case $GCC,$host_os in
13088 yes,cygwin* | yes,mingw* | yes,pw32*)
13089 library_names_spec='$libname.dll.a'
13090 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13091 postinstall_cmds='base_file=`basename \${file}`~
13092 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13093 dldir=$destdir/`dirname \$dlpath`~
13094 test -d \$dldir || mkdir -p \$dldir~
13095 $install_prog $dir/$dlname \$dldir/$dlname~
13096 chmod a+x \$dldir/$dlname'
13097 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13098 dlpath=$dir/\$dldll~
13100 shlibpath_overrides_runpath=yes
13104 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13105 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13106 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13109 # MinGW DLLs use traditional 'lib' prefix
13110 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13111 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13112 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13113 # It is most probably a Windows format PATH printed by
13114 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13115 # path with ; separators, and with drive letters. We can handle the
13116 # drive letters (cygwin fileutils understands them), so leave them,
13117 # especially as we might pass files found there to a mingw objdump,
13118 # which wouldn't understand a cygwinified path. Ahh.
13119 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13125 # pw32 DLLs use 'pw' prefix rather than 'lib'
13126 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13132 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13135 dynamic_linker='Win32 ld.exe'
13136 # FIXME: first we should search . and the directory the executable is in
13140 darwin* | rhapsody*)
13141 dynamic_linker="$host_os dyld"
13142 version_type=darwin
13145 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13146 soname_spec='${libname}${release}${major}$shared_ext'
13147 shlibpath_overrides_runpath=yes
13148 shlibpath_var=DYLD_LIBRARY_PATH
13149 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13150 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13151 if test "$GCC" = yes; then
13152 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"`
13154 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13156 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13164 soname_spec='${libname}${release}${shared_ext}$major'
13165 shlibpath_var=LD_LIBRARY_PATH
13172 freebsd* | dragonfly*)
13173 # DragonFly does not have aout. When/if they implement a new
13174 # versioning mechanism, adjust this.
13175 if test -x /usr/bin/objformat; then
13176 objformat=`/usr/bin/objformat`
13179 freebsd[123]*) objformat=aout ;;
13180 *) objformat=elf ;;
13183 version_type=freebsd-$objformat
13184 case $version_type in
13186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13195 shlibpath_var=LD_LIBRARY_PATH
13198 shlibpath_overrides_runpath=yes
13200 freebsd3.[01]* | freebsdelf3.[01]*)
13201 shlibpath_overrides_runpath=yes
13202 hardcode_into_libs=yes
13204 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13205 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13206 shlibpath_overrides_runpath=no
13207 hardcode_into_libs=yes
13209 freebsd*) # from 4.6 on
13210 shlibpath_overrides_runpath=yes
13211 hardcode_into_libs=yes
13220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13221 soname_spec='${libname}${release}${shared_ext}$major'
13222 shlibpath_var=LD_LIBRARY_PATH
13223 hardcode_into_libs=yes
13226 hpux9* | hpux10* | hpux11*)
13227 # Give a soname corresponding to the major version so that dld.sl refuses to
13228 # link against other versions.
13235 hardcode_into_libs=yes
13236 dynamic_linker="$host_os dld.so"
13237 shlibpath_var=LD_LIBRARY_PATH
13238 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13240 soname_spec='${libname}${release}${shared_ext}$major'
13241 if test "X$HPUX_IA64_MODE" = X32; then
13242 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13244 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13250 hardcode_into_libs=yes
13251 dynamic_linker="$host_os dld.sl"
13252 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13253 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13255 soname_spec='${libname}${release}${shared_ext}$major'
13256 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13261 dynamic_linker="$host_os dld.sl"
13262 shlibpath_var=SHLIB_PATH
13263 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13265 soname_spec='${libname}${release}${shared_ext}$major'
13268 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13269 postinstall_cmds='chmod 555 $lib'
13276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13277 soname_spec='${libname}${release}${shared_ext}$major'
13278 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13279 shlibpath_var=LD_LIBRARY_PATH
13280 shlibpath_overrides_runpath=no
13281 hardcode_into_libs=yes
13284 irix5* | irix6* | nonstopux*)
13286 nonstopux*) version_type=nonstopux ;;
13288 if test "$lt_cv_prog_gnu_ld" = yes; then
13296 soname_spec='${libname}${release}${shared_ext}$major'
13297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13299 irix5* | nonstopux*)
13300 libsuff= shlibsuff=
13303 case $LD in # libtool.m4 will add one of these switches to LD
13304 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13305 libsuff= shlibsuff= libmagic=32-bit;;
13306 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13307 libsuff=32 shlibsuff=N32 libmagic=N32;;
13308 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13309 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13310 *) libsuff= shlibsuff= libmagic=never-match;;
13314 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13315 shlibpath_overrides_runpath=no
13316 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13317 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13318 hardcode_into_libs=yes
13321 # No shared lib support for Linux oldld, aout, or coff.
13322 linux*oldld* | linux*aout* | linux*coff*)
13326 # This must be Linux ELF.
13327 linux* | k*bsd*-gnu)
13331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13332 soname_spec='${libname}${release}${shared_ext}$major'
13333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13334 shlibpath_var=LD_LIBRARY_PATH
13335 shlibpath_overrides_runpath=no
13336 # This implies no fast_install, which is unacceptable.
13337 # Some rework will be needed to allow for fast_install
13338 # before this can be enabled.
13339 hardcode_into_libs=yes
13341 # Append ld.so.conf contents to the search path
13342 if test -f /etc/ld.so.conf; then
13343 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13344 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13347 # We used to test for /lib/ld.so.1 and disable shared libraries on
13348 # powerpc, because MkLinux only supported shared libraries with the
13349 # GNU dynamic linker. Since this was broken with cross compilers,
13350 # most powerpc-linux boxes support dynamic linking these days and
13351 # people can always --disable-shared, the test was removed, and we
13352 # assume the GNU/Linux dynamic linker is in use.
13353 dynamic_linker='GNU/Linux ld.so'
13360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13361 soname_spec='${libname}${release}${shared_ext}$major'
13362 shlibpath_var=LD_LIBRARY_PATH
13363 shlibpath_overrides_runpath=no
13364 hardcode_into_libs=yes
13365 dynamic_linker='NetBSD ld.elf_so'
13372 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13375 dynamic_linker='NetBSD (a.out) ld.so'
13377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13378 soname_spec='${libname}${release}${shared_ext}$major'
13379 dynamic_linker='NetBSD ld.elf_so'
13381 shlibpath_var=LD_LIBRARY_PATH
13382 shlibpath_overrides_runpath=yes
13383 hardcode_into_libs=yes
13388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13389 shlibpath_var=LD_LIBRARY_PATH
13390 shlibpath_overrides_runpath=yes
13397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13398 soname_spec='${libname}${release}${shared_ext}$major'
13399 shlibpath_var=LD_LIBRARY_PATH
13400 shlibpath_overrides_runpath=yes
13405 sys_lib_dlsearch_path_spec="/usr/lib"
13407 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13409 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13410 *) need_version=no ;;
13412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13414 shlibpath_var=LD_LIBRARY_PATH
13415 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13417 openbsd2.[89] | openbsd2.[89].*)
13418 shlibpath_overrides_runpath=no
13421 shlibpath_overrides_runpath=yes
13425 shlibpath_overrides_runpath=yes
13430 libname_spec='$name'
13433 library_names_spec='$libname${shared_ext} $libname.a'
13434 dynamic_linker='OS/2 ld.exe'
13435 shlibpath_var=LIBPATH
13438 osf3* | osf4* | osf5*)
13442 soname_spec='${libname}${release}${shared_ext}$major'
13443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444 shlibpath_var=LD_LIBRARY_PATH
13445 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13446 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13454 soname_spec='${libname}${release}${shared_ext}$major'
13455 shlibpath_var=LD_LIBRARY_PATH
13456 shlibpath_overrides_runpath=yes
13457 hardcode_into_libs=yes
13458 # ldd complains unless libraries are executable
13459 postinstall_cmds='chmod +x $lib'
13464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13465 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13466 shlibpath_var=LD_LIBRARY_PATH
13467 shlibpath_overrides_runpath=yes
13468 if test "$with_gnu_ld" = yes; then
13476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477 soname_spec='${libname}${release}${shared_ext}$major'
13478 shlibpath_var=LD_LIBRARY_PATH
13479 case $host_vendor in
13481 shlibpath_overrides_runpath=no
13483 export_dynamic_flag_spec='${wl}-Blargedynsym'
13484 runpath_var=LD_RUN_PATH
13492 shlibpath_overrides_runpath=no
13493 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13499 if test -d /usr/nec ;then
13501 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13502 soname_spec='$libname${shared_ext}.$major'
13503 shlibpath_var=LD_LIBRARY_PATH
13507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13508 version_type=freebsd-elf
13511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13512 soname_spec='${libname}${release}${shared_ext}$major'
13513 shlibpath_var=LD_LIBRARY_PATH
13514 hardcode_into_libs=yes
13515 if test "$with_gnu_ld" = yes; then
13516 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13517 shlibpath_overrides_runpath=no
13519 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13520 shlibpath_overrides_runpath=yes
13523 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13527 sys_lib_dlsearch_path_spec='/usr/lib'
13532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13533 soname_spec='${libname}${release}${shared_ext}$major'
13534 shlibpath_var=LD_LIBRARY_PATH
13541 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13542 echo "${ECHO_T}$dynamic_linker" >&6
13543 test "$dynamic_linker" = no && can_build_shared=no
13545 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13546 if test "$GCC" = yes; then
13547 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13550 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13551 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13552 hardcode_action_CXX=
13553 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13554 test -n "$runpath_var_CXX" || \
13555 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13557 # We can hardcode non-existant directories.
13558 if test "$hardcode_direct_CXX" != no &&
13559 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13560 # have to relink, otherwise we might link with an installed library
13561 # when we should be linking with a yet-to-be-installed one
13562 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13563 test "$hardcode_minus_L_CXX" != no; then
13564 # Linking always hardcodes the temporary library directory.
13565 hardcode_action_CXX=relink
13567 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13568 hardcode_action_CXX=immediate
13571 # We cannot hardcode anything, or else we can only hardcode existing
13573 hardcode_action_CXX=unsupported
13575 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13576 echo "${ECHO_T}$hardcode_action_CXX" >&6
13578 if test "$hardcode_action_CXX" = relink; then
13579 # Fast installation is not supported
13580 enable_fast_install=no
13581 elif test "$shlibpath_overrides_runpath" = yes ||
13582 test "$enable_shared" = no; then
13583 # Fast installation is not necessary
13584 enable_fast_install=needless
13588 # The else clause should only fire when bootstrapping the
13589 # libtool distribution, otherwise you forgot to ship ltmain.sh
13590 # with your package, and you will get complaints that there are
13591 # no rules to generate ltmain.sh.
13592 if test -f "$ltmain"; then
13593 # See if we are running on zsh, and set the options which allow our commands through
13594 # without removal of \ escapes.
13595 if test -n "${ZSH_VERSION+set}" ; then
13596 setopt NO_GLOB_SUBST
13598 # Now quote all the things that may contain metacharacters while being
13599 # careful not to overquote the AC_SUBSTed values. We take copies of the
13600 # variables and quote the copies for generation of the libtool script.
13601 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13603 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13604 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13605 deplibs_check_method reload_flag reload_cmds need_locks \
13606 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13607 lt_cv_sys_global_symbol_to_c_name_address \
13608 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13609 old_postinstall_cmds old_postuninstall_cmds \
13613 lt_prog_compiler_wl_CXX \
13614 lt_prog_compiler_pic_CXX \
13615 lt_prog_compiler_static_CXX \
13616 lt_prog_compiler_no_builtin_flag_CXX \
13617 export_dynamic_flag_spec_CXX \
13618 thread_safe_flag_spec_CXX \
13619 whole_archive_flag_spec_CXX \
13620 enable_shared_with_static_runtimes_CXX \
13621 old_archive_cmds_CXX \
13622 old_archive_from_new_cmds_CXX \
13623 predep_objects_CXX \
13624 postdep_objects_CXX \
13627 compiler_lib_search_path_CXX \
13629 archive_expsym_cmds_CXX \
13630 postinstall_cmds_CXX \
13631 postuninstall_cmds_CXX \
13632 old_archive_from_expsyms_cmds_CXX \
13633 allow_undefined_flag_CXX \
13634 no_undefined_flag_CXX \
13635 export_symbols_cmds_CXX \
13636 hardcode_libdir_flag_spec_CXX \
13637 hardcode_libdir_flag_spec_ld_CXX \
13638 hardcode_libdir_separator_CXX \
13639 hardcode_automatic_CXX \
13641 module_expsym_cmds_CXX \
13642 lt_cv_prog_compiler_c_o_CXX \
13643 exclude_expsyms_CXX \
13644 include_expsyms_CXX; do
13647 old_archive_cmds_CXX | \
13648 old_archive_from_new_cmds_CXX | \
13649 archive_cmds_CXX | \
13650 archive_expsym_cmds_CXX | \
13651 module_cmds_CXX | \
13652 module_expsym_cmds_CXX | \
13653 old_archive_from_expsyms_cmds_CXX | \
13654 export_symbols_cmds_CXX | \
13655 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13656 postinstall_cmds | postuninstall_cmds | \
13657 old_postinstall_cmds | old_postuninstall_cmds | \
13658 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13659 # Double-quote double-evaled strings.
13660 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13663 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13669 *'\$0 --fallback-echo"')
13670 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13676 cat <<__EOF__ >> "$cfgfile"
13677 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13679 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13681 # Shell to use when invoking shell scripts.
13684 # Whether or not to build shared libraries.
13685 build_libtool_libs=$enable_shared
13687 # Whether or not to build static libraries.
13688 build_old_libs=$enable_static
13690 # Whether or not to add -lc for building shared libraries.
13691 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13693 # Whether or not to disallow shared libs when runtime libs are static
13694 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13696 # Whether or not to optimize for fast installation.
13697 fast_install=$enable_fast_install
13700 host_alias=$host_alias
13704 # The build system.
13705 build_alias=$build_alias
13709 # An echo program that does not interpret backslashes.
13714 AR_FLAGS=$lt_AR_FLAGS
13719 # LTCC compiler flags.
13720 LTCFLAGS=$lt_LTCFLAGS
13722 # A language-specific compiler.
13723 CC=$lt_compiler_CXX
13725 # Is the compiler the GNU C compiler?
13731 # The linker used to build libraries.
13734 # Whether we need hard or soft links.
13737 # A BSD-compatible nm program.
13740 # A symbol stripping program
13743 # Used to examine libraries when file_magic_cmd begins "file"
13744 MAGIC_CMD=$MAGIC_CMD
13746 # Used on cygwin: DLL creation program.
13749 # Used on cygwin: object dumper.
13752 # Used on cygwin: assembler.
13755 # The name of the directory that contains temporary libtool files.
13758 # How to create reloadable object files.
13759 reload_flag=$lt_reload_flag
13760 reload_cmds=$lt_reload_cmds
13762 # How to pass a linker flag through the compiler.
13763 wl=$lt_lt_prog_compiler_wl_CXX
13765 # Object file suffix (normally "o").
13766 objext="$ac_objext"
13768 # Old archive suffix (normally "a").
13771 # Shared library suffix (normally ".so").
13772 shrext_cmds='$shrext_cmds'
13774 # Executable file suffix (normally "").
13777 # Additional compiler flags for building library objects.
13778 pic_flag=$lt_lt_prog_compiler_pic_CXX
13781 # What is the maximum length of a command?
13782 max_cmd_len=$lt_cv_sys_max_cmd_len
13784 # Does compiler simultaneously support -c and -o options?
13785 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13787 # Must we lock files when doing compilation?
13788 need_locks=$lt_need_locks
13790 # Do we need the lib prefix for modules?
13791 need_lib_prefix=$need_lib_prefix
13793 # Do we need a version for libraries?
13794 need_version=$need_version
13796 # Whether dlopen is supported.
13797 dlopen_support=$enable_dlopen
13799 # Whether dlopen of programs is supported.
13800 dlopen_self=$enable_dlopen_self
13802 # Whether dlopen of statically linked programs is supported.
13803 dlopen_self_static=$enable_dlopen_self_static
13805 # Compiler flag to prevent dynamic linking.
13806 link_static_flag=$lt_lt_prog_compiler_static_CXX
13808 # Compiler flag to turn off builtin functions.
13809 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13811 # Compiler flag to allow reflexive dlopens.
13812 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13814 # Compiler flag to generate shared objects directly from archives.
13815 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13817 # Compiler flag to generate thread-safe objects.
13818 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13820 # Library versioning type.
13821 version_type=$version_type
13823 # Format of library name prefix.
13824 libname_spec=$lt_libname_spec
13826 # List of archive names. First name is the real one, the rest are links.
13827 # The last name is the one that the linker finds with -lNAME.
13828 library_names_spec=$lt_library_names_spec
13830 # The coded name of the library, if different from the real name.
13831 soname_spec=$lt_soname_spec
13833 # Commands used to build and install an old-style archive.
13835 old_archive_cmds=$lt_old_archive_cmds_CXX
13836 old_postinstall_cmds=$lt_old_postinstall_cmds
13837 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13839 # Create an old-style archive from a shared archive.
13840 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13842 # Create a temporary old-style archive to link instead of a shared archive.
13843 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13845 # Commands used to build and install a shared archive.
13846 archive_cmds=$lt_archive_cmds_CXX
13847 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13848 postinstall_cmds=$lt_postinstall_cmds
13849 postuninstall_cmds=$lt_postuninstall_cmds
13851 # Commands used to build a loadable module (assumed same as above if empty)
13852 module_cmds=$lt_module_cmds_CXX
13853 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13855 # Commands to strip libraries.
13856 old_striplib=$lt_old_striplib
13857 striplib=$lt_striplib
13859 # Dependencies to place before the objects being linked to create a
13861 predep_objects=$lt_predep_objects_CXX
13863 # Dependencies to place after the objects being linked to create a
13865 postdep_objects=$lt_postdep_objects_CXX
13867 # Dependencies to place before the objects being linked to create a
13869 predeps=$lt_predeps_CXX
13871 # Dependencies to place after the objects being linked to create a
13873 postdeps=$lt_postdeps_CXX
13875 # The library search path used internally by the compiler when linking
13876 # a shared library.
13877 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13879 # Method to check whether dependent libraries are shared objects.
13880 deplibs_check_method=$lt_deplibs_check_method
13882 # Command to use when deplibs_check_method == file_magic.
13883 file_magic_cmd=$lt_file_magic_cmd
13885 # Flag that allows shared libraries with undefined symbols to be built.
13886 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13888 # Flag that forces no undefined symbols.
13889 no_undefined_flag=$lt_no_undefined_flag_CXX
13891 # Commands used to finish a libtool library installation in a directory.
13892 finish_cmds=$lt_finish_cmds
13894 # Same as above, but a single script fragment to be evaled but not shown.
13895 finish_eval=$lt_finish_eval
13897 # Take the output of nm and produce a listing of raw symbols and C names.
13898 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13900 # Transform the output of nm in a proper C declaration
13901 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13903 # Transform the output of nm in a C name address pair
13904 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13906 # This is the shared library runtime path variable.
13907 runpath_var=$runpath_var
13909 # This is the shared library path variable.
13910 shlibpath_var=$shlibpath_var
13912 # Is shlibpath searched before the hard-coded library search path?
13913 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13915 # How to hardcode a shared library path into an executable.
13916 hardcode_action=$hardcode_action_CXX
13918 # Whether we should hardcode library paths into libraries.
13919 hardcode_into_libs=$hardcode_into_libs
13921 # Flag to hardcode \$libdir into a binary during linking.
13922 # This must work even if \$libdir does not exist.
13923 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13925 # If ld is used when linking, flag to hardcode \$libdir into
13926 # a binary during linking. This must work even if \$libdir does
13928 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13930 # Whether we need a single -rpath flag with a separated argument.
13931 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13933 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13934 # resulting binary.
13935 hardcode_direct=$hardcode_direct_CXX
13937 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13938 # resulting binary.
13939 hardcode_minus_L=$hardcode_minus_L_CXX
13941 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13942 # the resulting binary.
13943 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13945 # Set to yes if building a shared library automatically hardcodes DIR into the library
13946 # and all subsequent libraries and executables linked against it.
13947 hardcode_automatic=$hardcode_automatic_CXX
13949 # Variables whose values should be saved in libtool wrapper scripts and
13950 # restored at relink time.
13951 variables_saved_for_relink="$variables_saved_for_relink"
13953 # Whether libtool must link a program against all its dependency libraries.
13954 link_all_deplibs=$link_all_deplibs_CXX
13956 # Compile-time system search path for libraries
13957 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13959 # Run-time system search path for libraries
13960 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13962 # Fix the shell variable \$srcfile for the compiler.
13963 fix_srcfile_path="$fix_srcfile_path_CXX"
13965 # Set to yes if exported symbols are required.
13966 always_export_symbols=$always_export_symbols_CXX
13968 # The commands to list exported symbols.
13969 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13971 # The commands to extract the exported symbol list from a shared archive.
13972 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13974 # Symbols that should not be listed in the preloaded symbols.
13975 exclude_expsyms=$lt_exclude_expsyms_CXX
13977 # Symbols that must always be exported.
13978 include_expsyms=$lt_include_expsyms_CXX
13980 # ### END LIBTOOL TAG CONFIG: $tagname
13986 # If there is no Makefile yet, we rely on a make rule to execute
13987 # `config.status --recheck' to rerun these tests and create the
13988 # libtool script then.
13989 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13990 if test -f "$ltmain_in"; then
13991 test -f Makefile && make "$ltmain"
13997 ac_cpp='$CPP $CPPFLAGS'
13998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14006 with_gnu_ldcxx=$with_gnu_ld
14007 with_gnu_ld=$lt_save_with_gnu_ld
14008 lt_cv_path_LDCXX=$lt_cv_path_LD
14009 lt_cv_path_LD=$lt_save_path_LD
14010 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14011 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14019 if test -n "$F77" && test "X$F77" != "Xno"; then
14022 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14023 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14024 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14027 archive_cmds_need_lc_F77=no
14028 allow_undefined_flag_F77=
14029 always_export_symbols_F77=no
14030 archive_expsym_cmds_F77=
14031 export_dynamic_flag_spec_F77=
14032 hardcode_direct_F77=no
14033 hardcode_libdir_flag_spec_F77=
14034 hardcode_libdir_flag_spec_ld_F77=
14035 hardcode_libdir_separator_F77=
14036 hardcode_minus_L_F77=no
14037 hardcode_automatic_F77=no
14039 module_expsym_cmds_F77=
14040 link_all_deplibs_F77=unknown
14041 old_archive_cmds_F77=$old_archive_cmds
14042 no_undefined_flag_F77=
14043 whole_archive_flag_spec_F77=
14044 enable_shared_with_static_runtimes_F77=no
14046 # Source file extension for f77 test sources.
14049 # Object file extension for compiled f77 test sources.
14053 # Code to be used in simple compile tests
14054 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14056 # Code to be used in simple link tests
14057 lt_simple_link_test_code=" program t\n end\n"
14059 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14061 # If no C compiler was specified, use CC.
14064 # If no C compiler flags were specified, use CFLAGS.
14065 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14067 # Allow CC to be a program name with arguments.
14071 # save warnings/boilerplate of simple test code
14072 ac_outfile=conftest.$ac_objext
14073 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14074 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14075 _lt_compiler_boilerplate=`cat conftest.err`
14078 ac_outfile=conftest.$ac_objext
14079 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14080 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14081 _lt_linker_boilerplate=`cat conftest.err`
14085 # Allow CC to be a program name with arguments.
14090 for cc_temp in $compiler""; do
14092 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14093 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14098 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14101 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14102 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14103 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14104 echo "${ECHO_T}$can_build_shared" >&6
14106 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14107 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14108 test "$can_build_shared" = "no" && enable_shared=no
14110 # On AIX, shared libraries and static libraries use the same namespace, and
14111 # are all built from PIC.
14114 test "$enable_shared" = yes && enable_static=no
14115 if test -n "$RANLIB"; then
14116 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14117 postinstall_cmds='$RANLIB $lib'
14121 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14122 test "$enable_shared" = yes && enable_static=no
14126 echo "$as_me:$LINENO: result: $enable_shared" >&5
14127 echo "${ECHO_T}$enable_shared" >&6
14129 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14130 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14131 # Make sure either enable_shared or enable_static is yes.
14132 test "$enable_shared" = yes || enable_static=yes
14133 echo "$as_me:$LINENO: result: $enable_static" >&5
14134 echo "${ECHO_T}$enable_static" >&6
14139 lt_prog_compiler_wl_F77=
14140 lt_prog_compiler_pic_F77=
14141 lt_prog_compiler_static_F77=
14143 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14144 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14146 if test "$GCC" = yes; then
14147 lt_prog_compiler_wl_F77='-Wl,'
14148 lt_prog_compiler_static_F77='-static'
14152 # All AIX code is PIC.
14153 if test "$host_cpu" = ia64; then
14154 # AIX 5 now supports IA64 processor
14155 lt_prog_compiler_static_F77='-Bstatic'
14160 # FIXME: we need at least 68020 code to build shared libraries, but
14161 # adding the `-m68020' flag to GCC prevents building anything better,
14163 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14166 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14167 # PIC is the default for these OSes.
14170 mingw* | pw32* | os2*)
14171 # This hack is so that the source file can tell whether it is being
14172 # built for inclusion in a dll (and should export symbols for example).
14173 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14176 darwin* | rhapsody*)
14177 # PIC is the default on this platform
14178 # Common symbols not allowed in MH_DYLIB files
14179 lt_prog_compiler_pic_F77='-fno-common'
14183 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14184 # Instead, we relocate shared libraries at runtime.
14188 # Just because we use GCC doesn't mean we suddenly get shared libraries
14189 # on systems that don't support them.
14190 lt_prog_compiler_can_build_shared_F77=no
14195 if test -d /usr/nec; then
14196 lt_prog_compiler_pic_F77=-Kconform_pic
14201 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14202 # not for PA HP-UX.
14208 lt_prog_compiler_pic_F77='-fPIC'
14214 lt_prog_compiler_pic_F77='-fPIC'
14218 # PORTME Check for flag to pass linker flags through the system compiler.
14221 lt_prog_compiler_wl_F77='-Wl,'
14222 if test "$host_cpu" = ia64; then
14223 # AIX 5 now supports IA64 processor
14224 lt_prog_compiler_static_F77='-Bstatic'
14226 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14230 # PIC is the default on this platform
14231 # Common symbols not allowed in MH_DYLIB files
14232 case $cc_basename in
14234 lt_prog_compiler_pic_F77='-qnocommon'
14235 lt_prog_compiler_wl_F77='-Wl,'
14240 mingw* | pw32* | os2*)
14241 # This hack is so that the source file can tell whether it is being
14242 # built for inclusion in a dll (and should export symbols for example).
14243 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14246 hpux9* | hpux10* | hpux11*)
14247 lt_prog_compiler_wl_F77='-Wl,'
14248 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14249 # not for PA HP-UX.
14255 lt_prog_compiler_pic_F77='+Z'
14258 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14259 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14262 irix5* | irix6* | nonstopux*)
14263 lt_prog_compiler_wl_F77='-Wl,'
14264 # PIC (with -KPIC) is the default.
14265 lt_prog_compiler_static_F77='-non_shared'
14269 lt_prog_compiler_pic_F77='-KPIC'
14270 lt_prog_compiler_static_F77='-Bstatic'
14273 linux* | k*bsd*-gnu)
14274 case $cc_basename in
14276 lt_prog_compiler_wl_F77='-Wl,'
14277 lt_prog_compiler_pic_F77='-KPIC'
14278 lt_prog_compiler_static_F77='-static'
14280 pgcc* | pgf77* | pgf90* | pgf95*)
14281 # Portland Group compilers (*not* the Pentium gcc compiler,
14282 # which looks to be a dead project)
14283 lt_prog_compiler_wl_F77='-Wl,'
14284 lt_prog_compiler_pic_F77='-fpic'
14285 lt_prog_compiler_static_F77='-Bstatic'
14288 lt_prog_compiler_wl_F77='-Wl,'
14289 # All Alpha code is PIC.
14290 lt_prog_compiler_static_F77='-non_shared'
14295 osf3* | osf4* | osf5*)
14296 lt_prog_compiler_wl_F77='-Wl,'
14297 # All OSF/1 code is PIC.
14298 lt_prog_compiler_static_F77='-non_shared'
14302 lt_prog_compiler_pic_F77='-KPIC'
14303 lt_prog_compiler_static_F77='-Bstatic'
14304 case $cc_basename in
14305 f77* | f90* | f95*)
14306 lt_prog_compiler_wl_F77='-Qoption ld ';;
14308 lt_prog_compiler_wl_F77='-Wl,';;
14313 lt_prog_compiler_wl_F77='-Qoption ld '
14314 lt_prog_compiler_pic_F77='-PIC'
14315 lt_prog_compiler_static_F77='-Bstatic'
14318 sysv4 | sysv4.2uw2* | sysv4.3*)
14319 lt_prog_compiler_wl_F77='-Wl,'
14320 lt_prog_compiler_pic_F77='-KPIC'
14321 lt_prog_compiler_static_F77='-Bstatic'
14325 if test -d /usr/nec ;then
14326 lt_prog_compiler_pic_F77='-Kconform_pic'
14327 lt_prog_compiler_static_F77='-Bstatic'
14331 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14332 lt_prog_compiler_wl_F77='-Wl,'
14333 lt_prog_compiler_pic_F77='-KPIC'
14334 lt_prog_compiler_static_F77='-Bstatic'
14338 lt_prog_compiler_wl_F77='-Wl,'
14339 lt_prog_compiler_can_build_shared_F77=no
14343 lt_prog_compiler_pic_F77='-pic'
14344 lt_prog_compiler_static_F77='-Bstatic'
14348 lt_prog_compiler_can_build_shared_F77=no
14353 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14354 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14357 # Check to make sure the PIC flag actually works.
14359 if test -n "$lt_prog_compiler_pic_F77"; then
14361 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14362 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14363 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 lt_prog_compiler_pic_works_F77=no
14367 ac_outfile=conftest.$ac_objext
14368 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14369 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14370 # Insert the option either (1) after the last *FLAGS variable, or
14371 # (2) before a word containing "conftest.", or (3) at the end.
14372 # Note that $ac_compile itself does not contain backslashes and begins
14373 # with a dollar sign (not a hyphen), so the echo should work correctly.
14374 # The option is referenced via a variable to avoid confusing sed.
14375 lt_compile=`echo "$ac_compile" | $SED \
14376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14378 -e 's:$: $lt_compiler_flag:'`
14379 (eval echo "\"\$as_me:14379: $lt_compile\"" >&5)
14380 (eval "$lt_compile" 2>conftest.err)
14382 cat conftest.err >&5
14383 echo "$as_me:14383: \$? = $ac_status" >&5
14384 if (exit $ac_status) && test -s "$ac_outfile"; then
14385 # The compiler can only warn and ignore the option if not recognized
14386 # So say no if there are warnings other than the usual output.
14387 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14389 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14390 lt_prog_compiler_pic_works_F77=yes
14396 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14397 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14399 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14400 case $lt_prog_compiler_pic_F77 in
14402 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14405 lt_prog_compiler_pic_F77=
14406 lt_prog_compiler_can_build_shared_F77=no
14411 # For platforms which do not support PIC, -DPIC is meaningless:
14413 lt_prog_compiler_pic_F77=
14416 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14421 # Check to make sure the static flag actually works.
14423 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14424 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14425 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14426 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 lt_prog_compiler_static_works_F77=no
14430 save_LDFLAGS="$LDFLAGS"
14431 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14432 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14433 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14434 # The linker can only warn and ignore the option if not recognized
14435 # So say no if there are warnings
14436 if test -s conftest.err; then
14437 # Append any errors to the config.log.
14438 cat conftest.err 1>&5
14439 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14441 if diff conftest.exp conftest.er2 >/dev/null; then
14442 lt_prog_compiler_static_works_F77=yes
14445 lt_prog_compiler_static_works_F77=yes
14449 LDFLAGS="$save_LDFLAGS"
14452 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14453 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14455 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14458 lt_prog_compiler_static_F77=
14462 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14463 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14464 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14467 lt_cv_prog_compiler_c_o_F77=no
14468 $rm -r conftest 2>/dev/null
14472 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14474 lt_compiler_flag="-o out/conftest2.$ac_objext"
14475 # Insert the option either (1) after the last *FLAGS variable, or
14476 # (2) before a word containing "conftest.", or (3) at the end.
14477 # Note that $ac_compile itself does not contain backslashes and begins
14478 # with a dollar sign (not a hyphen), so the echo should work correctly.
14479 lt_compile=`echo "$ac_compile" | $SED \
14480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14482 -e 's:$: $lt_compiler_flag:'`
14483 (eval echo "\"\$as_me:14483: $lt_compile\"" >&5)
14484 (eval "$lt_compile" 2>out/conftest.err)
14486 cat out/conftest.err >&5
14487 echo "$as_me:14487: \$? = $ac_status" >&5
14488 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14490 # The compiler can only warn and ignore the option if not recognized
14491 # So say no if there are warnings
14492 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14493 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14494 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14495 lt_cv_prog_compiler_c_o_F77=yes
14500 # SGI C++ compiler will create directory out/ii_files/ for
14501 # template instantiation
14502 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14503 $rm out/* && rmdir out
14509 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14510 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14513 hard_links="nottested"
14514 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14515 # do not overwrite the value of need_locks provided by the user
14516 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14517 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14522 ln conftest.a conftest.b 2>&5 || hard_links=no
14523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14524 echo "$as_me:$LINENO: result: $hard_links" >&5
14525 echo "${ECHO_T}$hard_links" >&6
14526 if test "$hard_links" = no; then
14527 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14528 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14535 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14536 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14539 allow_undefined_flag_F77=
14540 enable_shared_with_static_runtimes_F77=no
14542 archive_expsym_cmds_F77=
14543 old_archive_From_new_cmds_F77=
14544 old_archive_from_expsyms_cmds_F77=
14545 export_dynamic_flag_spec_F77=
14546 whole_archive_flag_spec_F77=
14547 thread_safe_flag_spec_F77=
14548 hardcode_libdir_flag_spec_F77=
14549 hardcode_libdir_flag_spec_ld_F77=
14550 hardcode_libdir_separator_F77=
14551 hardcode_direct_F77=no
14552 hardcode_minus_L_F77=no
14553 hardcode_shlibpath_var_F77=unsupported
14554 link_all_deplibs_F77=unknown
14555 hardcode_automatic_F77=no
14557 module_expsym_cmds_F77=
14558 always_export_symbols_F77=no
14559 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14560 # include_expsyms should be a list of space-separated symbols to be *always*
14561 # included in the symbol list
14562 include_expsyms_F77=
14563 # exclude_expsyms can be an extended regexp of symbols to exclude
14564 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14565 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14566 # as well as any symbol that contains `d'.
14567 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14568 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14569 # platforms (ab)use it in PIC code, but their linkers get confused if
14570 # the symbol is explicitly referenced. Since portable code cannot
14571 # rely on this symbol name, it's probably fine to never include it in
14572 # preloaded symbol tables.
14573 extract_expsyms_cmds=
14574 # Just being paranoid about ensuring that cc_basename is set.
14575 for cc_temp in $compiler""; do
14577 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14578 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14583 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14586 cygwin* | mingw* | pw32*)
14587 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14588 # When not using gcc, we currently assume that we are using
14589 # Microsoft Visual C++.
14590 if test "$GCC" != yes; then
14595 # we just hope/assume this is gcc and not c89 (= MSVC++)
14604 if test "$with_gnu_ld" = yes; then
14605 # If archive_cmds runs LD, not CC, wlarc should be empty
14608 # Set some defaults for GNU ld with shared library support. These
14609 # are reset later if shared libraries are not supported. Putting them
14610 # here allows them to be overridden if necessary.
14611 runpath_var=LD_RUN_PATH
14612 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14613 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14614 # ancient GNU ld didn't support --whole-archive et. al.
14615 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14616 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14618 whole_archive_flag_spec_F77=
14620 supports_anon_versioning=no
14621 case `$LD -v 2>/dev/null` in
14622 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14623 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14624 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14625 *\ 2.11.*) ;; # other 2.11 versions
14626 *) supports_anon_versioning=yes ;;
14629 # See if GNU ld supports shared libraries.
14631 aix3* | aix4* | aix5*)
14632 # On AIX/PPC, the GNU linker is very broken
14633 if test "$host_cpu" != ia64; then
14637 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14638 *** to be unable to reliably create shared libraries on AIX.
14639 *** Therefore, libtool is disabling shared libraries support. If you
14640 *** really care for shared libraries, you may want to modify your PATH
14641 *** so that a non-GNU linker is found, and then restart.
14648 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)'
14649 hardcode_libdir_flag_spec_F77='-L$libdir'
14650 hardcode_minus_L_F77=yes
14652 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14653 # that the semantics of dynamic libraries on AmigaOS, at least up
14654 # to version 4, is to share data among multiple programs linked
14655 # with the same dynamic library. Since this doesn't match the
14656 # behavior of shared libraries on other platforms, we can't use
14662 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14663 allow_undefined_flag_F77=unsupported
14664 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14665 # support --undefined. This deserves some investigation. FIXME
14666 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14672 cygwin* | mingw* | pw32*)
14673 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14674 # as there is no search path for DLLs.
14675 hardcode_libdir_flag_spec_F77='-L$libdir'
14676 allow_undefined_flag_F77=unsupported
14677 always_export_symbols_F77=no
14678 enable_shared_with_static_runtimes_F77=yes
14679 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14681 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14682 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14683 # If the export-symbols file already is a .def file (1st line
14684 # is EXPORTS), use it as is; otherwise, prepend...
14685 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14686 cp $export_symbols $output_objdir/$soname.def;
14688 echo EXPORTS > $output_objdir/$soname.def;
14689 cat $export_symbols >> $output_objdir/$soname.def;
14691 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14698 hardcode_direct_F77=no
14699 hardcode_shlibpath_var_F77=no
14700 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14701 export_dynamic_flag_spec_F77='${wl}-E'
14702 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14703 # Instead, shared libraries are loaded at an image base (0x10000000 by
14704 # default) and relocated if they conflict, which is a slow very memory
14705 # consuming and fragmenting process. To avoid this, we pick a random,
14706 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14707 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14708 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14709 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14712 linux* | k*bsd*-gnu)
14713 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14715 case $cc_basename,$host_cpu in
14716 pgcc*) # Portland Group C compiler
14717 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14718 tmp_addflag=' $pic_flag'
14720 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14721 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14722 tmp_addflag=' $pic_flag -Mnomain' ;;
14723 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14724 tmp_addflag=' -i_dynamic' ;;
14725 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14726 tmp_addflag=' -i_dynamic -nofor_main' ;;
14727 ifc* | ifort*) # Intel Fortran compiler
14728 tmp_addflag=' -nofor_main' ;;
14730 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14732 if test $supports_anon_versioning = yes; then
14733 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14734 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14735 $echo "local: *; };" >> $output_objdir/$libname.ver~
14736 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14738 link_all_deplibs_F77=no
14744 netbsd* | netbsdelf*-gnu)
14745 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14746 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14749 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14750 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14755 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14759 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14760 *** create shared libraries on Solaris systems. Therefore, libtool
14761 *** is disabling shared libraries support. We urge you to upgrade GNU
14762 *** binutils to release 2.9.1 or newer. Another option is to modify
14763 *** your PATH or compiler configuration so that the native linker is
14764 *** used, and then restart.
14767 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14768 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14769 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14775 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14776 case `$LD -v 2>&1` in
14777 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14781 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14782 *** reliably create shared libraries on SCO systems. Therefore, libtool
14783 *** is disabling shared libraries support. We urge you to upgrade GNU
14784 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14785 *** your PATH or compiler configuration so that the native linker is
14786 *** used, and then restart.
14791 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14792 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14793 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14794 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14803 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14805 hardcode_direct_F77=yes
14806 hardcode_shlibpath_var_F77=no
14810 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14811 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14812 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14819 if test "$ld_shlibs_F77" = no; then
14821 hardcode_libdir_flag_spec_F77=
14822 export_dynamic_flag_spec_F77=
14823 whole_archive_flag_spec_F77=
14826 # PORTME fill in a description of your system's linker (not GNU ld)
14829 allow_undefined_flag_F77=unsupported
14830 always_export_symbols_F77=yes
14831 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'
14832 # Note: this linker hardcodes the directories in LIBPATH if there
14833 # are no directories specified by -L.
14834 hardcode_minus_L_F77=yes
14835 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14836 # Neither direct hardcoding nor static linking is supported with a
14838 hardcode_direct_F77=unsupported
14843 if test "$host_cpu" = ia64; then
14844 # On IA64, the linker does run time linking by default, so we don't
14845 # have to do anything special.
14846 aix_use_runtimelinking=no
14847 exp_sym_flag='-Bexport'
14850 # If we're using GNU nm, then we don't want the "-C" option.
14851 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14852 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14853 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'
14855 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'
14857 aix_use_runtimelinking=no
14859 # Test if we are trying to use run time linking or normal
14860 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14861 # need to do runtime linking.
14862 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14863 for ld_flag in $LDFLAGS; do
14864 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14865 aix_use_runtimelinking=yes
14872 exp_sym_flag='-bexport'
14873 no_entry_flag='-bnoentry'
14876 # When large executables or shared objects are built, AIX ld can
14877 # have problems creating the table of contents. If linking a library
14878 # or program results in "error TOC overflow" add -mminimal-toc to
14879 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14880 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14882 archive_cmds_F77=''
14883 hardcode_direct_F77=yes
14884 hardcode_libdir_separator_F77=':'
14885 link_all_deplibs_F77=yes
14887 if test "$GCC" = yes; then
14888 case $host_os in aix4.[012]|aix4.[012].*)
14889 # We only want to do this on AIX 4.2 and lower, the check
14890 # below for broken collect2 doesn't work under 4.3+
14891 collect2name=`${CC} -print-prog-name=collect2`
14892 if test -f "$collect2name" && \
14893 strings "$collect2name" | grep resolve_lib_name >/dev/null
14895 # We have reworked collect2
14896 hardcode_direct_F77=yes
14898 # We have old collect2
14899 hardcode_direct_F77=unsupported
14900 # It fails to find uninstalled libraries when the uninstalled
14901 # path is not listed in the libpath. Setting hardcode_minus_L
14902 # to unsupported forces relinking
14903 hardcode_minus_L_F77=yes
14904 hardcode_libdir_flag_spec_F77='-L$libdir'
14905 hardcode_libdir_separator_F77=
14909 shared_flag='-shared'
14910 if test "$aix_use_runtimelinking" = yes; then
14911 shared_flag="$shared_flag "'${wl}-G'
14915 if test "$host_cpu" = ia64; then
14916 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14917 # chokes on -Wl,-G. The following line is correct:
14920 if test "$aix_use_runtimelinking" = yes; then
14921 shared_flag='${wl}-G'
14923 shared_flag='${wl}-bM:SRE'
14928 # It seems that -bexpall does not export symbols beginning with
14929 # underscore (_), so it is better to generate a list of symbols to export.
14930 always_export_symbols_F77=yes
14931 if test "$aix_use_runtimelinking" = yes; then
14932 # Warning - without using the other runtime loading flags (-brtl),
14933 # -berok will link without error, but may produce a broken library.
14934 allow_undefined_flag_F77='-berok'
14935 # Determine the default libpath from the value encoded in an empty executable.
14936 cat >conftest.$ac_ext <<_ACEOF
14941 rm -f conftest.$ac_objext conftest$ac_exeext
14942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14943 (eval $ac_link) 2>conftest.er1
14945 grep -v '^ *+' conftest.er1 >conftest.err
14947 cat conftest.err >&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } &&
14950 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; } &&
14956 { ac_try='test -s conftest$ac_exeext'
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; }; then
14963 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14965 # Check for a 64-bit object if we didn't find anything.
14966 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; }
14969 echo "$as_me: failed program was:" >&5
14970 sed 's/^/| /' conftest.$ac_ext >&5
14973 rm -f conftest.err conftest.$ac_objext \
14974 conftest$ac_exeext conftest.$ac_ext
14975 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14977 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14978 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14980 if test "$host_cpu" = ia64; then
14981 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14982 allow_undefined_flag_F77="-z nodefs"
14983 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14985 # Determine the default libpath from the value encoded in an empty executable.
14986 cat >conftest.$ac_ext <<_ACEOF
14991 rm -f conftest.$ac_objext conftest$ac_exeext
14992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14993 (eval $ac_link) 2>conftest.er1
14995 grep -v '^ *+' conftest.er1 >conftest.err
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } &&
15000 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; } &&
15006 { ac_try='test -s conftest$ac_exeext'
15007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008 (eval $ac_try) 2>&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; }; then
15013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15015 # Check for a 64-bit object if we didn't find anything.
15016 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; }
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15023 rm -f conftest.err conftest.$ac_objext \
15024 conftest$ac_exeext conftest.$ac_ext
15025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15027 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15028 # Warning - without using the other run time loading flags,
15029 # -berok will link without error, but may produce a broken library.
15030 no_undefined_flag_F77=' ${wl}-bernotok'
15031 allow_undefined_flag_F77=' ${wl}-berok'
15032 # Exported symbols can be pulled into shared objects from archives
15033 whole_archive_flag_spec_F77='$convenience'
15034 archive_cmds_need_lc_F77=yes
15035 # This is similar to how AIX traditionally builds its shared libraries.
15036 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15042 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)'
15043 hardcode_libdir_flag_spec_F77='-L$libdir'
15044 hardcode_minus_L_F77=yes
15045 # see comment about different semantics on the GNU ld section
15050 export_dynamic_flag_spec_F77=-rdynamic
15053 cygwin* | mingw* | pw32*)
15054 # When not using gcc, we currently assume that we are using
15055 # Microsoft Visual C++.
15056 # hardcode_libdir_flag_spec is actually meaningless, as there is
15057 # no search path for DLLs.
15058 hardcode_libdir_flag_spec_F77=' '
15059 allow_undefined_flag_F77=unsupported
15060 # Tell ltmain to make .lib files, not .a files.
15062 # Tell ltmain to make .dll files, not .so files.
15064 # FIXME: Setting linknames here is a bad hack.
15065 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15066 # The linker will automatically build a .lib file if we build a DLL.
15067 old_archive_From_new_cmds_F77='true'
15068 # FIXME: Should let the user specify the lib program.
15069 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15070 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15071 enable_shared_with_static_runtimes_F77=yes
15074 darwin* | rhapsody*)
15076 rhapsody* | darwin1.[012])
15077 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15080 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15081 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15083 case ${MACOSX_DEPLOYMENT_TARGET} in
15085 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15088 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15094 archive_cmds_need_lc_F77=no
15095 hardcode_direct_F77=no
15096 hardcode_automatic_F77=yes
15097 hardcode_shlibpath_var_F77=unsupported
15098 whole_archive_flag_spec_F77=''
15099 link_all_deplibs_F77=yes
15100 if test "$GCC" = yes ; then
15101 output_verbose_link_cmd='echo'
15102 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15103 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15104 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15105 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15106 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}'
15108 case $cc_basename in
15110 output_verbose_link_cmd='echo'
15111 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15112 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15113 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15114 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15115 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}'
15125 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15126 hardcode_libdir_flag_spec_F77='-L$libdir'
15127 hardcode_shlibpath_var_F77=no
15134 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15135 # support. Future versions do this automatically, but an explicit c++rt0.o
15136 # does not break anything, and helps significantly (at the cost of a little
15139 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15140 hardcode_libdir_flag_spec_F77='-R$libdir'
15141 hardcode_direct_F77=yes
15142 hardcode_shlibpath_var_F77=no
15145 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15147 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15148 hardcode_direct_F77=yes
15149 hardcode_minus_L_F77=yes
15150 hardcode_shlibpath_var_F77=no
15153 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15154 freebsd* | dragonfly*)
15155 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15156 hardcode_libdir_flag_spec_F77='-R$libdir'
15157 hardcode_direct_F77=yes
15158 hardcode_shlibpath_var_F77=no
15162 if test "$GCC" = yes; then
15163 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'
15165 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'
15167 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15168 hardcode_libdir_separator_F77=:
15169 hardcode_direct_F77=yes
15171 # hardcode_minus_L: Not really in the search PATH,
15172 # but as the default location of the library.
15173 hardcode_minus_L_F77=yes
15174 export_dynamic_flag_spec_F77='${wl}-E'
15178 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15179 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15181 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15183 if test "$with_gnu_ld" = no; then
15184 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15185 hardcode_libdir_separator_F77=:
15187 hardcode_direct_F77=yes
15188 export_dynamic_flag_spec_F77='${wl}-E'
15190 # hardcode_minus_L: Not really in the search PATH,
15191 # but as the default location of the library.
15192 hardcode_minus_L_F77=yes
15197 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15200 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15203 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15206 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15212 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15215 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15218 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15222 if test "$with_gnu_ld" = no; then
15223 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15224 hardcode_libdir_separator_F77=:
15228 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15229 hardcode_direct_F77=no
15230 hardcode_shlibpath_var_F77=no
15233 hardcode_direct_F77=yes
15234 export_dynamic_flag_spec_F77='${wl}-E'
15236 # hardcode_minus_L: Not really in the search PATH,
15237 # but as the default location of the library.
15238 hardcode_minus_L_F77=yes
15244 irix5* | irix6* | nonstopux*)
15245 if test "$GCC" = yes; then
15246 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'
15248 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'
15249 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15251 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15252 hardcode_libdir_separator_F77=:
15253 link_all_deplibs_F77=yes
15256 netbsd* | netbsdelf*-gnu)
15257 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15258 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15260 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15262 hardcode_libdir_flag_spec_F77='-R$libdir'
15263 hardcode_direct_F77=yes
15264 hardcode_shlibpath_var_F77=no
15268 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15269 hardcode_direct_F77=yes
15270 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15271 hardcode_libdir_separator_F77=:
15272 hardcode_shlibpath_var_F77=no
15276 hardcode_direct_F77=yes
15277 hardcode_shlibpath_var_F77=no
15278 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15279 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15280 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15281 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15282 export_dynamic_flag_spec_F77='${wl}-E'
15285 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15286 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15287 hardcode_libdir_flag_spec_F77='-R$libdir'
15290 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15291 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15298 hardcode_libdir_flag_spec_F77='-L$libdir'
15299 hardcode_minus_L_F77=yes
15300 allow_undefined_flag_F77=unsupported
15301 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'
15302 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15306 if test "$GCC" = yes; then
15307 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15308 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'
15310 allow_undefined_flag_F77=' -expect_unresolved \*'
15311 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'
15313 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15314 hardcode_libdir_separator_F77=:
15317 osf4* | osf5*) # as osf3* with the addition of -msym flag
15318 if test "$GCC" = yes; then
15319 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15320 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'
15321 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15323 allow_undefined_flag_F77=' -expect_unresolved \*'
15324 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'
15325 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~
15326 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15328 # Both c and cxx compiler support -rpath directly
15329 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15331 hardcode_libdir_separator_F77=:
15335 no_undefined_flag_F77=' -z text'
15336 if test "$GCC" = yes; then
15338 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15339 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15340 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15343 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15344 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15345 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15347 hardcode_libdir_flag_spec_F77='-R$libdir'
15348 hardcode_shlibpath_var_F77=no
15350 solaris2.[0-5] | solaris2.[0-5].*) ;;
15352 # The compiler driver will combine linker options so we
15353 # cannot just pass the convience library names through
15354 # without $wl, iff we do not link with $LD.
15355 # Luckily, gcc supports the same syntax we need for Sun Studio.
15356 # Supported since Solaris 2.6 (maybe 2.5.1?)
15359 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15361 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15364 link_all_deplibs_F77=yes
15368 if test "x$host_vendor" = xsequent; then
15369 # Use $CC to link under sequent, because it throws in some extra .o
15370 # files that make .init and .fini sections work.
15371 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15373 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15375 hardcode_libdir_flag_spec_F77='-L$libdir'
15376 hardcode_direct_F77=yes
15377 hardcode_minus_L_F77=yes
15378 hardcode_shlibpath_var_F77=no
15382 case $host_vendor in
15384 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15385 hardcode_direct_F77=yes # is this really true???
15388 ## LD is ld it makes a PLAMLIB
15389 ## CC just makes a GrossModule.
15390 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15391 reload_cmds_F77='$CC -r -o $output$reload_objs'
15392 hardcode_direct_F77=no
15395 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15396 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15399 runpath_var='LD_RUN_PATH'
15400 hardcode_shlibpath_var_F77=no
15404 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15405 hardcode_shlibpath_var_F77=no
15406 export_dynamic_flag_spec_F77='-Bexport'
15410 if test -d /usr/nec; then
15411 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15412 hardcode_shlibpath_var_F77=no
15413 runpath_var=LD_RUN_PATH
15414 hardcode_runpath_var=yes
15419 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15420 no_undefined_flag_F77='${wl}-z,text'
15421 archive_cmds_need_lc_F77=no
15422 hardcode_shlibpath_var_F77=no
15423 runpath_var='LD_RUN_PATH'
15425 if test "$GCC" = yes; then
15426 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15427 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15429 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15430 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15434 sysv5* | sco3.2v5* | sco5v6*)
15435 # Note: We can NOT use -z defs as we might desire, because we do not
15436 # link with -lc, and that would cause any symbols used from libc to
15437 # always be unresolved, which means just about no library would
15438 # ever link correctly. If we're not using GNU ld we use -z text
15439 # though, which does catch some bad symbols but isn't as heavy-handed
15441 no_undefined_flag_F77='${wl}-z,text'
15442 allow_undefined_flag_F77='${wl}-z,nodefs'
15443 archive_cmds_need_lc_F77=no
15444 hardcode_shlibpath_var_F77=no
15445 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15446 hardcode_libdir_separator_F77=':'
15447 link_all_deplibs_F77=yes
15448 export_dynamic_flag_spec_F77='${wl}-Bexport'
15449 runpath_var='LD_RUN_PATH'
15451 if test "$GCC" = yes; then
15452 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15453 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15455 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15456 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15461 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15462 hardcode_libdir_flag_spec_F77='-L$libdir'
15463 hardcode_shlibpath_var_F77=no
15472 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15473 echo "${ECHO_T}$ld_shlibs_F77" >&6
15474 test "$ld_shlibs_F77" = no && can_build_shared=no
15477 # Do we need to explicitly link libc?
15479 case "x$archive_cmds_need_lc_F77" in
15481 # Assume -lc should be added
15482 archive_cmds_need_lc_F77=yes
15484 if test "$enable_shared" = yes && test "$GCC" = yes; then
15485 case $archive_cmds_F77 in
15487 # FIXME: we may have to deal with multi-command sequences.
15490 # Test whether the compiler implicitly links with -lc since on some
15491 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15492 # to ld, don't add -lc before -lgcc.
15493 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15494 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15496 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15499 (eval $ac_compile) 2>&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } 2>conftest.err; then
15505 libobjs=conftest.$ac_objext
15507 wl=$lt_prog_compiler_wl_F77
15508 pic_flag=$lt_prog_compiler_pic_F77
15514 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15515 allow_undefined_flag_F77=
15516 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15517 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }
15522 archive_cmds_need_lc_F77=no
15524 archive_cmds_need_lc_F77=yes
15526 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15528 cat conftest.err 1>&5
15531 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15532 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15539 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15540 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15541 library_names_spec=
15542 libname_spec='lib$name'
15546 postuninstall_cmds=
15550 shlibpath_overrides_runpath=unknown
15552 dynamic_linker="$host_os ld.so"
15553 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15554 if test "$GCC" = yes; then
15555 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15556 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15557 # if the path contains ";" then we assume it to be the separator
15558 # otherwise default to the standard path separator (i.e. ":") - it is
15559 # assumed that no part of a normal pathname contains ";" but that should
15560 # okay in the real world where ";" in dirpaths is itself problematic.
15561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15563 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15566 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15568 need_lib_prefix=unknown
15569 hardcode_into_libs=no
15571 # when you set need_version to no, make sure it does not cause -set_version
15572 # flags to be left without arguments
15573 need_version=unknown
15578 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15579 shlibpath_var=LIBPATH
15581 # AIX 3 has no versioning support, so we append a major version to the name.
15582 soname_spec='${libname}${release}${shared_ext}$major'
15589 hardcode_into_libs=yes
15590 if test "$host_cpu" = ia64; then
15591 # AIX 5 supports IA64
15592 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15593 shlibpath_var=LD_LIBRARY_PATH
15595 # With GCC up to 2.95.x, collect2 would create an import file
15596 # for dependence libraries. The import file would start with
15597 # the line `#! .'. This would cause the generated library to
15598 # depend on `.', always an invalid library. This was fixed in
15599 # development snapshots of GCC prior to 3.0.
15601 aix4 | aix4.[01] | aix4.[01].*)
15602 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15604 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15607 can_build_shared=no
15611 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15612 # soname into executable. Probably we can add versioning support to
15613 # collect2, so additional links can be useful in future.
15614 if test "$aix_use_runtimelinking" = yes; then
15615 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15616 # instead of lib<name>.a to let people know that these are not
15617 # typical AIX shared libraries.
15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620 # We preserve .a as extension for shared libraries through AIX4.2
15621 # and later when we are not doing run time linking.
15622 library_names_spec='${libname}${release}.a $libname.a'
15623 soname_spec='${libname}${release}${shared_ext}$major'
15625 shlibpath_var=LIBPATH
15630 library_names_spec='$libname.ixlibrary $libname.a'
15631 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15632 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'
15636 library_names_spec='${libname}${shared_ext}'
15637 dynamic_linker="$host_os ld.so"
15638 shlibpath_var=LIBRARY_PATH
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645 soname_spec='${libname}${release}${shared_ext}$major'
15646 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15647 shlibpath_var=LD_LIBRARY_PATH
15648 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15649 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15650 # the default ld.so.conf also contains /usr/contrib/lib and
15651 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15652 # libtool to hard-code these into programs
15655 cygwin* | mingw* | pw32*)
15656 version_type=windows
15661 case $GCC,$host_os in
15662 yes,cygwin* | yes,mingw* | yes,pw32*)
15663 library_names_spec='$libname.dll.a'
15664 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15665 postinstall_cmds='base_file=`basename \${file}`~
15666 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15667 dldir=$destdir/`dirname \$dlpath`~
15668 test -d \$dldir || mkdir -p \$dldir~
15669 $install_prog $dir/$dlname \$dldir/$dlname~
15670 chmod a+x \$dldir/$dlname'
15671 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15672 dlpath=$dir/\$dldll~
15674 shlibpath_overrides_runpath=yes
15678 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15679 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15680 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15683 # MinGW DLLs use traditional 'lib' prefix
15684 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15685 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15686 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15687 # It is most probably a Windows format PATH printed by
15688 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15689 # path with ; separators, and with drive letters. We can handle the
15690 # drive letters (cygwin fileutils understands them), so leave them,
15691 # especially as we might pass files found there to a mingw objdump,
15692 # which wouldn't understand a cygwinified path. Ahh.
15693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15695 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15699 # pw32 DLLs use 'pw' prefix rather than 'lib'
15700 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15706 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15709 dynamic_linker='Win32 ld.exe'
15710 # FIXME: first we should search . and the directory the executable is in
15714 darwin* | rhapsody*)
15715 dynamic_linker="$host_os dyld"
15716 version_type=darwin
15719 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15720 soname_spec='${libname}${release}${major}$shared_ext'
15721 shlibpath_overrides_runpath=yes
15722 shlibpath_var=DYLD_LIBRARY_PATH
15723 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15724 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15725 if test "$GCC" = yes; then
15726 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"`
15728 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15730 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15738 soname_spec='${libname}${release}${shared_ext}$major'
15739 shlibpath_var=LD_LIBRARY_PATH
15746 freebsd* | dragonfly*)
15747 # DragonFly does not have aout. When/if they implement a new
15748 # versioning mechanism, adjust this.
15749 if test -x /usr/bin/objformat; then
15750 objformat=`/usr/bin/objformat`
15753 freebsd[123]*) objformat=aout ;;
15754 *) objformat=elf ;;
15757 version_type=freebsd-$objformat
15758 case $version_type in
15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15765 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15769 shlibpath_var=LD_LIBRARY_PATH
15772 shlibpath_overrides_runpath=yes
15774 freebsd3.[01]* | freebsdelf3.[01]*)
15775 shlibpath_overrides_runpath=yes
15776 hardcode_into_libs=yes
15778 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15779 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15780 shlibpath_overrides_runpath=no
15781 hardcode_into_libs=yes
15783 freebsd*) # from 4.6 on
15784 shlibpath_overrides_runpath=yes
15785 hardcode_into_libs=yes
15794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15795 soname_spec='${libname}${release}${shared_ext}$major'
15796 shlibpath_var=LD_LIBRARY_PATH
15797 hardcode_into_libs=yes
15800 hpux9* | hpux10* | hpux11*)
15801 # Give a soname corresponding to the major version so that dld.sl refuses to
15802 # link against other versions.
15809 hardcode_into_libs=yes
15810 dynamic_linker="$host_os dld.so"
15811 shlibpath_var=LD_LIBRARY_PATH
15812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15814 soname_spec='${libname}${release}${shared_ext}$major'
15815 if test "X$HPUX_IA64_MODE" = X32; then
15816 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15818 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15820 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15824 hardcode_into_libs=yes
15825 dynamic_linker="$host_os dld.sl"
15826 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15827 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15829 soname_spec='${libname}${release}${shared_ext}$major'
15830 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15831 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15835 dynamic_linker="$host_os dld.sl"
15836 shlibpath_var=SHLIB_PATH
15837 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15839 soname_spec='${libname}${release}${shared_ext}$major'
15842 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15843 postinstall_cmds='chmod 555 $lib'
15850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15851 soname_spec='${libname}${release}${shared_ext}$major'
15852 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15853 shlibpath_var=LD_LIBRARY_PATH
15854 shlibpath_overrides_runpath=no
15855 hardcode_into_libs=yes
15858 irix5* | irix6* | nonstopux*)
15860 nonstopux*) version_type=nonstopux ;;
15862 if test "$lt_cv_prog_gnu_ld" = yes; then
15870 soname_spec='${libname}${release}${shared_ext}$major'
15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15873 irix5* | nonstopux*)
15874 libsuff= shlibsuff=
15877 case $LD in # libtool.m4 will add one of these switches to LD
15878 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15879 libsuff= shlibsuff= libmagic=32-bit;;
15880 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15881 libsuff=32 shlibsuff=N32 libmagic=N32;;
15882 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15883 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15884 *) libsuff= shlibsuff= libmagic=never-match;;
15888 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15889 shlibpath_overrides_runpath=no
15890 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15891 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15892 hardcode_into_libs=yes
15895 # No shared lib support for Linux oldld, aout, or coff.
15896 linux*oldld* | linux*aout* | linux*coff*)
15900 # This must be Linux ELF.
15901 linux* | k*bsd*-gnu)
15905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906 soname_spec='${libname}${release}${shared_ext}$major'
15907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15908 shlibpath_var=LD_LIBRARY_PATH
15909 shlibpath_overrides_runpath=no
15910 # This implies no fast_install, which is unacceptable.
15911 # Some rework will be needed to allow for fast_install
15912 # before this can be enabled.
15913 hardcode_into_libs=yes
15915 # Append ld.so.conf contents to the search path
15916 if test -f /etc/ld.so.conf; then
15917 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15918 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15921 # We used to test for /lib/ld.so.1 and disable shared libraries on
15922 # powerpc, because MkLinux only supported shared libraries with the
15923 # GNU dynamic linker. Since this was broken with cross compilers,
15924 # most powerpc-linux boxes support dynamic linking these days and
15925 # people can always --disable-shared, the test was removed, and we
15926 # assume the GNU/Linux dynamic linker is in use.
15927 dynamic_linker='GNU/Linux ld.so'
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15935 soname_spec='${libname}${release}${shared_ext}$major'
15936 shlibpath_var=LD_LIBRARY_PATH
15937 shlibpath_overrides_runpath=no
15938 hardcode_into_libs=yes
15939 dynamic_linker='NetBSD ld.elf_so'
15946 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15949 dynamic_linker='NetBSD (a.out) ld.so'
15951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15952 soname_spec='${libname}${release}${shared_ext}$major'
15953 dynamic_linker='NetBSD ld.elf_so'
15955 shlibpath_var=LD_LIBRARY_PATH
15956 shlibpath_overrides_runpath=yes
15957 hardcode_into_libs=yes
15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963 shlibpath_var=LD_LIBRARY_PATH
15964 shlibpath_overrides_runpath=yes
15971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15972 soname_spec='${libname}${release}${shared_ext}$major'
15973 shlibpath_var=LD_LIBRARY_PATH
15974 shlibpath_overrides_runpath=yes
15979 sys_lib_dlsearch_path_spec="/usr/lib"
15981 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15983 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15984 *) need_version=no ;;
15986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15988 shlibpath_var=LD_LIBRARY_PATH
15989 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15991 openbsd2.[89] | openbsd2.[89].*)
15992 shlibpath_overrides_runpath=no
15995 shlibpath_overrides_runpath=yes
15999 shlibpath_overrides_runpath=yes
16004 libname_spec='$name'
16007 library_names_spec='$libname${shared_ext} $libname.a'
16008 dynamic_linker='OS/2 ld.exe'
16009 shlibpath_var=LIBPATH
16012 osf3* | osf4* | osf5*)
16016 soname_spec='${libname}${release}${shared_ext}$major'
16017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16018 shlibpath_var=LD_LIBRARY_PATH
16019 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16020 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028 soname_spec='${libname}${release}${shared_ext}$major'
16029 shlibpath_var=LD_LIBRARY_PATH
16030 shlibpath_overrides_runpath=yes
16031 hardcode_into_libs=yes
16032 # ldd complains unless libraries are executable
16033 postinstall_cmds='chmod +x $lib'
16038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16039 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16040 shlibpath_var=LD_LIBRARY_PATH
16041 shlibpath_overrides_runpath=yes
16042 if test "$with_gnu_ld" = yes; then
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051 soname_spec='${libname}${release}${shared_ext}$major'
16052 shlibpath_var=LD_LIBRARY_PATH
16053 case $host_vendor in
16055 shlibpath_overrides_runpath=no
16057 export_dynamic_flag_spec='${wl}-Blargedynsym'
16058 runpath_var=LD_RUN_PATH
16066 shlibpath_overrides_runpath=no
16067 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16073 if test -d /usr/nec ;then
16075 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16076 soname_spec='$libname${shared_ext}.$major'
16077 shlibpath_var=LD_LIBRARY_PATH
16081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16082 version_type=freebsd-elf
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16086 soname_spec='${libname}${release}${shared_ext}$major'
16087 shlibpath_var=LD_LIBRARY_PATH
16088 hardcode_into_libs=yes
16089 if test "$with_gnu_ld" = yes; then
16090 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16091 shlibpath_overrides_runpath=no
16093 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16094 shlibpath_overrides_runpath=yes
16097 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16101 sys_lib_dlsearch_path_spec='/usr/lib'
16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16107 soname_spec='${libname}${release}${shared_ext}$major'
16108 shlibpath_var=LD_LIBRARY_PATH
16115 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16116 echo "${ECHO_T}$dynamic_linker" >&6
16117 test "$dynamic_linker" = no && can_build_shared=no
16119 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16120 if test "$GCC" = yes; then
16121 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16124 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16125 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16126 hardcode_action_F77=
16127 if test -n "$hardcode_libdir_flag_spec_F77" || \
16128 test -n "$runpath_var_F77" || \
16129 test "X$hardcode_automatic_F77" = "Xyes" ; then
16131 # We can hardcode non-existant directories.
16132 if test "$hardcode_direct_F77" != no &&
16133 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16134 # have to relink, otherwise we might link with an installed library
16135 # when we should be linking with a yet-to-be-installed one
16136 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16137 test "$hardcode_minus_L_F77" != no; then
16138 # Linking always hardcodes the temporary library directory.
16139 hardcode_action_F77=relink
16141 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16142 hardcode_action_F77=immediate
16145 # We cannot hardcode anything, or else we can only hardcode existing
16147 hardcode_action_F77=unsupported
16149 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16150 echo "${ECHO_T}$hardcode_action_F77" >&6
16152 if test "$hardcode_action_F77" = relink; then
16153 # Fast installation is not supported
16154 enable_fast_install=no
16155 elif test "$shlibpath_overrides_runpath" = yes ||
16156 test "$enable_shared" = no; then
16157 # Fast installation is not necessary
16158 enable_fast_install=needless
16162 # The else clause should only fire when bootstrapping the
16163 # libtool distribution, otherwise you forgot to ship ltmain.sh
16164 # with your package, and you will get complaints that there are
16165 # no rules to generate ltmain.sh.
16166 if test -f "$ltmain"; then
16167 # See if we are running on zsh, and set the options which allow our commands through
16168 # without removal of \ escapes.
16169 if test -n "${ZSH_VERSION+set}" ; then
16170 setopt NO_GLOB_SUBST
16172 # Now quote all the things that may contain metacharacters while being
16173 # careful not to overquote the AC_SUBSTed values. We take copies of the
16174 # variables and quote the copies for generation of the libtool script.
16175 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16177 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16178 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16179 deplibs_check_method reload_flag reload_cmds need_locks \
16180 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16181 lt_cv_sys_global_symbol_to_c_name_address \
16182 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16183 old_postinstall_cmds old_postuninstall_cmds \
16187 lt_prog_compiler_wl_F77 \
16188 lt_prog_compiler_pic_F77 \
16189 lt_prog_compiler_static_F77 \
16190 lt_prog_compiler_no_builtin_flag_F77 \
16191 export_dynamic_flag_spec_F77 \
16192 thread_safe_flag_spec_F77 \
16193 whole_archive_flag_spec_F77 \
16194 enable_shared_with_static_runtimes_F77 \
16195 old_archive_cmds_F77 \
16196 old_archive_from_new_cmds_F77 \
16197 predep_objects_F77 \
16198 postdep_objects_F77 \
16201 compiler_lib_search_path_F77 \
16203 archive_expsym_cmds_F77 \
16204 postinstall_cmds_F77 \
16205 postuninstall_cmds_F77 \
16206 old_archive_from_expsyms_cmds_F77 \
16207 allow_undefined_flag_F77 \
16208 no_undefined_flag_F77 \
16209 export_symbols_cmds_F77 \
16210 hardcode_libdir_flag_spec_F77 \
16211 hardcode_libdir_flag_spec_ld_F77 \
16212 hardcode_libdir_separator_F77 \
16213 hardcode_automatic_F77 \
16215 module_expsym_cmds_F77 \
16216 lt_cv_prog_compiler_c_o_F77 \
16217 exclude_expsyms_F77 \
16218 include_expsyms_F77; do
16221 old_archive_cmds_F77 | \
16222 old_archive_from_new_cmds_F77 | \
16223 archive_cmds_F77 | \
16224 archive_expsym_cmds_F77 | \
16225 module_cmds_F77 | \
16226 module_expsym_cmds_F77 | \
16227 old_archive_from_expsyms_cmds_F77 | \
16228 export_symbols_cmds_F77 | \
16229 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16230 postinstall_cmds | postuninstall_cmds | \
16231 old_postinstall_cmds | old_postuninstall_cmds | \
16232 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16233 # Double-quote double-evaled strings.
16234 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16237 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16243 *'\$0 --fallback-echo"')
16244 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16250 cat <<__EOF__ >> "$cfgfile"
16251 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16253 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16255 # Shell to use when invoking shell scripts.
16258 # Whether or not to build shared libraries.
16259 build_libtool_libs=$enable_shared
16261 # Whether or not to build static libraries.
16262 build_old_libs=$enable_static
16264 # Whether or not to add -lc for building shared libraries.
16265 build_libtool_need_lc=$archive_cmds_need_lc_F77
16267 # Whether or not to disallow shared libs when runtime libs are static
16268 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16270 # Whether or not to optimize for fast installation.
16271 fast_install=$enable_fast_install
16274 host_alias=$host_alias
16278 # The build system.
16279 build_alias=$build_alias
16283 # An echo program that does not interpret backslashes.
16288 AR_FLAGS=$lt_AR_FLAGS
16293 # LTCC compiler flags.
16294 LTCFLAGS=$lt_LTCFLAGS
16296 # A language-specific compiler.
16297 CC=$lt_compiler_F77
16299 # Is the compiler the GNU C compiler?
16305 # The linker used to build libraries.
16308 # Whether we need hard or soft links.
16311 # A BSD-compatible nm program.
16314 # A symbol stripping program
16317 # Used to examine libraries when file_magic_cmd begins "file"
16318 MAGIC_CMD=$MAGIC_CMD
16320 # Used on cygwin: DLL creation program.
16323 # Used on cygwin: object dumper.
16326 # Used on cygwin: assembler.
16329 # The name of the directory that contains temporary libtool files.
16332 # How to create reloadable object files.
16333 reload_flag=$lt_reload_flag
16334 reload_cmds=$lt_reload_cmds
16336 # How to pass a linker flag through the compiler.
16337 wl=$lt_lt_prog_compiler_wl_F77
16339 # Object file suffix (normally "o").
16340 objext="$ac_objext"
16342 # Old archive suffix (normally "a").
16345 # Shared library suffix (normally ".so").
16346 shrext_cmds='$shrext_cmds'
16348 # Executable file suffix (normally "").
16351 # Additional compiler flags for building library objects.
16352 pic_flag=$lt_lt_prog_compiler_pic_F77
16355 # What is the maximum length of a command?
16356 max_cmd_len=$lt_cv_sys_max_cmd_len
16358 # Does compiler simultaneously support -c and -o options?
16359 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16361 # Must we lock files when doing compilation?
16362 need_locks=$lt_need_locks
16364 # Do we need the lib prefix for modules?
16365 need_lib_prefix=$need_lib_prefix
16367 # Do we need a version for libraries?
16368 need_version=$need_version
16370 # Whether dlopen is supported.
16371 dlopen_support=$enable_dlopen
16373 # Whether dlopen of programs is supported.
16374 dlopen_self=$enable_dlopen_self
16376 # Whether dlopen of statically linked programs is supported.
16377 dlopen_self_static=$enable_dlopen_self_static
16379 # Compiler flag to prevent dynamic linking.
16380 link_static_flag=$lt_lt_prog_compiler_static_F77
16382 # Compiler flag to turn off builtin functions.
16383 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16385 # Compiler flag to allow reflexive dlopens.
16386 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16388 # Compiler flag to generate shared objects directly from archives.
16389 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16391 # Compiler flag to generate thread-safe objects.
16392 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16394 # Library versioning type.
16395 version_type=$version_type
16397 # Format of library name prefix.
16398 libname_spec=$lt_libname_spec
16400 # List of archive names. First name is the real one, the rest are links.
16401 # The last name is the one that the linker finds with -lNAME.
16402 library_names_spec=$lt_library_names_spec
16404 # The coded name of the library, if different from the real name.
16405 soname_spec=$lt_soname_spec
16407 # Commands used to build and install an old-style archive.
16409 old_archive_cmds=$lt_old_archive_cmds_F77
16410 old_postinstall_cmds=$lt_old_postinstall_cmds
16411 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16413 # Create an old-style archive from a shared archive.
16414 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16416 # Create a temporary old-style archive to link instead of a shared archive.
16417 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16419 # Commands used to build and install a shared archive.
16420 archive_cmds=$lt_archive_cmds_F77
16421 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16422 postinstall_cmds=$lt_postinstall_cmds
16423 postuninstall_cmds=$lt_postuninstall_cmds
16425 # Commands used to build a loadable module (assumed same as above if empty)
16426 module_cmds=$lt_module_cmds_F77
16427 module_expsym_cmds=$lt_module_expsym_cmds_F77
16429 # Commands to strip libraries.
16430 old_striplib=$lt_old_striplib
16431 striplib=$lt_striplib
16433 # Dependencies to place before the objects being linked to create a
16435 predep_objects=$lt_predep_objects_F77
16437 # Dependencies to place after the objects being linked to create a
16439 postdep_objects=$lt_postdep_objects_F77
16441 # Dependencies to place before the objects being linked to create a
16443 predeps=$lt_predeps_F77
16445 # Dependencies to place after the objects being linked to create a
16447 postdeps=$lt_postdeps_F77
16449 # The library search path used internally by the compiler when linking
16450 # a shared library.
16451 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16453 # Method to check whether dependent libraries are shared objects.
16454 deplibs_check_method=$lt_deplibs_check_method
16456 # Command to use when deplibs_check_method == file_magic.
16457 file_magic_cmd=$lt_file_magic_cmd
16459 # Flag that allows shared libraries with undefined symbols to be built.
16460 allow_undefined_flag=$lt_allow_undefined_flag_F77
16462 # Flag that forces no undefined symbols.
16463 no_undefined_flag=$lt_no_undefined_flag_F77
16465 # Commands used to finish a libtool library installation in a directory.
16466 finish_cmds=$lt_finish_cmds
16468 # Same as above, but a single script fragment to be evaled but not shown.
16469 finish_eval=$lt_finish_eval
16471 # Take the output of nm and produce a listing of raw symbols and C names.
16472 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16474 # Transform the output of nm in a proper C declaration
16475 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16477 # Transform the output of nm in a C name address pair
16478 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16480 # This is the shared library runtime path variable.
16481 runpath_var=$runpath_var
16483 # This is the shared library path variable.
16484 shlibpath_var=$shlibpath_var
16486 # Is shlibpath searched before the hard-coded library search path?
16487 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16489 # How to hardcode a shared library path into an executable.
16490 hardcode_action=$hardcode_action_F77
16492 # Whether we should hardcode library paths into libraries.
16493 hardcode_into_libs=$hardcode_into_libs
16495 # Flag to hardcode \$libdir into a binary during linking.
16496 # This must work even if \$libdir does not exist.
16497 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16499 # If ld is used when linking, flag to hardcode \$libdir into
16500 # a binary during linking. This must work even if \$libdir does
16502 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16504 # Whether we need a single -rpath flag with a separated argument.
16505 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16507 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16508 # resulting binary.
16509 hardcode_direct=$hardcode_direct_F77
16511 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16512 # resulting binary.
16513 hardcode_minus_L=$hardcode_minus_L_F77
16515 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16516 # the resulting binary.
16517 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16519 # Set to yes if building a shared library automatically hardcodes DIR into the library
16520 # and all subsequent libraries and executables linked against it.
16521 hardcode_automatic=$hardcode_automatic_F77
16523 # Variables whose values should be saved in libtool wrapper scripts and
16524 # restored at relink time.
16525 variables_saved_for_relink="$variables_saved_for_relink"
16527 # Whether libtool must link a program against all its dependency libraries.
16528 link_all_deplibs=$link_all_deplibs_F77
16530 # Compile-time system search path for libraries
16531 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16533 # Run-time system search path for libraries
16534 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16536 # Fix the shell variable \$srcfile for the compiler.
16537 fix_srcfile_path="$fix_srcfile_path_F77"
16539 # Set to yes if exported symbols are required.
16540 always_export_symbols=$always_export_symbols_F77
16542 # The commands to list exported symbols.
16543 export_symbols_cmds=$lt_export_symbols_cmds_F77
16545 # The commands to extract the exported symbol list from a shared archive.
16546 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16548 # Symbols that should not be listed in the preloaded symbols.
16549 exclude_expsyms=$lt_exclude_expsyms_F77
16551 # Symbols that must always be exported.
16552 include_expsyms=$lt_include_expsyms_F77
16554 # ### END LIBTOOL TAG CONFIG: $tagname
16560 # If there is no Makefile yet, we rely on a make rule to execute
16561 # `config.status --recheck' to rerun these tests and create the
16562 # libtool script then.
16563 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16564 if test -f "$ltmain_in"; then
16565 test -f Makefile && make "$ltmain"
16571 ac_cpp='$CPP $CPPFLAGS'
16572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16584 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16588 # Source file extension for Java test sources.
16591 # Object file extension for compiled Java test sources.
16595 # Code to be used in simple compile tests
16596 lt_simple_compile_test_code="class foo {}\n"
16598 # Code to be used in simple link tests
16599 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16601 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16603 # If no C compiler was specified, use CC.
16606 # If no C compiler flags were specified, use CFLAGS.
16607 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16609 # Allow CC to be a program name with arguments.
16613 # save warnings/boilerplate of simple test code
16614 ac_outfile=conftest.$ac_objext
16615 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16616 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16617 _lt_compiler_boilerplate=`cat conftest.err`
16620 ac_outfile=conftest.$ac_objext
16621 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16622 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16623 _lt_linker_boilerplate=`cat conftest.err`
16627 # Allow CC to be a program name with arguments.
16632 for cc_temp in $compiler""; do
16634 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16635 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16640 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16643 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16644 archive_cmds_need_lc_GCJ=no
16646 old_archive_cmds_GCJ=$old_archive_cmds
16649 lt_prog_compiler_no_builtin_flag_GCJ=
16651 if test "$GCC" = yes; then
16652 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16655 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16656 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16657 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16660 lt_cv_prog_compiler_rtti_exceptions=no
16661 ac_outfile=conftest.$ac_objext
16662 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16663 lt_compiler_flag="-fno-rtti -fno-exceptions"
16664 # Insert the option either (1) after the last *FLAGS variable, or
16665 # (2) before a word containing "conftest.", or (3) at the end.
16666 # Note that $ac_compile itself does not contain backslashes and begins
16667 # with a dollar sign (not a hyphen), so the echo should work correctly.
16668 # The option is referenced via a variable to avoid confusing sed.
16669 lt_compile=`echo "$ac_compile" | $SED \
16670 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16672 -e 's:$: $lt_compiler_flag:'`
16673 (eval echo "\"\$as_me:16673: $lt_compile\"" >&5)
16674 (eval "$lt_compile" 2>conftest.err)
16676 cat conftest.err >&5
16677 echo "$as_me:16677: \$? = $ac_status" >&5
16678 if (exit $ac_status) && test -s "$ac_outfile"; then
16679 # The compiler can only warn and ignore the option if not recognized
16680 # So say no if there are warnings other than the usual output.
16681 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16682 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16683 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16684 lt_cv_prog_compiler_rtti_exceptions=yes
16690 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16691 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16693 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16694 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16701 lt_prog_compiler_wl_GCJ=
16702 lt_prog_compiler_pic_GCJ=
16703 lt_prog_compiler_static_GCJ=
16705 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16706 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16708 if test "$GCC" = yes; then
16709 lt_prog_compiler_wl_GCJ='-Wl,'
16710 lt_prog_compiler_static_GCJ='-static'
16714 # All AIX code is PIC.
16715 if test "$host_cpu" = ia64; then
16716 # AIX 5 now supports IA64 processor
16717 lt_prog_compiler_static_GCJ='-Bstatic'
16722 # FIXME: we need at least 68020 code to build shared libraries, but
16723 # adding the `-m68020' flag to GCC prevents building anything better,
16725 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16728 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16729 # PIC is the default for these OSes.
16732 mingw* | pw32* | os2*)
16733 # This hack is so that the source file can tell whether it is being
16734 # built for inclusion in a dll (and should export symbols for example).
16735 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16738 darwin* | rhapsody*)
16739 # PIC is the default on this platform
16740 # Common symbols not allowed in MH_DYLIB files
16741 lt_prog_compiler_pic_GCJ='-fno-common'
16745 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16746 # Instead, we relocate shared libraries at runtime.
16750 # Just because we use GCC doesn't mean we suddenly get shared libraries
16751 # on systems that don't support them.
16752 lt_prog_compiler_can_build_shared_GCJ=no
16757 if test -d /usr/nec; then
16758 lt_prog_compiler_pic_GCJ=-Kconform_pic
16763 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16764 # not for PA HP-UX.
16770 lt_prog_compiler_pic_GCJ='-fPIC'
16776 lt_prog_compiler_pic_GCJ='-fPIC'
16780 # PORTME Check for flag to pass linker flags through the system compiler.
16783 lt_prog_compiler_wl_GCJ='-Wl,'
16784 if test "$host_cpu" = ia64; then
16785 # AIX 5 now supports IA64 processor
16786 lt_prog_compiler_static_GCJ='-Bstatic'
16788 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16792 # PIC is the default on this platform
16793 # Common symbols not allowed in MH_DYLIB files
16794 case $cc_basename in
16796 lt_prog_compiler_pic_GCJ='-qnocommon'
16797 lt_prog_compiler_wl_GCJ='-Wl,'
16802 mingw* | pw32* | os2*)
16803 # This hack is so that the source file can tell whether it is being
16804 # built for inclusion in a dll (and should export symbols for example).
16805 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16808 hpux9* | hpux10* | hpux11*)
16809 lt_prog_compiler_wl_GCJ='-Wl,'
16810 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16811 # not for PA HP-UX.
16817 lt_prog_compiler_pic_GCJ='+Z'
16820 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16821 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16824 irix5* | irix6* | nonstopux*)
16825 lt_prog_compiler_wl_GCJ='-Wl,'
16826 # PIC (with -KPIC) is the default.
16827 lt_prog_compiler_static_GCJ='-non_shared'
16831 lt_prog_compiler_pic_GCJ='-KPIC'
16832 lt_prog_compiler_static_GCJ='-Bstatic'
16835 linux* | k*bsd*-gnu)
16836 case $cc_basename in
16838 lt_prog_compiler_wl_GCJ='-Wl,'
16839 lt_prog_compiler_pic_GCJ='-KPIC'
16840 lt_prog_compiler_static_GCJ='-static'
16842 pgcc* | pgf77* | pgf90* | pgf95*)
16843 # Portland Group compilers (*not* the Pentium gcc compiler,
16844 # which looks to be a dead project)
16845 lt_prog_compiler_wl_GCJ='-Wl,'
16846 lt_prog_compiler_pic_GCJ='-fpic'
16847 lt_prog_compiler_static_GCJ='-Bstatic'
16850 lt_prog_compiler_wl_GCJ='-Wl,'
16851 # All Alpha code is PIC.
16852 lt_prog_compiler_static_GCJ='-non_shared'
16857 osf3* | osf4* | osf5*)
16858 lt_prog_compiler_wl_GCJ='-Wl,'
16859 # All OSF/1 code is PIC.
16860 lt_prog_compiler_static_GCJ='-non_shared'
16864 lt_prog_compiler_pic_GCJ='-KPIC'
16865 lt_prog_compiler_static_GCJ='-Bstatic'
16866 case $cc_basename in
16867 f77* | f90* | f95*)
16868 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16870 lt_prog_compiler_wl_GCJ='-Wl,';;
16875 lt_prog_compiler_wl_GCJ='-Qoption ld '
16876 lt_prog_compiler_pic_GCJ='-PIC'
16877 lt_prog_compiler_static_GCJ='-Bstatic'
16880 sysv4 | sysv4.2uw2* | sysv4.3*)
16881 lt_prog_compiler_wl_GCJ='-Wl,'
16882 lt_prog_compiler_pic_GCJ='-KPIC'
16883 lt_prog_compiler_static_GCJ='-Bstatic'
16887 if test -d /usr/nec ;then
16888 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16889 lt_prog_compiler_static_GCJ='-Bstatic'
16893 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16894 lt_prog_compiler_wl_GCJ='-Wl,'
16895 lt_prog_compiler_pic_GCJ='-KPIC'
16896 lt_prog_compiler_static_GCJ='-Bstatic'
16900 lt_prog_compiler_wl_GCJ='-Wl,'
16901 lt_prog_compiler_can_build_shared_GCJ=no
16905 lt_prog_compiler_pic_GCJ='-pic'
16906 lt_prog_compiler_static_GCJ='-Bstatic'
16910 lt_prog_compiler_can_build_shared_GCJ=no
16915 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16916 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16919 # Check to make sure the PIC flag actually works.
16921 if test -n "$lt_prog_compiler_pic_GCJ"; then
16923 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16924 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16925 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16926 echo $ECHO_N "(cached) $ECHO_C" >&6
16928 lt_prog_compiler_pic_works_GCJ=no
16929 ac_outfile=conftest.$ac_objext
16930 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16931 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16932 # Insert the option either (1) after the last *FLAGS variable, or
16933 # (2) before a word containing "conftest.", or (3) at the end.
16934 # Note that $ac_compile itself does not contain backslashes and begins
16935 # with a dollar sign (not a hyphen), so the echo should work correctly.
16936 # The option is referenced via a variable to avoid confusing sed.
16937 lt_compile=`echo "$ac_compile" | $SED \
16938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16940 -e 's:$: $lt_compiler_flag:'`
16941 (eval echo "\"\$as_me:16941: $lt_compile\"" >&5)
16942 (eval "$lt_compile" 2>conftest.err)
16944 cat conftest.err >&5
16945 echo "$as_me:16945: \$? = $ac_status" >&5
16946 if (exit $ac_status) && test -s "$ac_outfile"; then
16947 # The compiler can only warn and ignore the option if not recognized
16948 # So say no if there are warnings other than the usual output.
16949 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16951 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16952 lt_prog_compiler_pic_works_GCJ=yes
16958 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16959 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16961 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16962 case $lt_prog_compiler_pic_GCJ in
16964 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16967 lt_prog_compiler_pic_GCJ=
16968 lt_prog_compiler_can_build_shared_GCJ=no
16973 # For platforms which do not support PIC, -DPIC is meaningless:
16975 lt_prog_compiler_pic_GCJ=
16978 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16983 # Check to make sure the static flag actually works.
16985 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16986 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16987 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16988 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16991 lt_prog_compiler_static_works_GCJ=no
16992 save_LDFLAGS="$LDFLAGS"
16993 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16994 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16995 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16996 # The linker can only warn and ignore the option if not recognized
16997 # So say no if there are warnings
16998 if test -s conftest.err; then
16999 # Append any errors to the config.log.
17000 cat conftest.err 1>&5
17001 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17003 if diff conftest.exp conftest.er2 >/dev/null; then
17004 lt_prog_compiler_static_works_GCJ=yes
17007 lt_prog_compiler_static_works_GCJ=yes
17011 LDFLAGS="$save_LDFLAGS"
17014 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17015 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17017 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17020 lt_prog_compiler_static_GCJ=
17024 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17025 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17026 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17027 echo $ECHO_N "(cached) $ECHO_C" >&6
17029 lt_cv_prog_compiler_c_o_GCJ=no
17030 $rm -r conftest 2>/dev/null
17034 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17036 lt_compiler_flag="-o out/conftest2.$ac_objext"
17037 # Insert the option either (1) after the last *FLAGS variable, or
17038 # (2) before a word containing "conftest.", or (3) at the end.
17039 # Note that $ac_compile itself does not contain backslashes and begins
17040 # with a dollar sign (not a hyphen), so the echo should work correctly.
17041 lt_compile=`echo "$ac_compile" | $SED \
17042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17044 -e 's:$: $lt_compiler_flag:'`
17045 (eval echo "\"\$as_me:17045: $lt_compile\"" >&5)
17046 (eval "$lt_compile" 2>out/conftest.err)
17048 cat out/conftest.err >&5
17049 echo "$as_me:17049: \$? = $ac_status" >&5
17050 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17052 # The compiler can only warn and ignore the option if not recognized
17053 # So say no if there are warnings
17054 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17055 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17056 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17057 lt_cv_prog_compiler_c_o_GCJ=yes
17062 # SGI C++ compiler will create directory out/ii_files/ for
17063 # template instantiation
17064 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17065 $rm out/* && rmdir out
17071 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17072 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17075 hard_links="nottested"
17076 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17077 # do not overwrite the value of need_locks provided by the user
17078 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17079 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17082 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17084 ln conftest.a conftest.b 2>&5 || hard_links=no
17085 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17086 echo "$as_me:$LINENO: result: $hard_links" >&5
17087 echo "${ECHO_T}$hard_links" >&6
17088 if test "$hard_links" = no; then
17089 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17090 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17097 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17098 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17101 allow_undefined_flag_GCJ=
17102 enable_shared_with_static_runtimes_GCJ=no
17104 archive_expsym_cmds_GCJ=
17105 old_archive_From_new_cmds_GCJ=
17106 old_archive_from_expsyms_cmds_GCJ=
17107 export_dynamic_flag_spec_GCJ=
17108 whole_archive_flag_spec_GCJ=
17109 thread_safe_flag_spec_GCJ=
17110 hardcode_libdir_flag_spec_GCJ=
17111 hardcode_libdir_flag_spec_ld_GCJ=
17112 hardcode_libdir_separator_GCJ=
17113 hardcode_direct_GCJ=no
17114 hardcode_minus_L_GCJ=no
17115 hardcode_shlibpath_var_GCJ=unsupported
17116 link_all_deplibs_GCJ=unknown
17117 hardcode_automatic_GCJ=no
17119 module_expsym_cmds_GCJ=
17120 always_export_symbols_GCJ=no
17121 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17122 # include_expsyms should be a list of space-separated symbols to be *always*
17123 # included in the symbol list
17124 include_expsyms_GCJ=
17125 # exclude_expsyms can be an extended regexp of symbols to exclude
17126 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17127 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17128 # as well as any symbol that contains `d'.
17129 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17130 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17131 # platforms (ab)use it in PIC code, but their linkers get confused if
17132 # the symbol is explicitly referenced. Since portable code cannot
17133 # rely on this symbol name, it's probably fine to never include it in
17134 # preloaded symbol tables.
17135 extract_expsyms_cmds=
17136 # Just being paranoid about ensuring that cc_basename is set.
17137 for cc_temp in $compiler""; do
17139 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17140 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17145 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17148 cygwin* | mingw* | pw32*)
17149 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17150 # When not using gcc, we currently assume that we are using
17151 # Microsoft Visual C++.
17152 if test "$GCC" != yes; then
17157 # we just hope/assume this is gcc and not c89 (= MSVC++)
17166 if test "$with_gnu_ld" = yes; then
17167 # If archive_cmds runs LD, not CC, wlarc should be empty
17170 # Set some defaults for GNU ld with shared library support. These
17171 # are reset later if shared libraries are not supported. Putting them
17172 # here allows them to be overridden if necessary.
17173 runpath_var=LD_RUN_PATH
17174 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17175 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17176 # ancient GNU ld didn't support --whole-archive et. al.
17177 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17178 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17180 whole_archive_flag_spec_GCJ=
17182 supports_anon_versioning=no
17183 case `$LD -v 2>/dev/null` in
17184 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17185 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17186 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17187 *\ 2.11.*) ;; # other 2.11 versions
17188 *) supports_anon_versioning=yes ;;
17191 # See if GNU ld supports shared libraries.
17193 aix3* | aix4* | aix5*)
17194 # On AIX/PPC, the GNU linker is very broken
17195 if test "$host_cpu" != ia64; then
17199 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17200 *** to be unable to reliably create shared libraries on AIX.
17201 *** Therefore, libtool is disabling shared libraries support. If you
17202 *** really care for shared libraries, you may want to modify your PATH
17203 *** so that a non-GNU linker is found, and then restart.
17210 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)'
17211 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17212 hardcode_minus_L_GCJ=yes
17214 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17215 # that the semantics of dynamic libraries on AmigaOS, at least up
17216 # to version 4, is to share data among multiple programs linked
17217 # with the same dynamic library. Since this doesn't match the
17218 # behavior of shared libraries on other platforms, we can't use
17224 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17225 allow_undefined_flag_GCJ=unsupported
17226 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17227 # support --undefined. This deserves some investigation. FIXME
17228 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17234 cygwin* | mingw* | pw32*)
17235 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17236 # as there is no search path for DLLs.
17237 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17238 allow_undefined_flag_GCJ=unsupported
17239 always_export_symbols_GCJ=no
17240 enable_shared_with_static_runtimes_GCJ=yes
17241 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17243 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17244 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17245 # If the export-symbols file already is a .def file (1st line
17246 # is EXPORTS), use it as is; otherwise, prepend...
17247 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17248 cp $export_symbols $output_objdir/$soname.def;
17250 echo EXPORTS > $output_objdir/$soname.def;
17251 cat $export_symbols >> $output_objdir/$soname.def;
17253 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17260 hardcode_direct_GCJ=no
17261 hardcode_shlibpath_var_GCJ=no
17262 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17263 export_dynamic_flag_spec_GCJ='${wl}-E'
17264 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17265 # Instead, shared libraries are loaded at an image base (0x10000000 by
17266 # default) and relocated if they conflict, which is a slow very memory
17267 # consuming and fragmenting process. To avoid this, we pick a random,
17268 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17269 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17270 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17271 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17274 linux* | k*bsd*-gnu)
17275 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17277 case $cc_basename,$host_cpu in
17278 pgcc*) # Portland Group C compiler
17279 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17280 tmp_addflag=' $pic_flag'
17282 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17283 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17284 tmp_addflag=' $pic_flag -Mnomain' ;;
17285 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17286 tmp_addflag=' -i_dynamic' ;;
17287 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17288 tmp_addflag=' -i_dynamic -nofor_main' ;;
17289 ifc* | ifort*) # Intel Fortran compiler
17290 tmp_addflag=' -nofor_main' ;;
17292 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17294 if test $supports_anon_versioning = yes; then
17295 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17296 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17297 $echo "local: *; };" >> $output_objdir/$libname.ver~
17298 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17300 link_all_deplibs_GCJ=no
17306 netbsd* | netbsdelf*-gnu)
17307 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17308 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17311 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17312 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17317 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17321 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17322 *** create shared libraries on Solaris systems. Therefore, libtool
17323 *** is disabling shared libraries support. We urge you to upgrade GNU
17324 *** binutils to release 2.9.1 or newer. Another option is to modify
17325 *** your PATH or compiler configuration so that the native linker is
17326 *** used, and then restart.
17329 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17330 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17331 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17337 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17338 case `$LD -v 2>&1` in
17339 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17343 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17344 *** reliably create shared libraries on SCO systems. Therefore, libtool
17345 *** is disabling shared libraries support. We urge you to upgrade GNU
17346 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17347 *** your PATH or compiler configuration so that the native linker is
17348 *** used, and then restart.
17353 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17354 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17355 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17356 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17365 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17367 hardcode_direct_GCJ=yes
17368 hardcode_shlibpath_var_GCJ=no
17372 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17373 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17374 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17381 if test "$ld_shlibs_GCJ" = no; then
17383 hardcode_libdir_flag_spec_GCJ=
17384 export_dynamic_flag_spec_GCJ=
17385 whole_archive_flag_spec_GCJ=
17388 # PORTME fill in a description of your system's linker (not GNU ld)
17391 allow_undefined_flag_GCJ=unsupported
17392 always_export_symbols_GCJ=yes
17393 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'
17394 # Note: this linker hardcodes the directories in LIBPATH if there
17395 # are no directories specified by -L.
17396 hardcode_minus_L_GCJ=yes
17397 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17398 # Neither direct hardcoding nor static linking is supported with a
17400 hardcode_direct_GCJ=unsupported
17405 if test "$host_cpu" = ia64; then
17406 # On IA64, the linker does run time linking by default, so we don't
17407 # have to do anything special.
17408 aix_use_runtimelinking=no
17409 exp_sym_flag='-Bexport'
17412 # If we're using GNU nm, then we don't want the "-C" option.
17413 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17414 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17415 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'
17417 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'
17419 aix_use_runtimelinking=no
17421 # Test if we are trying to use run time linking or normal
17422 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17423 # need to do runtime linking.
17424 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17425 for ld_flag in $LDFLAGS; do
17426 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17427 aix_use_runtimelinking=yes
17434 exp_sym_flag='-bexport'
17435 no_entry_flag='-bnoentry'
17438 # When large executables or shared objects are built, AIX ld can
17439 # have problems creating the table of contents. If linking a library
17440 # or program results in "error TOC overflow" add -mminimal-toc to
17441 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17442 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17444 archive_cmds_GCJ=''
17445 hardcode_direct_GCJ=yes
17446 hardcode_libdir_separator_GCJ=':'
17447 link_all_deplibs_GCJ=yes
17449 if test "$GCC" = yes; then
17450 case $host_os in aix4.[012]|aix4.[012].*)
17451 # We only want to do this on AIX 4.2 and lower, the check
17452 # below for broken collect2 doesn't work under 4.3+
17453 collect2name=`${CC} -print-prog-name=collect2`
17454 if test -f "$collect2name" && \
17455 strings "$collect2name" | grep resolve_lib_name >/dev/null
17457 # We have reworked collect2
17458 hardcode_direct_GCJ=yes
17460 # We have old collect2
17461 hardcode_direct_GCJ=unsupported
17462 # It fails to find uninstalled libraries when the uninstalled
17463 # path is not listed in the libpath. Setting hardcode_minus_L
17464 # to unsupported forces relinking
17465 hardcode_minus_L_GCJ=yes
17466 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17467 hardcode_libdir_separator_GCJ=
17471 shared_flag='-shared'
17472 if test "$aix_use_runtimelinking" = yes; then
17473 shared_flag="$shared_flag "'${wl}-G'
17477 if test "$host_cpu" = ia64; then
17478 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17479 # chokes on -Wl,-G. The following line is correct:
17482 if test "$aix_use_runtimelinking" = yes; then
17483 shared_flag='${wl}-G'
17485 shared_flag='${wl}-bM:SRE'
17490 # It seems that -bexpall does not export symbols beginning with
17491 # underscore (_), so it is better to generate a list of symbols to export.
17492 always_export_symbols_GCJ=yes
17493 if test "$aix_use_runtimelinking" = yes; then
17494 # Warning - without using the other runtime loading flags (-brtl),
17495 # -berok will link without error, but may produce a broken library.
17496 allow_undefined_flag_GCJ='-berok'
17497 # Determine the default libpath from the value encoded in an empty executable.
17498 cat >conftest.$ac_ext <<_ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17513 rm -f conftest.$ac_objext conftest$ac_exeext
17514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17515 (eval $ac_link) 2>conftest.er1
17517 grep -v '^ *+' conftest.er1 >conftest.err
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } &&
17522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; } &&
17528 { ac_try='test -s conftest$ac_exeext'
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; }; then
17535 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17537 # Check for a 64-bit object if we didn't find anything.
17538 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; }
17541 echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17545 rm -f conftest.err conftest.$ac_objext \
17546 conftest$ac_exeext conftest.$ac_ext
17547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17549 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17550 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17552 if test "$host_cpu" = ia64; then
17553 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17554 allow_undefined_flag_GCJ="-z nodefs"
17555 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17557 # Determine the default libpath from the value encoded in an empty executable.
17558 cat >conftest.$ac_ext <<_ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17573 rm -f conftest.$ac_objext conftest$ac_exeext
17574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17575 (eval $ac_link) 2>conftest.er1
17577 grep -v '^ *+' conftest.er1 >conftest.err
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } &&
17582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; } &&
17588 { ac_try='test -s conftest$ac_exeext'
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; }; then
17595 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17597 # Check for a 64-bit object if we didn't find anything.
17598 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; }
17601 echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17605 rm -f conftest.err conftest.$ac_objext \
17606 conftest$ac_exeext conftest.$ac_ext
17607 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17609 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17610 # Warning - without using the other run time loading flags,
17611 # -berok will link without error, but may produce a broken library.
17612 no_undefined_flag_GCJ=' ${wl}-bernotok'
17613 allow_undefined_flag_GCJ=' ${wl}-berok'
17614 # Exported symbols can be pulled into shared objects from archives
17615 whole_archive_flag_spec_GCJ='$convenience'
17616 archive_cmds_need_lc_GCJ=yes
17617 # This is similar to how AIX traditionally builds its shared libraries.
17618 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17624 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)'
17625 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17626 hardcode_minus_L_GCJ=yes
17627 # see comment about different semantics on the GNU ld section
17632 export_dynamic_flag_spec_GCJ=-rdynamic
17635 cygwin* | mingw* | pw32*)
17636 # When not using gcc, we currently assume that we are using
17637 # Microsoft Visual C++.
17638 # hardcode_libdir_flag_spec is actually meaningless, as there is
17639 # no search path for DLLs.
17640 hardcode_libdir_flag_spec_GCJ=' '
17641 allow_undefined_flag_GCJ=unsupported
17642 # Tell ltmain to make .lib files, not .a files.
17644 # Tell ltmain to make .dll files, not .so files.
17646 # FIXME: Setting linknames here is a bad hack.
17647 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17648 # The linker will automatically build a .lib file if we build a DLL.
17649 old_archive_From_new_cmds_GCJ='true'
17650 # FIXME: Should let the user specify the lib program.
17651 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17652 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17653 enable_shared_with_static_runtimes_GCJ=yes
17656 darwin* | rhapsody*)
17658 rhapsody* | darwin1.[012])
17659 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17662 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17663 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17665 case ${MACOSX_DEPLOYMENT_TARGET} in
17667 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17670 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17676 archive_cmds_need_lc_GCJ=no
17677 hardcode_direct_GCJ=no
17678 hardcode_automatic_GCJ=yes
17679 hardcode_shlibpath_var_GCJ=unsupported
17680 whole_archive_flag_spec_GCJ=''
17681 link_all_deplibs_GCJ=yes
17682 if test "$GCC" = yes ; then
17683 output_verbose_link_cmd='echo'
17684 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17685 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17686 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17687 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17688 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}'
17690 case $cc_basename in
17692 output_verbose_link_cmd='echo'
17693 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17694 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17695 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17696 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17697 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}'
17707 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17708 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17709 hardcode_shlibpath_var_GCJ=no
17716 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17717 # support. Future versions do this automatically, but an explicit c++rt0.o
17718 # does not break anything, and helps significantly (at the cost of a little
17721 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17722 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17723 hardcode_direct_GCJ=yes
17724 hardcode_shlibpath_var_GCJ=no
17727 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17729 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17730 hardcode_direct_GCJ=yes
17731 hardcode_minus_L_GCJ=yes
17732 hardcode_shlibpath_var_GCJ=no
17735 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17736 freebsd* | dragonfly*)
17737 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17738 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17739 hardcode_direct_GCJ=yes
17740 hardcode_shlibpath_var_GCJ=no
17744 if test "$GCC" = yes; then
17745 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'
17747 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'
17749 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17750 hardcode_libdir_separator_GCJ=:
17751 hardcode_direct_GCJ=yes
17753 # hardcode_minus_L: Not really in the search PATH,
17754 # but as the default location of the library.
17755 hardcode_minus_L_GCJ=yes
17756 export_dynamic_flag_spec_GCJ='${wl}-E'
17760 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17761 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17763 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17765 if test "$with_gnu_ld" = no; then
17766 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17767 hardcode_libdir_separator_GCJ=:
17769 hardcode_direct_GCJ=yes
17770 export_dynamic_flag_spec_GCJ='${wl}-E'
17772 # hardcode_minus_L: Not really in the search PATH,
17773 # but as the default location of the library.
17774 hardcode_minus_L_GCJ=yes
17779 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17782 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17785 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17788 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17794 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17797 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17800 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17804 if test "$with_gnu_ld" = no; then
17805 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17806 hardcode_libdir_separator_GCJ=:
17810 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17811 hardcode_direct_GCJ=no
17812 hardcode_shlibpath_var_GCJ=no
17815 hardcode_direct_GCJ=yes
17816 export_dynamic_flag_spec_GCJ='${wl}-E'
17818 # hardcode_minus_L: Not really in the search PATH,
17819 # but as the default location of the library.
17820 hardcode_minus_L_GCJ=yes
17826 irix5* | irix6* | nonstopux*)
17827 if test "$GCC" = yes; then
17828 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'
17830 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'
17831 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17833 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17834 hardcode_libdir_separator_GCJ=:
17835 link_all_deplibs_GCJ=yes
17838 netbsd* | netbsdelf*-gnu)
17839 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17840 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17842 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17844 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17845 hardcode_direct_GCJ=yes
17846 hardcode_shlibpath_var_GCJ=no
17850 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17851 hardcode_direct_GCJ=yes
17852 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17853 hardcode_libdir_separator_GCJ=:
17854 hardcode_shlibpath_var_GCJ=no
17858 hardcode_direct_GCJ=yes
17859 hardcode_shlibpath_var_GCJ=no
17860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17861 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17862 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17863 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17864 export_dynamic_flag_spec_GCJ='${wl}-E'
17867 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17868 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17869 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17872 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17873 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17880 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17881 hardcode_minus_L_GCJ=yes
17882 allow_undefined_flag_GCJ=unsupported
17883 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'
17884 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17888 if test "$GCC" = yes; then
17889 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17890 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'
17892 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17893 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'
17895 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17896 hardcode_libdir_separator_GCJ=:
17899 osf4* | osf5*) # as osf3* with the addition of -msym flag
17900 if test "$GCC" = yes; then
17901 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17902 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'
17903 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17905 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17906 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'
17907 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~
17908 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17910 # Both c and cxx compiler support -rpath directly
17911 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17913 hardcode_libdir_separator_GCJ=:
17917 no_undefined_flag_GCJ=' -z text'
17918 if test "$GCC" = yes; then
17920 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17921 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17922 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17925 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17926 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17927 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17929 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17930 hardcode_shlibpath_var_GCJ=no
17932 solaris2.[0-5] | solaris2.[0-5].*) ;;
17934 # The compiler driver will combine linker options so we
17935 # cannot just pass the convience library names through
17936 # without $wl, iff we do not link with $LD.
17937 # Luckily, gcc supports the same syntax we need for Sun Studio.
17938 # Supported since Solaris 2.6 (maybe 2.5.1?)
17941 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17943 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17946 link_all_deplibs_GCJ=yes
17950 if test "x$host_vendor" = xsequent; then
17951 # Use $CC to link under sequent, because it throws in some extra .o
17952 # files that make .init and .fini sections work.
17953 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17955 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17957 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17958 hardcode_direct_GCJ=yes
17959 hardcode_minus_L_GCJ=yes
17960 hardcode_shlibpath_var_GCJ=no
17964 case $host_vendor in
17966 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17967 hardcode_direct_GCJ=yes # is this really true???
17970 ## LD is ld it makes a PLAMLIB
17971 ## CC just makes a GrossModule.
17972 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17973 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17974 hardcode_direct_GCJ=no
17977 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17978 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17981 runpath_var='LD_RUN_PATH'
17982 hardcode_shlibpath_var_GCJ=no
17986 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17987 hardcode_shlibpath_var_GCJ=no
17988 export_dynamic_flag_spec_GCJ='-Bexport'
17992 if test -d /usr/nec; then
17993 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17994 hardcode_shlibpath_var_GCJ=no
17995 runpath_var=LD_RUN_PATH
17996 hardcode_runpath_var=yes
18001 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18002 no_undefined_flag_GCJ='${wl}-z,text'
18003 archive_cmds_need_lc_GCJ=no
18004 hardcode_shlibpath_var_GCJ=no
18005 runpath_var='LD_RUN_PATH'
18007 if test "$GCC" = yes; then
18008 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18009 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18011 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18012 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18016 sysv5* | sco3.2v5* | sco5v6*)
18017 # Note: We can NOT use -z defs as we might desire, because we do not
18018 # link with -lc, and that would cause any symbols used from libc to
18019 # always be unresolved, which means just about no library would
18020 # ever link correctly. If we're not using GNU ld we use -z text
18021 # though, which does catch some bad symbols but isn't as heavy-handed
18023 no_undefined_flag_GCJ='${wl}-z,text'
18024 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18025 archive_cmds_need_lc_GCJ=no
18026 hardcode_shlibpath_var_GCJ=no
18027 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18028 hardcode_libdir_separator_GCJ=':'
18029 link_all_deplibs_GCJ=yes
18030 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18031 runpath_var='LD_RUN_PATH'
18033 if test "$GCC" = yes; then
18034 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18035 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18037 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18038 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18043 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18044 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18045 hardcode_shlibpath_var_GCJ=no
18054 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18055 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18056 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18059 # Do we need to explicitly link libc?
18061 case "x$archive_cmds_need_lc_GCJ" in
18063 # Assume -lc should be added
18064 archive_cmds_need_lc_GCJ=yes
18066 if test "$enable_shared" = yes && test "$GCC" = yes; then
18067 case $archive_cmds_GCJ in
18069 # FIXME: we may have to deal with multi-command sequences.
18072 # Test whether the compiler implicitly links with -lc since on some
18073 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18074 # to ld, don't add -lc before -lgcc.
18075 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18076 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18078 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18081 (eval $ac_compile) 2>&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } 2>conftest.err; then
18087 libobjs=conftest.$ac_objext
18089 wl=$lt_prog_compiler_wl_GCJ
18090 pic_flag=$lt_prog_compiler_pic_GCJ
18096 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18097 allow_undefined_flag_GCJ=
18098 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18099 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }
18104 archive_cmds_need_lc_GCJ=no
18106 archive_cmds_need_lc_GCJ=yes
18108 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18110 cat conftest.err 1>&5
18113 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18114 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18121 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18122 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18123 library_names_spec=
18124 libname_spec='lib$name'
18128 postuninstall_cmds=
18132 shlibpath_overrides_runpath=unknown
18134 dynamic_linker="$host_os ld.so"
18135 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18136 if test "$GCC" = yes; then
18137 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18138 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18139 # if the path contains ";" then we assume it to be the separator
18140 # otherwise default to the standard path separator (i.e. ":") - it is
18141 # assumed that no part of a normal pathname contains ";" but that should
18142 # okay in the real world where ";" in dirpaths is itself problematic.
18143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18148 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18150 need_lib_prefix=unknown
18151 hardcode_into_libs=no
18153 # when you set need_version to no, make sure it does not cause -set_version
18154 # flags to be left without arguments
18155 need_version=unknown
18160 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18161 shlibpath_var=LIBPATH
18163 # AIX 3 has no versioning support, so we append a major version to the name.
18164 soname_spec='${libname}${release}${shared_ext}$major'
18171 hardcode_into_libs=yes
18172 if test "$host_cpu" = ia64; then
18173 # AIX 5 supports IA64
18174 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18175 shlibpath_var=LD_LIBRARY_PATH
18177 # With GCC up to 2.95.x, collect2 would create an import file
18178 # for dependence libraries. The import file would start with
18179 # the line `#! .'. This would cause the generated library to
18180 # depend on `.', always an invalid library. This was fixed in
18181 # development snapshots of GCC prior to 3.0.
18183 aix4 | aix4.[01] | aix4.[01].*)
18184 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18186 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18189 can_build_shared=no
18193 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18194 # soname into executable. Probably we can add versioning support to
18195 # collect2, so additional links can be useful in future.
18196 if test "$aix_use_runtimelinking" = yes; then
18197 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18198 # instead of lib<name>.a to let people know that these are not
18199 # typical AIX shared libraries.
18200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18202 # We preserve .a as extension for shared libraries through AIX4.2
18203 # and later when we are not doing run time linking.
18204 library_names_spec='${libname}${release}.a $libname.a'
18205 soname_spec='${libname}${release}${shared_ext}$major'
18207 shlibpath_var=LIBPATH
18212 library_names_spec='$libname.ixlibrary $libname.a'
18213 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18214 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'
18218 library_names_spec='${libname}${shared_ext}'
18219 dynamic_linker="$host_os ld.so"
18220 shlibpath_var=LIBRARY_PATH
18226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18227 soname_spec='${libname}${release}${shared_ext}$major'
18228 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18229 shlibpath_var=LD_LIBRARY_PATH
18230 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18231 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18232 # the default ld.so.conf also contains /usr/contrib/lib and
18233 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18234 # libtool to hard-code these into programs
18237 cygwin* | mingw* | pw32*)
18238 version_type=windows
18243 case $GCC,$host_os in
18244 yes,cygwin* | yes,mingw* | yes,pw32*)
18245 library_names_spec='$libname.dll.a'
18246 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18247 postinstall_cmds='base_file=`basename \${file}`~
18248 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18249 dldir=$destdir/`dirname \$dlpath`~
18250 test -d \$dldir || mkdir -p \$dldir~
18251 $install_prog $dir/$dlname \$dldir/$dlname~
18252 chmod a+x \$dldir/$dlname'
18253 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18254 dlpath=$dir/\$dldll~
18256 shlibpath_overrides_runpath=yes
18260 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18261 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18262 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18265 # MinGW DLLs use traditional 'lib' prefix
18266 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18267 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18268 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18269 # It is most probably a Windows format PATH printed by
18270 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18271 # path with ; separators, and with drive letters. We can handle the
18272 # drive letters (cygwin fileutils understands them), so leave them,
18273 # especially as we might pass files found there to a mingw objdump,
18274 # which wouldn't understand a cygwinified path. Ahh.
18275 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18277 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18281 # pw32 DLLs use 'pw' prefix rather than 'lib'
18282 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18288 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18291 dynamic_linker='Win32 ld.exe'
18292 # FIXME: first we should search . and the directory the executable is in
18296 darwin* | rhapsody*)
18297 dynamic_linker="$host_os dyld"
18298 version_type=darwin
18301 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18302 soname_spec='${libname}${release}${major}$shared_ext'
18303 shlibpath_overrides_runpath=yes
18304 shlibpath_var=DYLD_LIBRARY_PATH
18305 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18306 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18307 if test "$GCC" = yes; then
18308 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"`
18310 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18312 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18320 soname_spec='${libname}${release}${shared_ext}$major'
18321 shlibpath_var=LD_LIBRARY_PATH
18328 freebsd* | dragonfly*)
18329 # DragonFly does not have aout. When/if they implement a new
18330 # versioning mechanism, adjust this.
18331 if test -x /usr/bin/objformat; then
18332 objformat=`/usr/bin/objformat`
18335 freebsd[123]*) objformat=aout ;;
18336 *) objformat=elf ;;
18339 version_type=freebsd-$objformat
18340 case $version_type in
18342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18347 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18351 shlibpath_var=LD_LIBRARY_PATH
18354 shlibpath_overrides_runpath=yes
18356 freebsd3.[01]* | freebsdelf3.[01]*)
18357 shlibpath_overrides_runpath=yes
18358 hardcode_into_libs=yes
18360 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18361 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18362 shlibpath_overrides_runpath=no
18363 hardcode_into_libs=yes
18365 freebsd*) # from 4.6 on
18366 shlibpath_overrides_runpath=yes
18367 hardcode_into_libs=yes
18376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18377 soname_spec='${libname}${release}${shared_ext}$major'
18378 shlibpath_var=LD_LIBRARY_PATH
18379 hardcode_into_libs=yes
18382 hpux9* | hpux10* | hpux11*)
18383 # Give a soname corresponding to the major version so that dld.sl refuses to
18384 # link against other versions.
18391 hardcode_into_libs=yes
18392 dynamic_linker="$host_os dld.so"
18393 shlibpath_var=LD_LIBRARY_PATH
18394 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18396 soname_spec='${libname}${release}${shared_ext}$major'
18397 if test "X$HPUX_IA64_MODE" = X32; then
18398 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18400 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18402 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18406 hardcode_into_libs=yes
18407 dynamic_linker="$host_os dld.sl"
18408 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18409 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18411 soname_spec='${libname}${release}${shared_ext}$major'
18412 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18413 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18417 dynamic_linker="$host_os dld.sl"
18418 shlibpath_var=SHLIB_PATH
18419 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18421 soname_spec='${libname}${release}${shared_ext}$major'
18424 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18425 postinstall_cmds='chmod 555 $lib'
18432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18433 soname_spec='${libname}${release}${shared_ext}$major'
18434 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18435 shlibpath_var=LD_LIBRARY_PATH
18436 shlibpath_overrides_runpath=no
18437 hardcode_into_libs=yes
18440 irix5* | irix6* | nonstopux*)
18442 nonstopux*) version_type=nonstopux ;;
18444 if test "$lt_cv_prog_gnu_ld" = yes; then
18452 soname_spec='${libname}${release}${shared_ext}$major'
18453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18455 irix5* | nonstopux*)
18456 libsuff= shlibsuff=
18459 case $LD in # libtool.m4 will add one of these switches to LD
18460 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18461 libsuff= shlibsuff= libmagic=32-bit;;
18462 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18463 libsuff=32 shlibsuff=N32 libmagic=N32;;
18464 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18465 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18466 *) libsuff= shlibsuff= libmagic=never-match;;
18470 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18471 shlibpath_overrides_runpath=no
18472 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18473 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18474 hardcode_into_libs=yes
18477 # No shared lib support for Linux oldld, aout, or coff.
18478 linux*oldld* | linux*aout* | linux*coff*)
18482 # This must be Linux ELF.
18483 linux* | k*bsd*-gnu)
18487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18488 soname_spec='${libname}${release}${shared_ext}$major'
18489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18490 shlibpath_var=LD_LIBRARY_PATH
18491 shlibpath_overrides_runpath=no
18492 # This implies no fast_install, which is unacceptable.
18493 # Some rework will be needed to allow for fast_install
18494 # before this can be enabled.
18495 hardcode_into_libs=yes
18497 # Append ld.so.conf contents to the search path
18498 if test -f /etc/ld.so.conf; then
18499 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18500 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18503 # We used to test for /lib/ld.so.1 and disable shared libraries on
18504 # powerpc, because MkLinux only supported shared libraries with the
18505 # GNU dynamic linker. Since this was broken with cross compilers,
18506 # most powerpc-linux boxes support dynamic linking these days and
18507 # people can always --disable-shared, the test was removed, and we
18508 # assume the GNU/Linux dynamic linker is in use.
18509 dynamic_linker='GNU/Linux ld.so'
18516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18517 soname_spec='${libname}${release}${shared_ext}$major'
18518 shlibpath_var=LD_LIBRARY_PATH
18519 shlibpath_overrides_runpath=no
18520 hardcode_into_libs=yes
18521 dynamic_linker='NetBSD ld.elf_so'
18528 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18531 dynamic_linker='NetBSD (a.out) ld.so'
18533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18534 soname_spec='${libname}${release}${shared_ext}$major'
18535 dynamic_linker='NetBSD ld.elf_so'
18537 shlibpath_var=LD_LIBRARY_PATH
18538 shlibpath_overrides_runpath=yes
18539 hardcode_into_libs=yes
18544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18545 shlibpath_var=LD_LIBRARY_PATH
18546 shlibpath_overrides_runpath=yes
18553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18554 soname_spec='${libname}${release}${shared_ext}$major'
18555 shlibpath_var=LD_LIBRARY_PATH
18556 shlibpath_overrides_runpath=yes
18561 sys_lib_dlsearch_path_spec="/usr/lib"
18563 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18565 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18566 *) need_version=no ;;
18568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18569 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18570 shlibpath_var=LD_LIBRARY_PATH
18571 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18573 openbsd2.[89] | openbsd2.[89].*)
18574 shlibpath_overrides_runpath=no
18577 shlibpath_overrides_runpath=yes
18581 shlibpath_overrides_runpath=yes
18586 libname_spec='$name'
18589 library_names_spec='$libname${shared_ext} $libname.a'
18590 dynamic_linker='OS/2 ld.exe'
18591 shlibpath_var=LIBPATH
18594 osf3* | osf4* | osf5*)
18598 soname_spec='${libname}${release}${shared_ext}$major'
18599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18600 shlibpath_var=LD_LIBRARY_PATH
18601 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18602 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18610 soname_spec='${libname}${release}${shared_ext}$major'
18611 shlibpath_var=LD_LIBRARY_PATH
18612 shlibpath_overrides_runpath=yes
18613 hardcode_into_libs=yes
18614 # ldd complains unless libraries are executable
18615 postinstall_cmds='chmod +x $lib'
18620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18621 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18622 shlibpath_var=LD_LIBRARY_PATH
18623 shlibpath_overrides_runpath=yes
18624 if test "$with_gnu_ld" = yes; then
18632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18633 soname_spec='${libname}${release}${shared_ext}$major'
18634 shlibpath_var=LD_LIBRARY_PATH
18635 case $host_vendor in
18637 shlibpath_overrides_runpath=no
18639 export_dynamic_flag_spec='${wl}-Blargedynsym'
18640 runpath_var=LD_RUN_PATH
18648 shlibpath_overrides_runpath=no
18649 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18655 if test -d /usr/nec ;then
18657 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18658 soname_spec='$libname${shared_ext}.$major'
18659 shlibpath_var=LD_LIBRARY_PATH
18663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18664 version_type=freebsd-elf
18667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18668 soname_spec='${libname}${release}${shared_ext}$major'
18669 shlibpath_var=LD_LIBRARY_PATH
18670 hardcode_into_libs=yes
18671 if test "$with_gnu_ld" = yes; then
18672 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18673 shlibpath_overrides_runpath=no
18675 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18676 shlibpath_overrides_runpath=yes
18679 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18683 sys_lib_dlsearch_path_spec='/usr/lib'
18688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18689 soname_spec='${libname}${release}${shared_ext}$major'
18690 shlibpath_var=LD_LIBRARY_PATH
18697 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18698 echo "${ECHO_T}$dynamic_linker" >&6
18699 test "$dynamic_linker" = no && can_build_shared=no
18701 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18702 if test "$GCC" = yes; then
18703 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18706 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18707 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18708 hardcode_action_GCJ=
18709 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18710 test -n "$runpath_var_GCJ" || \
18711 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18713 # We can hardcode non-existant directories.
18714 if test "$hardcode_direct_GCJ" != no &&
18715 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18716 # have to relink, otherwise we might link with an installed library
18717 # when we should be linking with a yet-to-be-installed one
18718 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18719 test "$hardcode_minus_L_GCJ" != no; then
18720 # Linking always hardcodes the temporary library directory.
18721 hardcode_action_GCJ=relink
18723 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18724 hardcode_action_GCJ=immediate
18727 # We cannot hardcode anything, or else we can only hardcode existing
18729 hardcode_action_GCJ=unsupported
18731 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18732 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18734 if test "$hardcode_action_GCJ" = relink; then
18735 # Fast installation is not supported
18736 enable_fast_install=no
18737 elif test "$shlibpath_overrides_runpath" = yes ||
18738 test "$enable_shared" = no; then
18739 # Fast installation is not necessary
18740 enable_fast_install=needless
18744 # The else clause should only fire when bootstrapping the
18745 # libtool distribution, otherwise you forgot to ship ltmain.sh
18746 # with your package, and you will get complaints that there are
18747 # no rules to generate ltmain.sh.
18748 if test -f "$ltmain"; then
18749 # See if we are running on zsh, and set the options which allow our commands through
18750 # without removal of \ escapes.
18751 if test -n "${ZSH_VERSION+set}" ; then
18752 setopt NO_GLOB_SUBST
18754 # Now quote all the things that may contain metacharacters while being
18755 # careful not to overquote the AC_SUBSTed values. We take copies of the
18756 # variables and quote the copies for generation of the libtool script.
18757 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18759 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18760 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18761 deplibs_check_method reload_flag reload_cmds need_locks \
18762 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18763 lt_cv_sys_global_symbol_to_c_name_address \
18764 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18765 old_postinstall_cmds old_postuninstall_cmds \
18769 lt_prog_compiler_wl_GCJ \
18770 lt_prog_compiler_pic_GCJ \
18771 lt_prog_compiler_static_GCJ \
18772 lt_prog_compiler_no_builtin_flag_GCJ \
18773 export_dynamic_flag_spec_GCJ \
18774 thread_safe_flag_spec_GCJ \
18775 whole_archive_flag_spec_GCJ \
18776 enable_shared_with_static_runtimes_GCJ \
18777 old_archive_cmds_GCJ \
18778 old_archive_from_new_cmds_GCJ \
18779 predep_objects_GCJ \
18780 postdep_objects_GCJ \
18783 compiler_lib_search_path_GCJ \
18785 archive_expsym_cmds_GCJ \
18786 postinstall_cmds_GCJ \
18787 postuninstall_cmds_GCJ \
18788 old_archive_from_expsyms_cmds_GCJ \
18789 allow_undefined_flag_GCJ \
18790 no_undefined_flag_GCJ \
18791 export_symbols_cmds_GCJ \
18792 hardcode_libdir_flag_spec_GCJ \
18793 hardcode_libdir_flag_spec_ld_GCJ \
18794 hardcode_libdir_separator_GCJ \
18795 hardcode_automatic_GCJ \
18797 module_expsym_cmds_GCJ \
18798 lt_cv_prog_compiler_c_o_GCJ \
18799 exclude_expsyms_GCJ \
18800 include_expsyms_GCJ; do
18803 old_archive_cmds_GCJ | \
18804 old_archive_from_new_cmds_GCJ | \
18805 archive_cmds_GCJ | \
18806 archive_expsym_cmds_GCJ | \
18807 module_cmds_GCJ | \
18808 module_expsym_cmds_GCJ | \
18809 old_archive_from_expsyms_cmds_GCJ | \
18810 export_symbols_cmds_GCJ | \
18811 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18812 postinstall_cmds | postuninstall_cmds | \
18813 old_postinstall_cmds | old_postuninstall_cmds | \
18814 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18815 # Double-quote double-evaled strings.
18816 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18819 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18825 *'\$0 --fallback-echo"')
18826 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18832 cat <<__EOF__ >> "$cfgfile"
18833 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18835 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18837 # Shell to use when invoking shell scripts.
18840 # Whether or not to build shared libraries.
18841 build_libtool_libs=$enable_shared
18843 # Whether or not to build static libraries.
18844 build_old_libs=$enable_static
18846 # Whether or not to add -lc for building shared libraries.
18847 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18849 # Whether or not to disallow shared libs when runtime libs are static
18850 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18852 # Whether or not to optimize for fast installation.
18853 fast_install=$enable_fast_install
18856 host_alias=$host_alias
18860 # The build system.
18861 build_alias=$build_alias
18865 # An echo program that does not interpret backslashes.
18870 AR_FLAGS=$lt_AR_FLAGS
18875 # LTCC compiler flags.
18876 LTCFLAGS=$lt_LTCFLAGS
18878 # A language-specific compiler.
18879 CC=$lt_compiler_GCJ
18881 # Is the compiler the GNU C compiler?
18887 # The linker used to build libraries.
18890 # Whether we need hard or soft links.
18893 # A BSD-compatible nm program.
18896 # A symbol stripping program
18899 # Used to examine libraries when file_magic_cmd begins "file"
18900 MAGIC_CMD=$MAGIC_CMD
18902 # Used on cygwin: DLL creation program.
18905 # Used on cygwin: object dumper.
18908 # Used on cygwin: assembler.
18911 # The name of the directory that contains temporary libtool files.
18914 # How to create reloadable object files.
18915 reload_flag=$lt_reload_flag
18916 reload_cmds=$lt_reload_cmds
18918 # How to pass a linker flag through the compiler.
18919 wl=$lt_lt_prog_compiler_wl_GCJ
18921 # Object file suffix (normally "o").
18922 objext="$ac_objext"
18924 # Old archive suffix (normally "a").
18927 # Shared library suffix (normally ".so").
18928 shrext_cmds='$shrext_cmds'
18930 # Executable file suffix (normally "").
18933 # Additional compiler flags for building library objects.
18934 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18937 # What is the maximum length of a command?
18938 max_cmd_len=$lt_cv_sys_max_cmd_len
18940 # Does compiler simultaneously support -c and -o options?
18941 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18943 # Must we lock files when doing compilation?
18944 need_locks=$lt_need_locks
18946 # Do we need the lib prefix for modules?
18947 need_lib_prefix=$need_lib_prefix
18949 # Do we need a version for libraries?
18950 need_version=$need_version
18952 # Whether dlopen is supported.
18953 dlopen_support=$enable_dlopen
18955 # Whether dlopen of programs is supported.
18956 dlopen_self=$enable_dlopen_self
18958 # Whether dlopen of statically linked programs is supported.
18959 dlopen_self_static=$enable_dlopen_self_static
18961 # Compiler flag to prevent dynamic linking.
18962 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18964 # Compiler flag to turn off builtin functions.
18965 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18967 # Compiler flag to allow reflexive dlopens.
18968 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18970 # Compiler flag to generate shared objects directly from archives.
18971 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18973 # Compiler flag to generate thread-safe objects.
18974 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18976 # Library versioning type.
18977 version_type=$version_type
18979 # Format of library name prefix.
18980 libname_spec=$lt_libname_spec
18982 # List of archive names. First name is the real one, the rest are links.
18983 # The last name is the one that the linker finds with -lNAME.
18984 library_names_spec=$lt_library_names_spec
18986 # The coded name of the library, if different from the real name.
18987 soname_spec=$lt_soname_spec
18989 # Commands used to build and install an old-style archive.
18991 old_archive_cmds=$lt_old_archive_cmds_GCJ
18992 old_postinstall_cmds=$lt_old_postinstall_cmds
18993 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18995 # Create an old-style archive from a shared archive.
18996 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18998 # Create a temporary old-style archive to link instead of a shared archive.
18999 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19001 # Commands used to build and install a shared archive.
19002 archive_cmds=$lt_archive_cmds_GCJ
19003 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19004 postinstall_cmds=$lt_postinstall_cmds
19005 postuninstall_cmds=$lt_postuninstall_cmds
19007 # Commands used to build a loadable module (assumed same as above if empty)
19008 module_cmds=$lt_module_cmds_GCJ
19009 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19011 # Commands to strip libraries.
19012 old_striplib=$lt_old_striplib
19013 striplib=$lt_striplib
19015 # Dependencies to place before the objects being linked to create a
19017 predep_objects=$lt_predep_objects_GCJ
19019 # Dependencies to place after the objects being linked to create a
19021 postdep_objects=$lt_postdep_objects_GCJ
19023 # Dependencies to place before the objects being linked to create a
19025 predeps=$lt_predeps_GCJ
19027 # Dependencies to place after the objects being linked to create a
19029 postdeps=$lt_postdeps_GCJ
19031 # The library search path used internally by the compiler when linking
19032 # a shared library.
19033 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19035 # Method to check whether dependent libraries are shared objects.
19036 deplibs_check_method=$lt_deplibs_check_method
19038 # Command to use when deplibs_check_method == file_magic.
19039 file_magic_cmd=$lt_file_magic_cmd
19041 # Flag that allows shared libraries with undefined symbols to be built.
19042 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19044 # Flag that forces no undefined symbols.
19045 no_undefined_flag=$lt_no_undefined_flag_GCJ
19047 # Commands used to finish a libtool library installation in a directory.
19048 finish_cmds=$lt_finish_cmds
19050 # Same as above, but a single script fragment to be evaled but not shown.
19051 finish_eval=$lt_finish_eval
19053 # Take the output of nm and produce a listing of raw symbols and C names.
19054 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19056 # Transform the output of nm in a proper C declaration
19057 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19059 # Transform the output of nm in a C name address pair
19060 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19062 # This is the shared library runtime path variable.
19063 runpath_var=$runpath_var
19065 # This is the shared library path variable.
19066 shlibpath_var=$shlibpath_var
19068 # Is shlibpath searched before the hard-coded library search path?
19069 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19071 # How to hardcode a shared library path into an executable.
19072 hardcode_action=$hardcode_action_GCJ
19074 # Whether we should hardcode library paths into libraries.
19075 hardcode_into_libs=$hardcode_into_libs
19077 # Flag to hardcode \$libdir into a binary during linking.
19078 # This must work even if \$libdir does not exist.
19079 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19081 # If ld is used when linking, flag to hardcode \$libdir into
19082 # a binary during linking. This must work even if \$libdir does
19084 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19086 # Whether we need a single -rpath flag with a separated argument.
19087 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19089 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19090 # resulting binary.
19091 hardcode_direct=$hardcode_direct_GCJ
19093 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19094 # resulting binary.
19095 hardcode_minus_L=$hardcode_minus_L_GCJ
19097 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19098 # the resulting binary.
19099 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19101 # Set to yes if building a shared library automatically hardcodes DIR into the library
19102 # and all subsequent libraries and executables linked against it.
19103 hardcode_automatic=$hardcode_automatic_GCJ
19105 # Variables whose values should be saved in libtool wrapper scripts and
19106 # restored at relink time.
19107 variables_saved_for_relink="$variables_saved_for_relink"
19109 # Whether libtool must link a program against all its dependency libraries.
19110 link_all_deplibs=$link_all_deplibs_GCJ
19112 # Compile-time system search path for libraries
19113 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19115 # Run-time system search path for libraries
19116 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19118 # Fix the shell variable \$srcfile for the compiler.
19119 fix_srcfile_path="$fix_srcfile_path_GCJ"
19121 # Set to yes if exported symbols are required.
19122 always_export_symbols=$always_export_symbols_GCJ
19124 # The commands to list exported symbols.
19125 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19127 # The commands to extract the exported symbol list from a shared archive.
19128 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19130 # Symbols that should not be listed in the preloaded symbols.
19131 exclude_expsyms=$lt_exclude_expsyms_GCJ
19133 # Symbols that must always be exported.
19134 include_expsyms=$lt_include_expsyms_GCJ
19136 # ### END LIBTOOL TAG CONFIG: $tagname
19142 # If there is no Makefile yet, we rely on a make rule to execute
19143 # `config.status --recheck' to rerun these tests and create the
19144 # libtool script then.
19145 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19146 if test -f "$ltmain_in"; then
19147 test -f Makefile && make "$ltmain"
19153 ac_cpp='$CPP $CPPFLAGS'
19154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19169 # Source file extension for RC test sources.
19172 # Object file extension for compiled RC test sources.
19176 # Code to be used in simple compile tests
19177 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19179 # Code to be used in simple link tests
19180 lt_simple_link_test_code="$lt_simple_compile_test_code"
19182 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19184 # If no C compiler was specified, use CC.
19187 # If no C compiler flags were specified, use CFLAGS.
19188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19190 # Allow CC to be a program name with arguments.
19194 # save warnings/boilerplate of simple test code
19195 ac_outfile=conftest.$ac_objext
19196 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19197 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19198 _lt_compiler_boilerplate=`cat conftest.err`
19201 ac_outfile=conftest.$ac_objext
19202 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19203 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19204 _lt_linker_boilerplate=`cat conftest.err`
19208 # Allow CC to be a program name with arguments.
19213 for cc_temp in $compiler""; do
19215 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19216 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19221 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19223 lt_cv_prog_compiler_c_o_RC=yes
19225 # The else clause should only fire when bootstrapping the
19226 # libtool distribution, otherwise you forgot to ship ltmain.sh
19227 # with your package, and you will get complaints that there are
19228 # no rules to generate ltmain.sh.
19229 if test -f "$ltmain"; then
19230 # See if we are running on zsh, and set the options which allow our commands through
19231 # without removal of \ escapes.
19232 if test -n "${ZSH_VERSION+set}" ; then
19233 setopt NO_GLOB_SUBST
19235 # Now quote all the things that may contain metacharacters while being
19236 # careful not to overquote the AC_SUBSTed values. We take copies of the
19237 # variables and quote the copies for generation of the libtool script.
19238 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19240 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19241 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19242 deplibs_check_method reload_flag reload_cmds need_locks \
19243 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19244 lt_cv_sys_global_symbol_to_c_name_address \
19245 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19246 old_postinstall_cmds old_postuninstall_cmds \
19250 lt_prog_compiler_wl_RC \
19251 lt_prog_compiler_pic_RC \
19252 lt_prog_compiler_static_RC \
19253 lt_prog_compiler_no_builtin_flag_RC \
19254 export_dynamic_flag_spec_RC \
19255 thread_safe_flag_spec_RC \
19256 whole_archive_flag_spec_RC \
19257 enable_shared_with_static_runtimes_RC \
19258 old_archive_cmds_RC \
19259 old_archive_from_new_cmds_RC \
19260 predep_objects_RC \
19261 postdep_objects_RC \
19264 compiler_lib_search_path_RC \
19266 archive_expsym_cmds_RC \
19267 postinstall_cmds_RC \
19268 postuninstall_cmds_RC \
19269 old_archive_from_expsyms_cmds_RC \
19270 allow_undefined_flag_RC \
19271 no_undefined_flag_RC \
19272 export_symbols_cmds_RC \
19273 hardcode_libdir_flag_spec_RC \
19274 hardcode_libdir_flag_spec_ld_RC \
19275 hardcode_libdir_separator_RC \
19276 hardcode_automatic_RC \
19278 module_expsym_cmds_RC \
19279 lt_cv_prog_compiler_c_o_RC \
19280 exclude_expsyms_RC \
19281 include_expsyms_RC; do
19284 old_archive_cmds_RC | \
19285 old_archive_from_new_cmds_RC | \
19286 archive_cmds_RC | \
19287 archive_expsym_cmds_RC | \
19289 module_expsym_cmds_RC | \
19290 old_archive_from_expsyms_cmds_RC | \
19291 export_symbols_cmds_RC | \
19292 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19293 postinstall_cmds | postuninstall_cmds | \
19294 old_postinstall_cmds | old_postuninstall_cmds | \
19295 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19296 # Double-quote double-evaled strings.
19297 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19300 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19306 *'\$0 --fallback-echo"')
19307 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19313 cat <<__EOF__ >> "$cfgfile"
19314 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19316 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19318 # Shell to use when invoking shell scripts.
19321 # Whether or not to build shared libraries.
19322 build_libtool_libs=$enable_shared
19324 # Whether or not to build static libraries.
19325 build_old_libs=$enable_static
19327 # Whether or not to add -lc for building shared libraries.
19328 build_libtool_need_lc=$archive_cmds_need_lc_RC
19330 # Whether or not to disallow shared libs when runtime libs are static
19331 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19333 # Whether or not to optimize for fast installation.
19334 fast_install=$enable_fast_install
19337 host_alias=$host_alias
19341 # The build system.
19342 build_alias=$build_alias
19346 # An echo program that does not interpret backslashes.
19351 AR_FLAGS=$lt_AR_FLAGS
19356 # LTCC compiler flags.
19357 LTCFLAGS=$lt_LTCFLAGS
19359 # A language-specific compiler.
19362 # Is the compiler the GNU C compiler?
19368 # The linker used to build libraries.
19371 # Whether we need hard or soft links.
19374 # A BSD-compatible nm program.
19377 # A symbol stripping program
19380 # Used to examine libraries when file_magic_cmd begins "file"
19381 MAGIC_CMD=$MAGIC_CMD
19383 # Used on cygwin: DLL creation program.
19386 # Used on cygwin: object dumper.
19389 # Used on cygwin: assembler.
19392 # The name of the directory that contains temporary libtool files.
19395 # How to create reloadable object files.
19396 reload_flag=$lt_reload_flag
19397 reload_cmds=$lt_reload_cmds
19399 # How to pass a linker flag through the compiler.
19400 wl=$lt_lt_prog_compiler_wl_RC
19402 # Object file suffix (normally "o").
19403 objext="$ac_objext"
19405 # Old archive suffix (normally "a").
19408 # Shared library suffix (normally ".so").
19409 shrext_cmds='$shrext_cmds'
19411 # Executable file suffix (normally "").
19414 # Additional compiler flags for building library objects.
19415 pic_flag=$lt_lt_prog_compiler_pic_RC
19418 # What is the maximum length of a command?
19419 max_cmd_len=$lt_cv_sys_max_cmd_len
19421 # Does compiler simultaneously support -c and -o options?
19422 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19424 # Must we lock files when doing compilation?
19425 need_locks=$lt_need_locks
19427 # Do we need the lib prefix for modules?
19428 need_lib_prefix=$need_lib_prefix
19430 # Do we need a version for libraries?
19431 need_version=$need_version
19433 # Whether dlopen is supported.
19434 dlopen_support=$enable_dlopen
19436 # Whether dlopen of programs is supported.
19437 dlopen_self=$enable_dlopen_self
19439 # Whether dlopen of statically linked programs is supported.
19440 dlopen_self_static=$enable_dlopen_self_static
19442 # Compiler flag to prevent dynamic linking.
19443 link_static_flag=$lt_lt_prog_compiler_static_RC
19445 # Compiler flag to turn off builtin functions.
19446 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19448 # Compiler flag to allow reflexive dlopens.
19449 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19451 # Compiler flag to generate shared objects directly from archives.
19452 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19454 # Compiler flag to generate thread-safe objects.
19455 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19457 # Library versioning type.
19458 version_type=$version_type
19460 # Format of library name prefix.
19461 libname_spec=$lt_libname_spec
19463 # List of archive names. First name is the real one, the rest are links.
19464 # The last name is the one that the linker finds with -lNAME.
19465 library_names_spec=$lt_library_names_spec
19467 # The coded name of the library, if different from the real name.
19468 soname_spec=$lt_soname_spec
19470 # Commands used to build and install an old-style archive.
19472 old_archive_cmds=$lt_old_archive_cmds_RC
19473 old_postinstall_cmds=$lt_old_postinstall_cmds
19474 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19476 # Create an old-style archive from a shared archive.
19477 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19479 # Create a temporary old-style archive to link instead of a shared archive.
19480 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19482 # Commands used to build and install a shared archive.
19483 archive_cmds=$lt_archive_cmds_RC
19484 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19485 postinstall_cmds=$lt_postinstall_cmds
19486 postuninstall_cmds=$lt_postuninstall_cmds
19488 # Commands used to build a loadable module (assumed same as above if empty)
19489 module_cmds=$lt_module_cmds_RC
19490 module_expsym_cmds=$lt_module_expsym_cmds_RC
19492 # Commands to strip libraries.
19493 old_striplib=$lt_old_striplib
19494 striplib=$lt_striplib
19496 # Dependencies to place before the objects being linked to create a
19498 predep_objects=$lt_predep_objects_RC
19500 # Dependencies to place after the objects being linked to create a
19502 postdep_objects=$lt_postdep_objects_RC
19504 # Dependencies to place before the objects being linked to create a
19506 predeps=$lt_predeps_RC
19508 # Dependencies to place after the objects being linked to create a
19510 postdeps=$lt_postdeps_RC
19512 # The library search path used internally by the compiler when linking
19513 # a shared library.
19514 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19516 # Method to check whether dependent libraries are shared objects.
19517 deplibs_check_method=$lt_deplibs_check_method
19519 # Command to use when deplibs_check_method == file_magic.
19520 file_magic_cmd=$lt_file_magic_cmd
19522 # Flag that allows shared libraries with undefined symbols to be built.
19523 allow_undefined_flag=$lt_allow_undefined_flag_RC
19525 # Flag that forces no undefined symbols.
19526 no_undefined_flag=$lt_no_undefined_flag_RC
19528 # Commands used to finish a libtool library installation in a directory.
19529 finish_cmds=$lt_finish_cmds
19531 # Same as above, but a single script fragment to be evaled but not shown.
19532 finish_eval=$lt_finish_eval
19534 # Take the output of nm and produce a listing of raw symbols and C names.
19535 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19537 # Transform the output of nm in a proper C declaration
19538 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19540 # Transform the output of nm in a C name address pair
19541 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19543 # This is the shared library runtime path variable.
19544 runpath_var=$runpath_var
19546 # This is the shared library path variable.
19547 shlibpath_var=$shlibpath_var
19549 # Is shlibpath searched before the hard-coded library search path?
19550 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19552 # How to hardcode a shared library path into an executable.
19553 hardcode_action=$hardcode_action_RC
19555 # Whether we should hardcode library paths into libraries.
19556 hardcode_into_libs=$hardcode_into_libs
19558 # Flag to hardcode \$libdir into a binary during linking.
19559 # This must work even if \$libdir does not exist.
19560 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19562 # If ld is used when linking, flag to hardcode \$libdir into
19563 # a binary during linking. This must work even if \$libdir does
19565 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19567 # Whether we need a single -rpath flag with a separated argument.
19568 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19570 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19571 # resulting binary.
19572 hardcode_direct=$hardcode_direct_RC
19574 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19575 # resulting binary.
19576 hardcode_minus_L=$hardcode_minus_L_RC
19578 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19579 # the resulting binary.
19580 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19582 # Set to yes if building a shared library automatically hardcodes DIR into the library
19583 # and all subsequent libraries and executables linked against it.
19584 hardcode_automatic=$hardcode_automatic_RC
19586 # Variables whose values should be saved in libtool wrapper scripts and
19587 # restored at relink time.
19588 variables_saved_for_relink="$variables_saved_for_relink"
19590 # Whether libtool must link a program against all its dependency libraries.
19591 link_all_deplibs=$link_all_deplibs_RC
19593 # Compile-time system search path for libraries
19594 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19596 # Run-time system search path for libraries
19597 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19599 # Fix the shell variable \$srcfile for the compiler.
19600 fix_srcfile_path="$fix_srcfile_path_RC"
19602 # Set to yes if exported symbols are required.
19603 always_export_symbols=$always_export_symbols_RC
19605 # The commands to list exported symbols.
19606 export_symbols_cmds=$lt_export_symbols_cmds_RC
19608 # The commands to extract the exported symbol list from a shared archive.
19609 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19611 # Symbols that should not be listed in the preloaded symbols.
19612 exclude_expsyms=$lt_exclude_expsyms_RC
19614 # Symbols that must always be exported.
19615 include_expsyms=$lt_include_expsyms_RC
19617 # ### END LIBTOOL TAG CONFIG: $tagname
19623 # If there is no Makefile yet, we rely on a make rule to execute
19624 # `config.status --recheck' to rerun these tests and create the
19625 # libtool script then.
19626 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19627 if test -f "$ltmain_in"; then
19628 test -f Makefile && make "$ltmain"
19634 ac_cpp='$CPP $CPPFLAGS'
19635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19644 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19645 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19646 { (exit 1); exit 1; }; }
19650 # Append the new tag name to the list of available tags.
19651 if test -n "$tagname" ; then
19652 available_tags="$available_tags $tagname"
19658 # Now substitute the updated list of available tags.
19659 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19660 mv "${ofile}T" "$ofile"
19664 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19665 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19666 { (exit 1); exit 1; }; }
19672 # This can be used to rebuild libtool when needed
19673 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19675 # Always use our own libtool.
19676 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19678 # Prevent multiple expansion
19700 if test "x$cross_compiling" = "xno"; then
19701 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
19703 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
19708 if test -n "$ac_tool_prefix"; then
19709 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19710 set dummy ${ac_tool_prefix}ar; ac_word=$2
19711 echo "$as_me:$LINENO: checking for $ac_word" >&5
19712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19713 if test "${ac_cv_prog_AR+set}" = set; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19716 if test -n "$AR"; then
19717 ac_cv_prog_AR="$AR" # Let the user override the test.
19719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19720 for as_dir in $PATH
19723 test -z "$as_dir" && as_dir=.
19724 for ac_exec_ext in '' $ac_executable_extensions; do
19725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19726 ac_cv_prog_AR="${ac_tool_prefix}ar"
19727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19736 if test -n "$AR"; then
19737 echo "$as_me:$LINENO: result: $AR" >&5
19738 echo "${ECHO_T}$AR" >&6
19740 echo "$as_me:$LINENO: result: no" >&5
19741 echo "${ECHO_T}no" >&6
19745 if test -z "$ac_cv_prog_AR"; then
19747 # Extract the first word of "ar", so it can be a program name with args.
19748 set dummy ar; ac_word=$2
19749 echo "$as_me:$LINENO: checking for $ac_word" >&5
19750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19751 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19752 echo $ECHO_N "(cached) $ECHO_C" >&6
19754 if test -n "$ac_ct_AR"; then
19755 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19758 for as_dir in $PATH
19761 test -z "$as_dir" && as_dir=.
19762 for ac_exec_ext in '' $ac_executable_extensions; do
19763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19764 ac_cv_prog_ac_ct_AR="ar"
19765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19773 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19774 if test -n "$ac_ct_AR"; then
19775 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19776 echo "${ECHO_T}$ac_ct_AR" >&6
19778 echo "$as_me:$LINENO: result: no" >&5
19779 echo "${ECHO_T}no" >&6
19784 AR="$ac_cv_prog_AR"
19787 if test -n "$ac_tool_prefix"; then
19788 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
19789 set dummy ${ac_tool_prefix}ld; ac_word=$2
19790 echo "$as_me:$LINENO: checking for $ac_word" >&5
19791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19792 if test "${ac_cv_prog_LD+set}" = set; then
19793 echo $ECHO_N "(cached) $ECHO_C" >&6
19795 if test -n "$LD"; then
19796 ac_cv_prog_LD="$LD" # Let the user override the test.
19798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19799 for as_dir in $PATH
19802 test -z "$as_dir" && as_dir=.
19803 for ac_exec_ext in '' $ac_executable_extensions; do
19804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19805 ac_cv_prog_LD="${ac_tool_prefix}ld"
19806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19815 if test -n "$LD"; then
19816 echo "$as_me:$LINENO: result: $LD" >&5
19817 echo "${ECHO_T}$LD" >&6
19819 echo "$as_me:$LINENO: result: no" >&5
19820 echo "${ECHO_T}no" >&6
19824 if test -z "$ac_cv_prog_LD"; then
19826 # Extract the first word of "ld", so it can be a program name with args.
19827 set dummy ld; ac_word=$2
19828 echo "$as_me:$LINENO: checking for $ac_word" >&5
19829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19830 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19833 if test -n "$ac_ct_LD"; then
19834 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
19836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19837 for as_dir in $PATH
19840 test -z "$as_dir" && as_dir=.
19841 for ac_exec_ext in '' $ac_executable_extensions; do
19842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19843 ac_cv_prog_ac_ct_LD="ld"
19844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19852 ac_ct_LD=$ac_cv_prog_ac_ct_LD
19853 if test -n "$ac_ct_LD"; then
19854 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
19855 echo "${ECHO_T}$ac_ct_LD" >&6
19857 echo "$as_me:$LINENO: result: no" >&5
19858 echo "${ECHO_T}no" >&6
19863 LD="$ac_cv_prog_LD"
19867 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19868 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19869 if test "${ac_cv_header_stdc+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19872 cat >conftest.$ac_ext <<_ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h. */
19878 #include <stdlib.h>
19879 #include <stdarg.h>
19880 #include <string.h>
19891 rm -f conftest.$ac_objext
19892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19893 (eval $ac_compile) 2>conftest.er1
19895 grep -v '^ *+' conftest.er1 >conftest.err
19897 cat conftest.err >&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } &&
19900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902 (eval $ac_try) 2>&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; } &&
19906 { ac_try='test -s conftest.$ac_objext'
19907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908 (eval $ac_try) 2>&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; }; then
19912 ac_cv_header_stdc=yes
19914 echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19917 ac_cv_header_stdc=no
19919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19921 if test $ac_cv_header_stdc = yes; then
19922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19923 cat >conftest.$ac_ext <<_ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h. */
19929 #include <string.h>
19932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19933 $EGREP "memchr" >/dev/null 2>&1; then
19936 ac_cv_header_stdc=no
19942 if test $ac_cv_header_stdc = yes; then
19943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19944 cat >conftest.$ac_ext <<_ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h. */
19950 #include <stdlib.h>
19953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19954 $EGREP "free" >/dev/null 2>&1; then
19957 ac_cv_header_stdc=no
19963 if test $ac_cv_header_stdc = yes; then
19964 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19965 if test "$cross_compiling" = yes; then
19968 cat >conftest.$ac_ext <<_ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19975 #if ((' ' & 0x0FF) == 0x020)
19976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19979 # define ISLOWER(c) \
19980 (('a' <= (c) && (c) <= 'i') \
19981 || ('j' <= (c) && (c) <= 'r') \
19982 || ('s' <= (c) && (c) <= 'z'))
19983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19991 for (i = 0; i < 256; i++)
19992 if (XOR (islower (i), ISLOWER (i))
19993 || toupper (i) != TOUPPER (i))
19998 rm -f conftest$ac_exeext
19999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20000 (eval $ac_link) 2>&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; }; then
20011 echo "$as_me: program exited with status $ac_status" >&5
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20015 ( exit $ac_status )
20016 ac_cv_header_stdc=no
20018 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20022 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20023 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20024 if test $ac_cv_header_stdc = yes; then
20026 cat >>confdefs.h <<\_ACEOF
20027 #define STDC_HEADERS 1
20033 echo "$as_me:$LINENO: checking for GNU libc2" >&5
20034 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6
20035 if test "${knfsd_cv_glibc2+set}" = set; then
20036 echo $ECHO_N "(cached) $ECHO_C" >&6
20038 cat >conftest.$ac_ext <<_ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h. */
20045 #include <features.h>
20046 #if !defined(__GLIBC__)
20051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20054 grep -v '^ *+' conftest.er1 >conftest.err
20056 cat conftest.err >&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } >/dev/null; then
20059 if test -s conftest.err; then
20060 ac_cpp_err=$ac_c_preproc_warn_flag
20061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20068 if test -z "$ac_cpp_err"; then
20069 knfsd_cv_glibc2=yes
20071 echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20076 rm -f conftest.err conftest.$ac_ext
20079 echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20080 echo "${ECHO_T}$knfsd_cv_glibc2" >&6
20081 if test $knfsd_cv_glibc2 = yes; then
20082 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20083 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20087 echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20088 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6
20089 if test "${knfsd_cv_bsd_signals+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 if test "$cross_compiling" = yes; then
20093 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20094 See \`config.log' for more details." >&5
20095 echo "$as_me: error: cannot run test program while cross compiling
20096 See \`config.log' for more details." >&2;}
20097 { (exit 1); exit 1; }; }
20099 cat >conftest.$ac_ext <<_ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20106 #include <signal.h>
20107 #include <unistd.h>
20108 #include <sys/wait.h>
20110 static int counter = 0;
20111 static RETSIGTYPE handler(int num) { counter++; }
20116 if ((s = fork()) < 0) return 1;
20118 if (wait(&s) < 0) return 1;
20119 return WIFSIGNALED(s)? 1 : 0;
20122 signal(SIGHUP, handler);
20123 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20124 return (counter == 2)? 0 : 1;
20128 rm -f conftest$ac_exeext
20129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20130 (eval $ac_link) 2>&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135 (eval $ac_try) 2>&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; }; then
20139 knfsd_cv_bsd_signals=yes
20141 echo "$as_me: program exited with status $ac_status" >&5
20142 echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20145 ( exit $ac_status )
20146 knfsd_cv_bsd_signals=no
20148 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20151 echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20152 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6
20153 test $knfsd_cv_bsd_signals = yes &&
20154 cat >>confdefs.h <<\_ACEOF
20155 #define HAVE_BSD_SIGNALS 1
20160 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
20161 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
20162 if test "${ac_cv_lib_socket_main+set}" = set; then
20163 echo $ECHO_N "(cached) $ECHO_C" >&6
20165 ac_check_lib_save_LIBS=$LIBS
20166 LIBS="-lsocket $LIBS"
20167 cat >conftest.$ac_ext <<_ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20183 rm -f conftest.$ac_objext conftest$ac_exeext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20185 (eval $ac_link) 2>conftest.er1
20187 grep -v '^ *+' conftest.er1 >conftest.err
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
20192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194 (eval $ac_try) 2>&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); }; } &&
20198 { ac_try='test -s conftest$ac_exeext'
20199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200 (eval $ac_try) 2>&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; }; then
20204 ac_cv_lib_socket_main=yes
20206 echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.$ac_ext >&5
20209 ac_cv_lib_socket_main=no
20211 rm -f conftest.err conftest.$ac_objext \
20212 conftest$ac_exeext conftest.$ac_ext
20213 LIBS=$ac_check_lib_save_LIBS
20215 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
20216 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
20217 if test $ac_cv_lib_socket_main = yes; then
20221 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
20222 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
20223 if test "${ac_cv_lib_nsl_main+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20226 ac_check_lib_save_LIBS=$LIBS
20228 cat >conftest.$ac_ext <<_ACEOF
20231 cat confdefs.h >>conftest.$ac_ext
20232 cat >>conftest.$ac_ext <<_ACEOF
20233 /* end confdefs.h. */
20244 rm -f conftest.$ac_objext conftest$ac_exeext
20245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20246 (eval $ac_link) 2>conftest.er1
20248 grep -v '^ *+' conftest.er1 >conftest.err
20250 cat conftest.err >&5
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); } &&
20253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255 (eval $ac_try) 2>&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; } &&
20259 { ac_try='test -s conftest$ac_exeext'
20260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261 (eval $ac_try) 2>&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
20265 ac_cv_lib_nsl_main=yes
20267 echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20270 ac_cv_lib_nsl_main=no
20272 rm -f conftest.err conftest.$ac_objext \
20273 conftest$ac_exeext conftest.$ac_ext
20274 LIBS=$ac_check_lib_save_LIBS
20276 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
20277 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
20278 if test $ac_cv_lib_nsl_main = yes; then
20282 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
20283 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
20284 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6
20287 ac_check_lib_save_LIBS=$LIBS
20288 LIBS="-lcrypt $LIBS"
20289 cat >conftest.$ac_ext <<_ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20296 /* Override any gcc2 internal prototype to avoid an error. */
20300 /* We use char because int might match the return type of a gcc2
20301 builtin and then its argument prototype would still apply. */
20311 rm -f conftest.$ac_objext conftest$ac_exeext
20312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20313 (eval $ac_link) 2>conftest.er1
20315 grep -v '^ *+' conftest.er1 >conftest.err
20317 cat conftest.err >&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } &&
20320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322 (eval $ac_try) 2>&5
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }; } &&
20326 { ac_try='test -s conftest$ac_exeext'
20327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20328 (eval $ac_try) 2>&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); }; }; then
20332 ac_cv_lib_crypt_crypt=yes
20334 echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20337 ac_cv_lib_crypt_crypt=no
20339 rm -f conftest.err conftest.$ac_objext \
20340 conftest$ac_exeext conftest.$ac_ext
20341 LIBS=$ac_check_lib_save_LIBS
20343 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
20344 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
20345 if test $ac_cv_lib_crypt_crypt = yes; then
20349 if test "$enable_nfsv4" = yes; then
20350 echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
20351 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6
20352 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
20353 echo $ECHO_N "(cached) $ECHO_C" >&6
20355 ac_check_lib_save_LIBS=$LIBS
20356 LIBS="-levent $LIBS"
20357 cat >conftest.$ac_ext <<_ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h. */
20364 /* Override any gcc2 internal prototype to avoid an error. */
20368 /* We use char because int might match the return type of a gcc2
20369 builtin and then its argument prototype would still apply. */
20370 char event_dispatch ();
20379 rm -f conftest.$ac_objext conftest$ac_exeext
20380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20381 (eval $ac_link) 2>conftest.er1
20383 grep -v '^ *+' conftest.er1 >conftest.err
20385 cat conftest.err >&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } &&
20388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390 (eval $ac_try) 2>&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); }; } &&
20394 { ac_try='test -s conftest$ac_exeext'
20395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396 (eval $ac_try) 2>&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; }; then
20400 ac_cv_lib_event_event_dispatch=yes
20402 echo "$as_me: failed program was:" >&5
20403 sed 's/^/| /' conftest.$ac_ext >&5
20405 ac_cv_lib_event_event_dispatch=no
20407 rm -f conftest.err conftest.$ac_objext \
20408 conftest$ac_exeext conftest.$ac_ext
20409 LIBS=$ac_check_lib_save_LIBS
20411 echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
20412 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6
20413 if test $ac_cv_lib_event_event_dispatch = yes; then
20416 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
20417 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
20418 { (exit 1); exit 1; }; }
20421 echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
20422 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6
20423 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
20424 echo $ECHO_N "(cached) $ECHO_C" >&6
20426 ac_check_lib_save_LIBS=$LIBS
20427 LIBS="-lnfsidmap $LIBS"
20428 cat >conftest.$ac_ext <<_ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h. */
20435 /* Override any gcc2 internal prototype to avoid an error. */
20439 /* We use char because int might match the return type of a gcc2
20440 builtin and then its argument prototype would still apply. */
20441 char nfs4_init_name_mapping ();
20445 nfs4_init_name_mapping ();
20450 rm -f conftest.$ac_objext conftest$ac_exeext
20451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20452 (eval $ac_link) 2>conftest.er1
20454 grep -v '^ *+' conftest.er1 >conftest.err
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } &&
20459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; } &&
20465 { ac_try='test -s conftest$ac_exeext'
20466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; }; then
20471 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20476 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
20478 rm -f conftest.err conftest.$ac_objext \
20479 conftest$ac_exeext conftest.$ac_ext
20480 LIBS=$ac_check_lib_save_LIBS
20482 echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
20483 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6
20484 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
20487 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
20488 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
20489 { (exit 1); exit 1; }; }
20493 for ac_header in event.h
20495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20497 echo "$as_me:$LINENO: checking for $ac_header" >&5
20498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20500 echo $ECHO_N "(cached) $ECHO_C" >&6
20502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20505 # Is the header compilable?
20506 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20508 cat >conftest.$ac_ext <<_ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20514 $ac_includes_default
20515 #include <$ac_header>
20517 rm -f conftest.$ac_objext
20518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20519 (eval $ac_compile) 2>conftest.er1
20521 grep -v '^ *+' conftest.er1 >conftest.err
20523 cat conftest.err >&5
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); } &&
20526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528 (eval $ac_try) 2>&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; } &&
20532 { ac_try='test -s conftest.$ac_objext'
20533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534 (eval $ac_try) 2>&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); }; }; then
20538 ac_header_compiler=yes
20540 echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20543 ac_header_compiler=no
20545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20547 echo "${ECHO_T}$ac_header_compiler" >&6
20549 # Is the header present?
20550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20552 cat >conftest.$ac_ext <<_ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20558 #include <$ac_header>
20560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20563 grep -v '^ *+' conftest.er1 >conftest.err
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } >/dev/null; then
20568 if test -s conftest.err; then
20569 ac_cpp_err=$ac_c_preproc_warn_flag
20570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20577 if test -z "$ac_cpp_err"; then
20578 ac_header_preproc=yes
20580 echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20583 ac_header_preproc=no
20585 rm -f conftest.err conftest.$ac_ext
20586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20587 echo "${ECHO_T}$ac_header_preproc" >&6
20589 # So? What about this header?
20590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20596 ac_header_preproc=yes
20599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20613 ## ------------------------------- ##
20614 ## Report this to nfs@lists.sf.net ##
20615 ## ------------------------------- ##
20618 sed "s/^/$as_me: WARNING: /" >&2
20621 echo "$as_me:$LINENO: checking for $ac_header" >&5
20622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20624 echo $ECHO_N "(cached) $ECHO_C" >&6
20626 eval "$as_ac_Header=\$ac_header_preproc"
20628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20633 cat >>confdefs.h <<_ACEOF
20634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20638 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
20639 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
20640 { (exit 1); exit 1; }; }
20646 for ac_header in nfsidmap.h
20648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20650 echo "$as_me:$LINENO: checking for $ac_header" >&5
20651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20658 # Is the header compilable?
20659 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20661 cat >conftest.$ac_ext <<_ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h. */
20667 $ac_includes_default
20668 #include <$ac_header>
20670 rm -f conftest.$ac_objext
20671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20672 (eval $ac_compile) 2>conftest.er1
20674 grep -v '^ *+' conftest.er1 >conftest.err
20676 cat conftest.err >&5
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); } &&
20679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681 (eval $ac_try) 2>&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); }; } &&
20685 { ac_try='test -s conftest.$ac_objext'
20686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20687 (eval $ac_try) 2>&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); }; }; then
20691 ac_header_compiler=yes
20693 echo "$as_me: failed program was:" >&5
20694 sed 's/^/| /' conftest.$ac_ext >&5
20696 ac_header_compiler=no
20698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20700 echo "${ECHO_T}$ac_header_compiler" >&6
20702 # Is the header present?
20703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20705 cat >conftest.$ac_ext <<_ACEOF
20708 cat confdefs.h >>conftest.$ac_ext
20709 cat >>conftest.$ac_ext <<_ACEOF
20710 /* end confdefs.h. */
20711 #include <$ac_header>
20713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20716 grep -v '^ *+' conftest.er1 >conftest.err
20718 cat conftest.err >&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } >/dev/null; then
20721 if test -s conftest.err; then
20722 ac_cpp_err=$ac_c_preproc_warn_flag
20723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20730 if test -z "$ac_cpp_err"; then
20731 ac_header_preproc=yes
20733 echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20736 ac_header_preproc=no
20738 rm -f conftest.err conftest.$ac_ext
20739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20740 echo "${ECHO_T}$ac_header_preproc" >&6
20742 # So? What about this header?
20743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20749 ac_header_preproc=yes
20752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20766 ## ------------------------------- ##
20767 ## Report this to nfs@lists.sf.net ##
20768 ## ------------------------------- ##
20771 sed "s/^/$as_me: WARNING: /" >&2
20774 echo "$as_me:$LINENO: checking for $ac_header" >&5
20775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
20779 eval "$as_ac_Header=\$ac_header_preproc"
20781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20786 cat >>confdefs.h <<_ACEOF
20787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20791 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
20792 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
20793 { (exit 1); exit 1; }; }
20798 if test "$enable_gss" = yes; then
20801 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20802 if test -n "$ac_tool_prefix"; then
20803 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20804 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20805 echo "$as_me:$LINENO: checking for $ac_word" >&5
20806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20807 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20808 echo $ECHO_N "(cached) $ECHO_C" >&6
20810 case $PKG_CONFIG in
20812 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20816 for as_dir in $PATH
20819 test -z "$as_dir" && as_dir=.
20820 for ac_exec_ext in '' $ac_executable_extensions; do
20821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20822 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20832 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20834 if test -n "$PKG_CONFIG"; then
20835 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20836 echo "${ECHO_T}$PKG_CONFIG" >&6
20838 echo "$as_me:$LINENO: result: no" >&5
20839 echo "${ECHO_T}no" >&6
20843 if test -z "$ac_cv_path_PKG_CONFIG"; then
20844 ac_pt_PKG_CONFIG=$PKG_CONFIG
20845 # Extract the first word of "pkg-config", so it can be a program name with args.
20846 set dummy pkg-config; ac_word=$2
20847 echo "$as_me:$LINENO: checking for $ac_word" >&5
20848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20849 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20850 echo $ECHO_N "(cached) $ECHO_C" >&6
20852 case $ac_pt_PKG_CONFIG in
20854 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20858 for as_dir in $PATH
20861 test -z "$as_dir" && as_dir=.
20862 for ac_exec_ext in '' $ac_executable_extensions; do
20863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20864 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20874 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20876 if test -n "$ac_pt_PKG_CONFIG"; then
20877 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20878 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
20880 echo "$as_me:$LINENO: result: no" >&5
20881 echo "${ECHO_T}no" >&6
20884 PKG_CONFIG=$ac_pt_PKG_CONFIG
20886 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20890 if test -n "$PKG_CONFIG"; then
20891 _pkg_min_version=0.9.0
20892 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20893 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20894 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20895 echo "$as_me:$LINENO: result: yes" >&5
20896 echo "${ECHO_T}yes" >&6
20898 echo "$as_me:$LINENO: result: no" >&5
20899 echo "${ECHO_T}no" >&6
20906 echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
20907 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6
20909 if test -n "$PKG_CONFIG"; then
20910 if test -n "$RPCSECGSS_CFLAGS"; then
20911 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
20913 if test -n "$PKG_CONFIG" && \
20914 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss\"") >&5
20915 ($PKG_CONFIG --exists --print-errors "librpcsecgss") 2>&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; then
20919 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss" 2>/dev/null`
20927 if test -n "$PKG_CONFIG"; then
20928 if test -n "$RPCSECGSS_LIBS"; then
20929 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
20931 if test -n "$PKG_CONFIG" && \
20932 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss\"") >&5
20933 ($PKG_CONFIG --exists --print-errors "librpcsecgss") 2>&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; then
20937 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss" 2>/dev/null`
20948 if test $pkg_failed = yes; then
20950 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20951 _pkg_short_errors_supported=yes
20953 _pkg_short_errors_supported=no
20955 if test $_pkg_short_errors_supported = yes; then
20956 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss"`
20958 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss"`
20960 # Put the nasty error message in config.log where it belongs
20961 echo "$RPCSECGSS_PKG_ERRORS" >&5
20963 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
20964 If you have pkgconfig installed, you might try setting environment
20965 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
20966 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
20967 If you have pkgconfig installed, you might try setting environment
20968 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
20969 { (exit 1); exit 1; }; }
20972 elif test $pkg_failed = untried; then
20973 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
20974 If you have pkgconfig installed, you might try setting environment
20975 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
20976 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
20977 If you have pkgconfig installed, you might try setting environment
20978 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
20979 { (exit 1); exit 1; }; }
20983 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
20984 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
20985 echo "$as_me:$LINENO: result: yes" >&5
20986 echo "${ECHO_T}yes" >&6
20992 if test "$knfsd_cv_glibc2" = no; then
20993 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
20994 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
20995 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
20996 echo $ECHO_N "(cached) $ECHO_C" >&6
20998 ac_check_lib_save_LIBS=$LIBS
21000 cat >conftest.$ac_ext <<_ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h. */
21007 /* Override any gcc2 internal prototype to avoid an error. */
21011 /* We use char because int might match the return type of a gcc2
21012 builtin and then its argument prototype would still apply. */
21022 rm -f conftest.$ac_objext conftest$ac_exeext
21023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21024 (eval $ac_link) 2>conftest.er1
21026 grep -v '^ *+' conftest.er1 >conftest.err
21028 cat conftest.err >&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } &&
21031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033 (eval $ac_try) 2>&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; } &&
21037 { ac_try='test -s conftest$ac_exeext'
21038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039 (eval $ac_try) 2>&5
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); }; }; then
21043 ac_cv_lib_bsd_daemon=yes
21045 echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21048 ac_cv_lib_bsd_daemon=no
21050 rm -f conftest.err conftest.$ac_objext \
21051 conftest$ac_exeext conftest.$ac_ext
21052 LIBS=$ac_check_lib_save_LIBS
21054 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
21055 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
21056 if test $ac_cv_lib_bsd_daemon = yes; then
21066 if test "$enable_gss" = yes; then
21068 for ac_header in nfsidmap.h
21070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21072 echo "$as_me:$LINENO: checking for $ac_header" >&5
21073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21075 echo $ECHO_N "(cached) $ECHO_C" >&6
21077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21080 # Is the header compilable?
21081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21083 cat >conftest.$ac_ext <<_ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 $ac_includes_default
21090 #include <$ac_header>
21092 rm -f conftest.$ac_objext
21093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21094 (eval $ac_compile) 2>conftest.er1
21096 grep -v '^ *+' conftest.er1 >conftest.err
21098 cat conftest.err >&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); } &&
21101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103 (eval $ac_try) 2>&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); }; } &&
21107 { ac_try='test -s conftest.$ac_objext'
21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109 (eval $ac_try) 2>&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; }; then
21113 ac_header_compiler=yes
21115 echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21118 ac_header_compiler=no
21120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21122 echo "${ECHO_T}$ac_header_compiler" >&6
21124 # Is the header present?
21125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21127 cat >conftest.$ac_ext <<_ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21133 #include <$ac_header>
21135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21138 grep -v '^ *+' conftest.er1 >conftest.err
21140 cat conftest.err >&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } >/dev/null; then
21143 if test -s conftest.err; then
21144 ac_cpp_err=$ac_c_preproc_warn_flag
21145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21152 if test -z "$ac_cpp_err"; then
21153 ac_header_preproc=yes
21155 echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21158 ac_header_preproc=no
21160 rm -f conftest.err conftest.$ac_ext
21161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21162 echo "${ECHO_T}$ac_header_preproc" >&6
21164 # So? What about this header?
21165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21171 ac_header_preproc=yes
21174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21188 ## ------------------------------- ##
21189 ## Report this to nfs@lists.sf.net ##
21190 ## ------------------------------- ##
21193 sed "s/^/$as_me: WARNING: /" >&2
21196 echo "$as_me:$LINENO: checking for $ac_header" >&5
21197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21199 echo $ECHO_N "(cached) $ECHO_C" >&6
21201 eval "$as_ac_Header=\$ac_header_preproc"
21203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21208 cat >>confdefs.h <<_ACEOF
21209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21213 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
21214 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
21215 { (exit 1); exit 1; }; }
21221 for ac_header in spkm3.h
21223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21225 echo "$as_me:$LINENO: checking for $ac_header" >&5
21226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21228 echo $ECHO_N "(cached) $ECHO_C" >&6
21230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21233 # Is the header compilable?
21234 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21236 cat >conftest.$ac_ext <<_ACEOF
21239 cat confdefs.h >>conftest.$ac_ext
21240 cat >>conftest.$ac_ext <<_ACEOF
21241 /* end confdefs.h. */
21242 $ac_includes_default
21243 #include <$ac_header>
21245 rm -f conftest.$ac_objext
21246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21247 (eval $ac_compile) 2>conftest.er1
21249 grep -v '^ *+' conftest.er1 >conftest.err
21251 cat conftest.err >&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } &&
21254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21256 (eval $ac_try) 2>&5
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); }; } &&
21260 { ac_try='test -s conftest.$ac_objext'
21261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21262 (eval $ac_try) 2>&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); }; }; then
21266 ac_header_compiler=yes
21268 echo "$as_me: failed program was:" >&5
21269 sed 's/^/| /' conftest.$ac_ext >&5
21271 ac_header_compiler=no
21273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21275 echo "${ECHO_T}$ac_header_compiler" >&6
21277 # Is the header present?
21278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21280 cat >conftest.$ac_ext <<_ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21286 #include <$ac_header>
21288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21291 grep -v '^ *+' conftest.er1 >conftest.err
21293 cat conftest.err >&5
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } >/dev/null; then
21296 if test -s conftest.err; then
21297 ac_cpp_err=$ac_c_preproc_warn_flag
21298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21305 if test -z "$ac_cpp_err"; then
21306 ac_header_preproc=yes
21308 echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21311 ac_header_preproc=no
21313 rm -f conftest.err conftest.$ac_ext
21314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21315 echo "${ECHO_T}$ac_header_preproc" >&6
21317 # So? What about this header?
21318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21324 ac_header_preproc=yes
21327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21341 ## ------------------------------- ##
21342 ## Report this to nfs@lists.sf.net ##
21343 ## ------------------------------- ##
21346 sed "s/^/$as_me: WARNING: /" >&2
21349 echo "$as_me:$LINENO: checking for $ac_header" >&5
21350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21352 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 eval "$as_ac_Header=\$ac_header_preproc"
21356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21361 cat >>confdefs.h <<_ACEOF
21362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21366 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
21367 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
21374 echo "$as_me:$LINENO: checking for Kerberos v5" >&5
21375 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6
21377 # Check whether --with-krb5 or --without-krb5 was given.
21378 if test "${with_krb5+set}" = set; then
21379 withval="$with_krb5"
21385 krb5_with="$withval"
21391 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
21392 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
21394 if test -f $dir/bin/krb5-config; then
21395 K5CONFIG=$dir/bin/krb5-config
21396 elif test -f "/usr/kerberos/bin/krb5-config"; then
21397 K5CONFIG="/usr/kerberos/bin/krb5-config"
21398 elif test -f "/usr/lib/mit/bin/krb5-config"; then
21399 K5CONFIG="/usr/lib/mit/bin/krb5-config"
21401 if test "$K5CONFIG" != ""; then
21402 KRBCFLAGS=`$K5CONFIG --cflags`
21403 KRBLIBS=`$K5CONFIG --libs gssapi`
21404 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
21406 cat >>confdefs.h <<_ACEOF
21407 #define KRB5_VERSION $K5VERS
21410 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
21411 \( -f $dir/lib/libgssapi_krb5.a -o \
21412 -f $dir/lib/libgssapi_krb5.so \) ; then
21414 cat >>confdefs.h <<\_ACEOF
21415 #define HAVE_KRB5 1
21419 if test $K5VERS -le 131; then
21421 cat >>confdefs.h <<\_ACEOF
21422 #define USE_GSS_KRB5_CCACHE_NAME 1
21426 gssapi_lib=gssapi_krb5
21428 elif test \( -f $dir/include/heim_err.h -o\
21429 -f $dir/include/heimdal/heim_err.h \) -a \
21430 -f $dir/lib/libroken.a; then
21432 cat >>confdefs.h <<\_ACEOF
21433 #define HAVE_HEIMDAL 1
21442 if test "x$KRBDIR" = "x"; then
21443 if test "x$krb5_with" = "x"; then
21444 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
21445 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
21446 { (exit 1); exit 1; }; }
21448 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
21449 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
21450 { (exit 1); exit 1; }; }
21453 echo "$as_me:$LINENO: result: $KRBDIR" >&5
21454 echo "${ECHO_T}$KRBDIR" >&6
21456 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
21457 echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
21458 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6
21459 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21462 ac_check_lib_save_LIBS=$LIBS
21463 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21464 cat >conftest.$ac_ext <<_ACEOF
21467 cat confdefs.h >>conftest.$ac_ext
21468 cat >>conftest.$ac_ext <<_ACEOF
21469 /* end confdefs.h. */
21471 /* Override any gcc2 internal prototype to avoid an error. */
21475 /* We use char because int might match the return type of a gcc2
21476 builtin and then its argument prototype would still apply. */
21477 char gss_krb5_export_lucid_sec_context ();
21481 gss_krb5_export_lucid_sec_context ();
21486 rm -f conftest.$ac_objext conftest$ac_exeext
21487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21488 (eval $ac_link) 2>conftest.er1
21490 grep -v '^ *+' conftest.er1 >conftest.err
21492 cat conftest.err >&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); } &&
21495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; } &&
21501 { ac_try='test -s conftest$ac_exeext'
21502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21503 (eval $ac_try) 2>&5
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); }; }; then
21507 eval "$as_ac_Lib=yes"
21509 echo "$as_me: failed program was:" >&5
21510 sed 's/^/| /' conftest.$ac_ext >&5
21512 eval "$as_ac_Lib=no"
21514 rm -f conftest.err conftest.$ac_objext \
21515 conftest$ac_exeext conftest.$ac_ext
21516 LIBS=$ac_check_lib_save_LIBS
21518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21519 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21520 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21522 cat >>confdefs.h <<\_ACEOF
21523 #define HAVE_LUCID_CONTEXT_SUPPORT 1
21528 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
21529 echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
21530 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6
21531 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21532 echo $ECHO_N "(cached) $ECHO_C" >&6
21534 ac_check_lib_save_LIBS=$LIBS
21535 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21536 cat >conftest.$ac_ext <<_ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21543 /* Override any gcc2 internal prototype to avoid an error. */
21547 /* We use char because int might match the return type of a gcc2
21548 builtin and then its argument prototype would still apply. */
21549 char gss_krb5_set_allowable_enctypes ();
21553 gss_krb5_set_allowable_enctypes ();
21558 rm -f conftest.$ac_objext conftest$ac_exeext
21559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21560 (eval $ac_link) 2>conftest.er1
21562 grep -v '^ *+' conftest.er1 >conftest.err
21564 cat conftest.err >&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); } &&
21567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; } &&
21573 { ac_try='test -s conftest$ac_exeext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 eval "$as_ac_Lib=yes"
21581 echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21584 eval "$as_ac_Lib=no"
21586 rm -f conftest.err conftest.$ac_objext \
21587 conftest$ac_exeext conftest.$ac_ext
21588 LIBS=$ac_check_lib_save_LIBS
21590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21591 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21592 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21594 cat >>confdefs.h <<\_ACEOF
21595 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
21600 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
21601 echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
21602 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6
21603 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21604 echo $ECHO_N "(cached) $ECHO_C" >&6
21606 ac_check_lib_save_LIBS=$LIBS
21607 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21608 cat >conftest.$ac_ext <<_ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h. */
21615 /* Override any gcc2 internal prototype to avoid an error. */
21619 /* We use char because int might match the return type of a gcc2
21620 builtin and then its argument prototype would still apply. */
21621 char gss_krb5_ccache_name ();
21625 gss_krb5_ccache_name ();
21630 rm -f conftest.$ac_objext conftest$ac_exeext
21631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21632 (eval $ac_link) 2>conftest.er1
21634 grep -v '^ *+' conftest.er1 >conftest.err
21636 cat conftest.err >&5
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); } &&
21639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21641 (eval $ac_try) 2>&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); }; } &&
21645 { ac_try='test -s conftest$ac_exeext'
21646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21647 (eval $ac_try) 2>&5
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); }; }; then
21651 eval "$as_ac_Lib=yes"
21653 echo "$as_me: failed program was:" >&5
21654 sed 's/^/| /' conftest.$ac_ext >&5
21656 eval "$as_ac_Lib=no"
21658 rm -f conftest.err conftest.$ac_objext \
21659 conftest$ac_exeext conftest.$ac_ext
21660 LIBS=$ac_check_lib_save_LIBS
21662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21663 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21664 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21666 cat >>confdefs.h <<\_ACEOF
21667 #define HAVE_GSS_KRB5_CCACHE_NAME 1
21673 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
21674 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
21675 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
21685 echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
21686 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6
21687 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21690 ac_check_lib_save_LIBS=$LIBS
21691 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
21692 cat >conftest.$ac_ext <<_ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h. */
21699 /* Override any gcc2 internal prototype to avoid an error. */
21703 /* We use char because int might match the return type of a gcc2
21704 builtin and then its argument prototype would still apply. */
21705 char authgss_create_default ();
21709 authgss_create_default ();
21714 rm -f conftest.$ac_objext conftest$ac_exeext
21715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21716 (eval $ac_link) 2>conftest.er1
21718 grep -v '^ *+' conftest.er1 >conftest.err
21720 cat conftest.err >&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } &&
21723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725 (eval $ac_try) 2>&5
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); }; } &&
21729 { ac_try='test -s conftest$ac_exeext'
21730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21731 (eval $ac_try) 2>&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); }; }; then
21735 ac_cv_lib_rpcsecgss_authgss_create_default=yes
21737 echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21740 ac_cv_lib_rpcsecgss_authgss_create_default=no
21742 rm -f conftest.err conftest.$ac_objext \
21743 conftest$ac_exeext conftest.$ac_ext
21744 LIBS=$ac_check_lib_save_LIBS
21746 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
21747 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6
21748 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
21751 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
21752 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
21753 { (exit 1); exit 1; }; }
21756 echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
21757 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6
21758 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
21759 echo $ECHO_N "(cached) $ECHO_C" >&6
21761 ac_check_lib_save_LIBS=$LIBS
21762 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
21763 cat >conftest.$ac_ext <<_ACEOF
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h. */
21770 /* Override any gcc2 internal prototype to avoid an error. */
21774 /* We use char because int might match the return type of a gcc2
21775 builtin and then its argument prototype would still apply. */
21776 char authgss_set_debug_level ();
21780 authgss_set_debug_level ();
21785 rm -f conftest.$ac_objext conftest$ac_exeext
21786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21787 (eval $ac_link) 2>conftest.er1
21789 grep -v '^ *+' conftest.er1 >conftest.err
21791 cat conftest.err >&5
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); } &&
21794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21796 (eval $ac_try) 2>&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); }; } &&
21800 { ac_try='test -s conftest$ac_exeext'
21801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21802 (eval $ac_try) 2>&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); }; }; then
21806 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
21808 echo "$as_me: failed program was:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21811 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
21813 rm -f conftest.err conftest.$ac_objext \
21814 conftest$ac_exeext conftest.$ac_ext
21815 LIBS=$ac_check_lib_save_LIBS
21817 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
21818 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6
21819 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
21821 cat >>confdefs.h <<\_ACEOF
21822 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
21852 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
21853 malloc.h memory.h netdb.h netinet/in.h paths.h \
21854 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
21855 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
21856 syslog.h unistd.h com_err.h et/com_err.h
21858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21860 echo "$as_me:$LINENO: checking for $ac_header" >&5
21861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21863 echo $ECHO_N "(cached) $ECHO_C" >&6
21865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21868 # Is the header compilable?
21869 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21871 cat >conftest.$ac_ext <<_ACEOF
21874 cat confdefs.h >>conftest.$ac_ext
21875 cat >>conftest.$ac_ext <<_ACEOF
21876 /* end confdefs.h. */
21877 $ac_includes_default
21878 #include <$ac_header>
21880 rm -f conftest.$ac_objext
21881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21882 (eval $ac_compile) 2>conftest.er1
21884 grep -v '^ *+' conftest.er1 >conftest.err
21886 cat conftest.err >&5
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); } &&
21889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891 (eval $ac_try) 2>&5
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; } &&
21895 { ac_try='test -s conftest.$ac_objext'
21896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21897 (eval $ac_try) 2>&5
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); }; }; then
21901 ac_header_compiler=yes
21903 echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21906 ac_header_compiler=no
21908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21910 echo "${ECHO_T}$ac_header_compiler" >&6
21912 # Is the header present?
21913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21915 cat >conftest.$ac_ext <<_ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h. */
21921 #include <$ac_header>
21923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21926 grep -v '^ *+' conftest.er1 >conftest.err
21928 cat conftest.err >&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } >/dev/null; then
21931 if test -s conftest.err; then
21932 ac_cpp_err=$ac_c_preproc_warn_flag
21933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21940 if test -z "$ac_cpp_err"; then
21941 ac_header_preproc=yes
21943 echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21946 ac_header_preproc=no
21948 rm -f conftest.err conftest.$ac_ext
21949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21950 echo "${ECHO_T}$ac_header_preproc" >&6
21952 # So? What about this header?
21953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21959 ac_header_preproc=yes
21962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21969 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21976 ## ------------------------------- ##
21977 ## Report this to nfs@lists.sf.net ##
21978 ## ------------------------------- ##
21981 sed "s/^/$as_me: WARNING: /" >&2
21984 echo "$as_me:$LINENO: checking for $ac_header" >&5
21985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21987 echo $ECHO_N "(cached) $ECHO_C" >&6
21989 eval "$as_ac_Header=\$ac_header_preproc"
21991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21996 cat >>confdefs.h <<_ACEOF
21997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22005 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22006 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22007 if test "${ac_cv_c_const+set}" = set; then
22008 echo $ECHO_N "(cached) $ECHO_C" >&6
22010 cat >conftest.$ac_ext <<_ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h. */
22020 /* FIXME: Include the comments suggested by Paul. */
22021 #ifndef __cplusplus
22022 /* Ultrix mips cc rejects this. */
22023 typedef int charset[2];
22025 /* SunOS 4.1.1 cc rejects this. */
22026 char const *const *ccp;
22028 /* NEC SVR4.0.2 mips cc rejects this. */
22029 struct point {int x, y;};
22030 static struct point const zero = {0,0};
22031 /* AIX XL C 1.02.0.0 rejects this.
22032 It does not let you subtract one const X* pointer from another in
22033 an arm of an if-expression whose if-part is not a constant
22035 const char *g = "string";
22036 ccp = &g + (g ? g-g : 0);
22037 /* HPUX 7.0 cc rejects these. */
22040 ccp = (char const *const *) p;
22041 { /* SCO 3.2v4 cc rejects this. */
22043 char const *s = 0 ? (char *) 0 : (char const *) 0;
22047 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22048 int x[] = {25, 17};
22049 const int *foo = &x[0];
22052 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22053 typedef const int *iptr;
22057 { /* AIX XL C 1.02.0.0 rejects this saying
22058 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22059 struct s { int j; const int *ap[3]; };
22060 struct s *b; b->j = 5;
22062 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22063 const int foo = 10;
22071 rm -f conftest.$ac_objext
22072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22073 (eval $ac_compile) 2>conftest.er1
22075 grep -v '^ *+' conftest.er1 >conftest.err
22077 cat conftest.err >&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } &&
22080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082 (eval $ac_try) 2>&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); }; } &&
22086 { ac_try='test -s conftest.$ac_objext'
22087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22088 (eval $ac_try) 2>&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); }; }; then
22094 echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22101 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22102 echo "${ECHO_T}$ac_cv_c_const" >&6
22103 if test $ac_cv_c_const = no; then
22105 cat >>confdefs.h <<\_ACEOF
22111 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22112 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22113 if test "${ac_cv_type_uid_t+set}" = set; then
22114 echo $ECHO_N "(cached) $ECHO_C" >&6
22116 cat >conftest.$ac_ext <<_ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h. */
22122 #include <sys/types.h>
22125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22126 $EGREP "uid_t" >/dev/null 2>&1; then
22127 ac_cv_type_uid_t=yes
22129 ac_cv_type_uid_t=no
22134 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22135 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22136 if test $ac_cv_type_uid_t = no; then
22138 cat >>confdefs.h <<\_ACEOF
22143 cat >>confdefs.h <<\_ACEOF
22149 echo "$as_me:$LINENO: checking for inline" >&5
22150 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22151 if test "${ac_cv_c_inline+set}" = set; then
22152 echo $ECHO_N "(cached) $ECHO_C" >&6
22155 for ac_kw in inline __inline__ __inline; do
22156 cat >conftest.$ac_ext <<_ACEOF
22159 cat confdefs.h >>conftest.$ac_ext
22160 cat >>conftest.$ac_ext <<_ACEOF
22161 /* end confdefs.h. */
22162 #ifndef __cplusplus
22164 static $ac_kw foo_t static_foo () {return 0; }
22165 $ac_kw foo_t foo () {return 0; }
22169 rm -f conftest.$ac_objext
22170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22171 (eval $ac_compile) 2>conftest.er1
22173 grep -v '^ *+' conftest.er1 >conftest.err
22175 cat conftest.err >&5
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); } &&
22178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180 (eval $ac_try) 2>&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); }; } &&
22184 { ac_try='test -s conftest.$ac_objext'
22185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22186 (eval $ac_try) 2>&5
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); }; }; then
22190 ac_cv_c_inline=$ac_kw; break
22192 echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22200 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22201 echo "${ECHO_T}$ac_cv_c_inline" >&6
22204 case $ac_cv_c_inline in
22207 case $ac_cv_c_inline in
22209 *) ac_val=$ac_cv_c_inline;;
22211 cat >>confdefs.h <<_ACEOF
22212 #ifndef __cplusplus
22213 #define inline $ac_val
22219 echo "$as_me:$LINENO: checking for off_t" >&5
22220 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22221 if test "${ac_cv_type_off_t+set}" = set; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
22224 cat >conftest.$ac_ext <<_ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h. */
22230 $ac_includes_default
22236 if (sizeof (off_t))
22242 rm -f conftest.$ac_objext
22243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22244 (eval $ac_compile) 2>conftest.er1
22246 grep -v '^ *+' conftest.er1 >conftest.err
22248 cat conftest.err >&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } &&
22251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22253 (eval $ac_try) 2>&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); }; } &&
22257 { ac_try='test -s conftest.$ac_objext'
22258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259 (eval $ac_try) 2>&5
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); }; }; then
22263 ac_cv_type_off_t=yes
22265 echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22268 ac_cv_type_off_t=no
22270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22272 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22273 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22274 if test $ac_cv_type_off_t = yes; then
22278 cat >>confdefs.h <<_ACEOF
22284 echo "$as_me:$LINENO: checking for pid_t" >&5
22285 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22286 if test "${ac_cv_type_pid_t+set}" = set; then
22287 echo $ECHO_N "(cached) $ECHO_C" >&6
22289 cat >conftest.$ac_ext <<_ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h. */
22295 $ac_includes_default
22301 if (sizeof (pid_t))
22307 rm -f conftest.$ac_objext
22308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22309 (eval $ac_compile) 2>conftest.er1
22311 grep -v '^ *+' conftest.er1 >conftest.err
22313 cat conftest.err >&5
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); } &&
22316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; } &&
22322 { ac_try='test -s conftest.$ac_objext'
22323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22324 (eval $ac_try) 2>&5
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); }; }; then
22328 ac_cv_type_pid_t=yes
22330 echo "$as_me: failed program was:" >&5
22331 sed 's/^/| /' conftest.$ac_ext >&5
22333 ac_cv_type_pid_t=no
22335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22337 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22338 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22339 if test $ac_cv_type_pid_t = yes; then
22343 cat >>confdefs.h <<_ACEOF
22349 echo "$as_me:$LINENO: checking for size_t" >&5
22350 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22351 if test "${ac_cv_type_size_t+set}" = set; then
22352 echo $ECHO_N "(cached) $ECHO_C" >&6
22354 cat >conftest.$ac_ext <<_ACEOF
22357 cat confdefs.h >>conftest.$ac_ext
22358 cat >>conftest.$ac_ext <<_ACEOF
22359 /* end confdefs.h. */
22360 $ac_includes_default
22366 if (sizeof (size_t))
22372 rm -f conftest.$ac_objext
22373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22374 (eval $ac_compile) 2>conftest.er1
22376 grep -v '^ *+' conftest.er1 >conftest.err
22378 cat conftest.err >&5
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); } &&
22381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22383 (eval $ac_try) 2>&5
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); }; } &&
22387 { ac_try='test -s conftest.$ac_objext'
22388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22389 (eval $ac_try) 2>&5
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); }; }; then
22393 ac_cv_type_size_t=yes
22395 echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22398 ac_cv_type_size_t=no
22400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22402 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22403 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22404 if test $ac_cv_type_size_t = yes; then
22408 cat >>confdefs.h <<_ACEOF
22409 #define size_t unsigned
22414 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22415 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22416 if test "${ac_cv_header_time+set}" = set; then
22417 echo $ECHO_N "(cached) $ECHO_C" >&6
22419 cat >conftest.$ac_ext <<_ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h. */
22425 #include <sys/types.h>
22426 #include <sys/time.h>
22432 if ((struct tm *) 0)
22438 rm -f conftest.$ac_objext
22439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22440 (eval $ac_compile) 2>conftest.er1
22442 grep -v '^ *+' conftest.er1 >conftest.err
22444 cat conftest.err >&5
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } &&
22447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22449 (eval $ac_try) 2>&5
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); }; } &&
22453 { ac_try='test -s conftest.$ac_objext'
22454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22455 (eval $ac_try) 2>&5
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); }; }; then
22459 ac_cv_header_time=yes
22461 echo "$as_me: failed program was:" >&5
22462 sed 's/^/| /' conftest.$ac_ext >&5
22464 ac_cv_header_time=no
22466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22468 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22469 echo "${ECHO_T}$ac_cv_header_time" >&6
22470 if test $ac_cv_header_time = yes; then
22472 cat >>confdefs.h <<\_ACEOF
22473 #define TIME_WITH_SYS_TIME 1
22478 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22479 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22480 if test "${ac_cv_struct_tm+set}" = set; then
22481 echo $ECHO_N "(cached) $ECHO_C" >&6
22483 cat >conftest.$ac_ext <<_ACEOF
22486 cat confdefs.h >>conftest.$ac_ext
22487 cat >>conftest.$ac_ext <<_ACEOF
22488 /* end confdefs.h. */
22489 #include <sys/types.h>
22495 struct tm *tp; tp->tm_sec;
22500 rm -f conftest.$ac_objext
22501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22502 (eval $ac_compile) 2>conftest.er1
22504 grep -v '^ *+' conftest.er1 >conftest.err
22506 cat conftest.err >&5
22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); } &&
22509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22511 (eval $ac_try) 2>&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); }; } &&
22515 { ac_try='test -s conftest.$ac_objext'
22516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22517 (eval $ac_try) 2>&5
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); }; }; then
22521 ac_cv_struct_tm=time.h
22523 echo "$as_me: failed program was:" >&5
22524 sed 's/^/| /' conftest.$ac_ext >&5
22526 ac_cv_struct_tm=sys/time.h
22528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22530 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22531 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22532 if test $ac_cv_struct_tm = sys/time.h; then
22534 cat >>confdefs.h <<\_ACEOF
22535 #define TM_IN_SYS_TIME 1
22541 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22542 # for constant arguments. Useless!
22543 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22544 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22545 if test "${ac_cv_working_alloca_h+set}" = set; then
22546 echo $ECHO_N "(cached) $ECHO_C" >&6
22548 cat >conftest.$ac_ext <<_ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h. */
22554 #include <alloca.h>
22558 char *p = (char *) alloca (2 * sizeof (int));
22563 rm -f conftest.$ac_objext conftest$ac_exeext
22564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22565 (eval $ac_link) 2>conftest.er1
22567 grep -v '^ *+' conftest.er1 >conftest.err
22569 cat conftest.err >&5
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); } &&
22572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; } &&
22578 { ac_try='test -s conftest$ac_exeext'
22579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580 (eval $ac_try) 2>&5
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); }; }; then
22584 ac_cv_working_alloca_h=yes
22586 echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22589 ac_cv_working_alloca_h=no
22591 rm -f conftest.err conftest.$ac_objext \
22592 conftest$ac_exeext conftest.$ac_ext
22594 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22595 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22596 if test $ac_cv_working_alloca_h = yes; then
22598 cat >>confdefs.h <<\_ACEOF
22599 #define HAVE_ALLOCA_H 1
22604 echo "$as_me:$LINENO: checking for alloca" >&5
22605 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22606 if test "${ac_cv_func_alloca_works+set}" = set; then
22607 echo $ECHO_N "(cached) $ECHO_C" >&6
22609 cat >conftest.$ac_ext <<_ACEOF
22612 cat confdefs.h >>conftest.$ac_ext
22613 cat >>conftest.$ac_ext <<_ACEOF
22614 /* end confdefs.h. */
22616 # define alloca __builtin_alloca
22619 # include <malloc.h>
22620 # define alloca _alloca
22623 # include <alloca.h>
22628 # ifndef alloca /* predefined by HP cc +Olibcalls */
22639 char *p = (char *) alloca (1);
22644 rm -f conftest.$ac_objext conftest$ac_exeext
22645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22646 (eval $ac_link) 2>conftest.er1
22648 grep -v '^ *+' conftest.er1 >conftest.err
22650 cat conftest.err >&5
22651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652 (exit $ac_status); } &&
22653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22655 (eval $ac_try) 2>&5
22657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 (exit $ac_status); }; } &&
22659 { ac_try='test -s conftest$ac_exeext'
22660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22661 (eval $ac_try) 2>&5
22663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664 (exit $ac_status); }; }; then
22665 ac_cv_func_alloca_works=yes
22667 echo "$as_me: failed program was:" >&5
22668 sed 's/^/| /' conftest.$ac_ext >&5
22670 ac_cv_func_alloca_works=no
22672 rm -f conftest.err conftest.$ac_objext \
22673 conftest$ac_exeext conftest.$ac_ext
22675 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22676 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22678 if test $ac_cv_func_alloca_works = yes; then
22680 cat >>confdefs.h <<\_ACEOF
22681 #define HAVE_ALLOCA 1
22685 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22686 # that cause trouble. Some versions do not even contain alloca or
22687 # contain a buggy version. If you still want to use their alloca,
22688 # use ar to extract alloca.o from them instead of compiling alloca.c.
22690 ALLOCA=alloca.$ac_objext
22692 cat >>confdefs.h <<\_ACEOF
22697 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22698 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22699 if test "${ac_cv_os_cray+set}" = set; then
22700 echo $ECHO_N "(cached) $ECHO_C" >&6
22702 cat >conftest.$ac_ext <<_ACEOF
22705 cat confdefs.h >>conftest.$ac_ext
22706 cat >>conftest.$ac_ext <<_ACEOF
22707 /* end confdefs.h. */
22708 #if defined(CRAY) && ! defined(CRAY2)
22715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22716 $EGREP "webecray" >/dev/null 2>&1; then
22724 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22725 echo "${ECHO_T}$ac_cv_os_cray" >&6
22726 if test $ac_cv_os_cray = yes; then
22727 for ac_func in _getb67 GETB67 getb67; do
22728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22729 echo "$as_me:$LINENO: checking for $ac_func" >&5
22730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22731 if eval "test \"\${$as_ac_var+set}\" = set"; then
22732 echo $ECHO_N "(cached) $ECHO_C" >&6
22734 cat >conftest.$ac_ext <<_ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h. */
22740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22742 #define $ac_func innocuous_$ac_func
22744 /* System header to define __stub macros and hopefully few prototypes,
22745 which can conflict with char $ac_func (); below.
22746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22747 <limits.h> exists even on freestanding compilers. */
22750 # include <limits.h>
22752 # include <assert.h>
22757 /* Override any gcc2 internal prototype to avoid an error. */
22762 /* We use char because int might match the return type of a gcc2
22763 builtin and then its argument prototype would still apply. */
22765 /* The GNU C library defines this for functions which it implements
22766 to always fail with ENOSYS. Some functions are actually named
22767 something starting with __ and the normal name is an alias. */
22768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22771 char (*f) () = $ac_func;
22780 return f != $ac_func;
22785 rm -f conftest.$ac_objext conftest$ac_exeext
22786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22787 (eval $ac_link) 2>conftest.er1
22789 grep -v '^ *+' conftest.er1 >conftest.err
22791 cat conftest.err >&5
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); } &&
22794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22796 (eval $ac_try) 2>&5
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); }; } &&
22800 { ac_try='test -s conftest$ac_exeext'
22801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22802 (eval $ac_try) 2>&5
22804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805 (exit $ac_status); }; }; then
22806 eval "$as_ac_var=yes"
22808 echo "$as_me: failed program was:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22811 eval "$as_ac_var=no"
22813 rm -f conftest.err conftest.$ac_objext \
22814 conftest$ac_exeext conftest.$ac_ext
22816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22818 if test `eval echo '${'$as_ac_var'}'` = yes; then
22820 cat >>confdefs.h <<_ACEOF
22821 #define CRAY_STACKSEG_END $ac_func
22830 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22831 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22832 if test "${ac_cv_c_stack_direction+set}" = set; then
22833 echo $ECHO_N "(cached) $ECHO_C" >&6
22835 if test "$cross_compiling" = yes; then
22836 ac_cv_c_stack_direction=0
22838 cat >conftest.$ac_ext <<_ACEOF
22841 cat confdefs.h >>conftest.$ac_ext
22842 cat >>conftest.$ac_ext <<_ACEOF
22843 /* end confdefs.h. */
22845 find_stack_direction ()
22847 static char *addr = 0;
22852 return find_stack_direction ();
22855 return (&dummy > addr) ? 1 : -1;
22861 exit (find_stack_direction () < 0);
22864 rm -f conftest$ac_exeext
22865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22866 (eval $ac_link) 2>&5
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871 (eval $ac_try) 2>&5
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); }; }; then
22875 ac_cv_c_stack_direction=1
22877 echo "$as_me: program exited with status $ac_status" >&5
22878 echo "$as_me: failed program was:" >&5
22879 sed 's/^/| /' conftest.$ac_ext >&5
22881 ( exit $ac_status )
22882 ac_cv_c_stack_direction=-1
22884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22887 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22888 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22890 cat >>confdefs.h <<_ACEOF
22891 #define STACK_DIRECTION $ac_cv_c_stack_direction
22902 ac_header_dirent=no
22903 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22904 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22905 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22906 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
22907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22908 echo $ECHO_N "(cached) $ECHO_C" >&6
22910 cat >conftest.$ac_ext <<_ACEOF
22913 cat confdefs.h >>conftest.$ac_ext
22914 cat >>conftest.$ac_ext <<_ACEOF
22915 /* end confdefs.h. */
22916 #include <sys/types.h>
22928 rm -f conftest.$ac_objext
22929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22930 (eval $ac_compile) 2>conftest.er1
22932 grep -v '^ *+' conftest.er1 >conftest.err
22934 cat conftest.err >&5
22935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936 (exit $ac_status); } &&
22937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22939 (eval $ac_try) 2>&5
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); }; } &&
22943 { ac_try='test -s conftest.$ac_objext'
22944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945 (eval $ac_try) 2>&5
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); }; }; then
22949 eval "$as_ac_Header=yes"
22951 echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22954 eval "$as_ac_Header=no"
22956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22961 cat >>confdefs.h <<_ACEOF
22962 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22965 ac_header_dirent=$ac_hdr; break
22969 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22970 if test $ac_header_dirent = dirent.h; then
22971 echo "$as_me:$LINENO: checking for library containing opendir" >&5
22972 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
22973 if test "${ac_cv_search_opendir+set}" = set; then
22974 echo $ECHO_N "(cached) $ECHO_C" >&6
22976 ac_func_search_save_LIBS=$LIBS
22977 ac_cv_search_opendir=no
22978 cat >conftest.$ac_ext <<_ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h. */
22985 /* Override any gcc2 internal prototype to avoid an error. */
22989 /* We use char because int might match the return type of a gcc2
22990 builtin and then its argument prototype would still apply. */
23000 rm -f conftest.$ac_objext conftest$ac_exeext
23001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23002 (eval $ac_link) 2>conftest.er1
23004 grep -v '^ *+' conftest.er1 >conftest.err
23006 cat conftest.err >&5
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); } &&
23009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011 (eval $ac_try) 2>&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); }; } &&
23015 { ac_try='test -s conftest$ac_exeext'
23016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017 (eval $ac_try) 2>&5
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); }; }; then
23021 ac_cv_search_opendir="none required"
23023 echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23027 rm -f conftest.err conftest.$ac_objext \
23028 conftest$ac_exeext conftest.$ac_ext
23029 if test "$ac_cv_search_opendir" = no; then
23030 for ac_lib in dir; do
23031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23032 cat >conftest.$ac_ext <<_ACEOF
23035 cat confdefs.h >>conftest.$ac_ext
23036 cat >>conftest.$ac_ext <<_ACEOF
23037 /* end confdefs.h. */
23039 /* Override any gcc2 internal prototype to avoid an error. */
23043 /* We use char because int might match the return type of a gcc2
23044 builtin and then its argument prototype would still apply. */
23054 rm -f conftest.$ac_objext conftest$ac_exeext
23055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23056 (eval $ac_link) 2>conftest.er1
23058 grep -v '^ *+' conftest.er1 >conftest.err
23060 cat conftest.err >&5
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); } &&
23063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23065 (eval $ac_try) 2>&5
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); }; } &&
23069 { ac_try='test -s conftest$ac_exeext'
23070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23071 (eval $ac_try) 2>&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); }; }; then
23075 ac_cv_search_opendir="-l$ac_lib"
23078 echo "$as_me: failed program was:" >&5
23079 sed 's/^/| /' conftest.$ac_ext >&5
23082 rm -f conftest.err conftest.$ac_objext \
23083 conftest$ac_exeext conftest.$ac_ext
23086 LIBS=$ac_func_search_save_LIBS
23088 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23089 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23090 if test "$ac_cv_search_opendir" != no; then
23091 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23096 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23097 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23098 if test "${ac_cv_search_opendir+set}" = set; then
23099 echo $ECHO_N "(cached) $ECHO_C" >&6
23101 ac_func_search_save_LIBS=$LIBS
23102 ac_cv_search_opendir=no
23103 cat >conftest.$ac_ext <<_ACEOF
23106 cat confdefs.h >>conftest.$ac_ext
23107 cat >>conftest.$ac_ext <<_ACEOF
23108 /* end confdefs.h. */
23110 /* Override any gcc2 internal prototype to avoid an error. */
23114 /* We use char because int might match the return type of a gcc2
23115 builtin and then its argument prototype would still apply. */
23125 rm -f conftest.$ac_objext conftest$ac_exeext
23126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23127 (eval $ac_link) 2>conftest.er1
23129 grep -v '^ *+' conftest.er1 >conftest.err
23131 cat conftest.err >&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); } &&
23134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23136 (eval $ac_try) 2>&5
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); }; } &&
23140 { ac_try='test -s conftest$ac_exeext'
23141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23142 (eval $ac_try) 2>&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); }; }; then
23146 ac_cv_search_opendir="none required"
23148 echo "$as_me: failed program was:" >&5
23149 sed 's/^/| /' conftest.$ac_ext >&5
23152 rm -f conftest.err conftest.$ac_objext \
23153 conftest$ac_exeext conftest.$ac_ext
23154 if test "$ac_cv_search_opendir" = no; then
23155 for ac_lib in x; do
23156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23157 cat >conftest.$ac_ext <<_ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h. */
23164 /* Override any gcc2 internal prototype to avoid an error. */
23168 /* We use char because int might match the return type of a gcc2
23169 builtin and then its argument prototype would still apply. */
23179 rm -f conftest.$ac_objext conftest$ac_exeext
23180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23181 (eval $ac_link) 2>conftest.er1
23183 grep -v '^ *+' conftest.er1 >conftest.err
23185 cat conftest.err >&5
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); } &&
23188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23190 (eval $ac_try) 2>&5
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); }; } &&
23194 { ac_try='test -s conftest$ac_exeext'
23195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23196 (eval $ac_try) 2>&5
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); }; }; then
23200 ac_cv_search_opendir="-l$ac_lib"
23203 echo "$as_me: failed program was:" >&5
23204 sed 's/^/| /' conftest.$ac_ext >&5
23207 rm -f conftest.err conftest.$ac_objext \
23208 conftest$ac_exeext conftest.$ac_ext
23211 LIBS=$ac_func_search_save_LIBS
23213 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23214 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23215 if test "$ac_cv_search_opendir" != no; then
23216 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23222 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
23223 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
23224 if test "${ac_cv_func_closedir_void+set}" = set; then
23225 echo $ECHO_N "(cached) $ECHO_C" >&6
23227 if test "$cross_compiling" = yes; then
23228 ac_cv_func_closedir_void=yes
23230 cat >conftest.$ac_ext <<_ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h. */
23236 $ac_includes_default
23237 #include <$ac_header_dirent>
23238 #ifndef __cplusplus
23245 exit (closedir (opendir (".")) != 0);
23250 rm -f conftest$ac_exeext
23251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23252 (eval $ac_link) 2>&5
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23257 (eval $ac_try) 2>&5
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); }; }; then
23261 ac_cv_func_closedir_void=no
23263 echo "$as_me: program exited with status $ac_status" >&5
23264 echo "$as_me: failed program was:" >&5
23265 sed 's/^/| /' conftest.$ac_ext >&5
23267 ( exit $ac_status )
23268 ac_cv_func_closedir_void=yes
23270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23273 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
23274 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
23275 if test $ac_cv_func_closedir_void = yes; then
23277 cat >>confdefs.h <<\_ACEOF
23278 #define CLOSEDIR_VOID 1
23283 echo "$as_me:$LINENO: checking for error_at_line" >&5
23284 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
23285 if test "${ac_cv_lib_error_at_line+set}" = set; then
23286 echo $ECHO_N "(cached) $ECHO_C" >&6
23288 cat >conftest.$ac_ext <<_ACEOF
23291 cat confdefs.h >>conftest.$ac_ext
23292 cat >>conftest.$ac_ext <<_ACEOF
23293 /* end confdefs.h. */
23294 $ac_includes_default
23298 error_at_line (0, 0, "", 0, "");
23303 rm -f conftest.$ac_objext conftest$ac_exeext
23304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23305 (eval $ac_link) 2>conftest.er1
23307 grep -v '^ *+' conftest.er1 >conftest.err
23309 cat conftest.err >&5
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); } &&
23312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23314 (eval $ac_try) 2>&5
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); }; } &&
23318 { ac_try='test -s conftest$ac_exeext'
23319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23320 (eval $ac_try) 2>&5
23322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323 (exit $ac_status); }; }; then
23324 ac_cv_lib_error_at_line=yes
23326 echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23329 ac_cv_lib_error_at_line=no
23331 rm -f conftest.err conftest.$ac_objext \
23332 conftest$ac_exeext conftest.$ac_ext
23334 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
23335 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
23336 if test $ac_cv_lib_error_at_line = no; then
23338 "error.$ac_objext" | \
23339 *" error.$ac_objext" | \
23340 "error.$ac_objext "* | \
23341 *" error.$ac_objext "* ) ;;
23342 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
23349 for ac_header in unistd.h vfork.h
23351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23353 echo "$as_me:$LINENO: checking for $ac_header" >&5
23354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23356 echo $ECHO_N "(cached) $ECHO_C" >&6
23358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23361 # Is the header compilable?
23362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23364 cat >conftest.$ac_ext <<_ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h. */
23370 $ac_includes_default
23371 #include <$ac_header>
23373 rm -f conftest.$ac_objext
23374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23375 (eval $ac_compile) 2>conftest.er1
23377 grep -v '^ *+' conftest.er1 >conftest.err
23379 cat conftest.err >&5
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); } &&
23382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384 (eval $ac_try) 2>&5
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); }; } &&
23388 { ac_try='test -s conftest.$ac_objext'
23389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; }; then
23394 ac_header_compiler=yes
23396 echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23399 ac_header_compiler=no
23401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23403 echo "${ECHO_T}$ac_header_compiler" >&6
23405 # Is the header present?
23406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23408 cat >conftest.$ac_ext <<_ACEOF
23411 cat confdefs.h >>conftest.$ac_ext
23412 cat >>conftest.$ac_ext <<_ACEOF
23413 /* end confdefs.h. */
23414 #include <$ac_header>
23416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23419 grep -v '^ *+' conftest.er1 >conftest.err
23421 cat conftest.err >&5
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } >/dev/null; then
23424 if test -s conftest.err; then
23425 ac_cpp_err=$ac_c_preproc_warn_flag
23426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23433 if test -z "$ac_cpp_err"; then
23434 ac_header_preproc=yes
23436 echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23439 ac_header_preproc=no
23441 rm -f conftest.err conftest.$ac_ext
23442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23443 echo "${ECHO_T}$ac_header_preproc" >&6
23445 # So? What about this header?
23446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23452 ac_header_preproc=yes
23455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23469 ## ------------------------------- ##
23470 ## Report this to nfs@lists.sf.net ##
23471 ## ------------------------------- ##
23474 sed "s/^/$as_me: WARNING: /" >&2
23477 echo "$as_me:$LINENO: checking for $ac_header" >&5
23478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23480 echo $ECHO_N "(cached) $ECHO_C" >&6
23482 eval "$as_ac_Header=\$ac_header_preproc"
23484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23489 cat >>confdefs.h <<_ACEOF
23490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23499 for ac_func in fork vfork
23501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23502 echo "$as_me:$LINENO: checking for $ac_func" >&5
23503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23504 if eval "test \"\${$as_ac_var+set}\" = set"; then
23505 echo $ECHO_N "(cached) $ECHO_C" >&6
23507 cat >conftest.$ac_ext <<_ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h. */
23513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23515 #define $ac_func innocuous_$ac_func
23517 /* System header to define __stub macros and hopefully few prototypes,
23518 which can conflict with char $ac_func (); below.
23519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23520 <limits.h> exists even on freestanding compilers. */
23523 # include <limits.h>
23525 # include <assert.h>
23530 /* Override any gcc2 internal prototype to avoid an error. */
23535 /* We use char because int might match the return type of a gcc2
23536 builtin and then its argument prototype would still apply. */
23538 /* The GNU C library defines this for functions which it implements
23539 to always fail with ENOSYS. Some functions are actually named
23540 something starting with __ and the normal name is an alias. */
23541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23544 char (*f) () = $ac_func;
23553 return f != $ac_func;
23558 rm -f conftest.$ac_objext conftest$ac_exeext
23559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23560 (eval $ac_link) 2>conftest.er1
23562 grep -v '^ *+' conftest.er1 >conftest.err
23564 cat conftest.err >&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); } &&
23567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23569 (eval $ac_try) 2>&5
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); }; } &&
23573 { ac_try='test -s conftest$ac_exeext'
23574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23575 (eval $ac_try) 2>&5
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); }; }; then
23579 eval "$as_ac_var=yes"
23581 echo "$as_me: failed program was:" >&5
23582 sed 's/^/| /' conftest.$ac_ext >&5
23584 eval "$as_ac_var=no"
23586 rm -f conftest.err conftest.$ac_objext \
23587 conftest$ac_exeext conftest.$ac_ext
23589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23591 if test `eval echo '${'$as_ac_var'}'` = yes; then
23592 cat >>confdefs.h <<_ACEOF
23593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23599 if test "x$ac_cv_func_fork" = xyes; then
23600 echo "$as_me:$LINENO: checking for working fork" >&5
23601 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23602 if test "${ac_cv_func_fork_works+set}" = set; then
23603 echo $ECHO_N "(cached) $ECHO_C" >&6
23605 if test "$cross_compiling" = yes; then
23606 ac_cv_func_fork_works=cross
23608 cat >conftest.$ac_ext <<_ACEOF
23611 cat confdefs.h >>conftest.$ac_ext
23612 cat >>conftest.$ac_ext <<_ACEOF
23613 /* end confdefs.h. */
23614 $ac_includes_default
23619 /* By Ruediger Kuhlmann. */
23628 rm -f conftest$ac_exeext
23629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23630 (eval $ac_link) 2>&5
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23635 (eval $ac_try) 2>&5
23637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); }; }; then
23639 ac_cv_func_fork_works=yes
23641 echo "$as_me: program exited with status $ac_status" >&5
23642 echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23645 ( exit $ac_status )
23646 ac_cv_func_fork_works=no
23648 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23651 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23652 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
23655 ac_cv_func_fork_works=$ac_cv_func_fork
23657 if test "x$ac_cv_func_fork_works" = xcross; then
23659 *-*-amigaos* | *-*-msdosdjgpp*)
23660 # Override, as these systems have only a dummy fork() stub
23661 ac_cv_func_fork_works=no
23664 ac_cv_func_fork_works=yes
23667 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23668 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23670 ac_cv_func_vfork_works=$ac_cv_func_vfork
23671 if test "x$ac_cv_func_vfork" = xyes; then
23672 echo "$as_me:$LINENO: checking for working vfork" >&5
23673 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
23674 if test "${ac_cv_func_vfork_works+set}" = set; then
23675 echo $ECHO_N "(cached) $ECHO_C" >&6
23677 if test "$cross_compiling" = yes; then
23678 ac_cv_func_vfork_works=cross
23680 cat >conftest.$ac_ext <<_ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h. */
23686 /* Thanks to Paul Eggert for this test. */
23688 #include <stdlib.h>
23689 #include <sys/types.h>
23690 #include <sys/stat.h>
23691 #include <sys/wait.h>
23693 # include <unistd.h>
23696 # include <vfork.h>
23698 /* On some sparc systems, changes by the child to local and incoming
23699 argument registers are propagated back to the parent. The compiler
23700 is told about this with #include <vfork.h>, but some compilers
23701 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23702 static variable whose address is put into a register that is
23703 clobbered by the vfork. */
23706 sparc_address_test (int arg)
23708 sparc_address_test (arg) int arg;
23711 static pid_t child;
23729 pid_t parent = getpid ();
23732 sparc_address_test (0);
23737 /* Here is another test for sparc vfork register problems. This
23738 test uses lots of local variables, at least as many local
23739 variables as main has allocated so far including compiler
23740 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23741 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23742 reuse the register of parent for one of the local variables,
23743 since it will think that parent can't possibly be used any more
23744 in this routine. Assigning to the local variable will thus
23745 munge parent in the parent process. */
23747 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23748 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23749 /* Convince the compiler that p..p7 are live; otherwise, it might
23750 use the same hardware register for all 8 local variables. */
23751 if (p != p1 || p != p2 || p != p3 || p != p4
23752 || p != p5 || p != p6 || p != p7)
23755 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23756 from child file descriptors. If the child closes a descriptor
23757 before it execs or exits, this munges the parent's descriptor
23758 as well. Test for this by closing stdout in the child. */
23759 _exit(close(fileno(stdout)) != 0);
23764 while (wait(&status) != child)
23767 /* Was there some problem with vforking? */
23770 /* Did the child fail? (This shouldn't happen.) */
23773 /* Did the vfork/compiler bug occur? */
23774 || parent != getpid()
23776 /* Did the file descriptor bug occur? */
23777 || fstat(fileno(stdout), &st) != 0
23782 rm -f conftest$ac_exeext
23783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23784 (eval $ac_link) 2>&5
23786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23789 (eval $ac_try) 2>&5
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); }; }; then
23793 ac_cv_func_vfork_works=yes
23795 echo "$as_me: program exited with status $ac_status" >&5
23796 echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23799 ( exit $ac_status )
23800 ac_cv_func_vfork_works=no
23802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23805 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23806 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23809 if test "x$ac_cv_func_fork_works" = xcross; then
23810 ac_cv_func_vfork_works=$ac_cv_func_vfork
23811 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23812 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23815 if test "x$ac_cv_func_vfork_works" = xyes; then
23817 cat >>confdefs.h <<\_ACEOF
23818 #define HAVE_WORKING_VFORK 1
23823 cat >>confdefs.h <<\_ACEOF
23828 if test "x$ac_cv_func_fork_works" = xyes; then
23830 cat >>confdefs.h <<\_ACEOF
23831 #define HAVE_WORKING_FORK 1
23836 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
23837 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
23838 if test "${ac_cv_type_getgroups+set}" = set; then
23839 echo $ECHO_N "(cached) $ECHO_C" >&6
23841 if test "$cross_compiling" = yes; then
23842 ac_cv_type_getgroups=cross
23844 cat >conftest.$ac_ext <<_ACEOF
23847 cat confdefs.h >>conftest.$ac_ext
23848 cat >>conftest.$ac_ext <<_ACEOF
23849 /* end confdefs.h. */
23850 /* Thanks to Mike Rendell for this test. */
23851 #include <sys/types.h>
23854 #define MAX(x, y) ((x) > (y) ? (x) : (y))
23859 gid_t gidset[NGID];
23861 union { gid_t gval; long lval; } val;
23864 for (i = 0; i < NGID; i++)
23865 gidset[i] = val.gval;
23866 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
23868 /* Exit non-zero if getgroups seems to require an array of ints. This
23869 happens when gid_t is short but getgroups modifies an array of ints. */
23870 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
23873 rm -f conftest$ac_exeext
23874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23875 (eval $ac_link) 2>&5
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23880 (eval $ac_try) 2>&5
23882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883 (exit $ac_status); }; }; then
23884 ac_cv_type_getgroups=gid_t
23886 echo "$as_me: program exited with status $ac_status" >&5
23887 echo "$as_me: failed program was:" >&5
23888 sed 's/^/| /' conftest.$ac_ext >&5
23890 ( exit $ac_status )
23891 ac_cv_type_getgroups=int
23893 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23895 if test $ac_cv_type_getgroups = cross; then
23896 cat >conftest.$ac_ext <<_ACEOF
23899 cat confdefs.h >>conftest.$ac_ext
23900 cat >>conftest.$ac_ext <<_ACEOF
23901 /* end confdefs.h. */
23902 #include <unistd.h>
23905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23906 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
23907 ac_cv_type_getgroups=gid_t
23909 ac_cv_type_getgroups=int
23915 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
23916 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
23918 cat >>confdefs.h <<_ACEOF
23919 #define GETGROUPS_T $ac_cv_type_getgroups
23923 echo "$as_me:$LINENO: checking for getgroups" >&5
23924 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
23925 if test "${ac_cv_func_getgroups+set}" = set; then
23926 echo $ECHO_N "(cached) $ECHO_C" >&6
23928 cat >conftest.$ac_ext <<_ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h. */
23934 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
23935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23936 #define getgroups innocuous_getgroups
23938 /* System header to define __stub macros and hopefully few prototypes,
23939 which can conflict with char getgroups (); below.
23940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23941 <limits.h> exists even on freestanding compilers. */
23944 # include <limits.h>
23946 # include <assert.h>
23951 /* Override any gcc2 internal prototype to avoid an error. */
23956 /* We use char because int might match the return type of a gcc2
23957 builtin and then its argument prototype would still apply. */
23959 /* The GNU C library defines this for functions which it implements
23960 to always fail with ENOSYS. Some functions are actually named
23961 something starting with __ and the normal name is an alias. */
23962 #if defined (__stub_getgroups) || defined (__stub___getgroups)
23965 char (*f) () = getgroups;
23974 return f != getgroups;
23979 rm -f conftest.$ac_objext conftest$ac_exeext
23980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23981 (eval $ac_link) 2>conftest.er1
23983 grep -v '^ *+' conftest.er1 >conftest.err
23985 cat conftest.err >&5
23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987 (exit $ac_status); } &&
23988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23990 (eval $ac_try) 2>&5
23992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993 (exit $ac_status); }; } &&
23994 { ac_try='test -s conftest$ac_exeext'
23995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23996 (eval $ac_try) 2>&5
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); }; }; then
24000 ac_cv_func_getgroups=yes
24002 echo "$as_me: failed program was:" >&5
24003 sed 's/^/| /' conftest.$ac_ext >&5
24005 ac_cv_func_getgroups=no
24007 rm -f conftest.err conftest.$ac_objext \
24008 conftest$ac_exeext conftest.$ac_ext
24010 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
24011 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
24014 # If we don't yet have getgroups, see if it's in -lbsd.
24015 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24017 if test $ac_cv_func_getgroups = no; then
24018 echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
24019 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
24020 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
24021 echo $ECHO_N "(cached) $ECHO_C" >&6
24023 ac_check_lib_save_LIBS=$LIBS
24025 cat >conftest.$ac_ext <<_ACEOF
24028 cat confdefs.h >>conftest.$ac_ext
24029 cat >>conftest.$ac_ext <<_ACEOF
24030 /* end confdefs.h. */
24032 /* Override any gcc2 internal prototype to avoid an error. */
24036 /* We use char because int might match the return type of a gcc2
24037 builtin and then its argument prototype would still apply. */
24047 rm -f conftest.$ac_objext conftest$ac_exeext
24048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24049 (eval $ac_link) 2>conftest.er1
24051 grep -v '^ *+' conftest.er1 >conftest.err
24053 cat conftest.err >&5
24054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055 (exit $ac_status); } &&
24056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24058 (eval $ac_try) 2>&5
24060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061 (exit $ac_status); }; } &&
24062 { ac_try='test -s conftest$ac_exeext'
24063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24064 (eval $ac_try) 2>&5
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); }; }; then
24068 ac_cv_lib_bsd_getgroups=yes
24070 echo "$as_me: failed program was:" >&5
24071 sed 's/^/| /' conftest.$ac_ext >&5
24073 ac_cv_lib_bsd_getgroups=no
24075 rm -f conftest.err conftest.$ac_objext \
24076 conftest$ac_exeext conftest.$ac_ext
24077 LIBS=$ac_check_lib_save_LIBS
24079 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
24080 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
24081 if test $ac_cv_lib_bsd_getgroups = yes; then
24082 GETGROUPS_LIB=-lbsd
24087 # Run the program to test the functionality of the system-supplied
24088 # getgroups function only if there is such a function.
24089 if test $ac_cv_func_getgroups = yes; then
24090 echo "$as_me:$LINENO: checking for working getgroups" >&5
24091 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
24092 if test "${ac_cv_func_getgroups_works+set}" = set; then
24093 echo $ECHO_N "(cached) $ECHO_C" >&6
24095 if test "$cross_compiling" = yes; then
24096 ac_cv_func_getgroups_works=no
24098 cat >conftest.$ac_ext <<_ACEOF
24101 cat confdefs.h >>conftest.$ac_ext
24102 cat >>conftest.$ac_ext <<_ACEOF
24103 /* end confdefs.h. */
24104 $ac_includes_default
24108 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24109 exit (getgroups (0, 0) == -1 ? 1 : 0);
24114 rm -f conftest$ac_exeext
24115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24116 (eval $ac_link) 2>&5
24118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24121 (eval $ac_try) 2>&5
24123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124 (exit $ac_status); }; }; then
24125 ac_cv_func_getgroups_works=yes
24127 echo "$as_me: program exited with status $ac_status" >&5
24128 echo "$as_me: failed program was:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24131 ( exit $ac_status )
24132 ac_cv_func_getgroups_works=no
24134 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24138 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
24139 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
24140 if test $ac_cv_func_getgroups_works = yes; then
24142 cat >>confdefs.h <<\_ACEOF
24143 #define HAVE_GETGROUPS 1
24150 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
24151 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
24152 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
24153 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
24154 echo $ECHO_N "(cached) $ECHO_C" >&6
24156 ac_check_lib_save_LIBS=$LIBS
24158 cat >conftest.$ac_ext <<_ACEOF
24161 cat confdefs.h >>conftest.$ac_ext
24162 cat >>conftest.$ac_ext <<_ACEOF
24163 /* end confdefs.h. */
24165 /* Override any gcc2 internal prototype to avoid an error. */
24169 /* We use char because int might match the return type of a gcc2
24170 builtin and then its argument prototype would still apply. */
24180 rm -f conftest.$ac_objext conftest$ac_exeext
24181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24182 (eval $ac_link) 2>conftest.er1
24184 grep -v '^ *+' conftest.er1 >conftest.err
24186 cat conftest.err >&5
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); } &&
24189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24191 (eval $ac_try) 2>&5
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); }; } &&
24195 { ac_try='test -s conftest$ac_exeext'
24196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24197 (eval $ac_try) 2>&5
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); }; }; then
24201 ac_cv_lib_sun_getmntent=yes
24203 echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24206 ac_cv_lib_sun_getmntent=no
24208 rm -f conftest.err conftest.$ac_objext \
24209 conftest$ac_exeext conftest.$ac_ext
24210 LIBS=$ac_check_lib_save_LIBS
24212 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
24213 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
24214 if test $ac_cv_lib_sun_getmntent = yes; then
24217 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
24218 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
24219 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
24220 echo $ECHO_N "(cached) $ECHO_C" >&6
24222 ac_check_lib_save_LIBS=$LIBS
24224 cat >conftest.$ac_ext <<_ACEOF
24227 cat confdefs.h >>conftest.$ac_ext
24228 cat >>conftest.$ac_ext <<_ACEOF
24229 /* end confdefs.h. */
24231 /* Override any gcc2 internal prototype to avoid an error. */
24235 /* We use char because int might match the return type of a gcc2
24236 builtin and then its argument prototype would still apply. */
24246 rm -f conftest.$ac_objext conftest$ac_exeext
24247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24248 (eval $ac_link) 2>conftest.er1
24250 grep -v '^ *+' conftest.er1 >conftest.err
24252 cat conftest.err >&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); } &&
24255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24257 (eval $ac_try) 2>&5
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); }; } &&
24261 { ac_try='test -s conftest$ac_exeext'
24262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24263 (eval $ac_try) 2>&5
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); }; }; then
24267 ac_cv_lib_seq_getmntent=yes
24269 echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24272 ac_cv_lib_seq_getmntent=no
24274 rm -f conftest.err conftest.$ac_objext \
24275 conftest$ac_exeext conftest.$ac_ext
24276 LIBS=$ac_check_lib_save_LIBS
24278 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
24279 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
24280 if test $ac_cv_lib_seq_getmntent = yes; then
24283 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
24284 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
24285 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
24286 echo $ECHO_N "(cached) $ECHO_C" >&6
24288 ac_check_lib_save_LIBS=$LIBS
24290 cat >conftest.$ac_ext <<_ACEOF
24293 cat confdefs.h >>conftest.$ac_ext
24294 cat >>conftest.$ac_ext <<_ACEOF
24295 /* end confdefs.h. */
24297 /* Override any gcc2 internal prototype to avoid an error. */
24301 /* We use char because int might match the return type of a gcc2
24302 builtin and then its argument prototype would still apply. */
24312 rm -f conftest.$ac_objext conftest$ac_exeext
24313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24314 (eval $ac_link) 2>conftest.er1
24316 grep -v '^ *+' conftest.er1 >conftest.err
24318 cat conftest.err >&5
24319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320 (exit $ac_status); } &&
24321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24323 (eval $ac_try) 2>&5
24325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326 (exit $ac_status); }; } &&
24327 { ac_try='test -s conftest$ac_exeext'
24328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24329 (eval $ac_try) 2>&5
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); }; }; then
24333 ac_cv_lib_gen_getmntent=yes
24335 echo "$as_me: failed program was:" >&5
24336 sed 's/^/| /' conftest.$ac_ext >&5
24338 ac_cv_lib_gen_getmntent=no
24340 rm -f conftest.err conftest.$ac_objext \
24341 conftest$ac_exeext conftest.$ac_ext
24342 LIBS=$ac_check_lib_save_LIBS
24344 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
24345 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
24346 if test $ac_cv_lib_gen_getmntent = yes; then
24355 for ac_func in getmntent
24357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24358 echo "$as_me:$LINENO: checking for $ac_func" >&5
24359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24360 if eval "test \"\${$as_ac_var+set}\" = set"; then
24361 echo $ECHO_N "(cached) $ECHO_C" >&6
24363 cat >conftest.$ac_ext <<_ACEOF
24366 cat confdefs.h >>conftest.$ac_ext
24367 cat >>conftest.$ac_ext <<_ACEOF
24368 /* end confdefs.h. */
24369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24371 #define $ac_func innocuous_$ac_func
24373 /* System header to define __stub macros and hopefully few prototypes,
24374 which can conflict with char $ac_func (); below.
24375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24376 <limits.h> exists even on freestanding compilers. */
24379 # include <limits.h>
24381 # include <assert.h>
24386 /* Override any gcc2 internal prototype to avoid an error. */
24391 /* We use char because int might match the return type of a gcc2
24392 builtin and then its argument prototype would still apply. */
24394 /* The GNU C library defines this for functions which it implements
24395 to always fail with ENOSYS. Some functions are actually named
24396 something starting with __ and the normal name is an alias. */
24397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24400 char (*f) () = $ac_func;
24409 return f != $ac_func;
24414 rm -f conftest.$ac_objext conftest$ac_exeext
24415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24416 (eval $ac_link) 2>conftest.er1
24418 grep -v '^ *+' conftest.er1 >conftest.err
24420 cat conftest.err >&5
24421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); } &&
24423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24425 (eval $ac_try) 2>&5
24427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); }; } &&
24429 { ac_try='test -s conftest$ac_exeext'
24430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24431 (eval $ac_try) 2>&5
24433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434 (exit $ac_status); }; }; then
24435 eval "$as_ac_var=yes"
24437 echo "$as_me: failed program was:" >&5
24438 sed 's/^/| /' conftest.$ac_ext >&5
24440 eval "$as_ac_var=no"
24442 rm -f conftest.err conftest.$ac_objext \
24443 conftest$ac_exeext conftest.$ac_ext
24445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24447 if test `eval echo '${'$as_ac_var'}'` = yes; then
24448 cat >>confdefs.h <<_ACEOF
24449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24456 if test $ac_cv_c_compiler_gnu = yes; then
24457 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
24458 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
24459 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
24460 echo $ECHO_N "(cached) $ECHO_C" >&6
24462 ac_pattern="Autoconf.*'x'"
24463 cat >conftest.$ac_ext <<_ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h. */
24472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24473 $EGREP "$ac_pattern" >/dev/null 2>&1; then
24474 ac_cv_prog_gcc_traditional=yes
24476 ac_cv_prog_gcc_traditional=no
24481 if test $ac_cv_prog_gcc_traditional = no; then
24482 cat >conftest.$ac_ext <<_ACEOF
24485 cat confdefs.h >>conftest.$ac_ext
24486 cat >>conftest.$ac_ext <<_ACEOF
24487 /* end confdefs.h. */
24488 #include <termio.h>
24491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24492 $EGREP "$ac_pattern" >/dev/null 2>&1; then
24493 ac_cv_prog_gcc_traditional=yes
24499 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
24500 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
24501 if test $ac_cv_prog_gcc_traditional = yes; then
24502 CC="$CC -traditional"
24506 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24507 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24508 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24509 echo $ECHO_N "(cached) $ECHO_C" >&6
24511 rm -f conftest.sym conftest.file
24512 echo >conftest.file
24513 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24514 if test "$cross_compiling" = yes; then
24515 ac_cv_func_lstat_dereferences_slashed_symlink=no
24517 cat >conftest.$ac_ext <<_ACEOF
24520 cat confdefs.h >>conftest.$ac_ext
24521 cat >>conftest.$ac_ext <<_ACEOF
24522 /* end confdefs.h. */
24523 $ac_includes_default
24528 /* Linux will dereference the symlink and fail.
24529 That is better in the sense that it means we will not
24530 have to compile and use the lstat wrapper. */
24531 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24536 rm -f conftest$ac_exeext
24537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24538 (eval $ac_link) 2>&5
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543 (eval $ac_try) 2>&5
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); }; }; then
24547 ac_cv_func_lstat_dereferences_slashed_symlink=yes
24549 echo "$as_me: program exited with status $ac_status" >&5
24550 echo "$as_me: failed program was:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24553 ( exit $ac_status )
24554 ac_cv_func_lstat_dereferences_slashed_symlink=no
24556 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24559 # If the `ln -s' command failed, then we probably don't even
24560 # have an lstat function.
24561 ac_cv_func_lstat_dereferences_slashed_symlink=no
24563 rm -f conftest.sym conftest.file
24566 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24567 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24569 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24571 cat >>confdefs.h <<_ACEOF
24572 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24576 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24578 "lstat.$ac_objext" | \
24579 *" lstat.$ac_objext" | \
24580 "lstat.$ac_objext "* | \
24581 *" lstat.$ac_objext "* ) ;;
24582 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24587 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
24588 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
24589 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
24590 echo $ECHO_N "(cached) $ECHO_C" >&6
24592 if test "$cross_compiling" = yes; then
24593 ac_cv_func_lstat_empty_string_bug=yes
24595 cat >conftest.$ac_ext <<_ACEOF
24598 cat confdefs.h >>conftest.$ac_ext
24599 cat >>conftest.$ac_ext <<_ACEOF
24600 /* end confdefs.h. */
24601 $ac_includes_default
24606 exit (lstat ("", &sbuf) ? 1 : 0);
24611 rm -f conftest$ac_exeext
24612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24613 (eval $ac_link) 2>&5
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24618 (eval $ac_try) 2>&5
24620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621 (exit $ac_status); }; }; then
24622 ac_cv_func_lstat_empty_string_bug=yes
24624 echo "$as_me: program exited with status $ac_status" >&5
24625 echo "$as_me: failed program was:" >&5
24626 sed 's/^/| /' conftest.$ac_ext >&5
24628 ( exit $ac_status )
24629 ac_cv_func_lstat_empty_string_bug=no
24631 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24634 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
24635 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
24636 if test $ac_cv_func_lstat_empty_string_bug = yes; then
24638 "lstat.$ac_objext" | \
24639 *" lstat.$ac_objext" | \
24640 "lstat.$ac_objext "* | \
24641 *" lstat.$ac_objext "* ) ;;
24642 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24646 cat >>confdefs.h <<_ACEOF
24647 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
24652 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24653 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24654 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24655 echo $ECHO_N "(cached) $ECHO_C" >&6
24657 rm -f conftest.sym conftest.file
24658 echo >conftest.file
24659 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24660 if test "$cross_compiling" = yes; then
24661 ac_cv_func_lstat_dereferences_slashed_symlink=no
24663 cat >conftest.$ac_ext <<_ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h. */
24669 $ac_includes_default
24674 /* Linux will dereference the symlink and fail.
24675 That is better in the sense that it means we will not
24676 have to compile and use the lstat wrapper. */
24677 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24682 rm -f conftest$ac_exeext
24683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24684 (eval $ac_link) 2>&5
24686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24689 (eval $ac_try) 2>&5
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); }; }; then
24693 ac_cv_func_lstat_dereferences_slashed_symlink=yes
24695 echo "$as_me: program exited with status $ac_status" >&5
24696 echo "$as_me: failed program was:" >&5
24697 sed 's/^/| /' conftest.$ac_ext >&5
24699 ( exit $ac_status )
24700 ac_cv_func_lstat_dereferences_slashed_symlink=no
24702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24705 # If the `ln -s' command failed, then we probably don't even
24706 # have an lstat function.
24707 ac_cv_func_lstat_dereferences_slashed_symlink=no
24709 rm -f conftest.sym conftest.file
24712 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24713 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24715 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24717 cat >>confdefs.h <<_ACEOF
24718 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24722 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24724 "lstat.$ac_objext" | \
24725 *" lstat.$ac_objext" | \
24726 "lstat.$ac_objext "* | \
24727 *" lstat.$ac_objext "* ) ;;
24728 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24733 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24734 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
24735 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24736 echo $ECHO_N "(cached) $ECHO_C" >&6
24738 cat >conftest.$ac_ext <<_ACEOF
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h. */
24744 #include <sys/types.h>
24748 return makedev(0, 0);
24753 rm -f conftest.$ac_objext conftest$ac_exeext
24754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24755 (eval $ac_link) 2>conftest.er1
24757 grep -v '^ *+' conftest.er1 >conftest.err
24759 cat conftest.err >&5
24760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); } &&
24762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24764 (eval $ac_try) 2>&5
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); }; } &&
24768 { ac_try='test -s conftest$ac_exeext'
24769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24770 (eval $ac_try) 2>&5
24772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773 (exit $ac_status); }; }; then
24774 ac_cv_header_sys_types_h_makedev=yes
24776 echo "$as_me: failed program was:" >&5
24777 sed 's/^/| /' conftest.$ac_ext >&5
24779 ac_cv_header_sys_types_h_makedev=no
24781 rm -f conftest.err conftest.$ac_objext \
24782 conftest$ac_exeext conftest.$ac_ext
24785 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24786 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
24788 if test $ac_cv_header_sys_types_h_makedev = no; then
24789 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24790 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24791 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
24792 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24793 echo $ECHO_N "(cached) $ECHO_C" >&6
24795 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24796 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
24798 # Is the header compilable?
24799 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24800 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
24801 cat >conftest.$ac_ext <<_ACEOF
24804 cat confdefs.h >>conftest.$ac_ext
24805 cat >>conftest.$ac_ext <<_ACEOF
24806 /* end confdefs.h. */
24807 $ac_includes_default
24808 #include <sys/mkdev.h>
24810 rm -f conftest.$ac_objext
24811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24812 (eval $ac_compile) 2>conftest.er1
24814 grep -v '^ *+' conftest.er1 >conftest.err
24816 cat conftest.err >&5
24817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818 (exit $ac_status); } &&
24819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24821 (eval $ac_try) 2>&5
24823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824 (exit $ac_status); }; } &&
24825 { ac_try='test -s conftest.$ac_objext'
24826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24827 (eval $ac_try) 2>&5
24829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); }; }; then
24831 ac_header_compiler=yes
24833 echo "$as_me: failed program was:" >&5
24834 sed 's/^/| /' conftest.$ac_ext >&5
24836 ac_header_compiler=no
24838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24840 echo "${ECHO_T}$ac_header_compiler" >&6
24842 # Is the header present?
24843 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24844 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
24845 cat >conftest.$ac_ext <<_ACEOF
24848 cat confdefs.h >>conftest.$ac_ext
24849 cat >>conftest.$ac_ext <<_ACEOF
24850 /* end confdefs.h. */
24851 #include <sys/mkdev.h>
24853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24856 grep -v '^ *+' conftest.er1 >conftest.err
24858 cat conftest.err >&5
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); } >/dev/null; then
24861 if test -s conftest.err; then
24862 ac_cpp_err=$ac_c_preproc_warn_flag
24863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24870 if test -z "$ac_cpp_err"; then
24871 ac_header_preproc=yes
24873 echo "$as_me: failed program was:" >&5
24874 sed 's/^/| /' conftest.$ac_ext >&5
24876 ac_header_preproc=no
24878 rm -f conftest.err conftest.$ac_ext
24879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24880 echo "${ECHO_T}$ac_header_preproc" >&6
24882 # So? What about this header?
24883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24885 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
24886 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24887 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
24888 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
24889 ac_header_preproc=yes
24892 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
24893 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
24894 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
24895 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
24896 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
24897 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
24898 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
24899 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
24900 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
24901 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
24902 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
24903 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
24906 ## ------------------------------- ##
24907 ## Report this to nfs@lists.sf.net ##
24908 ## ------------------------------- ##
24911 sed "s/^/$as_me: WARNING: /" >&2
24914 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24915 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
24916 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24917 echo $ECHO_N "(cached) $ECHO_C" >&6
24919 ac_cv_header_sys_mkdev_h=$ac_header_preproc
24921 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24922 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
24925 if test $ac_cv_header_sys_mkdev_h = yes; then
24927 cat >>confdefs.h <<\_ACEOF
24928 #define MAJOR_IN_MKDEV 1
24935 if test $ac_cv_header_sys_mkdev_h = no; then
24936 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24937 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24938 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
24939 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24940 echo $ECHO_N "(cached) $ECHO_C" >&6
24942 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24943 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
24945 # Is the header compilable?
24946 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
24947 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
24948 cat >conftest.$ac_ext <<_ACEOF
24951 cat confdefs.h >>conftest.$ac_ext
24952 cat >>conftest.$ac_ext <<_ACEOF
24953 /* end confdefs.h. */
24954 $ac_includes_default
24955 #include <sys/sysmacros.h>
24957 rm -f conftest.$ac_objext
24958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24959 (eval $ac_compile) 2>conftest.er1
24961 grep -v '^ *+' conftest.er1 >conftest.err
24963 cat conftest.err >&5
24964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); } &&
24966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24968 (eval $ac_try) 2>&5
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); }; } &&
24972 { ac_try='test -s conftest.$ac_objext'
24973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24974 (eval $ac_try) 2>&5
24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); }; }; then
24978 ac_header_compiler=yes
24980 echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24983 ac_header_compiler=no
24985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24987 echo "${ECHO_T}$ac_header_compiler" >&6
24989 # Is the header present?
24990 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
24991 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
24992 cat >conftest.$ac_ext <<_ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h. */
24998 #include <sys/sysmacros.h>
25000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25003 grep -v '^ *+' conftest.er1 >conftest.err
25005 cat conftest.err >&5
25006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007 (exit $ac_status); } >/dev/null; then
25008 if test -s conftest.err; then
25009 ac_cpp_err=$ac_c_preproc_warn_flag
25010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25017 if test -z "$ac_cpp_err"; then
25018 ac_header_preproc=yes
25020 echo "$as_me: failed program was:" >&5
25021 sed 's/^/| /' conftest.$ac_ext >&5
25023 ac_header_preproc=no
25025 rm -f conftest.err conftest.$ac_ext
25026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25027 echo "${ECHO_T}$ac_header_preproc" >&6
25029 # So? What about this header?
25030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25032 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25033 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25034 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25035 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25036 ac_header_preproc=yes
25039 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25040 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25041 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
25042 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
25043 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25044 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25045 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
25046 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
25047 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
25048 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
25049 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
25050 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
25053 ## ------------------------------- ##
25054 ## Report this to nfs@lists.sf.net ##
25055 ## ------------------------------- ##
25058 sed "s/^/$as_me: WARNING: /" >&2
25061 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25062 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
25063 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25064 echo $ECHO_N "(cached) $ECHO_C" >&6
25066 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
25068 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25069 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
25072 if test $ac_cv_header_sys_sysmacros_h = yes; then
25074 cat >>confdefs.h <<\_ACEOF
25075 #define MAJOR_IN_SYSMACROS 1
25085 echo "$as_me:$LINENO: checking for working memcmp" >&5
25086 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
25087 if test "${ac_cv_func_memcmp_working+set}" = set; then
25088 echo $ECHO_N "(cached) $ECHO_C" >&6
25090 if test "$cross_compiling" = yes; then
25091 ac_cv_func_memcmp_working=no
25093 cat >conftest.$ac_ext <<_ACEOF
25096 cat confdefs.h >>conftest.$ac_ext
25097 cat >>conftest.$ac_ext <<_ACEOF
25098 /* end confdefs.h. */
25099 $ac_includes_default
25104 /* Some versions of memcmp are not 8-bit clean. */
25105 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
25106 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25109 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25110 or more and with at least one buffer not starting on a 4-byte boundary.
25111 William Lewis provided this test program. */
25116 for (i = 0; i < 4; i++)
25120 strcpy (a, "--------01111111");
25121 strcpy (b, "--------10000000");
25122 if (memcmp (a, b, 16) >= 0)
25132 rm -f conftest$ac_exeext
25133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25134 (eval $ac_link) 2>&5
25136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25139 (eval $ac_try) 2>&5
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); }; }; then
25143 ac_cv_func_memcmp_working=yes
25145 echo "$as_me: program exited with status $ac_status" >&5
25146 echo "$as_me: failed program was:" >&5
25147 sed 's/^/| /' conftest.$ac_ext >&5
25149 ( exit $ac_status )
25150 ac_cv_func_memcmp_working=no
25152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25155 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25156 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
25157 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
25158 "memcmp.$ac_objext" | \
25159 *" memcmp.$ac_objext" | \
25160 "memcmp.$ac_objext "* | \
25161 *" memcmp.$ac_objext "* ) ;;
25162 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
25169 for ac_header in sys/select.h sys/socket.h
25171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25173 echo "$as_me:$LINENO: checking for $ac_header" >&5
25174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25176 echo $ECHO_N "(cached) $ECHO_C" >&6
25178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25181 # Is the header compilable?
25182 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25184 cat >conftest.$ac_ext <<_ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h. */
25190 $ac_includes_default
25191 #include <$ac_header>
25193 rm -f conftest.$ac_objext
25194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25195 (eval $ac_compile) 2>conftest.er1
25197 grep -v '^ *+' conftest.er1 >conftest.err
25199 cat conftest.err >&5
25200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); } &&
25202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25204 (eval $ac_try) 2>&5
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); }; } &&
25208 { ac_try='test -s conftest.$ac_objext'
25209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25210 (eval $ac_try) 2>&5
25212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213 (exit $ac_status); }; }; then
25214 ac_header_compiler=yes
25216 echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.$ac_ext >&5
25219 ac_header_compiler=no
25221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25223 echo "${ECHO_T}$ac_header_compiler" >&6
25225 # Is the header present?
25226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25228 cat >conftest.$ac_ext <<_ACEOF
25231 cat confdefs.h >>conftest.$ac_ext
25232 cat >>conftest.$ac_ext <<_ACEOF
25233 /* end confdefs.h. */
25234 #include <$ac_header>
25236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25239 grep -v '^ *+' conftest.er1 >conftest.err
25241 cat conftest.err >&5
25242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243 (exit $ac_status); } >/dev/null; then
25244 if test -s conftest.err; then
25245 ac_cpp_err=$ac_c_preproc_warn_flag
25246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25253 if test -z "$ac_cpp_err"; then
25254 ac_header_preproc=yes
25256 echo "$as_me: failed program was:" >&5
25257 sed 's/^/| /' conftest.$ac_ext >&5
25259 ac_header_preproc=no
25261 rm -f conftest.err conftest.$ac_ext
25262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25263 echo "${ECHO_T}$ac_header_preproc" >&6
25265 # So? What about this header?
25266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25272 ac_header_preproc=yes
25275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25278 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25282 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25289 ## ------------------------------- ##
25290 ## Report this to nfs@lists.sf.net ##
25291 ## ------------------------------- ##
25294 sed "s/^/$as_me: WARNING: /" >&2
25297 echo "$as_me:$LINENO: checking for $ac_header" >&5
25298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25300 echo $ECHO_N "(cached) $ECHO_C" >&6
25302 eval "$as_ac_Header=\$ac_header_preproc"
25304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25309 cat >>confdefs.h <<_ACEOF
25310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25317 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25318 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25319 if test "${ac_cv_func_select_args+set}" = set; then
25320 echo $ECHO_N "(cached) $ECHO_C" >&6
25322 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25323 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25324 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25325 cat >conftest.$ac_ext <<_ACEOF
25328 cat confdefs.h >>conftest.$ac_ext
25329 cat >>conftest.$ac_ext <<_ACEOF
25330 /* end confdefs.h. */
25331 $ac_includes_default
25332 #if HAVE_SYS_SELECT_H
25333 # include <sys/select.h>
25335 #if HAVE_SYS_SOCKET_H
25336 # include <sys/socket.h>
25342 extern int select ($ac_arg1,
25343 $ac_arg234, $ac_arg234, $ac_arg234,
25349 rm -f conftest.$ac_objext
25350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25351 (eval $ac_compile) 2>conftest.er1
25353 grep -v '^ *+' conftest.er1 >conftest.err
25355 cat conftest.err >&5
25356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); } &&
25358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360 (eval $ac_try) 2>&5
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); }; } &&
25364 { ac_try='test -s conftest.$ac_objext'
25365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25366 (eval $ac_try) 2>&5
25368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369 (exit $ac_status); }; }; then
25370 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25372 echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25380 # Provide a safe default value.
25381 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25384 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25385 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25386 ac_save_IFS=$IFS; IFS=','
25387 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25391 cat >>confdefs.h <<_ACEOF
25392 #define SELECT_TYPE_ARG1 $1
25396 cat >>confdefs.h <<_ACEOF
25397 #define SELECT_TYPE_ARG234 ($2)
25401 cat >>confdefs.h <<_ACEOF
25402 #define SELECT_TYPE_ARG5 ($3)
25407 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25408 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
25409 if test "${ac_cv_type_signal+set}" = set; then
25410 echo $ECHO_N "(cached) $ECHO_C" >&6
25412 cat >conftest.$ac_ext <<_ACEOF
25415 cat confdefs.h >>conftest.$ac_ext
25416 cat >>conftest.$ac_ext <<_ACEOF
25417 /* end confdefs.h. */
25418 #include <sys/types.h>
25419 #include <signal.h>
25424 extern "C" void (*signal (int, void (*)(int)))(int);
25426 void (*signal ()) ();
25437 rm -f conftest.$ac_objext
25438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25439 (eval $ac_compile) 2>conftest.er1
25441 grep -v '^ *+' conftest.er1 >conftest.err
25443 cat conftest.err >&5
25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445 (exit $ac_status); } &&
25446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25448 (eval $ac_try) 2>&5
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); }; } &&
25452 { ac_try='test -s conftest.$ac_objext'
25453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25454 (eval $ac_try) 2>&5
25456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457 (exit $ac_status); }; }; then
25458 ac_cv_type_signal=void
25460 echo "$as_me: failed program was:" >&5
25461 sed 's/^/| /' conftest.$ac_ext >&5
25463 ac_cv_type_signal=int
25465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25467 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25468 echo "${ECHO_T}$ac_cv_type_signal" >&6
25470 cat >>confdefs.h <<_ACEOF
25471 #define RETSIGTYPE $ac_cv_type_signal
25475 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
25476 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
25477 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
25478 echo $ECHO_N "(cached) $ECHO_C" >&6
25480 if test "$cross_compiling" = yes; then
25481 ac_cv_func_stat_empty_string_bug=yes
25483 cat >conftest.$ac_ext <<_ACEOF
25486 cat confdefs.h >>conftest.$ac_ext
25487 cat >>conftest.$ac_ext <<_ACEOF
25488 /* end confdefs.h. */
25489 $ac_includes_default
25494 exit (stat ("", &sbuf) ? 1 : 0);
25499 rm -f conftest$ac_exeext
25500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25501 (eval $ac_link) 2>&5
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25506 (eval $ac_try) 2>&5
25508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); }; }; then
25510 ac_cv_func_stat_empty_string_bug=yes
25512 echo "$as_me: program exited with status $ac_status" >&5
25513 echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25516 ( exit $ac_status )
25517 ac_cv_func_stat_empty_string_bug=no
25519 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25522 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
25523 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
25524 if test $ac_cv_func_stat_empty_string_bug = yes; then
25526 "stat.$ac_objext" | \
25527 *" stat.$ac_objext" | \
25528 "stat.$ac_objext "* | \
25529 *" stat.$ac_objext "* ) ;;
25530 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
25534 cat >>confdefs.h <<_ACEOF
25535 #define HAVE_STAT_EMPTY_STRING_BUG 1
25541 for ac_func in vprintf
25543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25544 echo "$as_me:$LINENO: checking for $ac_func" >&5
25545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25546 if eval "test \"\${$as_ac_var+set}\" = set"; then
25547 echo $ECHO_N "(cached) $ECHO_C" >&6
25549 cat >conftest.$ac_ext <<_ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h. */
25555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25557 #define $ac_func innocuous_$ac_func
25559 /* System header to define __stub macros and hopefully few prototypes,
25560 which can conflict with char $ac_func (); below.
25561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25562 <limits.h> exists even on freestanding compilers. */
25565 # include <limits.h>
25567 # include <assert.h>
25572 /* Override any gcc2 internal prototype to avoid an error. */
25577 /* We use char because int might match the return type of a gcc2
25578 builtin and then its argument prototype would still apply. */
25580 /* The GNU C library defines this for functions which it implements
25581 to always fail with ENOSYS. Some functions are actually named
25582 something starting with __ and the normal name is an alias. */
25583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25586 char (*f) () = $ac_func;
25595 return f != $ac_func;
25600 rm -f conftest.$ac_objext conftest$ac_exeext
25601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25602 (eval $ac_link) 2>conftest.er1
25604 grep -v '^ *+' conftest.er1 >conftest.err
25606 cat conftest.err >&5
25607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608 (exit $ac_status); } &&
25609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25611 (eval $ac_try) 2>&5
25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); }; } &&
25615 { ac_try='test -s conftest$ac_exeext'
25616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25617 (eval $ac_try) 2>&5
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); }; }; then
25621 eval "$as_ac_var=yes"
25623 echo "$as_me: failed program was:" >&5
25624 sed 's/^/| /' conftest.$ac_ext >&5
25626 eval "$as_ac_var=no"
25628 rm -f conftest.err conftest.$ac_objext \
25629 conftest$ac_exeext conftest.$ac_ext
25631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25633 if test `eval echo '${'$as_ac_var'}'` = yes; then
25634 cat >>confdefs.h <<_ACEOF
25635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25638 echo "$as_me:$LINENO: checking for _doprnt" >&5
25639 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
25640 if test "${ac_cv_func__doprnt+set}" = set; then
25641 echo $ECHO_N "(cached) $ECHO_C" >&6
25643 cat >conftest.$ac_ext <<_ACEOF
25646 cat confdefs.h >>conftest.$ac_ext
25647 cat >>conftest.$ac_ext <<_ACEOF
25648 /* end confdefs.h. */
25649 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25651 #define _doprnt innocuous__doprnt
25653 /* System header to define __stub macros and hopefully few prototypes,
25654 which can conflict with char _doprnt (); below.
25655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25656 <limits.h> exists even on freestanding compilers. */
25659 # include <limits.h>
25661 # include <assert.h>
25666 /* Override any gcc2 internal prototype to avoid an error. */
25671 /* We use char because int might match the return type of a gcc2
25672 builtin and then its argument prototype would still apply. */
25674 /* The GNU C library defines this for functions which it implements
25675 to always fail with ENOSYS. Some functions are actually named
25676 something starting with __ and the normal name is an alias. */
25677 #if defined (__stub__doprnt) || defined (__stub____doprnt)
25680 char (*f) () = _doprnt;
25689 return f != _doprnt;
25694 rm -f conftest.$ac_objext conftest$ac_exeext
25695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25696 (eval $ac_link) 2>conftest.er1
25698 grep -v '^ *+' conftest.er1 >conftest.err
25700 cat conftest.err >&5
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); } &&
25703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25705 (eval $ac_try) 2>&5
25707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708 (exit $ac_status); }; } &&
25709 { ac_try='test -s conftest$ac_exeext'
25710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25711 (eval $ac_try) 2>&5
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); }; }; then
25715 ac_cv_func__doprnt=yes
25717 echo "$as_me: failed program was:" >&5
25718 sed 's/^/| /' conftest.$ac_ext >&5
25720 ac_cv_func__doprnt=no
25722 rm -f conftest.err conftest.$ac_objext \
25723 conftest$ac_exeext conftest.$ac_ext
25725 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25726 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
25727 if test $ac_cv_func__doprnt = yes; then
25729 cat >>confdefs.h <<\_ACEOF
25730 #define HAVE_DOPRNT 1
25766 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
25767 gethostbyaddr gethostbyname gethostname getmntent \
25768 gettimeofday hasmntopt inet_ntoa memset mkdir pathconf \
25769 realpath rmdir select socket strcasecmp strchr strdup \
25770 strerror strrchr strtol strtoul
25772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25773 echo "$as_me:$LINENO: checking for $ac_func" >&5
25774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25775 if eval "test \"\${$as_ac_var+set}\" = set"; then
25776 echo $ECHO_N "(cached) $ECHO_C" >&6
25778 cat >conftest.$ac_ext <<_ACEOF
25781 cat confdefs.h >>conftest.$ac_ext
25782 cat >>conftest.$ac_ext <<_ACEOF
25783 /* end confdefs.h. */
25784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25786 #define $ac_func innocuous_$ac_func
25788 /* System header to define __stub macros and hopefully few prototypes,
25789 which can conflict with char $ac_func (); below.
25790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25791 <limits.h> exists even on freestanding compilers. */
25794 # include <limits.h>
25796 # include <assert.h>
25801 /* Override any gcc2 internal prototype to avoid an error. */
25806 /* We use char because int might match the return type of a gcc2
25807 builtin and then its argument prototype would still apply. */
25809 /* The GNU C library defines this for functions which it implements
25810 to always fail with ENOSYS. Some functions are actually named
25811 something starting with __ and the normal name is an alias. */
25812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25815 char (*f) () = $ac_func;
25824 return f != $ac_func;
25829 rm -f conftest.$ac_objext conftest$ac_exeext
25830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25831 (eval $ac_link) 2>conftest.er1
25833 grep -v '^ *+' conftest.er1 >conftest.err
25835 cat conftest.err >&5
25836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837 (exit $ac_status); } &&
25838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840 (eval $ac_try) 2>&5
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); }; } &&
25844 { ac_try='test -s conftest$ac_exeext'
25845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846 (eval $ac_try) 2>&5
25848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); }; }; then
25850 eval "$as_ac_var=yes"
25852 echo "$as_me: failed program was:" >&5
25853 sed 's/^/| /' conftest.$ac_ext >&5
25855 eval "$as_ac_var=no"
25857 rm -f conftest.err conftest.$ac_objext \
25858 conftest$ac_exeext conftest.$ac_ext
25860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25862 if test `eval echo '${'$as_ac_var'}'` = yes; then
25863 cat >>confdefs.h <<_ACEOF
25864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25872 echo "$as_me:$LINENO: checking for short" >&5
25873 echo $ECHO_N "checking for short... $ECHO_C" >&6
25874 if test "${ac_cv_type_short+set}" = set; then
25875 echo $ECHO_N "(cached) $ECHO_C" >&6
25877 cat >conftest.$ac_ext <<_ACEOF
25880 cat confdefs.h >>conftest.$ac_ext
25881 cat >>conftest.$ac_ext <<_ACEOF
25882 /* end confdefs.h. */
25883 $ac_includes_default
25889 if (sizeof (short))
25895 rm -f conftest.$ac_objext
25896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25897 (eval $ac_compile) 2>conftest.er1
25899 grep -v '^ *+' conftest.er1 >conftest.err
25901 cat conftest.err >&5
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); } &&
25904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25906 (eval $ac_try) 2>&5
25908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909 (exit $ac_status); }; } &&
25910 { ac_try='test -s conftest.$ac_objext'
25911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25912 (eval $ac_try) 2>&5
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); }; }; then
25916 ac_cv_type_short=yes
25918 echo "$as_me: failed program was:" >&5
25919 sed 's/^/| /' conftest.$ac_ext >&5
25921 ac_cv_type_short=no
25923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25925 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
25926 echo "${ECHO_T}$ac_cv_type_short" >&6
25928 echo "$as_me:$LINENO: checking size of short" >&5
25929 echo $ECHO_N "checking size of short... $ECHO_C" >&6
25930 if test "${ac_cv_sizeof_short+set}" = set; then
25931 echo $ECHO_N "(cached) $ECHO_C" >&6
25933 if test "$ac_cv_type_short" = yes; then
25934 # The cast to unsigned long works around a bug in the HP C Compiler
25935 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25936 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25937 # This bug is HP SR number 8606223364.
25938 if test "$cross_compiling" = yes; then
25939 # Depending upon the size, compute the lo and hi bounds.
25940 cat >conftest.$ac_ext <<_ACEOF
25943 cat confdefs.h >>conftest.$ac_ext
25944 cat >>conftest.$ac_ext <<_ACEOF
25945 /* end confdefs.h. */
25946 $ac_includes_default
25950 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
25957 rm -f conftest.$ac_objext
25958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25959 (eval $ac_compile) 2>conftest.er1
25961 grep -v '^ *+' conftest.er1 >conftest.err
25963 cat conftest.err >&5
25964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965 (exit $ac_status); } &&
25966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968 (eval $ac_try) 2>&5
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); }; } &&
25972 { ac_try='test -s conftest.$ac_objext'
25973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25974 (eval $ac_try) 2>&5
25976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977 (exit $ac_status); }; }; then
25980 cat >conftest.$ac_ext <<_ACEOF
25983 cat confdefs.h >>conftest.$ac_ext
25984 cat >>conftest.$ac_ext <<_ACEOF
25985 /* end confdefs.h. */
25986 $ac_includes_default
25990 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
25997 rm -f conftest.$ac_objext
25998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25999 (eval $ac_compile) 2>conftest.er1
26001 grep -v '^ *+' conftest.er1 >conftest.err
26003 cat conftest.err >&5
26004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005 (exit $ac_status); } &&
26006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26008 (eval $ac_try) 2>&5
26010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); }; } &&
26012 { ac_try='test -s conftest.$ac_objext'
26013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26014 (eval $ac_try) 2>&5
26016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017 (exit $ac_status); }; }; then
26018 ac_hi=$ac_mid; break
26020 echo "$as_me: failed program was:" >&5
26021 sed 's/^/| /' conftest.$ac_ext >&5
26023 ac_lo=`expr $ac_mid + 1`
26024 if test $ac_lo -le $ac_mid; then
26028 ac_mid=`expr 2 '*' $ac_mid + 1`
26030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26033 echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26036 cat >conftest.$ac_ext <<_ACEOF
26039 cat confdefs.h >>conftest.$ac_ext
26040 cat >>conftest.$ac_ext <<_ACEOF
26041 /* end confdefs.h. */
26042 $ac_includes_default
26046 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
26053 rm -f conftest.$ac_objext
26054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26055 (eval $ac_compile) 2>conftest.er1
26057 grep -v '^ *+' conftest.er1 >conftest.err
26059 cat conftest.err >&5
26060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061 (exit $ac_status); } &&
26062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26064 (eval $ac_try) 2>&5
26066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067 (exit $ac_status); }; } &&
26068 { ac_try='test -s conftest.$ac_objext'
26069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26070 (eval $ac_try) 2>&5
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); }; }; then
26076 cat >conftest.$ac_ext <<_ACEOF
26079 cat confdefs.h >>conftest.$ac_ext
26080 cat >>conftest.$ac_ext <<_ACEOF
26081 /* end confdefs.h. */
26082 $ac_includes_default
26086 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
26093 rm -f conftest.$ac_objext
26094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26095 (eval $ac_compile) 2>conftest.er1
26097 grep -v '^ *+' conftest.er1 >conftest.err
26099 cat conftest.err >&5
26100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101 (exit $ac_status); } &&
26102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26104 (eval $ac_try) 2>&5
26106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107 (exit $ac_status); }; } &&
26108 { ac_try='test -s conftest.$ac_objext'
26109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26110 (eval $ac_try) 2>&5
26112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113 (exit $ac_status); }; }; then
26114 ac_lo=$ac_mid; break
26116 echo "$as_me: failed program was:" >&5
26117 sed 's/^/| /' conftest.$ac_ext >&5
26119 ac_hi=`expr '(' $ac_mid ')' - 1`
26120 if test $ac_mid -le $ac_hi; then
26124 ac_mid=`expr 2 '*' $ac_mid`
26126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26129 echo "$as_me: failed program was:" >&5
26130 sed 's/^/| /' conftest.$ac_ext >&5
26134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26137 # Binary search between lo and hi bounds.
26138 while test "x$ac_lo" != "x$ac_hi"; do
26139 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26140 cat >conftest.$ac_ext <<_ACEOF
26143 cat confdefs.h >>conftest.$ac_ext
26144 cat >>conftest.$ac_ext <<_ACEOF
26145 /* end confdefs.h. */
26146 $ac_includes_default
26150 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
26157 rm -f conftest.$ac_objext
26158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26159 (eval $ac_compile) 2>conftest.er1
26161 grep -v '^ *+' conftest.er1 >conftest.err
26163 cat conftest.err >&5
26164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165 (exit $ac_status); } &&
26166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168 (eval $ac_try) 2>&5
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); }; } &&
26172 { ac_try='test -s conftest.$ac_objext'
26173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26174 (eval $ac_try) 2>&5
26176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177 (exit $ac_status); }; }; then
26180 echo "$as_me: failed program was:" >&5
26181 sed 's/^/| /' conftest.$ac_ext >&5
26183 ac_lo=`expr '(' $ac_mid ')' + 1`
26185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26188 ?*) ac_cv_sizeof_short=$ac_lo;;
26189 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
26190 See \`config.log' for more details." >&5
26191 echo "$as_me: error: cannot compute sizeof (short), 77
26192 See \`config.log' for more details." >&2;}
26193 { (exit 1); exit 1; }; } ;;
26196 if test "$cross_compiling" = yes; then
26197 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26198 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26199 { (exit 1); exit 1; }; }
26201 cat >conftest.$ac_ext <<_ACEOF
26204 cat confdefs.h >>conftest.$ac_ext
26205 cat >>conftest.$ac_ext <<_ACEOF
26206 /* end confdefs.h. */
26207 $ac_includes_default
26208 long longval () { return (long) (sizeof (short)); }
26209 unsigned long ulongval () { return (long) (sizeof (short)); }
26211 #include <stdlib.h>
26216 FILE *f = fopen ("conftest.val", "w");
26219 if (((long) (sizeof (short))) < 0)
26221 long i = longval ();
26222 if (i != ((long) (sizeof (short))))
26224 fprintf (f, "%ld\n", i);
26228 unsigned long i = ulongval ();
26229 if (i != ((long) (sizeof (short))))
26231 fprintf (f, "%lu\n", i);
26233 exit (ferror (f) || fclose (f) != 0);
26239 rm -f conftest$ac_exeext
26240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26241 (eval $ac_link) 2>&5
26243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26246 (eval $ac_try) 2>&5
26248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249 (exit $ac_status); }; }; then
26250 ac_cv_sizeof_short=`cat conftest.val`
26252 echo "$as_me: program exited with status $ac_status" >&5
26253 echo "$as_me: failed program was:" >&5
26254 sed 's/^/| /' conftest.$ac_ext >&5
26256 ( exit $ac_status )
26257 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
26258 See \`config.log' for more details." >&5
26259 echo "$as_me: error: cannot compute sizeof (short), 77
26260 See \`config.log' for more details." >&2;}
26261 { (exit 1); exit 1; }; }
26263 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26268 ac_cv_sizeof_short=0
26271 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26272 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
26273 cat >>confdefs.h <<_ACEOF
26274 #define SIZEOF_SHORT $ac_cv_sizeof_short
26278 echo "$as_me:$LINENO: checking for int" >&5
26279 echo $ECHO_N "checking for int... $ECHO_C" >&6
26280 if test "${ac_cv_type_int+set}" = set; then
26281 echo $ECHO_N "(cached) $ECHO_C" >&6
26283 cat >conftest.$ac_ext <<_ACEOF
26286 cat confdefs.h >>conftest.$ac_ext
26287 cat >>conftest.$ac_ext <<_ACEOF
26288 /* end confdefs.h. */
26289 $ac_includes_default
26301 rm -f conftest.$ac_objext
26302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26303 (eval $ac_compile) 2>conftest.er1
26305 grep -v '^ *+' conftest.er1 >conftest.err
26307 cat conftest.err >&5
26308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309 (exit $ac_status); } &&
26310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26312 (eval $ac_try) 2>&5
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); }; } &&
26316 { ac_try='test -s conftest.$ac_objext'
26317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26318 (eval $ac_try) 2>&5
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); }; }; then
26324 echo "$as_me: failed program was:" >&5
26325 sed 's/^/| /' conftest.$ac_ext >&5
26329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26331 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26332 echo "${ECHO_T}$ac_cv_type_int" >&6
26334 echo "$as_me:$LINENO: checking size of int" >&5
26335 echo $ECHO_N "checking size of int... $ECHO_C" >&6
26336 if test "${ac_cv_sizeof_int+set}" = set; then
26337 echo $ECHO_N "(cached) $ECHO_C" >&6
26339 if test "$ac_cv_type_int" = yes; then
26340 # The cast to unsigned long works around a bug in the HP C Compiler
26341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26343 # This bug is HP SR number 8606223364.
26344 if test "$cross_compiling" = yes; then
26345 # Depending upon the size, compute the lo and hi bounds.
26346 cat >conftest.$ac_ext <<_ACEOF
26349 cat confdefs.h >>conftest.$ac_ext
26350 cat >>conftest.$ac_ext <<_ACEOF
26351 /* end confdefs.h. */
26352 $ac_includes_default
26356 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
26363 rm -f conftest.$ac_objext
26364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26365 (eval $ac_compile) 2>conftest.er1
26367 grep -v '^ *+' conftest.er1 >conftest.err
26369 cat conftest.err >&5
26370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26371 (exit $ac_status); } &&
26372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26374 (eval $ac_try) 2>&5
26376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377 (exit $ac_status); }; } &&
26378 { ac_try='test -s conftest.$ac_objext'
26379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26380 (eval $ac_try) 2>&5
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); }; }; then
26386 cat >conftest.$ac_ext <<_ACEOF
26389 cat confdefs.h >>conftest.$ac_ext
26390 cat >>conftest.$ac_ext <<_ACEOF
26391 /* end confdefs.h. */
26392 $ac_includes_default
26396 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26403 rm -f conftest.$ac_objext
26404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26405 (eval $ac_compile) 2>conftest.er1
26407 grep -v '^ *+' conftest.er1 >conftest.err
26409 cat conftest.err >&5
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); } &&
26412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 (eval $ac_try) 2>&5
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); }; } &&
26418 { ac_try='test -s conftest.$ac_objext'
26419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26420 (eval $ac_try) 2>&5
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); }; }; then
26424 ac_hi=$ac_mid; break
26426 echo "$as_me: failed program was:" >&5
26427 sed 's/^/| /' conftest.$ac_ext >&5
26429 ac_lo=`expr $ac_mid + 1`
26430 if test $ac_lo -le $ac_mid; then
26434 ac_mid=`expr 2 '*' $ac_mid + 1`
26436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26439 echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26442 cat >conftest.$ac_ext <<_ACEOF
26445 cat confdefs.h >>conftest.$ac_ext
26446 cat >>conftest.$ac_ext <<_ACEOF
26447 /* end confdefs.h. */
26448 $ac_includes_default
26452 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
26459 rm -f conftest.$ac_objext
26460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26461 (eval $ac_compile) 2>conftest.er1
26463 grep -v '^ *+' conftest.er1 >conftest.err
26465 cat conftest.err >&5
26466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26467 (exit $ac_status); } &&
26468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26470 (eval $ac_try) 2>&5
26472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473 (exit $ac_status); }; } &&
26474 { ac_try='test -s conftest.$ac_objext'
26475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26476 (eval $ac_try) 2>&5
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); }; }; then
26482 cat >conftest.$ac_ext <<_ACEOF
26485 cat confdefs.h >>conftest.$ac_ext
26486 cat >>conftest.$ac_ext <<_ACEOF
26487 /* end confdefs.h. */
26488 $ac_includes_default
26492 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
26499 rm -f conftest.$ac_objext
26500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26501 (eval $ac_compile) 2>conftest.er1
26503 grep -v '^ *+' conftest.er1 >conftest.err
26505 cat conftest.err >&5
26506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); } &&
26508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26510 (eval $ac_try) 2>&5
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); }; } &&
26514 { ac_try='test -s conftest.$ac_objext'
26515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26516 (eval $ac_try) 2>&5
26518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26519 (exit $ac_status); }; }; then
26520 ac_lo=$ac_mid; break
26522 echo "$as_me: failed program was:" >&5
26523 sed 's/^/| /' conftest.$ac_ext >&5
26525 ac_hi=`expr '(' $ac_mid ')' - 1`
26526 if test $ac_mid -le $ac_hi; then
26530 ac_mid=`expr 2 '*' $ac_mid`
26532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26535 echo "$as_me: failed program was:" >&5
26536 sed 's/^/| /' conftest.$ac_ext >&5
26540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26543 # Binary search between lo and hi bounds.
26544 while test "x$ac_lo" != "x$ac_hi"; do
26545 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26546 cat >conftest.$ac_ext <<_ACEOF
26549 cat confdefs.h >>conftest.$ac_ext
26550 cat >>conftest.$ac_ext <<_ACEOF
26551 /* end confdefs.h. */
26552 $ac_includes_default
26556 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26563 rm -f conftest.$ac_objext
26564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26565 (eval $ac_compile) 2>conftest.er1
26567 grep -v '^ *+' conftest.er1 >conftest.err
26569 cat conftest.err >&5
26570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571 (exit $ac_status); } &&
26572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26574 (eval $ac_try) 2>&5
26576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); }; } &&
26578 { ac_try='test -s conftest.$ac_objext'
26579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26580 (eval $ac_try) 2>&5
26582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583 (exit $ac_status); }; }; then
26586 echo "$as_me: failed program was:" >&5
26587 sed 's/^/| /' conftest.$ac_ext >&5
26589 ac_lo=`expr '(' $ac_mid ')' + 1`
26591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26594 ?*) ac_cv_sizeof_int=$ac_lo;;
26595 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26596 See \`config.log' for more details." >&5
26597 echo "$as_me: error: cannot compute sizeof (int), 77
26598 See \`config.log' for more details." >&2;}
26599 { (exit 1); exit 1; }; } ;;
26602 if test "$cross_compiling" = yes; then
26603 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26604 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26605 { (exit 1); exit 1; }; }
26607 cat >conftest.$ac_ext <<_ACEOF
26610 cat confdefs.h >>conftest.$ac_ext
26611 cat >>conftest.$ac_ext <<_ACEOF
26612 /* end confdefs.h. */
26613 $ac_includes_default
26614 long longval () { return (long) (sizeof (int)); }
26615 unsigned long ulongval () { return (long) (sizeof (int)); }
26617 #include <stdlib.h>
26622 FILE *f = fopen ("conftest.val", "w");
26625 if (((long) (sizeof (int))) < 0)
26627 long i = longval ();
26628 if (i != ((long) (sizeof (int))))
26630 fprintf (f, "%ld\n", i);
26634 unsigned long i = ulongval ();
26635 if (i != ((long) (sizeof (int))))
26637 fprintf (f, "%lu\n", i);
26639 exit (ferror (f) || fclose (f) != 0);
26645 rm -f conftest$ac_exeext
26646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26647 (eval $ac_link) 2>&5
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26652 (eval $ac_try) 2>&5
26654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655 (exit $ac_status); }; }; then
26656 ac_cv_sizeof_int=`cat conftest.val`
26658 echo "$as_me: program exited with status $ac_status" >&5
26659 echo "$as_me: failed program was:" >&5
26660 sed 's/^/| /' conftest.$ac_ext >&5
26662 ( exit $ac_status )
26663 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26664 See \`config.log' for more details." >&5
26665 echo "$as_me: error: cannot compute sizeof (int), 77
26666 See \`config.log' for more details." >&2;}
26667 { (exit 1); exit 1; }; }
26669 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26677 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
26678 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
26679 cat >>confdefs.h <<_ACEOF
26680 #define SIZEOF_INT $ac_cv_sizeof_int
26684 echo "$as_me:$LINENO: checking for long" >&5
26685 echo $ECHO_N "checking for long... $ECHO_C" >&6
26686 if test "${ac_cv_type_long+set}" = set; then
26687 echo $ECHO_N "(cached) $ECHO_C" >&6
26689 cat >conftest.$ac_ext <<_ACEOF
26692 cat confdefs.h >>conftest.$ac_ext
26693 cat >>conftest.$ac_ext <<_ACEOF
26694 /* end confdefs.h. */
26695 $ac_includes_default
26707 rm -f conftest.$ac_objext
26708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26709 (eval $ac_compile) 2>conftest.er1
26711 grep -v '^ *+' conftest.er1 >conftest.err
26713 cat conftest.err >&5
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); } &&
26716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26718 (eval $ac_try) 2>&5
26720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721 (exit $ac_status); }; } &&
26722 { ac_try='test -s conftest.$ac_objext'
26723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26724 (eval $ac_try) 2>&5
26726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727 (exit $ac_status); }; }; then
26728 ac_cv_type_long=yes
26730 echo "$as_me: failed program was:" >&5
26731 sed 's/^/| /' conftest.$ac_ext >&5
26735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26737 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
26738 echo "${ECHO_T}$ac_cv_type_long" >&6
26740 echo "$as_me:$LINENO: checking size of long" >&5
26741 echo $ECHO_N "checking size of long... $ECHO_C" >&6
26742 if test "${ac_cv_sizeof_long+set}" = set; then
26743 echo $ECHO_N "(cached) $ECHO_C" >&6
26745 if test "$ac_cv_type_long" = yes; then
26746 # The cast to unsigned long works around a bug in the HP C Compiler
26747 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26748 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26749 # This bug is HP SR number 8606223364.
26750 if test "$cross_compiling" = yes; then
26751 # Depending upon the size, compute the lo and hi bounds.
26752 cat >conftest.$ac_ext <<_ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h. */
26758 $ac_includes_default
26762 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
26769 rm -f conftest.$ac_objext
26770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26771 (eval $ac_compile) 2>conftest.er1
26773 grep -v '^ *+' conftest.er1 >conftest.err
26775 cat conftest.err >&5
26776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777 (exit $ac_status); } &&
26778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26780 (eval $ac_try) 2>&5
26782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); }; } &&
26784 { ac_try='test -s conftest.$ac_objext'
26785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26786 (eval $ac_try) 2>&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); }; }; then
26792 cat >conftest.$ac_ext <<_ACEOF
26795 cat confdefs.h >>conftest.$ac_ext
26796 cat >>conftest.$ac_ext <<_ACEOF
26797 /* end confdefs.h. */
26798 $ac_includes_default
26802 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26809 rm -f conftest.$ac_objext
26810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26811 (eval $ac_compile) 2>conftest.er1
26813 grep -v '^ *+' conftest.er1 >conftest.err
26815 cat conftest.err >&5
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); } &&
26818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820 (eval $ac_try) 2>&5
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); }; } &&
26824 { ac_try='test -s conftest.$ac_objext'
26825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26826 (eval $ac_try) 2>&5
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); }; }; then
26830 ac_hi=$ac_mid; break
26832 echo "$as_me: failed program was:" >&5
26833 sed 's/^/| /' conftest.$ac_ext >&5
26835 ac_lo=`expr $ac_mid + 1`
26836 if test $ac_lo -le $ac_mid; then
26840 ac_mid=`expr 2 '*' $ac_mid + 1`
26842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26845 echo "$as_me: failed program was:" >&5
26846 sed 's/^/| /' conftest.$ac_ext >&5
26848 cat >conftest.$ac_ext <<_ACEOF
26851 cat confdefs.h >>conftest.$ac_ext
26852 cat >>conftest.$ac_ext <<_ACEOF
26853 /* end confdefs.h. */
26854 $ac_includes_default
26858 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
26865 rm -f conftest.$ac_objext
26866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26867 (eval $ac_compile) 2>conftest.er1
26869 grep -v '^ *+' conftest.er1 >conftest.err
26871 cat conftest.err >&5
26872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873 (exit $ac_status); } &&
26874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26876 (eval $ac_try) 2>&5
26878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879 (exit $ac_status); }; } &&
26880 { ac_try='test -s conftest.$ac_objext'
26881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882 (eval $ac_try) 2>&5
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); }; }; then
26888 cat >conftest.$ac_ext <<_ACEOF
26891 cat confdefs.h >>conftest.$ac_ext
26892 cat >>conftest.$ac_ext <<_ACEOF
26893 /* end confdefs.h. */
26894 $ac_includes_default
26898 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
26905 rm -f conftest.$ac_objext
26906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26907 (eval $ac_compile) 2>conftest.er1
26909 grep -v '^ *+' conftest.er1 >conftest.err
26911 cat conftest.err >&5
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); } &&
26914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916 (eval $ac_try) 2>&5
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); }; } &&
26920 { ac_try='test -s conftest.$ac_objext'
26921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26922 (eval $ac_try) 2>&5
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); }; }; then
26926 ac_lo=$ac_mid; break
26928 echo "$as_me: failed program was:" >&5
26929 sed 's/^/| /' conftest.$ac_ext >&5
26931 ac_hi=`expr '(' $ac_mid ')' - 1`
26932 if test $ac_mid -le $ac_hi; then
26936 ac_mid=`expr 2 '*' $ac_mid`
26938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26941 echo "$as_me: failed program was:" >&5
26942 sed 's/^/| /' conftest.$ac_ext >&5
26946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26949 # Binary search between lo and hi bounds.
26950 while test "x$ac_lo" != "x$ac_hi"; do
26951 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26952 cat >conftest.$ac_ext <<_ACEOF
26955 cat confdefs.h >>conftest.$ac_ext
26956 cat >>conftest.$ac_ext <<_ACEOF
26957 /* end confdefs.h. */
26958 $ac_includes_default
26962 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26969 rm -f conftest.$ac_objext
26970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26971 (eval $ac_compile) 2>conftest.er1
26973 grep -v '^ *+' conftest.er1 >conftest.err
26975 cat conftest.err >&5
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); } &&
26978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26980 (eval $ac_try) 2>&5
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); }; } &&
26984 { ac_try='test -s conftest.$ac_objext'
26985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26986 (eval $ac_try) 2>&5
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); }; }; then
26992 echo "$as_me: failed program was:" >&5
26993 sed 's/^/| /' conftest.$ac_ext >&5
26995 ac_lo=`expr '(' $ac_mid ')' + 1`
26997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27000 ?*) ac_cv_sizeof_long=$ac_lo;;
27001 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27002 See \`config.log' for more details." >&5
27003 echo "$as_me: error: cannot compute sizeof (long), 77
27004 See \`config.log' for more details." >&2;}
27005 { (exit 1); exit 1; }; } ;;
27008 if test "$cross_compiling" = yes; then
27009 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27010 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27011 { (exit 1); exit 1; }; }
27013 cat >conftest.$ac_ext <<_ACEOF
27016 cat confdefs.h >>conftest.$ac_ext
27017 cat >>conftest.$ac_ext <<_ACEOF
27018 /* end confdefs.h. */
27019 $ac_includes_default
27020 long longval () { return (long) (sizeof (long)); }
27021 unsigned long ulongval () { return (long) (sizeof (long)); }
27023 #include <stdlib.h>
27028 FILE *f = fopen ("conftest.val", "w");
27031 if (((long) (sizeof (long))) < 0)
27033 long i = longval ();
27034 if (i != ((long) (sizeof (long))))
27036 fprintf (f, "%ld\n", i);
27040 unsigned long i = ulongval ();
27041 if (i != ((long) (sizeof (long))))
27043 fprintf (f, "%lu\n", i);
27045 exit (ferror (f) || fclose (f) != 0);
27051 rm -f conftest$ac_exeext
27052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27053 (eval $ac_link) 2>&5
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27058 (eval $ac_try) 2>&5
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); }; }; then
27062 ac_cv_sizeof_long=`cat conftest.val`
27064 echo "$as_me: program exited with status $ac_status" >&5
27065 echo "$as_me: failed program was:" >&5
27066 sed 's/^/| /' conftest.$ac_ext >&5
27068 ( exit $ac_status )
27069 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27070 See \`config.log' for more details." >&5
27071 echo "$as_me: error: cannot compute sizeof (long), 77
27072 See \`config.log' for more details." >&2;}
27073 { (exit 1); exit 1; }; }
27075 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27080 ac_cv_sizeof_long=0
27083 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27084 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
27085 cat >>confdefs.h <<_ACEOF
27086 #define SIZEOF_LONG $ac_cv_sizeof_long
27090 echo "$as_me:$LINENO: checking for size_t" >&5
27091 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27092 if test "${ac_cv_type_size_t+set}" = set; then
27093 echo $ECHO_N "(cached) $ECHO_C" >&6
27095 cat >conftest.$ac_ext <<_ACEOF
27098 cat confdefs.h >>conftest.$ac_ext
27099 cat >>conftest.$ac_ext <<_ACEOF
27100 /* end confdefs.h. */
27101 $ac_includes_default
27107 if (sizeof (size_t))
27113 rm -f conftest.$ac_objext
27114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27115 (eval $ac_compile) 2>conftest.er1
27117 grep -v '^ *+' conftest.er1 >conftest.err
27119 cat conftest.err >&5
27120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121 (exit $ac_status); } &&
27122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27124 (eval $ac_try) 2>&5
27126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127 (exit $ac_status); }; } &&
27128 { ac_try='test -s conftest.$ac_objext'
27129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27130 (eval $ac_try) 2>&5
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); }; }; then
27134 ac_cv_type_size_t=yes
27136 echo "$as_me: failed program was:" >&5
27137 sed 's/^/| /' conftest.$ac_ext >&5
27139 ac_cv_type_size_t=no
27141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27143 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27144 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27146 echo "$as_me:$LINENO: checking size of size_t" >&5
27147 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
27148 if test "${ac_cv_sizeof_size_t+set}" = set; then
27149 echo $ECHO_N "(cached) $ECHO_C" >&6
27151 if test "$ac_cv_type_size_t" = yes; then
27152 # The cast to unsigned long works around a bug in the HP C Compiler
27153 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27154 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27155 # This bug is HP SR number 8606223364.
27156 if test "$cross_compiling" = yes; then
27157 # Depending upon the size, compute the lo and hi bounds.
27158 cat >conftest.$ac_ext <<_ACEOF
27161 cat confdefs.h >>conftest.$ac_ext
27162 cat >>conftest.$ac_ext <<_ACEOF
27163 /* end confdefs.h. */
27164 $ac_includes_default
27168 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
27175 rm -f conftest.$ac_objext
27176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27177 (eval $ac_compile) 2>conftest.er1
27179 grep -v '^ *+' conftest.er1 >conftest.err
27181 cat conftest.err >&5
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); } &&
27184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27186 (eval $ac_try) 2>&5
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); }; } &&
27190 { ac_try='test -s conftest.$ac_objext'
27191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192 (eval $ac_try) 2>&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); }; }; then
27198 cat >conftest.$ac_ext <<_ACEOF
27201 cat confdefs.h >>conftest.$ac_ext
27202 cat >>conftest.$ac_ext <<_ACEOF
27203 /* end confdefs.h. */
27204 $ac_includes_default
27208 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27215 rm -f conftest.$ac_objext
27216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27217 (eval $ac_compile) 2>conftest.er1
27219 grep -v '^ *+' conftest.er1 >conftest.err
27221 cat conftest.err >&5
27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); } &&
27224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27226 (eval $ac_try) 2>&5
27228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229 (exit $ac_status); }; } &&
27230 { ac_try='test -s conftest.$ac_objext'
27231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27232 (eval $ac_try) 2>&5
27234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235 (exit $ac_status); }; }; then
27236 ac_hi=$ac_mid; break
27238 echo "$as_me: failed program was:" >&5
27239 sed 's/^/| /' conftest.$ac_ext >&5
27241 ac_lo=`expr $ac_mid + 1`
27242 if test $ac_lo -le $ac_mid; then
27246 ac_mid=`expr 2 '*' $ac_mid + 1`
27248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27251 echo "$as_me: failed program was:" >&5
27252 sed 's/^/| /' conftest.$ac_ext >&5
27254 cat >conftest.$ac_ext <<_ACEOF
27257 cat confdefs.h >>conftest.$ac_ext
27258 cat >>conftest.$ac_ext <<_ACEOF
27259 /* end confdefs.h. */
27260 $ac_includes_default
27264 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
27271 rm -f conftest.$ac_objext
27272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27273 (eval $ac_compile) 2>conftest.er1
27275 grep -v '^ *+' conftest.er1 >conftest.err
27277 cat conftest.err >&5
27278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279 (exit $ac_status); } &&
27280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27282 (eval $ac_try) 2>&5
27284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285 (exit $ac_status); }; } &&
27286 { ac_try='test -s conftest.$ac_objext'
27287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27288 (eval $ac_try) 2>&5
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); }; }; then
27294 cat >conftest.$ac_ext <<_ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h. */
27300 $ac_includes_default
27304 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
27311 rm -f conftest.$ac_objext
27312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27313 (eval $ac_compile) 2>conftest.er1
27315 grep -v '^ *+' conftest.er1 >conftest.err
27317 cat conftest.err >&5
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); } &&
27320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27322 (eval $ac_try) 2>&5
27324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); }; } &&
27326 { ac_try='test -s conftest.$ac_objext'
27327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27328 (eval $ac_try) 2>&5
27330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331 (exit $ac_status); }; }; then
27332 ac_lo=$ac_mid; break
27334 echo "$as_me: failed program was:" >&5
27335 sed 's/^/| /' conftest.$ac_ext >&5
27337 ac_hi=`expr '(' $ac_mid ')' - 1`
27338 if test $ac_mid -le $ac_hi; then
27342 ac_mid=`expr 2 '*' $ac_mid`
27344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27347 echo "$as_me: failed program was:" >&5
27348 sed 's/^/| /' conftest.$ac_ext >&5
27352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27355 # Binary search between lo and hi bounds.
27356 while test "x$ac_lo" != "x$ac_hi"; do
27357 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27358 cat >conftest.$ac_ext <<_ACEOF
27361 cat confdefs.h >>conftest.$ac_ext
27362 cat >>conftest.$ac_ext <<_ACEOF
27363 /* end confdefs.h. */
27364 $ac_includes_default
27368 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27375 rm -f conftest.$ac_objext
27376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27377 (eval $ac_compile) 2>conftest.er1
27379 grep -v '^ *+' conftest.er1 >conftest.err
27381 cat conftest.err >&5
27382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383 (exit $ac_status); } &&
27384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27386 (eval $ac_try) 2>&5
27388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389 (exit $ac_status); }; } &&
27390 { ac_try='test -s conftest.$ac_objext'
27391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27392 (eval $ac_try) 2>&5
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); }; }; then
27398 echo "$as_me: failed program was:" >&5
27399 sed 's/^/| /' conftest.$ac_ext >&5
27401 ac_lo=`expr '(' $ac_mid ')' + 1`
27403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27406 ?*) ac_cv_sizeof_size_t=$ac_lo;;
27407 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27408 See \`config.log' for more details." >&5
27409 echo "$as_me: error: cannot compute sizeof (size_t), 77
27410 See \`config.log' for more details." >&2;}
27411 { (exit 1); exit 1; }; } ;;
27414 if test "$cross_compiling" = yes; then
27415 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27416 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27417 { (exit 1); exit 1; }; }
27419 cat >conftest.$ac_ext <<_ACEOF
27422 cat confdefs.h >>conftest.$ac_ext
27423 cat >>conftest.$ac_ext <<_ACEOF
27424 /* end confdefs.h. */
27425 $ac_includes_default
27426 long longval () { return (long) (sizeof (size_t)); }
27427 unsigned long ulongval () { return (long) (sizeof (size_t)); }
27429 #include <stdlib.h>
27434 FILE *f = fopen ("conftest.val", "w");
27437 if (((long) (sizeof (size_t))) < 0)
27439 long i = longval ();
27440 if (i != ((long) (sizeof (size_t))))
27442 fprintf (f, "%ld\n", i);
27446 unsigned long i = ulongval ();
27447 if (i != ((long) (sizeof (size_t))))
27449 fprintf (f, "%lu\n", i);
27451 exit (ferror (f) || fclose (f) != 0);
27457 rm -f conftest$ac_exeext
27458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27459 (eval $ac_link) 2>&5
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27464 (eval $ac_try) 2>&5
27466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467 (exit $ac_status); }; }; then
27468 ac_cv_sizeof_size_t=`cat conftest.val`
27470 echo "$as_me: program exited with status $ac_status" >&5
27471 echo "$as_me: failed program was:" >&5
27472 sed 's/^/| /' conftest.$ac_ext >&5
27474 ( exit $ac_status )
27475 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27476 See \`config.log' for more details." >&5
27477 echo "$as_me: error: cannot compute sizeof (size_t), 77
27478 See \`config.log' for more details." >&2;}
27479 { (exit 1); exit 1; }; }
27481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27486 ac_cv_sizeof_size_t=0
27489 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27490 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
27491 cat >>confdefs.h <<_ACEOF
27492 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27498 cat >>confdefs.h <<_ACEOF
27499 #define NFS_STATEDIR "$statedir"
27503 if test "x$cross_compiling" = "xno"; then
27504 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
27505 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
27506 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
27507 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
27509 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
27510 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
27511 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
27512 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
27527 ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
27532 my_am_cflags="-Wall $ARCHFLAGS -pipe"
27534 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
27536 AM_CFLAGS="$my_am_cflags"
27539 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
27540 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
27543 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/getiversion/Makefile tools/getkversion/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/lockd/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/nhfsstone/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
27545 cat >confcache <<\_ACEOF
27546 # This file is a shell script that caches the results of configure
27547 # tests run on this system so they can be shared between configure
27548 # scripts and configure runs, see configure's option --config-cache.
27549 # It is not useful on other systems. If it contains results you don't
27550 # want to keep, you may remove or edit it.
27552 # config.status only pays attention to the cache file if you give it
27553 # the --recheck option to rerun configure.
27555 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27556 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27557 # following values.
27561 # The following way of writing the cache mishandles newlines in values,
27562 # but we know of no workaround that is simple, portable, and efficient.
27563 # So, don't put newlines in cache variables' values.
27564 # Ultrix sh set writes to stderr and can't be redirected directly,
27565 # and sets the high bit in the cache file unless we assign to the vars.
27568 case `(ac_space=' '; set | grep ac_space) 2>&1` in
27570 # `set' does not quote correctly, so add quotes (double-quote
27571 # substitution turns \\\\ into \\, and sed turns \\ into \).
27574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27577 # `set' quotes correctly as required by POSIX, so do not add quotes.
27579 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27586 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27588 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27590 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27591 if test -w $cache_file; then
27592 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27593 cat confcache >$cache_file
27595 echo "not updating unwritable cache $cache_file"
27600 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27601 # Let make expand exec_prefix.
27602 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27604 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27605 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27606 # trailing colons and then remove the whole line if VPATH becomes empty
27607 # (actually we leave an empty line to preserve line numbers).
27608 if test "x$srcdir" = x.; then
27609 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27610 s/:*\$(srcdir):*/:/;
27611 s/:*\${srcdir}:*/:/;
27613 s/^\([^=]*=[ ]*\):*/\1/;
27619 DEFS=-DHAVE_CONFIG_H
27623 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27624 # 1. Remove the extension, and $U if already installed.
27625 ac_i=`echo "$ac_i" |
27626 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27628 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27629 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27631 LIBOBJS=$ac_libobjs
27633 LTLIBOBJS=$ac_ltlibobjs
27636 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
27637 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
27638 Usually this means the macro was only invoked conditionally." >&5
27639 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
27640 Usually this means the macro was only invoked conditionally." >&2;}
27641 { (exit 1); exit 1; }; }
27643 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
27644 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
27645 Usually this means the macro was only invoked conditionally." >&5
27646 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
27647 Usually this means the macro was only invoked conditionally." >&2;}
27648 { (exit 1); exit 1; }; }
27650 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
27651 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
27652 Usually this means the macro was only invoked conditionally." >&5
27653 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
27654 Usually this means the macro was only invoked conditionally." >&2;}
27655 { (exit 1); exit 1; }; }
27657 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27658 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27659 Usually this means the macro was only invoked conditionally." >&5
27660 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27661 Usually this means the macro was only invoked conditionally." >&2;}
27662 { (exit 1); exit 1; }; }
27664 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27665 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27666 Usually this means the macro was only invoked conditionally." >&5
27667 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27668 Usually this means the macro was only invoked conditionally." >&2;}
27669 { (exit 1); exit 1; }; }
27671 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27672 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27673 Usually this means the macro was only invoked conditionally." >&5
27674 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27675 Usually this means the macro was only invoked conditionally." >&2;}
27676 { (exit 1); exit 1; }; }
27678 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27679 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27680 Usually this means the macro was only invoked conditionally." >&5
27681 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27682 Usually this means the macro was only invoked conditionally." >&2;}
27683 { (exit 1); exit 1; }; }
27686 : ${CONFIG_STATUS=./config.status}
27687 ac_clean_files_save=$ac_clean_files
27688 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27689 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27690 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27691 cat >$CONFIG_STATUS <<_ACEOF
27693 # Generated by $as_me.
27694 # Run this file to recreate the current configuration.
27695 # Compiler output produced by configure, useful for debugging
27696 # configure, is in config.log if it exists.
27699 ac_cs_recheck=false
27701 SHELL=\${CONFIG_SHELL-$SHELL}
27704 cat >>$CONFIG_STATUS <<\_ACEOF
27705 ## --------------------- ##
27706 ## M4sh Initialization. ##
27707 ## --------------------- ##
27709 # Be Bourne compatible
27710 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27713 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27714 # is contrary to our usage. Disable this feature.
27715 alias -g '${1+"$@"}'='"$@"'
27716 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27719 DUALCASE=1; export DUALCASE # for MKS sh
27721 # Support unset when possible.
27722 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27729 # Work around bugs in pre-3.0 UWIN ksh.
27730 $as_unset ENV MAIL MAILPATH
27737 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27738 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27739 LC_TELEPHONE LC_TIME
27741 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27742 eval $as_var=C; export $as_var
27748 # Required to use basename.
27749 if expr a : '\(a\)' >/dev/null 2>&1; then
27755 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27756 as_basename=basename
27762 # Name of the executable.
27763 as_me=`$as_basename "$0" ||
27764 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27765 X"$0" : 'X\(//\)$' \| \
27766 X"$0" : 'X\(/\)$' \| \
27767 . : '\(.\)' 2>/dev/null ||
27769 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27770 /^X\/\(\/\/\)$/{ s//\1/; q; }
27771 /^X\/\(\/\).*/{ s//\1/; q; }
27775 # PATH needs CR, and LINENO needs CR and PATH.
27776 # Avoid depending upon Character Ranges.
27777 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27778 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27779 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27780 as_cr_digits='0123456789'
27781 as_cr_alnum=$as_cr_Letters$as_cr_digits
27783 # The user is always right.
27784 if test "${PATH_SEPARATOR+set}" != set; then
27785 echo "#! /bin/sh" >conf$$.sh
27786 echo "exit 0" >>conf$$.sh
27788 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27797 as_lineno_1=$LINENO
27798 as_lineno_2=$LINENO
27799 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27800 test "x$as_lineno_1" != "x$as_lineno_2" &&
27801 test "x$as_lineno_3" = "x$as_lineno_2" || {
27802 # Find who we are. Look in the path if we contain no path at all
27805 *[\\/]* ) as_myself=$0 ;;
27806 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27807 for as_dir in $PATH
27810 test -z "$as_dir" && as_dir=.
27811 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27816 # We did not find ourselves, most probably we were run as `sh COMMAND'
27817 # in which case we are not to be found in the path.
27818 if test "x$as_myself" = x; then
27821 if test ! -f "$as_myself"; then
27822 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27823 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27824 { (exit 1); exit 1; }; }
27826 case $CONFIG_SHELL in
27828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27829 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27832 test -z "$as_dir" && as_dir=.
27833 for as_base in sh bash ksh sh5; do
27836 if ("$as_dir/$as_base" -c '
27837 as_lineno_1=$LINENO
27838 as_lineno_2=$LINENO
27839 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27840 test "x$as_lineno_1" != "x$as_lineno_2" &&
27841 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
27842 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27843 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27844 CONFIG_SHELL=$as_dir/$as_base
27845 export CONFIG_SHELL
27846 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27854 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27855 # uniformly replaced by the line number. The first 'sed' inserts a
27856 # line-number line before each line; the second 'sed' does the real
27857 # work. The second script uses 'N' to pair each line-number line
27858 # with the numbered line, and appends trailing '-' during
27859 # substitution so that $LINENO is not a special case at line end.
27860 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27861 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
27862 sed '=' <$as_myself |
27867 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27870 s,^['$as_cr_digits']*\n,,
27871 ' >$as_me.lineno &&
27872 chmod +x $as_me.lineno ||
27873 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27874 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27875 { (exit 1); exit 1; }; }
27877 # Don't try to exec as it changes $[0], causing all sort of problems
27878 # (the dirname of $[0] is not the place where we might find the
27879 # original and so on. Autoconf is especially sensible to this).
27881 # Exit status is that of the last command.
27886 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27887 *c*,-n*) ECHO_N= ECHO_C='
27889 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27890 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
27893 if expr a : '\(a\)' >/dev/null 2>&1; then
27899 rm -f conf$$ conf$$.exe conf$$.file
27901 if ln -s conf$$.file conf$$ 2>/dev/null; then
27902 # We could just check for DJGPP; but this test a) works b) is more generic
27903 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27904 if test -f conf$$.exe; then
27905 # Don't use ln at all; we don't have any links
27910 elif ln conf$$.file conf$$ 2>/dev/null; then
27915 rm -f conf$$ conf$$.exe conf$$.file
27917 if mkdir -p . 2>/dev/null; then
27920 test -d ./-p && rmdir ./-p
27924 as_executable_p="test -f"
27926 # Sed expression to map a string onto a valid CPP name.
27927 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27929 # Sed expression to map a string onto a valid variable name.
27930 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27934 # We need space, tab and new line, in precisely that order.
27944 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27945 # report actual input values of CONFIG_FILES etc. instead of their
27946 # values after options handling. Logging --version etc. is OK.
27950 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27951 ## Running $as_me. ##
27956 This file was extended by linux nfs-utils $as_me 1.0.8-rc4, which was
27957 generated by GNU Autoconf 2.59. Invocation command line was
27959 CONFIG_FILES = $CONFIG_FILES
27960 CONFIG_HEADERS = $CONFIG_HEADERS
27961 CONFIG_LINKS = $CONFIG_LINKS
27962 CONFIG_COMMANDS = $CONFIG_COMMANDS
27966 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27970 # Files that config.status was made for.
27971 if test -n "$ac_config_files"; then
27972 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27975 if test -n "$ac_config_headers"; then
27976 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27979 if test -n "$ac_config_links"; then
27980 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27983 if test -n "$ac_config_commands"; then
27984 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27987 cat >>$CONFIG_STATUS <<\_ACEOF
27990 \`$as_me' instantiates files from templates according to the
27991 current configuration.
27993 Usage: $0 [OPTIONS] [FILE]...
27995 -h, --help print this help, then exit
27996 -V, --version print version number, then exit
27997 -q, --quiet do not print progress messages
27998 -d, --debug don't remove temporary files
27999 --recheck update $as_me by reconfiguring in the same conditions
28000 --file=FILE[:TEMPLATE]
28001 instantiate the configuration file FILE
28002 --header=FILE[:TEMPLATE]
28003 instantiate the configuration header FILE
28005 Configuration files:
28008 Configuration headers:
28011 Configuration commands:
28014 Report bugs to <bug-autoconf@gnu.org>."
28017 cat >>$CONFIG_STATUS <<_ACEOF
28019 linux nfs-utils config.status 1.0.8-rc4
28020 configured by $0, generated by GNU Autoconf 2.59,
28021 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28023 Copyright (C) 2003 Free Software Foundation, Inc.
28024 This config.status script is free software; the Free Software Foundation
28025 gives unlimited permission to copy, distribute and modify it."
28030 cat >>$CONFIG_STATUS <<\_ACEOF
28031 # If no file are specified by the user, then we need to provide default
28032 # value. By we need to know if files were specified by the user.
28038 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28039 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28047 *) # This is not an option, so the user has probably given explicit
28050 ac_need_defaults=false;;
28054 # Handling of the options.
28056 cat >>$CONFIG_STATUS <<\_ACEOF
28057 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28059 --version | --vers* | -V )
28060 echo "$ac_cs_version"; exit 0 ;;
28062 # Conflict between --help and --header
28063 { { echo "$as_me:$LINENO: error: ambiguous option: $1
28064 Try \`$0 --help' for more information." >&5
28065 echo "$as_me: error: ambiguous option: $1
28066 Try \`$0 --help' for more information." >&2;}
28067 { (exit 1); exit 1; }; };;
28068 --help | --hel | -h )
28069 echo "$ac_cs_usage"; exit 0 ;;
28070 --debug | --d* | -d )
28072 --file | --fil | --fi | --f )
28074 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28075 ac_need_defaults=false;;
28076 --header | --heade | --head | --hea )
28078 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28079 ac_need_defaults=false;;
28080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28081 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28084 # This is an error.
28085 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28086 Try \`$0 --help' for more information." >&5
28087 echo "$as_me: error: unrecognized option: $1
28088 Try \`$0 --help' for more information." >&2;}
28089 { (exit 1); exit 1; }; } ;;
28091 *) ac_config_targets="$ac_config_targets $1" ;;
28097 ac_configure_extra_args=
28099 if $ac_cs_silent; then
28101 ac_configure_extra_args="$ac_configure_extra_args --silent"
28105 cat >>$CONFIG_STATUS <<_ACEOF
28106 if \$ac_cs_recheck; then
28107 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28108 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28113 cat >>$CONFIG_STATUS <<_ACEOF
28115 # INIT-COMMANDS section.
28118 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28124 cat >>$CONFIG_STATUS <<\_ACEOF
28125 for ac_config_target in $ac_config_targets
28127 case "$ac_config_target" in
28128 # Handling of arguments.
28129 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28130 "linux-nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
28131 "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
28132 "support/export/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
28133 "support/include/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
28134 "support/include/rpcsvc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
28135 "support/include/sys/fs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
28136 "support/include/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
28137 "support/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
28138 "support/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
28139 "support/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
28140 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28141 "tools/getiversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
28142 "tools/getkversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
28143 "tools/locktest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
28144 "tools/nlmtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
28145 "tools/rpcdebug/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
28146 "tools/rpcgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
28147 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
28148 "utils/exportfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
28149 "utils/gssd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
28150 "utils/idmapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
28151 "utils/lockd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
28152 "utils/mountd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
28153 "utils/nfsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
28154 "utils/nfsstat/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
28155 "utils/nhfsstone/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
28156 "utils/rquotad/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
28157 "utils/showmount/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
28158 "utils/statd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
28159 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28160 "support/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
28161 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28162 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28163 { (exit 1); exit 1; }; };;
28167 # If the user did not use the arguments to specify the items to instantiate,
28168 # then the envvar interface is used. Set only those that are not.
28169 # We use the long form for the default assignment because of an extremely
28170 # bizarre bug on SunOS 4.1.3.
28171 if $ac_need_defaults; then
28172 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28173 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28174 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28177 # Have a temporary directory for convenience. Make it in the build tree
28178 # simply because there is no reason to put it here, and in addition,
28179 # creating and moving files from /tmp can sometimes cause problems.
28180 # Create a temporary directory, and hook for its removal unless debugging.
28183 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28184 trap '{ (exit 1); exit 1; }' 1 2 13 15
28187 # Create a (secure) tmp directory for tmp files.
28190 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
28191 test -n "$tmp" && test -d "$tmp"
28194 tmp=./confstat$$-$RANDOM
28195 (umask 077 && mkdir $tmp)
28198 echo "$me: cannot create a temporary directory in ." >&2
28199 { (exit 1); exit 1; }
28204 cat >>$CONFIG_STATUS <<_ACEOF
28207 # CONFIG_FILES section.
28210 # No need to generate the scripts if there are no CONFIG_FILES.
28211 # This happens for instance when ./config.status config.h
28212 if test -n "\$CONFIG_FILES"; then
28213 # Protect against being on the right side of a sed subst in config.status.
28214 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28215 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28216 s,@SHELL@,$SHELL,;t t
28217 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28218 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28219 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28220 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28221 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28222 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28223 s,@exec_prefix@,$exec_prefix,;t t
28224 s,@prefix@,$prefix,;t t
28225 s,@program_transform_name@,$program_transform_name,;t t
28226 s,@bindir@,$bindir,;t t
28227 s,@sbindir@,$sbindir,;t t
28228 s,@libexecdir@,$libexecdir,;t t
28229 s,@datadir@,$datadir,;t t
28230 s,@sysconfdir@,$sysconfdir,;t t
28231 s,@sharedstatedir@,$sharedstatedir,;t t
28232 s,@localstatedir@,$localstatedir,;t t
28233 s,@libdir@,$libdir,;t t
28234 s,@includedir@,$includedir,;t t
28235 s,@oldincludedir@,$oldincludedir,;t t
28236 s,@infodir@,$infodir,;t t
28237 s,@mandir@,$mandir,;t t
28238 s,@build_alias@,$build_alias,;t t
28239 s,@host_alias@,$host_alias,;t t
28240 s,@target_alias@,$target_alias,;t t
28241 s,@DEFS@,$DEFS,;t t
28242 s,@ECHO_C@,$ECHO_C,;t t
28243 s,@ECHO_N@,$ECHO_N,;t t
28244 s,@ECHO_T@,$ECHO_T,;t t
28245 s,@LIBS@,$LIBS,;t t
28246 s,@build@,$build,;t t
28247 s,@build_cpu@,$build_cpu,;t t
28248 s,@build_vendor@,$build_vendor,;t t
28249 s,@build_os@,$build_os,;t t
28250 s,@host@,$host,;t t
28251 s,@host_cpu@,$host_cpu,;t t
28252 s,@host_vendor@,$host_vendor,;t t
28253 s,@host_os@,$host_os,;t t
28254 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28255 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28256 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28257 s,@CYGPATH_W@,$CYGPATH_W,;t t
28258 s,@PACKAGE@,$PACKAGE,;t t
28259 s,@VERSION@,$VERSION,;t t
28260 s,@ACLOCAL@,$ACLOCAL,;t t
28261 s,@AUTOCONF@,$AUTOCONF,;t t
28262 s,@AUTOMAKE@,$AUTOMAKE,;t t
28263 s,@AUTOHEADER@,$AUTOHEADER,;t t
28264 s,@MAKEINFO@,$MAKEINFO,;t t
28265 s,@install_sh@,$install_sh,;t t
28266 s,@STRIP@,$STRIP,;t t
28267 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28268 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28269 s,@mkdir_p@,$mkdir_p,;t t
28271 s,@SET_MAKE@,$SET_MAKE,;t t
28272 s,@am__leading_dot@,$am__leading_dot,;t t
28273 s,@AMTAR@,$AMTAR,;t t
28274 s,@am__tar@,$am__tar,;t t
28275 s,@am__untar@,$am__untar,;t t
28276 s,@RELEASE@,$RELEASE,;t t
28277 s,@statedir@,$statedir,;t t
28278 s,@statduser@,$statduser,;t t
28279 s,@enable_nfsv3@,$enable_nfsv3,;t t
28280 s,@IDMAPD@,$IDMAPD,;t t
28281 s,@enable_nfsv4@,$enable_nfsv4,;t t
28282 s,@CONFIG_NFSV4_TRUE@,$CONFIG_NFSV4_TRUE,;t t
28283 s,@CONFIG_NFSV4_FALSE@,$CONFIG_NFSV4_FALSE,;t t
28284 s,@GSSD@,$GSSD,;t t
28285 s,@SVCGSSD@,$SVCGSSD,;t t
28286 s,@enable_gss@,$enable_gss,;t t
28287 s,@CONFIG_GSS_TRUE@,$CONFIG_GSS_TRUE,;t t
28288 s,@CONFIG_GSS_FALSE@,$CONFIG_GSS_FALSE,;t t
28289 s,@kprefix@,$kprefix,;t t
28290 s,@secure_statd@,$secure_statd,;t t
28291 s,@CONFIG_RQUOTAD_TRUE@,$CONFIG_RQUOTAD_TRUE,;t t
28292 s,@CONFIG_RQUOTAD_FALSE@,$CONFIG_RQUOTAD_FALSE,;t t
28294 s,@CFLAGS@,$CFLAGS,;t t
28295 s,@LDFLAGS@,$LDFLAGS,;t t
28296 s,@CPPFLAGS@,$CPPFLAGS,;t t
28297 s,@ac_ct_CC@,$ac_ct_CC,;t t
28298 s,@EXEEXT@,$EXEEXT,;t t
28299 s,@OBJEXT@,$OBJEXT,;t t
28300 s,@DEPDIR@,$DEPDIR,;t t
28301 s,@am__include@,$am__include,;t t
28302 s,@am__quote@,$am__quote,;t t
28303 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28304 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28305 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28306 s,@CCDEPMODE@,$CCDEPMODE,;t t
28307 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28308 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28309 s,@LIBWRAP@,$LIBWRAP,;t t
28311 s,@CXXFLAGS@,$CXXFLAGS,;t t
28312 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28313 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28314 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28315 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28317 s,@LN_S@,$LN_S,;t t
28318 s,@EGREP@,$EGREP,;t t
28319 s,@ECHO@,$ECHO,;t t
28321 s,@ac_ct_AR@,$ac_ct_AR,;t t
28322 s,@RANLIB@,$RANLIB,;t t
28323 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28324 s,@CXXCPP@,$CXXCPP,;t t
28326 s,@FFLAGS@,$FFLAGS,;t t
28327 s,@ac_ct_F77@,$ac_ct_F77,;t t
28328 s,@LIBTOOL@,$LIBTOOL,;t t
28329 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
28331 s,@ac_ct_LD@,$ac_ct_LD,;t t
28332 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
28333 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
28334 s,@RPCSECGSS_CFLAGS@,$RPCSECGSS_CFLAGS,;t t
28335 s,@RPCSECGSS_LIBS@,$RPCSECGSS_LIBS,;t t
28336 s,@LIBSOCKET@,$LIBSOCKET,;t t
28337 s,@LIBNSL@,$LIBNSL,;t t
28338 s,@LIBCRYPT@,$LIBCRYPT,;t t
28339 s,@LIBBSD@,$LIBBSD,;t t
28340 s,@KRBDIR@,$KRBDIR,;t t
28341 s,@KRBLIBS@,$KRBLIBS,;t t
28342 s,@KRBCFLAGS@,$KRBCFLAGS,;t t
28343 s,@K5VERS@,$K5VERS,;t t
28344 s,@ALLOCA@,$ALLOCA,;t t
28345 s,@LIBOBJS@,$LIBOBJS,;t t
28346 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
28347 s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
28348 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
28349 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
28350 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
28351 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
28352 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
28353 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28358 cat >>$CONFIG_STATUS <<\_ACEOF
28359 # Split the substitutions into bite-sized pieces for seds with
28360 # small command number limits, like on Digital OSF/1 and HP-UX.
28361 ac_max_sed_lines=48
28362 ac_sed_frag=1 # Number of current file.
28363 ac_beg=1 # First line for current file.
28364 ac_end=$ac_max_sed_lines # Line after last line for current file.
28367 while $ac_more_lines; do
28368 if test $ac_beg -gt 1; then
28369 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28371 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28373 if test ! -s $tmp/subs.frag; then
28374 ac_more_lines=false
28376 # The purpose of the label and of the branching condition is to
28377 # speed up the sed processing (if there are no `@' at all, there
28378 # is no need to browse any of the substitutions).
28379 # These are the two extra sed commands mentioned above.
28381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28382 if test -z "$ac_sed_cmds"; then
28383 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28385 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28387 ac_sed_frag=`expr $ac_sed_frag + 1`
28389 ac_end=`expr $ac_end + $ac_max_sed_lines`
28392 if test -z "$ac_sed_cmds"; then
28395 fi # test -n "$CONFIG_FILES"
28398 cat >>$CONFIG_STATUS <<\_ACEOF
28399 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28400 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28402 - | *:- | *:-:* ) # input from stdin
28404 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28405 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28406 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28407 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28408 * ) ac_file_in=$ac_file.in ;;
28411 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28412 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28413 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28414 X"$ac_file" : 'X\(//\)[^/]' \| \
28415 X"$ac_file" : 'X\(//\)$' \| \
28416 X"$ac_file" : 'X\(/\)' \| \
28417 . : '\(.\)' 2>/dev/null ||
28419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28421 /^X\(\/\/\)$/{ s//\1/; q; }
28422 /^X\(\/\).*/{ s//\1/; q; }
28424 { if $as_mkdir_p; then
28429 while test ! -d "$as_dir"; do
28430 as_dirs="$as_dir $as_dirs"
28431 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28432 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28433 X"$as_dir" : 'X\(//\)[^/]' \| \
28434 X"$as_dir" : 'X\(//\)$' \| \
28435 X"$as_dir" : 'X\(/\)' \| \
28436 . : '\(.\)' 2>/dev/null ||
28438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28440 /^X\(\/\/\)$/{ s//\1/; q; }
28441 /^X\(\/\).*/{ s//\1/; q; }
28444 test ! -n "$as_dirs" || mkdir $as_dirs
28445 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28446 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28447 { (exit 1); exit 1; }; }; }
28451 if test "$ac_dir" != .; then
28452 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28453 # A "../" for each directory in $ac_dir_suffix.
28454 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28456 ac_dir_suffix= ac_top_builddir=
28460 .) # No --srcdir option. We are building in place.
28462 if test -z "$ac_top_builddir"; then
28465 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28467 [\\/]* | ?:[\\/]* ) # Absolute path.
28468 ac_srcdir=$srcdir$ac_dir_suffix;
28469 ac_top_srcdir=$srcdir ;;
28470 *) # Relative path.
28471 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28472 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28475 # Do not use `cd foo && pwd` to compute absolute paths, because
28476 # the directories may not exist.
28478 .) ac_abs_builddir="$ac_dir";;
28481 .) ac_abs_builddir=`pwd`;;
28482 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28483 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28486 case $ac_abs_builddir in
28487 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28489 case ${ac_top_builddir}. in
28490 .) ac_abs_top_builddir=$ac_abs_builddir;;
28491 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28492 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28495 case $ac_abs_builddir in
28496 .) ac_abs_srcdir=$ac_srcdir;;
28499 .) ac_abs_srcdir=$ac_abs_builddir;;
28500 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28501 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28504 case $ac_abs_builddir in
28505 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28507 case $ac_top_srcdir in
28508 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28509 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28510 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28516 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28517 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28520 # Let's still pretend it is `configure' which instantiates (i.e., don't
28521 # use $as_me), people would be surprised to read:
28522 # /* config.h. Generated by config.status. */
28523 if test x"$ac_file" = x-; then
28526 configure_input="$ac_file. "
28528 configure_input=$configure_input"Generated from `echo $ac_file_in |
28529 sed 's,.*/,,'` by configure."
28531 # First look for the input files in the build tree, otherwise in the
28533 ac_file_inputs=`IFS=:
28534 for f in $ac_file_in; do
28536 -) echo $tmp/stdin ;;
28538 # Absolute (can't be DOS-style, as IFS=:)
28539 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28540 echo "$as_me: error: cannot find input file: $f" >&2;}
28541 { (exit 1); exit 1; }; }
28544 if test -f "$f"; then
28547 elif test -f "$srcdir/$f"; then
28552 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28553 echo "$as_me: error: cannot find input file: $f" >&2;}
28554 { (exit 1); exit 1; }; }
28557 done` || { (exit 1); exit 1; }
28559 if test x"$ac_file" != x-; then
28560 { echo "$as_me:$LINENO: creating $ac_file" >&5
28561 echo "$as_me: creating $ac_file" >&6;}
28565 cat >>$CONFIG_STATUS <<_ACEOF
28569 cat >>$CONFIG_STATUS <<\_ACEOF
28571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28572 s,@configure_input@,$configure_input,;t t
28573 s,@srcdir@,$ac_srcdir,;t t
28574 s,@abs_srcdir@,$ac_abs_srcdir,;t t
28575 s,@top_srcdir@,$ac_top_srcdir,;t t
28576 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28577 s,@builddir@,$ac_builddir,;t t
28578 s,@abs_builddir@,$ac_abs_builddir,;t t
28579 s,@top_builddir@,$ac_top_builddir,;t t
28580 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28581 s,@INSTALL@,$ac_INSTALL,;t t
28582 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28584 if test x"$ac_file" != x-; then
28585 mv $tmp/out $ac_file
28593 cat >>$CONFIG_STATUS <<\_ACEOF
28596 # CONFIG_HEADER section.
28599 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28600 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28602 # ac_d sets the value in "#define NAME VALUE" lines.
28603 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
28604 ac_dB='[ ].*$,\1#\2'
28607 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28608 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
28609 ac_uB='$,\1#\2define\3'
28613 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28614 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28616 - | *:- | *:-:* ) # input from stdin
28618 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28619 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28620 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28621 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28622 * ) ac_file_in=$ac_file.in ;;
28625 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28626 echo "$as_me: creating $ac_file" >&6;}
28628 # First look for the input files in the build tree, otherwise in the
28630 ac_file_inputs=`IFS=:
28631 for f in $ac_file_in; do
28633 -) echo $tmp/stdin ;;
28635 # Absolute (can't be DOS-style, as IFS=:)
28636 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28637 echo "$as_me: error: cannot find input file: $f" >&2;}
28638 { (exit 1); exit 1; }; }
28639 # Do quote $f, to prevent DOS paths from being IFS'd.
28642 if test -f "$f"; then
28645 elif test -f "$srcdir/$f"; then
28650 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28651 echo "$as_me: error: cannot find input file: $f" >&2;}
28652 { (exit 1); exit 1; }; }
28655 done` || { (exit 1); exit 1; }
28656 # Remove the trailing spaces.
28657 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
28661 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28662 # `conftest.undefs', that substitutes the proper values into
28663 # config.h.in to produce config.h. The first handles `#define'
28664 # templates, and the second `#undef' templates.
28665 # And first: Protect against being on the right side of a sed subst in
28666 # config.status. Protect against being in an unquoted here document
28667 # in config.status.
28668 rm -f conftest.defines conftest.undefs
28669 # Using a here document instead of a string reduces the quoting nightmare.
28670 # Putting comments in sed scripts is not portable.
28672 # `end' is used to avoid that the second main sed command (meant for
28673 # 0-ary CPP macros) applies to n-ary macro definitions.
28674 # See the Autoconf documentation for `clear'.
28675 cat >confdef2sed.sed <<\_ACEOF
28680 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28682 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28685 # If some macros were called several times there might be several times
28686 # the same #defines, which is useless. Nevertheless, we may not want to
28687 # sort them, since we want the *last* AC-DEFINE to be honored.
28688 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28689 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28690 rm -f confdef2sed.sed
28692 # This sed command replaces #undef with comments. This is necessary, for
28693 # example, in the case of _POSIX_SOURCE, which is predefined and required
28694 # on some systems where configure will not decide to define it.
28695 cat >>conftest.undefs <<\_ACEOF
28696 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28699 # Break up conftest.defines because some shells have a limit on the size
28700 # of here documents, and old seds have small limits too (100 cmds).
28701 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28702 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28703 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28704 echo ' :' >>$CONFIG_STATUS
28705 rm -f conftest.tail
28706 while grep . conftest.defines >/dev/null
28708 # Write a limited-size here document to $tmp/defines.sed.
28709 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28710 # Speed up: don't consider the non `#define' lines.
28711 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
28712 # Work around the forget-to-reset-the-flag bug.
28713 echo 't clr' >>$CONFIG_STATUS
28714 echo ': clr' >>$CONFIG_STATUS
28715 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28717 sed -f $tmp/defines.sed $tmp/in >$tmp/out
28719 mv $tmp/out $tmp/in
28721 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28722 rm -f conftest.defines
28723 mv conftest.tail conftest.defines
28725 rm -f conftest.defines
28726 echo ' fi # grep' >>$CONFIG_STATUS
28727 echo >>$CONFIG_STATUS
28729 # Break up conftest.undefs because some shells have a limit on the size
28730 # of here documents, and old seds have small limits too (100 cmds).
28731 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
28732 rm -f conftest.tail
28733 while grep . conftest.undefs >/dev/null
28735 # Write a limited-size here document to $tmp/undefs.sed.
28736 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28737 # Speed up: don't consider the non `#undef'
28738 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
28739 # Work around the forget-to-reset-the-flag bug.
28740 echo 't clr' >>$CONFIG_STATUS
28741 echo ': clr' >>$CONFIG_STATUS
28742 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28744 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28746 mv $tmp/out $tmp/in
28748 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28749 rm -f conftest.undefs
28750 mv conftest.tail conftest.undefs
28752 rm -f conftest.undefs
28754 cat >>$CONFIG_STATUS <<\_ACEOF
28755 # Let's still pretend it is `configure' which instantiates (i.e., don't
28756 # use $as_me), people would be surprised to read:
28757 # /* config.h. Generated by config.status. */
28758 if test x"$ac_file" = x-; then
28759 echo "/* Generated by configure. */" >$tmp/config.h
28761 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
28763 cat $tmp/in >>$tmp/config.h
28765 if test x"$ac_file" != x-; then
28766 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28767 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28768 echo "$as_me: $ac_file is unchanged" >&6;}
28770 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28771 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28772 X"$ac_file" : 'X\(//\)[^/]' \| \
28773 X"$ac_file" : 'X\(//\)$' \| \
28774 X"$ac_file" : 'X\(/\)' \| \
28775 . : '\(.\)' 2>/dev/null ||
28777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28779 /^X\(\/\/\)$/{ s//\1/; q; }
28780 /^X\(\/\).*/{ s//\1/; q; }
28782 { if $as_mkdir_p; then
28787 while test ! -d "$as_dir"; do
28788 as_dirs="$as_dir $as_dirs"
28789 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28790 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28791 X"$as_dir" : 'X\(//\)[^/]' \| \
28792 X"$as_dir" : 'X\(//\)$' \| \
28793 X"$as_dir" : 'X\(/\)' \| \
28794 . : '\(.\)' 2>/dev/null ||
28796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28797 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28798 /^X\(\/\/\)$/{ s//\1/; q; }
28799 /^X\(\/\).*/{ s//\1/; q; }
28802 test ! -n "$as_dirs" || mkdir $as_dirs
28803 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28804 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28805 { (exit 1); exit 1; }; }; }
28808 mv $tmp/config.h $ac_file
28812 rm -f $tmp/config.h
28814 # Compute $ac_file's index in $config_headers.
28816 for _am_header in $config_headers :; do
28817 case $_am_header in
28818 $ac_file | $ac_file:* )
28821 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28824 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28825 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28826 X$ac_file : 'X\(//\)[^/]' \| \
28827 X$ac_file : 'X\(//\)$' \| \
28828 X$ac_file : 'X\(/\)' \| \
28829 . : '\(.\)' 2>/dev/null ||
28831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28833 /^X\(\/\/\)$/{ s//\1/; q; }
28834 /^X\(\/\).*/{ s//\1/; q; }
28835 s/.*/./; q'`/stamp-h$_am_stamp_count
28838 cat >>$CONFIG_STATUS <<\_ACEOF
28841 # CONFIG_COMMANDS section.
28843 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28844 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28845 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28846 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28847 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28848 X"$ac_dest" : 'X\(//\)[^/]' \| \
28849 X"$ac_dest" : 'X\(//\)$' \| \
28850 X"$ac_dest" : 'X\(/\)' \| \
28851 . : '\(.\)' 2>/dev/null ||
28853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28854 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28855 /^X\(\/\/\)$/{ s//\1/; q; }
28856 /^X\(\/\).*/{ s//\1/; q; }
28858 { if $as_mkdir_p; then
28863 while test ! -d "$as_dir"; do
28864 as_dirs="$as_dir $as_dirs"
28865 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28867 X"$as_dir" : 'X\(//\)[^/]' \| \
28868 X"$as_dir" : 'X\(//\)$' \| \
28869 X"$as_dir" : 'X\(/\)' \| \
28870 . : '\(.\)' 2>/dev/null ||
28872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28874 /^X\(\/\/\)$/{ s//\1/; q; }
28875 /^X\(\/\).*/{ s//\1/; q; }
28878 test ! -n "$as_dirs" || mkdir $as_dirs
28879 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28880 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28881 { (exit 1); exit 1; }; }; }
28885 if test "$ac_dir" != .; then
28886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28887 # A "../" for each directory in $ac_dir_suffix.
28888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28890 ac_dir_suffix= ac_top_builddir=
28894 .) # No --srcdir option. We are building in place.
28896 if test -z "$ac_top_builddir"; then
28899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28901 [\\/]* | ?:[\\/]* ) # Absolute path.
28902 ac_srcdir=$srcdir$ac_dir_suffix;
28903 ac_top_srcdir=$srcdir ;;
28904 *) # Relative path.
28905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28909 # Do not use `cd foo && pwd` to compute absolute paths, because
28910 # the directories may not exist.
28912 .) ac_abs_builddir="$ac_dir";;
28915 .) ac_abs_builddir=`pwd`;;
28916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28920 case $ac_abs_builddir in
28921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28923 case ${ac_top_builddir}. in
28924 .) ac_abs_top_builddir=$ac_abs_builddir;;
28925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28929 case $ac_abs_builddir in
28930 .) ac_abs_srcdir=$ac_srcdir;;
28933 .) ac_abs_srcdir=$ac_abs_builddir;;
28934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28938 case $ac_abs_builddir in
28939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28941 case $ac_top_srcdir in
28942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28949 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28950 echo "$as_me: executing $ac_dest commands" >&6;}
28952 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28953 # Strip MF so we end up with the name of the file.
28954 mf=`echo "$mf" | sed -e 's/:.*$//'`
28955 # Check whether this is an Automake generated Makefile or not.
28956 # We used to match only the files named `Makefile.in', but
28957 # some people rename them; so instead we look at the file content.
28958 # Grep'ing the first line is not enough: some people post-process
28959 # each Makefile.in and add a new line on top of each file to say so.
28960 # So let's grep whole file.
28961 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28962 dirpart=`(dirname "$mf") 2>/dev/null ||
28963 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28964 X"$mf" : 'X\(//\)[^/]' \| \
28965 X"$mf" : 'X\(//\)$' \| \
28966 X"$mf" : 'X\(/\)' \| \
28967 . : '\(.\)' 2>/dev/null ||
28969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28971 /^X\(\/\/\)$/{ s//\1/; q; }
28972 /^X\(\/\).*/{ s//\1/; q; }
28977 # Extract the definition of DEPDIR, am__include, and am__quote
28978 # from the Makefile without running `make'.
28979 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28980 test -z "$DEPDIR" && continue
28981 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28982 test -z "am__include" && continue
28983 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28984 # When using ansi2knr, U may be empty or an underscore; expand it
28985 U=`sed -n 's/^U = //p' < "$mf"`
28986 # Find all dependency output files, they are included files with
28987 # $(DEPDIR) in their names. We invoke sed twice because it is the
28988 # simplest approach to changing $(DEPDIR) to its actual value in the
28990 for file in `sed -n "
28991 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28992 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28993 # Make sure the directory exists.
28994 test -f "$dirpart/$file" && continue
28995 fdir=`(dirname "$file") 2>/dev/null ||
28996 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28997 X"$file" : 'X\(//\)[^/]' \| \
28998 X"$file" : 'X\(//\)$' \| \
28999 X"$file" : 'X\(/\)' \| \
29000 . : '\(.\)' 2>/dev/null ||
29002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29004 /^X\(\/\/\)$/{ s//\1/; q; }
29005 /^X\(\/\).*/{ s//\1/; q; }
29007 { if $as_mkdir_p; then
29008 mkdir -p $dirpart/$fdir
29010 as_dir=$dirpart/$fdir
29012 while test ! -d "$as_dir"; do
29013 as_dirs="$as_dir $as_dirs"
29014 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29016 X"$as_dir" : 'X\(//\)[^/]' \| \
29017 X"$as_dir" : 'X\(//\)$' \| \
29018 X"$as_dir" : 'X\(/\)' \| \
29019 . : '\(.\)' 2>/dev/null ||
29021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29023 /^X\(\/\/\)$/{ s//\1/; q; }
29024 /^X\(\/\).*/{ s//\1/; q; }
29027 test ! -n "$as_dirs" || mkdir $as_dirs
29028 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29029 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
29030 { (exit 1); exit 1; }; }; }
29032 # echo "creating $dirpart/$file"
29033 echo '# dummy' > "$dirpart/$file"
29041 cat >>$CONFIG_STATUS <<\_ACEOF
29043 { (exit 0); exit 0; }
29045 chmod +x $CONFIG_STATUS
29046 ac_clean_files=$ac_clean_files_save
29049 # configure is writing to config.log, and then calls config.status.
29050 # config.status does its own redirection, appending to config.log.
29051 # Unfortunately, on DOS this fails, as config.log is still kept open
29052 # by configure, so config.status won't be able to write to it; its
29053 # output is simply discarded. So we exec the FD to /dev/null,
29054 # effectively closing config.log, so it can be properly (re)opened and
29055 # appended to by config.status. When coming back to configure, we
29056 # need to make the FD available again.
29057 if test "$no_create" != yes; then
29059 ac_config_status_args=
29060 test "$silent" = yes &&
29061 ac_config_status_args="$ac_config_status_args --quiet"
29063 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29065 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29066 # would make configure fail if this is the last instruction.
29067 $ac_cs_success || { (exit 1); exit 1; }