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 HAVE_LIBWRAP HAVE_TCP_WRAPPER 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
3395 cat >>confdefs.h <<\_ACEOF
3396 #define HAVE_LIBWRAP 1
3400 cat >>confdefs.h <<\_ACEOF
3401 #define HAVE_TCP_WRAPPER 1
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3411 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3412 echo "$as_me: error: *** libwrap missing" >&2;}
3413 { (exit 1); exit 1; }; }
3417 rm -f conftest.err conftest.$ac_objext \
3418 conftest$ac_exeext conftest.$ac_ext
3430 ac_config_headers="$ac_config_headers support/include/config.h"
3433 # Checks for programs.
3435 ac_cpp='$CXXCPP $CPPFLAGS'
3436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3439 if test -n "$ac_tool_prefix"; then
3440 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3444 echo "$as_me:$LINENO: checking for $ac_word" >&5
3445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446 if test "${ac_cv_prog_CXX+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 if test -n "$CXX"; then
3450 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 if test -n "$CXX"; then
3470 echo "$as_me:$LINENO: result: $CXX" >&5
3471 echo "${ECHO_T}$CXX" >&6
3473 echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6
3477 test -n "$CXX" && break
3480 if test -z "$CXX"; then
3482 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3484 # Extract the first word of "$ac_prog", so it can be a program name with args.
3485 set dummy $ac_prog; ac_word=$2
3486 echo "$as_me:$LINENO: checking for $ac_word" >&5
3487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3488 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 if test -n "$ac_ct_CXX"; then
3492 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3501 ac_cv_prog_ac_ct_CXX="$ac_prog"
3502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3511 if test -n "$ac_ct_CXX"; then
3512 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3513 echo "${ECHO_T}$ac_ct_CXX" >&6
3515 echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6
3519 test -n "$ac_ct_CXX" && break
3521 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3527 # Provide some information about the compiler.
3528 echo "$as_me:$LINENO:" \
3529 "checking for C++ compiler version" >&5
3530 ac_compiler=`set X $ac_compile; echo $2`
3531 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3532 (eval $ac_compiler --version </dev/null >&5) 2>&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }
3536 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3537 (eval $ac_compiler -v </dev/null >&5) 2>&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }
3541 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3542 (eval $ac_compiler -V </dev/null >&5) 2>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }
3547 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3548 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3549 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 cat >conftest.$ac_ext <<_ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3570 rm -f conftest.$ac_objext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3572 (eval $ac_compile) 2>conftest.er1
3574 grep -v '^ *+' conftest.er1 >conftest.err
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } &&
3579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; } &&
3585 { ac_try='test -s conftest.$ac_objext'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3599 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3602 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3603 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3604 GXX=`test $ac_compiler_gnu = yes && echo yes`
3605 ac_test_CXXFLAGS=${CXXFLAGS+set}
3606 ac_save_CXXFLAGS=$CXXFLAGS
3608 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3609 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3610 if test "${ac_cv_prog_cxx_g+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 cat >conftest.$ac_ext <<_ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3628 rm -f conftest.$ac_objext
3629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630 (eval $ac_compile) 2>conftest.er1
3632 grep -v '^ *+' conftest.er1 >conftest.err
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
3637 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; } &&
3643 { ac_try='test -s conftest.$ac_objext'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; }; then
3649 ac_cv_prog_cxx_g=yes
3651 echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3658 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3659 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3660 if test "$ac_test_CXXFLAGS" = set; then
3661 CXXFLAGS=$ac_save_CXXFLAGS
3662 elif test $ac_cv_prog_cxx_g = yes; then
3663 if test "$GXX" = yes; then
3669 if test "$GXX" = yes; then
3675 for ac_declaration in \
3677 'extern "C" void std::exit (int) throw (); using std::exit;' \
3678 'extern "C" void std::exit (int); using std::exit;' \
3679 'extern "C" void exit (int) throw ();' \
3680 'extern "C" void exit (int);' \
3683 cat >conftest.$ac_ext <<_ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3699 rm -f conftest.$ac_objext
3700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3701 (eval $ac_compile) 2>conftest.er1
3703 grep -v '^ *+' conftest.er1 >conftest.err
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } &&
3708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; } &&
3714 { ac_try='test -s conftest.$ac_objext'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3722 echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3728 cat >conftest.$ac_ext <<_ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h. */
3743 rm -f conftest.$ac_objext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745 (eval $ac_compile) 2>conftest.er1
3747 grep -v '^ *+' conftest.er1 >conftest.err
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } &&
3752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; } &&
3758 { ac_try='test -s conftest.$ac_objext'
3759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }; }; then
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3773 if test -n "$ac_declaration"; then
3774 echo '#ifdef __cplusplus' >>confdefs.h
3775 echo $ac_declaration >>confdefs.h
3776 echo '#endif' >>confdefs.h
3780 ac_cpp='$CPP $CPPFLAGS'
3781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785 depcc="$CXX" am_compiler_list=
3787 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3788 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3789 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3793 # We make a subdir and do the tests there. Otherwise we can end up
3794 # making bogus files that we don't know about and never remove. For
3795 # instance it was reported that on HP-UX the gcc test will end up
3796 # making a dummy file named `D' -- because `-MD' means `put the output
3799 # Copy depcomp to subdir because otherwise we won't find it if we're
3800 # using a relative directory.
3801 cp "$am_depcomp" conftest.dir
3803 # We will build objects and dependencies in a subdirectory because
3804 # it helps to detect inapplicable dependency modes. For instance
3805 # both Tru64's cc and ICC support -MD to output dependencies as a
3806 # side effect of compilation, but ICC will put the dependencies in
3807 # the current directory while Tru64 will put them in the object
3811 am_cv_CXX_dependencies_compiler_type=none
3812 if test "$am_compiler_list" = ""; then
3813 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3815 for depmode in $am_compiler_list; do
3816 # Setup a source with many dependencies, because some compilers
3817 # like to wrap large dependency lists on column 80 (with \), and
3818 # we should not choose a depcomp mode which is confused by this.
3820 # We need to recreate these files for each test, as the compiler may
3821 # overwrite some of them when testing with obscure command lines.
3822 # This happens at least with the AIX C compiler.
3824 for i in 1 2 3 4 5 6; do
3825 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3826 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3827 # Solaris 8's {/usr,}/bin/sh.
3828 touch sub/conftst$i.h
3830 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3834 # after this tag, mechanisms are not by side-effect, so they'll
3835 # only be used when explicitly requested
3836 if test "x$enable_dependency_tracking" = xyes; then
3844 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3845 # mode. It turns out that the SunPro C++ compiler does not properly
3846 # handle `-M -o', and we need to detect this.
3847 if depmode=$depmode \
3848 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3849 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3850 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3851 >/dev/null 2>conftest.err &&
3852 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3853 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3854 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3855 # icc doesn't choke on unknown options, it will just issue warnings
3856 # or remarks (even with -Werror). So we grep stderr for any message
3857 # that says an option was ignored or not supported.
3858 # When given -MP, icc 7.0 and 7.1 complain thusly:
3859 # icc: Command line warning: ignoring option '-M'; no argument required
3860 # The diagnosis changed in icc 8.0:
3861 # icc: Command line remark: option '-MP' not supported
3862 if (grep 'ignoring option' conftest.err ||
3863 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3864 am_cv_CXX_dependencies_compiler_type=$depmode
3873 am_cv_CXX_dependencies_compiler_type=none
3877 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3878 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3879 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3884 test "x$enable_dependency_tracking" != xno \
3885 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3886 am__fastdepCXX_TRUE=
3887 am__fastdepCXX_FALSE='#'
3889 am__fastdepCXX_TRUE='#'
3890 am__fastdepCXX_FALSE=
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899 if test -n "$ac_tool_prefix"; then
3900 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3901 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_prog_CC+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 if test -n "$CC"; then
3908 ac_cv_prog_CC="$CC" # Let the user override the test.
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 if test -n "$CC"; then
3928 echo "$as_me:$LINENO: result: $CC" >&5
3929 echo "${ECHO_T}$CC" >&6
3931 echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6
3936 if test -z "$ac_cv_prog_CC"; then
3938 # Extract the first word of "gcc", so it can be a program name with args.
3939 set dummy gcc; ac_word=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 if test -n "$ac_ct_CC"; then
3946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3955 ac_cv_prog_ac_ct_CC="gcc"
3956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3965 if test -n "$ac_ct_CC"; then
3966 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3967 echo "${ECHO_T}$ac_ct_CC" >&6
3969 echo "$as_me:$LINENO: result: no" >&5
3970 echo "${ECHO_T}no" >&6
3978 if test -z "$CC"; then
3979 if test -n "$ac_tool_prefix"; then
3980 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3981 set dummy ${ac_tool_prefix}cc; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_CC+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 if test -n "$CC"; then
3988 ac_cv_prog_CC="$CC" # Let the user override the test.
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_prog_CC="${ac_tool_prefix}cc"
3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 if test -n "$CC"; then
4008 echo "$as_me:$LINENO: result: $CC" >&5
4009 echo "${ECHO_T}$CC" >&6
4011 echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6
4016 if test -z "$ac_cv_prog_CC"; then
4018 # Extract the first word of "cc", so it can be a program name with args.
4019 set dummy cc; ac_word=$2
4020 echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 if test -n "$ac_ct_CC"; then
4026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_prog_ac_ct_CC="cc"
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4045 if test -n "$ac_ct_CC"; then
4046 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4047 echo "${ECHO_T}$ac_ct_CC" >&6
4049 echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6
4059 if test -z "$CC"; then
4060 # Extract the first word of "cc", so it can be a program name with args.
4061 set dummy cc; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_prog_CC+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 if test -n "$CC"; then
4068 ac_cv_prog_CC="$CC" # Let the user override the test.
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 test -z "$as_dir" && as_dir=.
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4079 ac_prog_rejected=yes
4083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 if test $ac_prog_rejected = yes; then
4090 # We found a bogon in the path, so make sure we never use it.
4091 set dummy $ac_cv_prog_CC
4093 if test $# != 0; then
4094 # We chose a different compiler from the bogus one.
4095 # However, it has the same basename, so the bogon will be chosen
4096 # first if we set CC to just the basename; use the full file name.
4098 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4104 if test -n "$CC"; then
4105 echo "$as_me:$LINENO: result: $CC" >&5
4106 echo "${ECHO_T}$CC" >&6
4108 echo "$as_me:$LINENO: result: no" >&5
4109 echo "${ECHO_T}no" >&6
4113 if test -z "$CC"; then
4114 if test -n "$ac_tool_prefix"; then
4117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_prog_CC+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 if test -n "$CC"; then
4125 ac_cv_prog_CC="$CC" # Let the user override the test.
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 if test -n "$CC"; then
4145 echo "$as_me:$LINENO: result: $CC" >&5
4146 echo "${ECHO_T}$CC" >&6
4148 echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6
4152 test -n "$CC" && break
4155 if test -z "$CC"; then
4159 # Extract the first word of "$ac_prog", so it can be a program name with args.
4160 set dummy $ac_prog; ac_word=$2
4161 echo "$as_me:$LINENO: checking for $ac_word" >&5
4162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4163 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 if test -n "$ac_ct_CC"; then
4167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4176 ac_cv_prog_ac_ct_CC="$ac_prog"
4177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4186 if test -n "$ac_ct_CC"; then
4187 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4188 echo "${ECHO_T}$ac_ct_CC" >&6
4190 echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6
4194 test -n "$ac_ct_CC" && break
4203 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4204 See \`config.log' for more details." >&5
4205 echo "$as_me: error: no acceptable C compiler found in \$PATH
4206 See \`config.log' for more details." >&2;}
4207 { (exit 1); exit 1; }; }
4209 # Provide some information about the compiler.
4210 echo "$as_me:$LINENO:" \
4211 "checking for C compiler version" >&5
4212 ac_compiler=`set X $ac_compile; echo $2`
4213 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4214 (eval $ac_compiler --version </dev/null >&5) 2>&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }
4218 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4219 (eval $ac_compiler -v </dev/null >&5) 2>&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }
4223 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4224 (eval $ac_compiler -V </dev/null >&5) 2>&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }
4229 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4230 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4231 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 cat >conftest.$ac_ext <<_ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4252 rm -f conftest.$ac_objext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4254 (eval $ac_compile) 2>conftest.er1
4256 grep -v '^ *+' conftest.er1 >conftest.err
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } &&
4261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; } &&
4267 { ac_try='test -s conftest.$ac_objext'
4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; }; then
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4281 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4284 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4285 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4286 GCC=`test $ac_compiler_gnu = yes && echo yes`
4287 ac_test_CFLAGS=${CFLAGS+set}
4288 ac_save_CFLAGS=$CFLAGS
4290 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4291 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4292 if test "${ac_cv_prog_cc_g+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 cat >conftest.$ac_ext <<_ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4310 rm -f conftest.$ac_objext
4311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4312 (eval $ac_compile) 2>conftest.er1
4314 grep -v '^ *+' conftest.er1 >conftest.err
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } &&
4319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; } &&
4325 { ac_try='test -s conftest.$ac_objext'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; }; then
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4340 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4341 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4342 if test "$ac_test_CFLAGS" = set; then
4343 CFLAGS=$ac_save_CFLAGS
4344 elif test $ac_cv_prog_cc_g = yes; then
4345 if test "$GCC" = yes; then
4351 if test "$GCC" = yes; then
4357 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4358 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4359 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 ac_cv_prog_cc_stdc=no
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4372 #include <sys/types.h>
4373 #include <sys/stat.h>
4374 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4375 struct buf { int x; };
4376 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4377 static char *e (p, i)
4383 static char *f (char * (*g) (char **, int), char **p, ...)
4388 s = g (p, va_arg (v,int));
4393 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4394 function prototypes and stuff, but not '\xHH' hex character constants.
4395 These don't provoke an error unfortunately, instead are silently treated
4396 as 'x'. The following induces an error, until -std1 is added to get
4397 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4398 array size at least. It's necessary to write '\x00'==0 to get something
4399 that's true only with -std1. */
4400 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4402 int test (int i, double x);
4403 struct s1 {int (*f) (int a);};
4404 struct s2 {int (*f) (double a);};
4405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4411 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4416 # Don't try gcc -ansi; that turns off useful extensions and
4417 # breaks some systems' header files.
4418 # AIX -qlanglvl=ansi
4419 # Ultrix and OSF/1 -std1
4420 # HP-UX 10.20 and later -Ae
4421 # HP-UX older versions -Aa -D_HPUX_SOURCE
4422 # SVR4 -Xc -D__EXTENSIONS__
4423 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4425 CC="$ac_save_CC $ac_arg"
4426 rm -f conftest.$ac_objext
4427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428 (eval $ac_compile) 2>conftest.er1
4430 grep -v '^ *+' conftest.er1 >conftest.err
4432 cat conftest.err >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } &&
4435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; } &&
4441 { ac_try='test -s conftest.$ac_objext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 ac_cv_prog_cc_stdc=$ac_arg
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4454 rm -f conftest.err conftest.$ac_objext
4456 rm -f conftest.$ac_ext conftest.$ac_objext
4461 case "x$ac_cv_prog_cc_stdc" in
4463 echo "$as_me:$LINENO: result: none needed" >&5
4464 echo "${ECHO_T}none needed" >&6 ;;
4466 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4467 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4468 CC="$CC $ac_cv_prog_cc_stdc" ;;
4471 # Some people use a C++ compiler to compile C. Since we use `exit',
4472 # in C++ we need to declare it. In case someone uses the same compiler
4473 # for both compiling C and C++ we need to have the C++ compiler decide
4474 # the declaration of exit, since it's the most demanding environment.
4475 cat >conftest.$ac_ext <<_ACEOF
4480 rm -f conftest.$ac_objext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4482 (eval $ac_compile) 2>conftest.er1
4484 grep -v '^ *+' conftest.er1 >conftest.err
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } &&
4489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; } &&
4495 { ac_try='test -s conftest.$ac_objext'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4501 for ac_declaration in \
4503 'extern "C" void std::exit (int) throw (); using std::exit;' \
4504 'extern "C" void std::exit (int); using std::exit;' \
4505 'extern "C" void exit (int) throw ();' \
4506 'extern "C" void exit (int);' \
4509 cat >conftest.$ac_ext <<_ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4525 rm -f conftest.$ac_objext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>conftest.er1
4529 grep -v '^ *+' conftest.er1 >conftest.err
4531 cat conftest.err >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; } &&
4540 { ac_try='test -s conftest.$ac_objext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4554 cat >conftest.$ac_ext <<_ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4569 rm -f conftest.$ac_objext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>conftest.er1
4573 grep -v '^ *+' conftest.er1 >conftest.err
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } &&
4578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; } &&
4584 { ac_try='test -s conftest.$ac_objext'
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; }; then
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4599 if test -n "$ac_declaration"; then
4600 echo '#ifdef __cplusplus' >>confdefs.h
4601 echo $ac_declaration >>confdefs.h
4602 echo '#endif' >>confdefs.h
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4612 ac_cpp='$CPP $CPPFLAGS'
4613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617 depcc="$CC" am_compiler_list=
4619 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4620 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4621 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4625 # We make a subdir and do the tests there. Otherwise we can end up
4626 # making bogus files that we don't know about and never remove. For
4627 # instance it was reported that on HP-UX the gcc test will end up
4628 # making a dummy file named `D' -- because `-MD' means `put the output
4631 # Copy depcomp to subdir because otherwise we won't find it if we're
4632 # using a relative directory.
4633 cp "$am_depcomp" conftest.dir
4635 # We will build objects and dependencies in a subdirectory because
4636 # it helps to detect inapplicable dependency modes. For instance
4637 # both Tru64's cc and ICC support -MD to output dependencies as a
4638 # side effect of compilation, but ICC will put the dependencies in
4639 # the current directory while Tru64 will put them in the object
4643 am_cv_CC_dependencies_compiler_type=none
4644 if test "$am_compiler_list" = ""; then
4645 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4647 for depmode in $am_compiler_list; do
4648 # Setup a source with many dependencies, because some compilers
4649 # like to wrap large dependency lists on column 80 (with \), and
4650 # we should not choose a depcomp mode which is confused by this.
4652 # We need to recreate these files for each test, as the compiler may
4653 # overwrite some of them when testing with obscure command lines.
4654 # This happens at least with the AIX C compiler.
4656 for i in 1 2 3 4 5 6; do
4657 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4658 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4659 # Solaris 8's {/usr,}/bin/sh.
4660 touch sub/conftst$i.h
4662 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4666 # after this tag, mechanisms are not by side-effect, so they'll
4667 # only be used when explicitly requested
4668 if test "x$enable_dependency_tracking" = xyes; then
4676 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4677 # mode. It turns out that the SunPro C++ compiler does not properly
4678 # handle `-M -o', and we need to detect this.
4679 if depmode=$depmode \
4680 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4681 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4682 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4683 >/dev/null 2>conftest.err &&
4684 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4685 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4686 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4687 # icc doesn't choke on unknown options, it will just issue warnings
4688 # or remarks (even with -Werror). So we grep stderr for any message
4689 # that says an option was ignored or not supported.
4690 # When given -MP, icc 7.0 and 7.1 complain thusly:
4691 # icc: Command line warning: ignoring option '-M'; no argument required
4692 # The diagnosis changed in icc 8.0:
4693 # icc: Command line remark: option '-MP' not supported
4694 if (grep 'ignoring option' conftest.err ||
4695 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4696 am_cv_CC_dependencies_compiler_type=$depmode
4705 am_cv_CC_dependencies_compiler_type=none
4709 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4710 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4711 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4716 test "x$enable_dependency_tracking" != xno \
4717 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4719 am__fastdepCC_FALSE='#'
4721 am__fastdepCC_TRUE='#'
4722 am__fastdepCC_FALSE=
4727 ac_cpp='$CPP $CPPFLAGS'
4728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4731 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4732 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4733 # On Suns, sometimes $CPP names a directory.
4734 if test -n "$CPP" && test -d "$CPP"; then
4737 if test -z "$CPP"; then
4738 if test "${ac_cv_prog_CPP+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 # Double quotes because CPP needs to be expanded
4742 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4745 for ac_c_preproc_warn_flag in '' yes
4747 # Use a header file that comes with gcc, so configuring glibc
4748 # with a fresh cross-compiler works.
4749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4750 # <limits.h> exists even on freestanding compilers.
4751 # On the NeXT, cc -E runs the code through the compiler's parser,
4752 # not just through cpp. "Syntax error" is here to catch this case.
4753 cat >conftest.$ac_ext <<_ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4760 # include <limits.h>
4762 # include <assert.h>
4766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4769 grep -v '^ *+' conftest.er1 >conftest.err
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } >/dev/null; then
4774 if test -s conftest.err; then
4775 ac_cpp_err=$ac_c_preproc_warn_flag
4776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4783 if test -z "$ac_cpp_err"; then
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4789 # Broken: fails on valid input.
4792 rm -f conftest.err conftest.$ac_ext
4794 # OK, works on sane cases. Now check whether non-existent headers
4795 # can be detected and how.
4796 cat >conftest.$ac_ext <<_ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4802 #include <ac_nonexistent.h>
4804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4807 grep -v '^ *+' conftest.er1 >conftest.err
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } >/dev/null; then
4812 if test -s conftest.err; then
4813 ac_cpp_err=$ac_c_preproc_warn_flag
4814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4821 if test -z "$ac_cpp_err"; then
4822 # Broken: success on invalid input.
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4828 # Passes both tests.
4832 rm -f conftest.err conftest.$ac_ext
4835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4836 rm -f conftest.err conftest.$ac_ext
4837 if $ac_preproc_ok; then
4849 echo "$as_me:$LINENO: result: $CPP" >&5
4850 echo "${ECHO_T}$CPP" >&6
4852 for ac_c_preproc_warn_flag in '' yes
4854 # Use a header file that comes with gcc, so configuring glibc
4855 # with a fresh cross-compiler works.
4856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4857 # <limits.h> exists even on freestanding compilers.
4858 # On the NeXT, cc -E runs the code through the compiler's parser,
4859 # not just through cpp. "Syntax error" is here to catch this case.
4860 cat >conftest.$ac_ext <<_ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4867 # include <limits.h>
4869 # include <assert.h>
4873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4876 grep -v '^ *+' conftest.er1 >conftest.err
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } >/dev/null; then
4881 if test -s conftest.err; then
4882 ac_cpp_err=$ac_c_preproc_warn_flag
4883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4890 if test -z "$ac_cpp_err"; then
4893 echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4896 # Broken: fails on valid input.
4899 rm -f conftest.err conftest.$ac_ext
4901 # OK, works on sane cases. Now check whether non-existent headers
4902 # can be detected and how.
4903 cat >conftest.$ac_ext <<_ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 #include <ac_nonexistent.h>
4911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4914 grep -v '^ *+' conftest.er1 >conftest.err
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } >/dev/null; then
4919 if test -s conftest.err; then
4920 ac_cpp_err=$ac_c_preproc_warn_flag
4921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4928 if test -z "$ac_cpp_err"; then
4929 # Broken: success on invalid input.
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4935 # Passes both tests.
4939 rm -f conftest.err conftest.$ac_ext
4942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4943 rm -f conftest.err conftest.$ac_ext
4944 if $ac_preproc_ok; then
4947 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4948 See \`config.log' for more details." >&5
4949 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4950 See \`config.log' for more details." >&2;}
4951 { (exit 1); exit 1; }; }
4955 ac_cpp='$CPP $CPPFLAGS'
4956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4960 # Find a good install program. We prefer a C program (faster),
4961 # so one script is as good as another. But avoid the broken or
4962 # incompatible versions:
4963 # SysV /etc/install, /usr/sbin/install
4964 # SunOS /usr/etc/install
4965 # IRIX /sbin/install
4967 # AmigaOS /C/install, which installs bootblocks on floppy discs
4968 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4969 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4970 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4971 # OS/2's system install, which has a completely different semantic
4972 # ./install, which can be erroneously created by make from ./install.sh.
4973 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4974 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4975 if test -z "$INSTALL"; then
4976 if test "${ac_cv_path_install+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 test -z "$as_dir" && as_dir=.
4984 # Account for people who put trailing slashes in PATH elements.
4986 ./ | .// | /cC/* | \
4987 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4988 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4991 # OSF1 and SCO ODT 3.0 have their own names for install.
4992 # Don't use installbsd from OSF since it installs stuff as root
4994 for ac_prog in ginstall scoinst install; do
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4997 if test $ac_prog = install &&
4998 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4999 # AIX install. It has an incompatible calling convention.
5001 elif test $ac_prog = install &&
5002 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5003 # program-specific install script used by HP pwplus--don't use.
5006 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5018 if test "${ac_cv_path_install+set}" = set; then
5019 INSTALL=$ac_cv_path_install
5021 # As a last resort, use the slow shell script. We don't cache a
5022 # path for INSTALL within a source directory, because that will
5023 # break other packages using the cache if that directory is
5024 # removed, or if the path is relative.
5025 INSTALL=$ac_install_sh
5028 echo "$as_me:$LINENO: result: $INSTALL" >&5
5029 echo "${ECHO_T}$INSTALL" >&6
5031 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5032 # It thinks the first close brace ends the variable substitution.
5033 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5035 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5037 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5039 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5040 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5042 if test "$LN_S" = "ln -s"; then
5043 echo "$as_me:$LINENO: result: yes" >&5
5044 echo "${ECHO_T}yes" >&6
5046 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5047 echo "${ECHO_T}no, using $LN_S" >&6
5050 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5051 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5052 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5053 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 cat >conftest.make <<\_ACEOF
5058 @echo 'ac_maketemp="$(MAKE)"'
5060 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5061 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5062 if test -n "$ac_maketemp"; then
5063 eval ac_cv_prog_make_${ac_make}_set=yes
5065 eval ac_cv_prog_make_${ac_make}_set=no
5069 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5070 echo "$as_me:$LINENO: result: yes" >&5
5071 echo "${ECHO_T}yes" >&6
5074 echo "$as_me:$LINENO: result: no" >&5
5075 echo "${ECHO_T}no" >&6
5076 SET_MAKE="MAKE=${MAKE-make}"
5079 # Check whether --enable-shared or --disable-shared was given.
5080 if test "${enable_shared+set}" = set; then
5081 enableval="$enable_shared"
5082 p=${PACKAGE-default}
5084 yes) enable_shared=yes ;;
5085 no) enable_shared=no ;;
5088 # Look at the argument we got. We use all the common list separators.
5089 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5090 for pkg in $enableval; do
5092 if test "X$pkg" = "X$p"; then
5103 # Check whether --enable-static or --disable-static was given.
5104 if test "${enable_static+set}" = set; then
5105 enableval="$enable_static"
5106 p=${PACKAGE-default}
5108 yes) enable_static=yes ;;
5109 no) enable_static=no ;;
5112 # Look at the argument we got. We use all the common list separators.
5113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5114 for pkg in $enableval; do
5116 if test "X$pkg" = "X$p"; then
5127 # Check whether --enable-fast-install or --disable-fast-install was given.
5128 if test "${enable_fast_install+set}" = set; then
5129 enableval="$enable_fast_install"
5130 p=${PACKAGE-default}
5132 yes) enable_fast_install=yes ;;
5133 no) enable_fast_install=no ;;
5135 enable_fast_install=no
5136 # Look at the argument we got. We use all the common list separators.
5137 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5138 for pkg in $enableval; do
5140 if test "X$pkg" = "X$p"; then
5141 enable_fast_install=yes
5148 enable_fast_install=yes
5151 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5152 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5153 if test "${lt_cv_path_SED+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 # Loop through the user's path and test for sed and gsed.
5157 # Then use that list of sed's as ones to test for truncation.
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 test -z "$as_dir" && as_dir=.
5163 for lt_ac_prog in sed gsed; do
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5166 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5173 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5174 # along with /bin/sed that truncates output.
5175 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5176 test ! -f $lt_ac_sed && continue
5177 cat /dev/null > conftest.in
5179 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5180 # Check for GNU sed and select it if it is found.
5181 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5182 lt_cv_path_SED=$lt_ac_sed
5186 cat conftest.in conftest.in >conftest.tmp
5187 mv conftest.tmp conftest.in
5188 cp conftest.in conftest.nl
5190 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5191 cmp -s conftest.out conftest.nl || break
5192 # 10000 chars as input seems more than enough
5193 test $lt_ac_count -gt 10 && break
5194 lt_ac_count=`expr $lt_ac_count + 1`
5195 if test $lt_ac_count -gt $lt_ac_max; then
5196 lt_ac_max=$lt_ac_count
5197 lt_cv_path_SED=$lt_ac_sed
5205 echo "$as_me:$LINENO: result: $SED" >&5
5206 echo "${ECHO_T}$SED" >&6
5208 echo "$as_me:$LINENO: checking for egrep" >&5
5209 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5210 if test "${ac_cv_prog_egrep+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5214 then ac_cv_prog_egrep='grep -E'
5215 else ac_cv_prog_egrep='egrep'
5218 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5219 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5220 EGREP=$ac_cv_prog_egrep
5224 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5225 if test "${with_gnu_ld+set}" = set; then
5226 withval="$with_gnu_ld"
5227 test "$withval" = no || with_gnu_ld=yes
5232 if test "$GCC" = yes; then
5233 # Check if gcc -print-prog-name=ld gives a path.
5234 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5235 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5238 # gcc leaves a trailing carriage return which upsets mingw
5239 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5241 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5244 # Accept absolute paths.
5246 re_direlt='/[^/][^/]*/\.\./'
5247 # Canonicalize the pathname of ld
5248 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5249 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5250 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5252 test -z "$LD" && LD="$ac_prog"
5255 # If it fails, then pretend we aren't using GCC.
5259 # If it is relative, then search for the first ld in PATH.
5263 elif test "$with_gnu_ld" = yes; then
5264 echo "$as_me:$LINENO: checking for GNU ld" >&5
5265 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5267 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5268 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5270 if test "${lt_cv_path_LD+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 if test -z "$LD"; then
5274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5275 for ac_dir in $PATH; do
5277 test -z "$ac_dir" && ac_dir=.
5278 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5279 lt_cv_path_LD="$ac_dir/$ac_prog"
5280 # Check to see if the program is GNU ld. I'd rather use --version,
5281 # but apparently some variants of GNU ld only accept -v.
5282 # Break only if it was the GNU/non-GNU ld that we prefer.
5283 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5284 *GNU* | *'with BFD'*)
5285 test "$with_gnu_ld" != no && break
5288 test "$with_gnu_ld" != yes && break
5295 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5300 if test -n "$LD"; then
5301 echo "$as_me:$LINENO: result: $LD" >&5
5302 echo "${ECHO_T}$LD" >&6
5304 echo "$as_me:$LINENO: result: no" >&5
5305 echo "${ECHO_T}no" >&6
5307 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5308 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5309 { (exit 1); exit 1; }; }
5310 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5311 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5312 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5316 case `$LD -v 2>&1 </dev/null` in
5317 *GNU* | *'with BFD'*)
5318 lt_cv_prog_gnu_ld=yes
5321 lt_cv_prog_gnu_ld=no
5325 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5326 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5327 with_gnu_ld=$lt_cv_prog_gnu_ld
5330 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5331 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5332 if test "${lt_cv_ld_reload_flag+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 lt_cv_ld_reload_flag='-r'
5337 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5338 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5339 reload_flag=$lt_cv_ld_reload_flag
5340 case $reload_flag in
5342 *) reload_flag=" $reload_flag" ;;
5344 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5347 if test "$GCC" = yes; then
5348 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5350 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5355 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5356 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5357 if test "${lt_cv_path_NM+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 if test -n "$NM"; then
5361 # Let the user override the test.
5364 lt_nm_to_check="${ac_tool_prefix}nm"
5365 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5366 lt_nm_to_check="$lt_nm_to_check nm"
5368 for lt_tmp_nm in $lt_nm_to_check; do
5369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5370 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5372 test -z "$ac_dir" && ac_dir=.
5373 tmp_nm="$ac_dir/$lt_tmp_nm"
5374 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5375 # Check to see if the nm accepts a BSD-compat flag.
5376 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5377 # nm: unknown option "B" ignored
5378 # Tru64's nm complains that /dev/null is an invalid object file
5379 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5380 */dev/null* | *'Invalid file or object type'*)
5381 lt_cv_path_NM="$tmp_nm -B"
5385 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5387 lt_cv_path_NM="$tmp_nm -p"
5391 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5392 continue # so that we can try to find one that supports BSD flags
5401 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5404 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5405 echo "${ECHO_T}$lt_cv_path_NM" >&6
5408 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5409 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5410 if test "${lt_cv_deplibs_check_method+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 lt_cv_file_magic_cmd='$MAGIC_CMD'
5414 lt_cv_file_magic_test_file=
5415 lt_cv_deplibs_check_method='unknown'
5416 # Need to set the preceding variable on all platforms that support
5417 # interlibrary dependencies.
5418 # 'none' -- dependencies not supported.
5419 # `unknown' -- same as none, but documents that we really don't know.
5420 # 'pass_all' -- all dependencies passed with no checks.
5421 # 'test_compile' -- check by making test program.
5422 # 'file_magic [[regex]]' -- check by looking for files in library path
5423 # which responds to the $file_magic_cmd with a given extended regex.
5424 # If you have `file' or equivalent on your system and you're not sure
5425 # whether `pass_all' will *always* work, you probably want this one.
5429 lt_cv_deplibs_check_method=pass_all
5433 lt_cv_deplibs_check_method=pass_all
5437 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5438 lt_cv_file_magic_cmd='/usr/bin/file -L'
5439 lt_cv_file_magic_test_file=/shlib/libc.so
5443 # func_win32_libid is a shell function defined in ltmain.sh
5444 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5445 lt_cv_file_magic_cmd='func_win32_libid'
5449 # Base MSYS/MinGW do not provide the 'file' command needed by
5450 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5451 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5452 lt_cv_file_magic_cmd='$OBJDUMP -f'
5455 darwin* | rhapsody*)
5456 lt_cv_deplibs_check_method=pass_all
5459 freebsd* | dragonfly*)
5460 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5463 # Not sure whether the presence of OpenBSD here was a mistake.
5464 # Let's accept both of them until this is cleared up.
5465 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5466 lt_cv_file_magic_cmd=/usr/bin/file
5467 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5471 lt_cv_deplibs_check_method=pass_all
5476 lt_cv_deplibs_check_method=pass_all
5479 hpux10.20* | hpux11*)
5480 lt_cv_file_magic_cmd=/usr/bin/file
5483 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5484 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5487 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]'
5488 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5491 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5492 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5498 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5502 irix5* | irix6* | nonstopux*)
5504 *-32|*"-32 ") libmagic=32-bit;;
5505 *-n32|*"-n32 ") libmagic=N32;;
5506 *-64|*"-64 ") libmagic=64-bit;;
5507 *) libmagic=never-match;;
5509 lt_cv_deplibs_check_method=pass_all
5512 # This must be Linux ELF.
5513 linux* | k*bsd*-gnu)
5514 lt_cv_deplibs_check_method=pass_all
5517 netbsd* | netbsdelf*-gnu)
5518 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5519 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5526 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5527 lt_cv_file_magic_cmd=/usr/bin/file
5528 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5532 lt_cv_deplibs_check_method=unknown
5536 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5537 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5539 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5543 osf3* | osf4* | osf5*)
5544 lt_cv_deplibs_check_method=pass_all
5548 lt_cv_deplibs_check_method=pass_all
5552 case $host_vendor in
5554 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]'
5555 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5558 lt_cv_deplibs_check_method=pass_all
5561 lt_cv_file_magic_cmd='/bin/file'
5562 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5565 lt_cv_file_magic_cmd='/bin/file'
5566 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5567 lt_cv_file_magic_test_file=/lib/libc.so
5570 lt_cv_deplibs_check_method=pass_all
5573 lt_cv_deplibs_check_method=pass_all
5578 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5579 lt_cv_deplibs_check_method=pass_all
5584 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5585 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5586 file_magic_cmd=$lt_cv_file_magic_cmd
5587 deplibs_check_method=$lt_cv_deplibs_check_method
5588 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5593 # If no C compiler was specified, use CC.
5596 # If no C compiler flags were specified, use CFLAGS.
5597 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5599 # Allow CC to be a program name with arguments.
5602 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5603 if test "${enable_libtool_lock+set}" = set; then
5604 enableval="$enable_libtool_lock"
5607 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5609 # Some flags need to be propagated to the compiler or linker for good
5613 # Find out which ABI we are using.
5614 echo 'int i;' > conftest.$ac_ext
5615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5616 (eval $ac_compile) 2>&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; then
5620 case `/usr/bin/file conftest.$ac_objext` in
5632 # Find out which ABI we are using.
5633 echo '#line 5633 "configure"' > conftest.$ac_ext
5634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5635 (eval $ac_compile) 2>&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; then
5639 if test "$lt_cv_prog_gnu_ld" = yes; then
5640 case `/usr/bin/file conftest.$ac_objext` in
5642 LD="${LD-ld} -melf32bsmip"
5645 LD="${LD-ld} -melf32bmipn32"
5648 LD="${LD-ld} -melf64bmip"
5652 case `/usr/bin/file conftest.$ac_objext` in
5668 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5669 # Find out which ABI we are using.
5670 echo 'int i;' > conftest.$ac_ext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672 (eval $ac_compile) 2>&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; then
5676 case `/usr/bin/file conftest.o` in
5680 LD="${LD-ld} -m elf_i386"
5682 ppc64-*linux*|powerpc64-*linux*)
5683 LD="${LD-ld} -m elf32ppclinux"
5686 LD="${LD-ld} -m elf_s390"
5689 LD="${LD-ld} -m elf32_sparc"
5696 LD="${LD-ld} -m elf_x86_64"
5698 ppc*-*linux*|powerpc*-*linux*)
5699 LD="${LD-ld} -m elf64ppc"
5702 LD="${LD-ld} -m elf64_s390"
5705 LD="${LD-ld} -m elf64_sparc"
5715 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5716 SAVE_CFLAGS="$CFLAGS"
5717 CFLAGS="$CFLAGS -belf"
5718 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5719 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5720 if test "${lt_cv_cc_needs_belf+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 ac_cpp='$CPP $CPPFLAGS'
5725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5729 cat >conftest.$ac_ext <<_ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5744 rm -f conftest.$ac_objext conftest$ac_exeext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5746 (eval $ac_link) 2>conftest.er1
5748 grep -v '^ *+' conftest.er1 >conftest.err
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } &&
5753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; } &&
5759 { ac_try='test -s conftest$ac_exeext'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; }; then
5765 lt_cv_cc_needs_belf=yes
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5770 lt_cv_cc_needs_belf=no
5772 rm -f conftest.err conftest.$ac_objext \
5773 conftest$ac_exeext conftest.$ac_ext
5775 ac_cpp='$CPP $CPPFLAGS'
5776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5781 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5782 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5783 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5784 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5785 CFLAGS="$SAVE_CFLAGS"
5789 # Find out which ABI we are using.
5790 echo 'int i;' > conftest.$ac_ext
5791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5792 (eval $ac_compile) 2>&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; then
5796 case `/usr/bin/file conftest.o` in
5798 case $lt_cv_prog_gnu_ld in
5799 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5800 *) LD="${LD-ld} -64" ;;
5811 need_locks="$enable_libtool_lock"
5815 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5816 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5817 if test "${ac_cv_header_stdc+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 cat >conftest.$ac_ext <<_ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5839 rm -f conftest.$ac_objext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5841 (eval $ac_compile) 2>conftest.er1
5843 grep -v '^ *+' conftest.er1 >conftest.err
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } &&
5848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } &&
5854 { ac_try='test -s conftest.$ac_objext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 ac_cv_header_stdc=yes
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5865 ac_cv_header_stdc=no
5867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5869 if test $ac_cv_header_stdc = yes; then
5870 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5871 cat >conftest.$ac_ext <<_ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5881 $EGREP "memchr" >/dev/null 2>&1; then
5884 ac_cv_header_stdc=no
5890 if test $ac_cv_header_stdc = yes; then
5891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5892 cat >conftest.$ac_ext <<_ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5902 $EGREP "free" >/dev/null 2>&1; then
5905 ac_cv_header_stdc=no
5911 if test $ac_cv_header_stdc = yes; then
5912 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5913 if test "$cross_compiling" = yes; then
5916 cat >conftest.$ac_ext <<_ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5923 #if ((' ' & 0x0FF) == 0x020)
5924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5927 # define ISLOWER(c) \
5928 (('a' <= (c) && (c) <= 'i') \
5929 || ('j' <= (c) && (c) <= 'r') \
5930 || ('s' <= (c) && (c) <= 'z'))
5931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5939 for (i = 0; i < 256; i++)
5940 if (XOR (islower (i), ISLOWER (i))
5941 || toupper (i) != TOUPPER (i))
5946 rm -f conftest$ac_exeext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948 (eval $ac_link) 2>&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); }; }; then
5959 echo "$as_me: program exited with status $ac_status" >&5
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5964 ac_cv_header_stdc=no
5966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5970 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5971 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5972 if test $ac_cv_header_stdc = yes; then
5974 cat >>confdefs.h <<\_ACEOF
5975 #define STDC_HEADERS 1
5980 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5990 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5991 inttypes.h stdint.h unistd.h
5993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5994 echo "$as_me:$LINENO: checking for $ac_header" >&5
5995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 cat >conftest.$ac_ext <<_ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6005 $ac_includes_default
6007 #include <$ac_header>
6009 rm -f conftest.$ac_objext
6010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6011 (eval $ac_compile) 2>conftest.er1
6013 grep -v '^ *+' conftest.er1 >conftest.err
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } &&
6018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; } &&
6024 { ac_try='test -s conftest.$ac_objext'
6025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; }; then
6030 eval "$as_ac_Header=yes"
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6035 eval "$as_ac_Header=no"
6037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6042 cat >>confdefs.h <<_ACEOF
6043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6052 for ac_header in dlfcn.h
6054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6056 echo "$as_me:$LINENO: checking for $ac_header" >&5
6057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6064 # Is the header compilable?
6065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6067 cat >conftest.$ac_ext <<_ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 $ac_includes_default
6074 #include <$ac_header>
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
6080 grep -v '^ *+' conftest.er1 >conftest.err
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; } &&
6091 { ac_try='test -s conftest.$ac_objext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_header_compiler=yes
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6102 ac_header_compiler=no
6104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6106 echo "${ECHO_T}$ac_header_compiler" >&6
6108 # Is the header present?
6109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6111 cat >conftest.$ac_ext <<_ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6117 #include <$ac_header>
6119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6122 grep -v '^ *+' conftest.er1 >conftest.err
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } >/dev/null; then
6127 if test -s conftest.err; then
6128 ac_cpp_err=$ac_c_preproc_warn_flag
6129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6136 if test -z "$ac_cpp_err"; then
6137 ac_header_preproc=yes
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6142 ac_header_preproc=no
6144 rm -f conftest.err conftest.$ac_ext
6145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6146 echo "${ECHO_T}$ac_header_preproc" >&6
6148 # So? What about this header?
6149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6155 ac_header_preproc=yes
6158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6165 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6172 ## ------------------------------- ##
6173 ## Report this to nfs@lists.sf.net ##
6174 ## ------------------------------- ##
6177 sed "s/^/$as_me: WARNING: /" >&2
6180 echo "$as_me:$LINENO: checking for $ac_header" >&5
6181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 eval "$as_ac_Header=\$ac_header_preproc"
6187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6192 cat >>confdefs.h <<_ACEOF
6193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6202 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6203 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6204 (test "X$CXX" != "Xg++"))) ; then
6206 ac_cpp='$CXXCPP $CPPFLAGS'
6207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6210 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6211 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6212 if test -z "$CXXCPP"; then
6213 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 # Double quotes because CXXCPP needs to be expanded
6217 for CXXCPP in "$CXX -E" "/lib/cpp"
6220 for ac_cxx_preproc_warn_flag in '' yes
6222 # Use a header file that comes with gcc, so configuring glibc
6223 # with a fresh cross-compiler works.
6224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6225 # <limits.h> exists even on freestanding compilers.
6226 # On the NeXT, cc -E runs the code through the compiler's parser,
6227 # not just through cpp. "Syntax error" is here to catch this case.
6228 cat >conftest.$ac_ext <<_ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6235 # include <limits.h>
6237 # include <assert.h>
6241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6244 grep -v '^ *+' conftest.er1 >conftest.err
6246 cat conftest.err >&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); } >/dev/null; then
6249 if test -s conftest.err; then
6250 ac_cpp_err=$ac_cxx_preproc_warn_flag
6251 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6258 if test -z "$ac_cpp_err"; then
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6264 # Broken: fails on valid input.
6267 rm -f conftest.err conftest.$ac_ext
6269 # OK, works on sane cases. Now check whether non-existent headers
6270 # can be detected and how.
6271 cat >conftest.$ac_ext <<_ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 #include <ac_nonexistent.h>
6279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6282 grep -v '^ *+' conftest.er1 >conftest.err
6284 cat conftest.err >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } >/dev/null; then
6287 if test -s conftest.err; then
6288 ac_cpp_err=$ac_cxx_preproc_warn_flag
6289 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6296 if test -z "$ac_cpp_err"; then
6297 # Broken: success on invalid input.
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6303 # Passes both tests.
6307 rm -f conftest.err conftest.$ac_ext
6310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6311 rm -f conftest.err conftest.$ac_ext
6312 if $ac_preproc_ok; then
6317 ac_cv_prog_CXXCPP=$CXXCPP
6320 CXXCPP=$ac_cv_prog_CXXCPP
6322 ac_cv_prog_CXXCPP=$CXXCPP
6324 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6325 echo "${ECHO_T}$CXXCPP" >&6
6327 for ac_cxx_preproc_warn_flag in '' yes
6329 # Use a header file that comes with gcc, so configuring glibc
6330 # with a fresh cross-compiler works.
6331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6332 # <limits.h> exists even on freestanding compilers.
6333 # On the NeXT, cc -E runs the code through the compiler's parser,
6334 # not just through cpp. "Syntax error" is here to catch this case.
6335 cat >conftest.$ac_ext <<_ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6342 # include <limits.h>
6344 # include <assert.h>
6348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6351 grep -v '^ *+' conftest.er1 >conftest.err
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } >/dev/null; then
6356 if test -s conftest.err; then
6357 ac_cpp_err=$ac_cxx_preproc_warn_flag
6358 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6365 if test -z "$ac_cpp_err"; then
6368 echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6371 # Broken: fails on valid input.
6374 rm -f conftest.err conftest.$ac_ext
6376 # OK, works on sane cases. Now check whether non-existent headers
6377 # can be detected and how.
6378 cat >conftest.$ac_ext <<_ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6384 #include <ac_nonexistent.h>
6386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6389 grep -v '^ *+' conftest.er1 >conftest.err
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } >/dev/null; then
6394 if test -s conftest.err; then
6395 ac_cpp_err=$ac_cxx_preproc_warn_flag
6396 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6403 if test -z "$ac_cpp_err"; then
6404 # Broken: success on invalid input.
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6410 # Passes both tests.
6414 rm -f conftest.err conftest.$ac_ext
6417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6418 rm -f conftest.err conftest.$ac_ext
6419 if $ac_preproc_ok; then
6422 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6423 See \`config.log' for more details." >&5
6424 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6425 See \`config.log' for more details." >&2;}
6426 { (exit 1); exit 1; }; }
6430 ac_cpp='$CXXCPP $CPPFLAGS'
6431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6439 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6440 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6441 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6442 if test -n "$ac_tool_prefix"; then
6443 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6445 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6446 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6447 echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6449 if test "${ac_cv_prog_F77+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 if test -n "$F77"; then
6453 ac_cv_prog_F77="$F77" # Let the user override the test.
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 if test -n "$F77"; then
6473 echo "$as_me:$LINENO: result: $F77" >&5
6474 echo "${ECHO_T}$F77" >&6
6476 echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6
6480 test -n "$F77" && break
6483 if test -z "$F77"; then
6485 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6487 # Extract the first word of "$ac_prog", so it can be a program name with args.
6488 set dummy $ac_prog; ac_word=$2
6489 echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6491 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 if test -n "$ac_ct_F77"; then
6495 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504 ac_cv_prog_ac_ct_F77="$ac_prog"
6505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6514 if test -n "$ac_ct_F77"; then
6515 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6516 echo "${ECHO_T}$ac_ct_F77" >&6
6518 echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6
6522 test -n "$ac_ct_F77" && break
6529 # Provide some information about the compiler.
6530 echo "$as_me:6530:" \
6531 "checking for Fortran 77 compiler version" >&5
6532 ac_compiler=`set X $ac_compile; echo $2`
6533 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6534 (eval $ac_compiler --version </dev/null >&5) 2>&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }
6538 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6539 (eval $ac_compiler -v </dev/null >&5) 2>&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }
6543 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6544 (eval $ac_compiler -V </dev/null >&5) 2>&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); }
6550 # If we don't use `.F' as extension, the preprocessor is not run on the
6551 # input file. (Note that this only needs to work for GNU compilers.)
6554 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6555 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6556 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 cat >conftest.$ac_ext <<_ACEOF
6567 rm -f conftest.$ac_objext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6569 (eval $ac_compile) 2>conftest.er1
6571 grep -v '^ *+' conftest.er1 >conftest.err
6573 cat conftest.err >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } &&
6576 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; } &&
6582 { ac_try='test -s conftest.$ac_objext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6596 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6599 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6600 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6602 ac_test_FFLAGS=${FFLAGS+set}
6603 ac_save_FFLAGS=$FFLAGS
6605 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6606 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6607 if test "${ac_cv_prog_f77_g+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 cat >conftest.$ac_ext <<_ACEOF
6616 rm -f conftest.$ac_objext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618 (eval $ac_compile) 2>conftest.er1
6620 grep -v '^ *+' conftest.er1 >conftest.err
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } &&
6625 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; } &&
6631 { ac_try='test -s conftest.$ac_objext'
6632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; }; then
6637 ac_cv_prog_f77_g=yes
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6647 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6648 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6649 if test "$ac_test_FFLAGS" = set; then
6650 FFLAGS=$ac_save_FFLAGS
6651 elif test $ac_cv_prog_f77_g = yes; then
6652 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6658 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6665 G77=`test $ac_compiler_gnu = yes && echo yes`
6667 ac_cpp='$CPP $CPPFLAGS'
6668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6674 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6676 # find the maximum length of command line arguments
6677 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6678 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6679 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 # On DJGPP, this test can blow up pretty badly due to problems in libc
6688 # (any single argument exceeding 2000 bytes causes a buffer overrun
6689 # during glob expansion). Even if it were fixed, the result of this
6690 # check would be larger than it should be.
6691 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6695 # Under GNU Hurd, this test is not required because there is
6696 # no limit to the length of command line arguments.
6697 # Libtool will interpret -1 as no limit whatsoever
6698 lt_cv_sys_max_cmd_len=-1;
6702 # On Win9x/ME, this test blows up -- it succeeds, but takes
6703 # about 5 minutes as the teststring grows exponentially.
6704 # Worse, since 9x/ME are not pre-emptively multitasking,
6705 # you end up with a "frozen" computer, even though with patience
6706 # the test eventually succeeds (with a max line length of 256k).
6707 # Instead, let's just punt: use the minimum linelength reported by
6708 # all of the supported platforms: 8192 (on NT/2K/XP).
6709 lt_cv_sys_max_cmd_len=8192;
6713 # On AmigaOS with pdksh, this test takes hours, literally.
6714 # So we just punt and use a minimum line length of 8192.
6715 lt_cv_sys_max_cmd_len=8192;
6718 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6719 # This has been around since 386BSD, at least. Likely further.
6720 if test -x /sbin/sysctl; then
6721 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6722 elif test -x /usr/sbin/sysctl; then
6723 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6725 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6727 # And add a safety zone
6728 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6729 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6733 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6734 lt_cv_sys_max_cmd_len=196608
6738 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6739 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6740 # nice to cause kernel panics so lets avoid the loop below.
6741 # First set a reasonable default.
6742 lt_cv_sys_max_cmd_len=16384
6744 if test -x /sbin/sysconfig; then
6745 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6746 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6751 lt_cv_sys_max_cmd_len=102400
6753 sysv5* | sco5v6* | sysv4.2uw2*)
6754 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6755 if test -n "$kargmax"; then
6756 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6758 lt_cv_sys_max_cmd_len=32768
6762 # If test is not a shell built-in, we'll probably end up computing a
6763 # maximum length that is only half of the actual maximum length, but
6765 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6766 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6767 = "XX$teststring") >/dev/null 2>&1 &&
6768 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6769 lt_cv_sys_max_cmd_len=$new_result &&
6770 test $i != 17 # 1/2 MB should be enough
6773 teststring=$teststring$teststring
6776 # Add a significant safety factor because C++ compilers can tack on massive
6777 # amounts of additional arguments before passing them to the linker.
6778 # It appears as though 1/2 is a usable value.
6779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6785 if test -n $lt_cv_sys_max_cmd_len ; then
6786 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6787 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6789 echo "$as_me:$LINENO: result: none" >&5
6790 echo "${ECHO_T}none" >&6
6796 # Check for command to grab the raw symbol name followed by C symbol from nm.
6797 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6798 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6799 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 # These are sane defaults that work on at least a few old systems.
6804 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6806 # Character class describing NM global symbol codes.
6807 symcode='[BCDEGRST]'
6809 # Regexp to match symbols that can be accessed directly from C.
6810 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6812 # Transform an extracted symbol line into a proper C declaration
6813 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6815 # Transform an extracted symbol line into symbol name and symbol address
6816 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'"
6818 # Define system-specific variables.
6823 cygwin* | mingw* | pw32*)
6824 symcode='[ABCDGISTW]'
6826 hpux*) # Its linker distinguishes data from code symbols
6827 if test "$host_cpu" = ia64; then
6828 symcode='[ABCDEGRST]'
6830 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6831 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'"
6833 linux* | k*bsd*-gnu)
6834 if test "$host_cpu" = ia64; then
6835 symcode='[ABCDGIRSTW]'
6836 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6837 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'"
6841 symcode='[BCDEGRST]'
6844 symcode='[BCDEGQRST]'
6855 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6863 # Handle CRLF in mingw tool chain
6867 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6871 # If we're using GNU nm, then use its standard symbol codes.
6872 case `$NM -V 2>&1` in
6873 *GNU* | *'with BFD'*)
6874 symcode='[ABCDGIRSTW]' ;;
6877 # Try without a prefix undercore, then with it.
6878 for ac_symprfx in "" "_"; do
6880 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6881 symxfrm="\\1 $ac_symprfx\\2 \\2"
6883 # Write the raw and C identifiers.
6884 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6886 # Check to see that the pipe works correctly.
6890 cat > conftest.$ac_ext <<EOF
6895 void nm_test_func(){}
6899 int main(){nm_test_var='a';nm_test_func();return(0);}
6902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6903 (eval $ac_compile) 2>&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; then
6907 # Now try to grab the symbols.
6909 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6910 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && test -s "$nlist"; then
6914 # Try sorting and uniquifying the output.
6915 if sort "$nlist" | uniq > "$nlist"T; then
6916 mv -f "$nlist"T "$nlist"
6921 # Make sure that we snagged all the symbols we need.
6922 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6923 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6924 cat <<EOF > conftest.$ac_ext
6930 # Now generate the symbol file.
6931 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6933 cat <<EOF >> conftest.$ac_ext
6934 #if defined (__STDC__) && __STDC__
6935 # define lt_ptr_t void *
6937 # define lt_ptr_t char *
6941 /* The mapping between symbol names and symbols. */
6946 lt_preloaded_symbols[] =
6949 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6950 cat <<\EOF >> conftest.$ac_ext
6958 # Now try linking the two files.
6959 mv conftest.$ac_objext conftstm.$ac_objext
6960 lt_save_LIBS="$LIBS"
6961 lt_save_CFLAGS="$CFLAGS"
6962 LIBS="conftstm.$ac_objext"
6963 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6965 (eval $ac_link) 2>&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6971 LIBS="$lt_save_LIBS"
6972 CFLAGS="$lt_save_CFLAGS"
6974 echo "cannot find nm_test_func in $nlist" >&5
6977 echo "cannot find nm_test_var in $nlist" >&5
6980 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6983 echo "$progname: failed program was:" >&5
6984 cat conftest.$ac_ext >&5
6986 rm -f conftest* conftst*
6988 # Do not use the global_symbol_pipe unless it works.
6989 if test "$pipe_works" = yes; then
6992 lt_cv_sys_global_symbol_pipe=
6998 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6999 lt_cv_sys_global_symbol_to_cdecl=
7001 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7002 echo "$as_me:$LINENO: result: failed" >&5
7003 echo "${ECHO_T}failed" >&6
7005 echo "$as_me:$LINENO: result: ok" >&5
7006 echo "${ECHO_T}ok" >&6
7009 echo "$as_me:$LINENO: checking for objdir" >&5
7010 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7011 if test "${lt_cv_objdir+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 rm -f .libs 2>/dev/null
7015 mkdir .libs 2>/dev/null
7016 if test -d .libs; then
7019 # MS-DOS does not allow filenames that begin with a dot.
7022 rmdir .libs 2>/dev/null
7024 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7025 echo "${ECHO_T}$lt_cv_objdir" >&6
7026 objdir=$lt_cv_objdir
7034 # AIX sometimes has problems with the GCC collect2 program. For some
7035 # reason, if we set the COLLECT_NAMES environment variable, the problems
7036 # vanish in a puff of smoke.
7037 if test "X${COLLECT_NAMES+set}" != Xset; then
7039 export COLLECT_NAMES
7044 # Sed substitution that helps us do robust quoting. It backslashifies
7045 # metacharacters that are still active within double-quoted strings.
7046 Xsed='sed -e 1s/^X//'
7047 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7049 # Same as above, but do not quote variable references.
7050 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7052 # Sed substitution to delay expansion of an escaped shell variable in a
7053 # double_quote_subst'ed string.
7054 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7056 # Sed substitution to avoid accidental globbing in evaled expressions
7057 no_glob_subst='s/\*/\\\*/g'
7063 default_ofile=libtool
7064 can_build_shared=yes
7066 # All known linkers require a `.a' archive for static linking (except MSVC,
7067 # which needs '.lib').
7069 ltmain="$ac_aux_dir/ltmain.sh"
7070 ofile="$default_ofile"
7071 with_gnu_ld="$lt_cv_prog_gnu_ld"
7073 if test -n "$ac_tool_prefix"; then
7074 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7075 set dummy ${ac_tool_prefix}ar; ac_word=$2
7076 echo "$as_me:$LINENO: checking for $ac_word" >&5
7077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7078 if test "${ac_cv_prog_AR+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 if test -n "$AR"; then
7082 ac_cv_prog_AR="$AR" # Let the user override the test.
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7091 ac_cv_prog_AR="${ac_tool_prefix}ar"
7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 if test -n "$AR"; then
7102 echo "$as_me:$LINENO: result: $AR" >&5
7103 echo "${ECHO_T}$AR" >&6
7105 echo "$as_me:$LINENO: result: no" >&5
7106 echo "${ECHO_T}no" >&6
7110 if test -z "$ac_cv_prog_AR"; then
7112 # Extract the first word of "ar", so it can be a program name with args.
7113 set dummy ar; ac_word=$2
7114 echo "$as_me:$LINENO: checking for $ac_word" >&5
7115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7116 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 if test -n "$ac_ct_AR"; then
7120 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129 ac_cv_prog_ac_ct_AR="ar"
7130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7139 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7140 if test -n "$ac_ct_AR"; then
7141 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7142 echo "${ECHO_T}$ac_ct_AR" >&6
7144 echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6
7153 if test -n "$ac_tool_prefix"; then
7154 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7155 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7156 echo "$as_me:$LINENO: checking for $ac_word" >&5
7157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7158 if test "${ac_cv_prog_RANLIB+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 if test -n "$RANLIB"; then
7162 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7171 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 RANLIB=$ac_cv_prog_RANLIB
7181 if test -n "$RANLIB"; then
7182 echo "$as_me:$LINENO: result: $RANLIB" >&5
7183 echo "${ECHO_T}$RANLIB" >&6
7185 echo "$as_me:$LINENO: result: no" >&5
7186 echo "${ECHO_T}no" >&6
7190 if test -z "$ac_cv_prog_RANLIB"; then
7191 ac_ct_RANLIB=$RANLIB
7192 # Extract the first word of "ranlib", so it can be a program name with args.
7193 set dummy ranlib; ac_word=$2
7194 echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7196 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 if test -n "$ac_ct_RANLIB"; then
7200 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209 ac_cv_prog_ac_ct_RANLIB="ranlib"
7210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7219 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7220 if test -n "$ac_ct_RANLIB"; then
7221 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7222 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7224 echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6
7228 RANLIB=$ac_ct_RANLIB
7230 RANLIB="$ac_cv_prog_RANLIB"
7233 if test -n "$ac_tool_prefix"; then
7234 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7235 set dummy ${ac_tool_prefix}strip; ac_word=$2
7236 echo "$as_me:$LINENO: checking for $ac_word" >&5
7237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7238 if test "${ac_cv_prog_STRIP+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 if test -n "$STRIP"; then
7242 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 STRIP=$ac_cv_prog_STRIP
7261 if test -n "$STRIP"; then
7262 echo "$as_me:$LINENO: result: $STRIP" >&5
7263 echo "${ECHO_T}$STRIP" >&6
7265 echo "$as_me:$LINENO: result: no" >&5
7266 echo "${ECHO_T}no" >&6
7270 if test -z "$ac_cv_prog_STRIP"; then
7272 # Extract the first word of "strip", so it can be a program name with args.
7273 set dummy strip; ac_word=$2
7274 echo "$as_me:$LINENO: checking for $ac_word" >&5
7275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7276 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 if test -n "$ac_ct_STRIP"; then
7280 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289 ac_cv_prog_ac_ct_STRIP="strip"
7290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7299 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7300 if test -n "$ac_ct_STRIP"; then
7301 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7302 echo "${ECHO_T}$ac_ct_STRIP" >&6
7304 echo "$as_me:$LINENO: result: no" >&5
7305 echo "${ECHO_T}no" >&6
7310 STRIP="$ac_cv_prog_STRIP"
7315 old_CFLAGS="$CFLAGS"
7317 # Set sane defaults for various variables
7318 test -z "$AR" && AR=ar
7319 test -z "$AR_FLAGS" && AR_FLAGS=cru
7320 test -z "$AS" && AS=as
7321 test -z "$CC" && CC=cc
7322 test -z "$LTCC" && LTCC=$CC
7323 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7324 test -z "$DLLTOOL" && DLLTOOL=dlltool
7325 test -z "$LD" && LD=ld
7326 test -z "$LN_S" && LN_S="ln -s"
7327 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7328 test -z "$NM" && NM=nm
7329 test -z "$SED" && SED=sed
7330 test -z "$OBJDUMP" && OBJDUMP=objdump
7331 test -z "$RANLIB" && RANLIB=:
7332 test -z "$STRIP" && STRIP=:
7333 test -z "$ac_objext" && ac_objext=o
7335 # Determine commands to create old-style static archives.
7336 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7337 old_postinstall_cmds='chmod 644 $oldlib'
7338 old_postuninstall_cmds=
7340 if test -n "$RANLIB"; then
7343 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7346 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7349 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7352 for cc_temp in $compiler""; do
7354 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7355 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7360 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7363 # Only perform the check for file, if the check method requires it
7364 case $deplibs_check_method in
7366 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7367 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7368 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7369 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7377 lt_save_MAGIC_CMD="$MAGIC_CMD"
7378 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7379 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7380 for ac_dir in $ac_dummy; do
7382 test -z "$ac_dir" && ac_dir=.
7383 if test -f $ac_dir/${ac_tool_prefix}file; then
7384 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7385 if test -n "$file_magic_test_file"; then
7386 case $deplibs_check_method in
7388 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7389 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7390 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7391 $EGREP "$file_magic_regex" > /dev/null; then
7396 *** Warning: the command libtool uses to detect shared libraries,
7397 *** $file_magic_cmd, produces output that libtool cannot recognize.
7398 *** The result is that libtool may fail to recognize shared libraries
7399 *** as such. This will affect the creation of libtool libraries that
7400 *** depend on shared libraries, but programs linked with such libtool
7401 *** libraries will work regardless of this problem. Nevertheless, you
7402 *** may want to report the problem to your system manager and/or to
7403 *** bug-libtool@gnu.org
7413 MAGIC_CMD="$lt_save_MAGIC_CMD"
7418 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7419 if test -n "$MAGIC_CMD"; then
7420 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7421 echo "${ECHO_T}$MAGIC_CMD" >&6
7423 echo "$as_me:$LINENO: result: no" >&5
7424 echo "${ECHO_T}no" >&6
7427 if test -z "$lt_cv_path_MAGIC_CMD"; then
7428 if test -n "$ac_tool_prefix"; then
7429 echo "$as_me:$LINENO: checking for file" >&5
7430 echo $ECHO_N "checking for file... $ECHO_C" >&6
7431 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7439 lt_save_MAGIC_CMD="$MAGIC_CMD"
7440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7441 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7442 for ac_dir in $ac_dummy; do
7444 test -z "$ac_dir" && ac_dir=.
7445 if test -f $ac_dir/file; then
7446 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7447 if test -n "$file_magic_test_file"; then
7448 case $deplibs_check_method in
7450 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7452 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7453 $EGREP "$file_magic_regex" > /dev/null; then
7458 *** Warning: the command libtool uses to detect shared libraries,
7459 *** $file_magic_cmd, produces output that libtool cannot recognize.
7460 *** The result is that libtool may fail to recognize shared libraries
7461 *** as such. This will affect the creation of libtool libraries that
7462 *** depend on shared libraries, but programs linked with such libtool
7463 *** libraries will work regardless of this problem. Nevertheless, you
7464 *** may want to report the problem to your system manager and/or to
7465 *** bug-libtool@gnu.org
7475 MAGIC_CMD="$lt_save_MAGIC_CMD"
7480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7481 if test -n "$MAGIC_CMD"; then
7482 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7483 echo "${ECHO_T}$MAGIC_CMD" >&6
7485 echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6
7501 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7502 if test "${enable_libtool_lock+set}" = set; then
7503 enableval="$enable_libtool_lock"
7506 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7509 # Check whether --with-pic or --without-pic was given.
7510 if test "${with_pic+set}" = set; then
7516 test -z "$pic_mode" && pic_mode=default
7518 # Use C for the default configuration in the libtool script
7522 ac_cpp='$CPP $CPPFLAGS'
7523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7528 # Source file extension for C test sources.
7531 # Object file extension for compiled C test sources.
7535 # Code to be used in simple compile tests
7536 lt_simple_compile_test_code="int some_variable = 0;\n"
7538 # Code to be used in simple link tests
7539 lt_simple_link_test_code='int main(){return(0);}\n'
7542 # If no C compiler was specified, use CC.
7545 # If no C compiler flags were specified, use CFLAGS.
7546 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7548 # Allow CC to be a program name with arguments.
7552 # save warnings/boilerplate of simple test code
7553 ac_outfile=conftest.$ac_objext
7554 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7555 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7556 _lt_compiler_boilerplate=`cat conftest.err`
7559 ac_outfile=conftest.$ac_objext
7560 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7561 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7562 _lt_linker_boilerplate=`cat conftest.err`
7567 lt_prog_compiler_no_builtin_flag=
7569 if test "$GCC" = yes; then
7570 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7573 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7574 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7575 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 lt_cv_prog_compiler_rtti_exceptions=no
7579 ac_outfile=conftest.$ac_objext
7580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7581 lt_compiler_flag="-fno-rtti -fno-exceptions"
7582 # Insert the option either (1) after the last *FLAGS variable, or
7583 # (2) before a word containing "conftest.", or (3) at the end.
7584 # Note that $ac_compile itself does not contain backslashes and begins
7585 # with a dollar sign (not a hyphen), so the echo should work correctly.
7586 # The option is referenced via a variable to avoid confusing sed.
7587 lt_compile=`echo "$ac_compile" | $SED \
7588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7590 -e 's:$: $lt_compiler_flag:'`
7591 (eval echo "\"\$as_me:7591: $lt_compile\"" >&5)
7592 (eval "$lt_compile" 2>conftest.err)
7594 cat conftest.err >&5
7595 echo "$as_me:7595: \$? = $ac_status" >&5
7596 if (exit $ac_status) && test -s "$ac_outfile"; then
7597 # The compiler can only warn and ignore the option if not recognized
7598 # So say no if there are warnings other than the usual output.
7599 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7600 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7601 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7602 lt_cv_prog_compiler_rtti_exceptions=yes
7608 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7609 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7611 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7612 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7619 lt_prog_compiler_wl=
7620 lt_prog_compiler_pic=
7621 lt_prog_compiler_static=
7623 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7624 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7626 if test "$GCC" = yes; then
7627 lt_prog_compiler_wl='-Wl,'
7628 lt_prog_compiler_static='-static'
7632 # All AIX code is PIC.
7633 if test "$host_cpu" = ia64; then
7634 # AIX 5 now supports IA64 processor
7635 lt_prog_compiler_static='-Bstatic'
7640 # FIXME: we need at least 68020 code to build shared libraries, but
7641 # adding the `-m68020' flag to GCC prevents building anything better,
7643 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7646 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7647 # PIC is the default for these OSes.
7650 mingw* | pw32* | os2*)
7651 # This hack is so that the source file can tell whether it is being
7652 # built for inclusion in a dll (and should export symbols for example).
7653 lt_prog_compiler_pic='-DDLL_EXPORT'
7656 darwin* | rhapsody*)
7657 # PIC is the default on this platform
7658 # Common symbols not allowed in MH_DYLIB files
7659 lt_prog_compiler_pic='-fno-common'
7663 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7664 # Instead, we relocate shared libraries at runtime.
7668 # Just because we use GCC doesn't mean we suddenly get shared libraries
7669 # on systems that don't support them.
7670 lt_prog_compiler_can_build_shared=no
7675 if test -d /usr/nec; then
7676 lt_prog_compiler_pic=-Kconform_pic
7681 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7688 lt_prog_compiler_pic='-fPIC'
7694 lt_prog_compiler_pic='-fPIC'
7698 # PORTME Check for flag to pass linker flags through the system compiler.
7701 lt_prog_compiler_wl='-Wl,'
7702 if test "$host_cpu" = ia64; then
7703 # AIX 5 now supports IA64 processor
7704 lt_prog_compiler_static='-Bstatic'
7706 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7710 # PIC is the default on this platform
7711 # Common symbols not allowed in MH_DYLIB files
7712 case $cc_basename in
7714 lt_prog_compiler_pic='-qnocommon'
7715 lt_prog_compiler_wl='-Wl,'
7720 mingw* | pw32* | os2*)
7721 # This hack is so that the source file can tell whether it is being
7722 # built for inclusion in a dll (and should export symbols for example).
7723 lt_prog_compiler_pic='-DDLL_EXPORT'
7726 hpux9* | hpux10* | hpux11*)
7727 lt_prog_compiler_wl='-Wl,'
7728 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7735 lt_prog_compiler_pic='+Z'
7738 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7739 lt_prog_compiler_static='${wl}-a ${wl}archive'
7742 irix5* | irix6* | nonstopux*)
7743 lt_prog_compiler_wl='-Wl,'
7744 # PIC (with -KPIC) is the default.
7745 lt_prog_compiler_static='-non_shared'
7749 lt_prog_compiler_pic='-KPIC'
7750 lt_prog_compiler_static='-Bstatic'
7753 linux* | k*bsd*-gnu)
7754 case $cc_basename in
7756 lt_prog_compiler_wl='-Wl,'
7757 lt_prog_compiler_pic='-KPIC'
7758 lt_prog_compiler_static='-static'
7760 pgcc* | pgf77* | pgf90* | pgf95*)
7761 # Portland Group compilers (*not* the Pentium gcc compiler,
7762 # which looks to be a dead project)
7763 lt_prog_compiler_wl='-Wl,'
7764 lt_prog_compiler_pic='-fpic'
7765 lt_prog_compiler_static='-Bstatic'
7768 lt_prog_compiler_wl='-Wl,'
7769 # All Alpha code is PIC.
7770 lt_prog_compiler_static='-non_shared'
7775 osf3* | osf4* | osf5*)
7776 lt_prog_compiler_wl='-Wl,'
7777 # All OSF/1 code is PIC.
7778 lt_prog_compiler_static='-non_shared'
7782 lt_prog_compiler_pic='-KPIC'
7783 lt_prog_compiler_static='-Bstatic'
7784 case $cc_basename in
7786 lt_prog_compiler_wl='-Qoption ld ';;
7788 lt_prog_compiler_wl='-Wl,';;
7793 lt_prog_compiler_wl='-Qoption ld '
7794 lt_prog_compiler_pic='-PIC'
7795 lt_prog_compiler_static='-Bstatic'
7798 sysv4 | sysv4.2uw2* | sysv4.3*)
7799 lt_prog_compiler_wl='-Wl,'
7800 lt_prog_compiler_pic='-KPIC'
7801 lt_prog_compiler_static='-Bstatic'
7805 if test -d /usr/nec ;then
7806 lt_prog_compiler_pic='-Kconform_pic'
7807 lt_prog_compiler_static='-Bstatic'
7811 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7812 lt_prog_compiler_wl='-Wl,'
7813 lt_prog_compiler_pic='-KPIC'
7814 lt_prog_compiler_static='-Bstatic'
7818 lt_prog_compiler_wl='-Wl,'
7819 lt_prog_compiler_can_build_shared=no
7823 lt_prog_compiler_pic='-pic'
7824 lt_prog_compiler_static='-Bstatic'
7828 lt_prog_compiler_can_build_shared=no
7833 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7834 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7837 # Check to make sure the PIC flag actually works.
7839 if test -n "$lt_prog_compiler_pic"; then
7841 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7842 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7843 if test "${lt_prog_compiler_pic_works+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 lt_prog_compiler_pic_works=no
7847 ac_outfile=conftest.$ac_objext
7848 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7849 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7850 # Insert the option either (1) after the last *FLAGS variable, or
7851 # (2) before a word containing "conftest.", or (3) at the end.
7852 # Note that $ac_compile itself does not contain backslashes and begins
7853 # with a dollar sign (not a hyphen), so the echo should work correctly.
7854 # The option is referenced via a variable to avoid confusing sed.
7855 lt_compile=`echo "$ac_compile" | $SED \
7856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7858 -e 's:$: $lt_compiler_flag:'`
7859 (eval echo "\"\$as_me:7859: $lt_compile\"" >&5)
7860 (eval "$lt_compile" 2>conftest.err)
7862 cat conftest.err >&5
7863 echo "$as_me:7863: \$? = $ac_status" >&5
7864 if (exit $ac_status) && test -s "$ac_outfile"; then
7865 # The compiler can only warn and ignore the option if not recognized
7866 # So say no if there are warnings other than the usual output.
7867 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7870 lt_prog_compiler_pic_works=yes
7876 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7877 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7879 if test x"$lt_prog_compiler_pic_works" = xyes; then
7880 case $lt_prog_compiler_pic in
7882 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7885 lt_prog_compiler_pic=
7886 lt_prog_compiler_can_build_shared=no
7891 # For platforms which do not support PIC, -DPIC is meaningless:
7893 lt_prog_compiler_pic=
7896 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7901 # Check to make sure the static flag actually works.
7903 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7904 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7905 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7906 if test "${lt_prog_compiler_static_works+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 lt_prog_compiler_static_works=no
7910 save_LDFLAGS="$LDFLAGS"
7911 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7912 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7913 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7914 # The linker can only warn and ignore the option if not recognized
7915 # So say no if there are warnings
7916 if test -s conftest.err; then
7917 # Append any errors to the config.log.
7918 cat conftest.err 1>&5
7919 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7920 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7921 if diff conftest.exp conftest.er2 >/dev/null; then
7922 lt_prog_compiler_static_works=yes
7925 lt_prog_compiler_static_works=yes
7929 LDFLAGS="$save_LDFLAGS"
7932 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7933 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7935 if test x"$lt_prog_compiler_static_works" = xyes; then
7938 lt_prog_compiler_static=
7942 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7943 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7944 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 lt_cv_prog_compiler_c_o=no
7948 $rm -r conftest 2>/dev/null
7952 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7954 lt_compiler_flag="-o out/conftest2.$ac_objext"
7955 # Insert the option either (1) after the last *FLAGS variable, or
7956 # (2) before a word containing "conftest.", or (3) at the end.
7957 # Note that $ac_compile itself does not contain backslashes and begins
7958 # with a dollar sign (not a hyphen), so the echo should work correctly.
7959 lt_compile=`echo "$ac_compile" | $SED \
7960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7962 -e 's:$: $lt_compiler_flag:'`
7963 (eval echo "\"\$as_me:7963: $lt_compile\"" >&5)
7964 (eval "$lt_compile" 2>out/conftest.err)
7966 cat out/conftest.err >&5
7967 echo "$as_me:7967: \$? = $ac_status" >&5
7968 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7970 # The compiler can only warn and ignore the option if not recognized
7971 # So say no if there are warnings
7972 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7973 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7974 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7975 lt_cv_prog_compiler_c_o=yes
7980 # SGI C++ compiler will create directory out/ii_files/ for
7981 # template instantiation
7982 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7983 $rm out/* && rmdir out
7989 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7990 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7993 hard_links="nottested"
7994 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7995 # do not overwrite the value of need_locks provided by the user
7996 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7997 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8000 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8002 ln conftest.a conftest.b 2>&5 || hard_links=no
8003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8004 echo "$as_me:$LINENO: result: $hard_links" >&5
8005 echo "${ECHO_T}$hard_links" >&6
8006 if test "$hard_links" = no; then
8007 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8008 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8015 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8016 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8019 allow_undefined_flag=
8020 enable_shared_with_static_runtimes=no
8022 archive_expsym_cmds=
8023 old_archive_From_new_cmds=
8024 old_archive_from_expsyms_cmds=
8025 export_dynamic_flag_spec=
8026 whole_archive_flag_spec=
8027 thread_safe_flag_spec=
8028 hardcode_libdir_flag_spec=
8029 hardcode_libdir_flag_spec_ld=
8030 hardcode_libdir_separator=
8033 hardcode_shlibpath_var=unsupported
8034 link_all_deplibs=unknown
8035 hardcode_automatic=no
8038 always_export_symbols=no
8039 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8040 # include_expsyms should be a list of space-separated symbols to be *always*
8041 # included in the symbol list
8043 # exclude_expsyms can be an extended regexp of symbols to exclude
8044 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8045 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8046 # as well as any symbol that contains `d'.
8047 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8048 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8049 # platforms (ab)use it in PIC code, but their linkers get confused if
8050 # the symbol is explicitly referenced. Since portable code cannot
8051 # rely on this symbol name, it's probably fine to never include it in
8052 # preloaded symbol tables.
8053 extract_expsyms_cmds=
8054 # Just being paranoid about ensuring that cc_basename is set.
8055 for cc_temp in $compiler""; do
8057 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8058 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8063 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8066 cygwin* | mingw* | pw32*)
8067 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8068 # When not using gcc, we currently assume that we are using
8069 # Microsoft Visual C++.
8070 if test "$GCC" != yes; then
8075 # we just hope/assume this is gcc and not c89 (= MSVC++)
8084 if test "$with_gnu_ld" = yes; then
8085 # If archive_cmds runs LD, not CC, wlarc should be empty
8088 # Set some defaults for GNU ld with shared library support. These
8089 # are reset later if shared libraries are not supported. Putting them
8090 # here allows them to be overridden if necessary.
8091 runpath_var=LD_RUN_PATH
8092 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8093 export_dynamic_flag_spec='${wl}--export-dynamic'
8094 # ancient GNU ld didn't support --whole-archive et. al.
8095 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8096 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8098 whole_archive_flag_spec=
8100 supports_anon_versioning=no
8101 case `$LD -v 2>/dev/null` in
8102 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8103 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8104 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8105 *\ 2.11.*) ;; # other 2.11 versions
8106 *) supports_anon_versioning=yes ;;
8109 # See if GNU ld supports shared libraries.
8111 aix3* | aix4* | aix5*)
8112 # On AIX/PPC, the GNU linker is very broken
8113 if test "$host_cpu" != ia64; then
8117 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8118 *** to be unable to reliably create shared libraries on AIX.
8119 *** Therefore, libtool is disabling shared libraries support. If you
8120 *** really care for shared libraries, you may want to modify your PATH
8121 *** so that a non-GNU linker is found, and then restart.
8128 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)'
8129 hardcode_libdir_flag_spec='-L$libdir'
8130 hardcode_minus_L=yes
8132 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8133 # that the semantics of dynamic libraries on AmigaOS, at least up
8134 # to version 4, is to share data among multiple programs linked
8135 # with the same dynamic library. Since this doesn't match the
8136 # behavior of shared libraries on other platforms, we can't use
8142 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8143 allow_undefined_flag=unsupported
8144 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8145 # support --undefined. This deserves some investigation. FIXME
8146 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8152 cygwin* | mingw* | pw32*)
8153 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8154 # as there is no search path for DLLs.
8155 hardcode_libdir_flag_spec='-L$libdir'
8156 allow_undefined_flag=unsupported
8157 always_export_symbols=no
8158 enable_shared_with_static_runtimes=yes
8159 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8161 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8163 # If the export-symbols file already is a .def file (1st line
8164 # is EXPORTS), use it as is; otherwise, prepend...
8165 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8166 cp $export_symbols $output_objdir/$soname.def;
8168 echo EXPORTS > $output_objdir/$soname.def;
8169 cat $export_symbols >> $output_objdir/$soname.def;
8171 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8179 hardcode_shlibpath_var=no
8180 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8181 export_dynamic_flag_spec='${wl}-E'
8182 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8183 # Instead, shared libraries are loaded at an image base (0x10000000 by
8184 # default) and relocated if they conflict, which is a slow very memory
8185 # consuming and fragmenting process. To avoid this, we pick a random,
8186 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8187 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8188 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8189 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'
8192 linux* | k*bsd*-gnu)
8193 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8195 case $cc_basename,$host_cpu in
8196 pgcc*) # Portland Group C compiler
8197 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'
8198 tmp_addflag=' $pic_flag'
8200 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8201 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'
8202 tmp_addflag=' $pic_flag -Mnomain' ;;
8203 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8204 tmp_addflag=' -i_dynamic' ;;
8205 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8206 tmp_addflag=' -i_dynamic -nofor_main' ;;
8207 ifc* | ifort*) # Intel Fortran compiler
8208 tmp_addflag=' -nofor_main' ;;
8210 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8212 if test $supports_anon_versioning = yes; then
8213 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8214 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8215 $echo "local: *; };" >> $output_objdir/$libname.ver~
8216 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8224 netbsd* | netbsdelf*-gnu)
8225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8226 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8235 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8239 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8240 *** create shared libraries on Solaris systems. Therefore, libtool
8241 *** is disabling shared libraries support. We urge you to upgrade GNU
8242 *** binutils to release 2.9.1 or newer. Another option is to modify
8243 *** your PATH or compiler configuration so that the native linker is
8244 *** used, and then restart.
8247 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8249 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8255 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8256 case `$LD -v 2>&1` in
8257 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8261 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8262 *** reliably create shared libraries on SCO systems. Therefore, libtool
8263 *** is disabling shared libraries support. We urge you to upgrade GNU
8264 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8265 *** your PATH or compiler configuration so that the native linker is
8266 *** used, and then restart.
8271 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8272 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8274 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8283 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8286 hardcode_shlibpath_var=no
8290 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8292 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8299 if test "$ld_shlibs" = no; then
8301 hardcode_libdir_flag_spec=
8302 export_dynamic_flag_spec=
8303 whole_archive_flag_spec=
8306 # PORTME fill in a description of your system's linker (not GNU ld)
8309 allow_undefined_flag=unsupported
8310 always_export_symbols=yes
8311 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'
8312 # Note: this linker hardcodes the directories in LIBPATH if there
8313 # are no directories specified by -L.
8314 hardcode_minus_L=yes
8315 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8316 # Neither direct hardcoding nor static linking is supported with a
8318 hardcode_direct=unsupported
8323 if test "$host_cpu" = ia64; then
8324 # On IA64, the linker does run time linking by default, so we don't
8325 # have to do anything special.
8326 aix_use_runtimelinking=no
8327 exp_sym_flag='-Bexport'
8330 # If we're using GNU nm, then we don't want the "-C" option.
8331 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8332 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8333 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'
8335 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'
8337 aix_use_runtimelinking=no
8339 # Test if we are trying to use run time linking or normal
8340 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8341 # need to do runtime linking.
8342 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8343 for ld_flag in $LDFLAGS; do
8344 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8345 aix_use_runtimelinking=yes
8352 exp_sym_flag='-bexport'
8353 no_entry_flag='-bnoentry'
8356 # When large executables or shared objects are built, AIX ld can
8357 # have problems creating the table of contents. If linking a library
8358 # or program results in "error TOC overflow" add -mminimal-toc to
8359 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8360 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8364 hardcode_libdir_separator=':'
8365 link_all_deplibs=yes
8367 if test "$GCC" = yes; then
8368 case $host_os in aix4.[012]|aix4.[012].*)
8369 # We only want to do this on AIX 4.2 and lower, the check
8370 # below for broken collect2 doesn't work under 4.3+
8371 collect2name=`${CC} -print-prog-name=collect2`
8372 if test -f "$collect2name" && \
8373 strings "$collect2name" | grep resolve_lib_name >/dev/null
8375 # We have reworked collect2
8378 # We have old collect2
8379 hardcode_direct=unsupported
8380 # It fails to find uninstalled libraries when the uninstalled
8381 # path is not listed in the libpath. Setting hardcode_minus_L
8382 # to unsupported forces relinking
8383 hardcode_minus_L=yes
8384 hardcode_libdir_flag_spec='-L$libdir'
8385 hardcode_libdir_separator=
8389 shared_flag='-shared'
8390 if test "$aix_use_runtimelinking" = yes; then
8391 shared_flag="$shared_flag "'${wl}-G'
8395 if test "$host_cpu" = ia64; then
8396 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8397 # chokes on -Wl,-G. The following line is correct:
8400 if test "$aix_use_runtimelinking" = yes; then
8401 shared_flag='${wl}-G'
8403 shared_flag='${wl}-bM:SRE'
8408 # It seems that -bexpall does not export symbols beginning with
8409 # underscore (_), so it is better to generate a list of symbols to export.
8410 always_export_symbols=yes
8411 if test "$aix_use_runtimelinking" = yes; then
8412 # Warning - without using the other runtime loading flags (-brtl),
8413 # -berok will link without error, but may produce a broken library.
8414 allow_undefined_flag='-berok'
8415 # Determine the default libpath from the value encoded in an empty executable.
8416 cat >conftest.$ac_ext <<_ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8431 rm -f conftest.$ac_objext conftest$ac_exeext
8432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8433 (eval $ac_link) 2>conftest.er1
8435 grep -v '^ *+' conftest.er1 >conftest.err
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; } &&
8446 { ac_try='test -s conftest$ac_exeext'
8447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; }; then
8453 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8455 # Check for a 64-bit object if we didn't find anything.
8456 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; }
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8463 rm -f conftest.err conftest.$ac_objext \
8464 conftest$ac_exeext conftest.$ac_ext
8465 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8467 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8468 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"
8470 if test "$host_cpu" = ia64; then
8471 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8472 allow_undefined_flag="-z nodefs"
8473 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"
8475 # Determine the default libpath from the value encoded in an empty executable.
8476 cat >conftest.$ac_ext <<_ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h. */
8491 rm -f conftest.$ac_objext conftest$ac_exeext
8492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8493 (eval $ac_link) 2>conftest.er1
8495 grep -v '^ *+' conftest.er1 >conftest.err
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; } &&
8506 { ac_try='test -s conftest$ac_exeext'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8515 # Check for a 64-bit object if we didn't find anything.
8516 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; }
8519 echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8523 rm -f conftest.err conftest.$ac_objext \
8524 conftest$ac_exeext conftest.$ac_ext
8525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8527 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8528 # Warning - without using the other run time loading flags,
8529 # -berok will link without error, but may produce a broken library.
8530 no_undefined_flag=' ${wl}-bernotok'
8531 allow_undefined_flag=' ${wl}-berok'
8532 # Exported symbols can be pulled into shared objects from archives
8533 whole_archive_flag_spec='$convenience'
8534 archive_cmds_need_lc=yes
8535 # This is similar to how AIX traditionally builds its shared libraries.
8536 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'
8542 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)'
8543 hardcode_libdir_flag_spec='-L$libdir'
8544 hardcode_minus_L=yes
8545 # see comment about different semantics on the GNU ld section
8550 export_dynamic_flag_spec=-rdynamic
8553 cygwin* | mingw* | pw32*)
8554 # When not using gcc, we currently assume that we are using
8555 # Microsoft Visual C++.
8556 # hardcode_libdir_flag_spec is actually meaningless, as there is
8557 # no search path for DLLs.
8558 hardcode_libdir_flag_spec=' '
8559 allow_undefined_flag=unsupported
8560 # Tell ltmain to make .lib files, not .a files.
8562 # Tell ltmain to make .dll files, not .so files.
8564 # FIXME: Setting linknames here is a bad hack.
8565 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8566 # The linker will automatically build a .lib file if we build a DLL.
8567 old_archive_From_new_cmds='true'
8568 # FIXME: Should let the user specify the lib program.
8569 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8570 fix_srcfile_path='`cygpath -w "$srcfile"`'
8571 enable_shared_with_static_runtimes=yes
8574 darwin* | rhapsody*)
8576 rhapsody* | darwin1.[012])
8577 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8580 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8581 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8583 case ${MACOSX_DEPLOYMENT_TARGET} in
8585 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8588 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8594 archive_cmds_need_lc=no
8596 hardcode_automatic=yes
8597 hardcode_shlibpath_var=unsupported
8598 whole_archive_flag_spec=''
8599 link_all_deplibs=yes
8600 if test "$GCC" = yes ; then
8601 output_verbose_link_cmd='echo'
8602 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8603 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8604 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8605 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}'
8606 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}'
8608 case $cc_basename in
8610 output_verbose_link_cmd='echo'
8611 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8612 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8613 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8614 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}'
8615 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}'
8625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8626 hardcode_libdir_flag_spec='-L$libdir'
8627 hardcode_shlibpath_var=no
8634 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8635 # support. Future versions do this automatically, but an explicit c++rt0.o
8636 # does not break anything, and helps significantly (at the cost of a little
8639 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8640 hardcode_libdir_flag_spec='-R$libdir'
8642 hardcode_shlibpath_var=no
8645 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8647 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8649 hardcode_minus_L=yes
8650 hardcode_shlibpath_var=no
8653 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8654 freebsd* | dragonfly*)
8655 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8656 hardcode_libdir_flag_spec='-R$libdir'
8658 hardcode_shlibpath_var=no
8662 if test "$GCC" = yes; then
8663 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'
8665 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'
8667 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8668 hardcode_libdir_separator=:
8671 # hardcode_minus_L: Not really in the search PATH,
8672 # but as the default location of the library.
8673 hardcode_minus_L=yes
8674 export_dynamic_flag_spec='${wl}-E'
8678 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8679 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8681 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8683 if test "$with_gnu_ld" = no; then
8684 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8685 hardcode_libdir_separator=:
8688 export_dynamic_flag_spec='${wl}-E'
8690 # hardcode_minus_L: Not really in the search PATH,
8691 # but as the default location of the library.
8692 hardcode_minus_L=yes
8697 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8700 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8703 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8706 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8712 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8715 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8718 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8722 if test "$with_gnu_ld" = no; then
8723 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8724 hardcode_libdir_separator=:
8728 hardcode_libdir_flag_spec_ld='+b $libdir'
8730 hardcode_shlibpath_var=no
8734 export_dynamic_flag_spec='${wl}-E'
8736 # hardcode_minus_L: Not really in the search PATH,
8737 # but as the default location of the library.
8738 hardcode_minus_L=yes
8744 irix5* | irix6* | nonstopux*)
8745 if test "$GCC" = yes; then
8746 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'
8748 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'
8749 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8751 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8752 hardcode_libdir_separator=:
8753 link_all_deplibs=yes
8756 netbsd* | netbsdelf*-gnu)
8757 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8760 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8762 hardcode_libdir_flag_spec='-R$libdir'
8764 hardcode_shlibpath_var=no
8768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8771 hardcode_libdir_separator=:
8772 hardcode_shlibpath_var=no
8777 hardcode_shlibpath_var=no
8778 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8779 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8780 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8781 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8782 export_dynamic_flag_spec='${wl}-E'
8785 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8787 hardcode_libdir_flag_spec='-R$libdir'
8790 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8791 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8798 hardcode_libdir_flag_spec='-L$libdir'
8799 hardcode_minus_L=yes
8800 allow_undefined_flag=unsupported
8801 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'
8802 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8810 allow_undefined_flag=' -expect_unresolved \*'
8811 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'
8813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8814 hardcode_libdir_separator=:
8817 osf4* | osf5*) # as osf3* with the addition of -msym flag
8818 if test "$GCC" = yes; then
8819 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8820 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'
8821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8823 allow_undefined_flag=' -expect_unresolved \*'
8824 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'
8825 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8826 $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'
8828 # Both c and cxx compiler support -rpath directly
8829 hardcode_libdir_flag_spec='-rpath $libdir'
8831 hardcode_libdir_separator=:
8835 no_undefined_flag=' -z text'
8836 if test "$GCC" = yes; then
8838 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8839 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8840 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8843 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8844 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8845 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8847 hardcode_libdir_flag_spec='-R$libdir'
8848 hardcode_shlibpath_var=no
8850 solaris2.[0-5] | solaris2.[0-5].*) ;;
8852 # The compiler driver will combine linker options so we
8853 # cannot just pass the convience library names through
8854 # without $wl, iff we do not link with $LD.
8855 # Luckily, gcc supports the same syntax we need for Sun Studio.
8856 # Supported since Solaris 2.6 (maybe 2.5.1?)
8859 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8861 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' ;;
8864 link_all_deplibs=yes
8868 if test "x$host_vendor" = xsequent; then
8869 # Use $CC to link under sequent, because it throws in some extra .o
8870 # files that make .init and .fini sections work.
8871 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8873 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8875 hardcode_libdir_flag_spec='-L$libdir'
8877 hardcode_minus_L=yes
8878 hardcode_shlibpath_var=no
8882 case $host_vendor in
8884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8885 hardcode_direct=yes # is this really true???
8888 ## LD is ld it makes a PLAMLIB
8889 ## CC just makes a GrossModule.
8890 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8891 reload_cmds='$CC -r -o $output$reload_objs'
8895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8896 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8899 runpath_var='LD_RUN_PATH'
8900 hardcode_shlibpath_var=no
8904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8905 hardcode_shlibpath_var=no
8906 export_dynamic_flag_spec='-Bexport'
8910 if test -d /usr/nec; then
8911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8912 hardcode_shlibpath_var=no
8913 runpath_var=LD_RUN_PATH
8914 hardcode_runpath_var=yes
8919 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8920 no_undefined_flag='${wl}-z,text'
8921 archive_cmds_need_lc=no
8922 hardcode_shlibpath_var=no
8923 runpath_var='LD_RUN_PATH'
8925 if test "$GCC" = yes; then
8926 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8927 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8929 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8930 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8934 sysv5* | sco3.2v5* | sco5v6*)
8935 # Note: We can NOT use -z defs as we might desire, because we do not
8936 # link with -lc, and that would cause any symbols used from libc to
8937 # always be unresolved, which means just about no library would
8938 # ever link correctly. If we're not using GNU ld we use -z text
8939 # though, which does catch some bad symbols but isn't as heavy-handed
8941 no_undefined_flag='${wl}-z,text'
8942 allow_undefined_flag='${wl}-z,nodefs'
8943 archive_cmds_need_lc=no
8944 hardcode_shlibpath_var=no
8945 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8946 hardcode_libdir_separator=':'
8947 link_all_deplibs=yes
8948 export_dynamic_flag_spec='${wl}-Bexport'
8949 runpath_var='LD_RUN_PATH'
8951 if test "$GCC" = yes; then
8952 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8953 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8955 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8956 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962 hardcode_libdir_flag_spec='-L$libdir'
8963 hardcode_shlibpath_var=no
8972 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8973 echo "${ECHO_T}$ld_shlibs" >&6
8974 test "$ld_shlibs" = no && can_build_shared=no
8977 # Do we need to explicitly link libc?
8979 case "x$archive_cmds_need_lc" in
8981 # Assume -lc should be added
8982 archive_cmds_need_lc=yes
8984 if test "$enable_shared" = yes && test "$GCC" = yes; then
8985 case $archive_cmds in
8987 # FIXME: we may have to deal with multi-command sequences.
8990 # Test whether the compiler implicitly links with -lc since on some
8991 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8992 # to ld, don't add -lc before -lgcc.
8993 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8994 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8996 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999 (eval $ac_compile) 2>&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } 2>conftest.err; then
9005 libobjs=conftest.$ac_objext
9007 wl=$lt_prog_compiler_wl
9008 pic_flag=$lt_prog_compiler_pic
9014 lt_save_allow_undefined_flag=$allow_undefined_flag
9015 allow_undefined_flag=
9016 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9017 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }
9022 archive_cmds_need_lc=no
9024 archive_cmds_need_lc=yes
9026 allow_undefined_flag=$lt_save_allow_undefined_flag
9028 cat conftest.err 1>&5
9031 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9032 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9039 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9040 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9042 libname_spec='lib$name'
9050 shlibpath_overrides_runpath=unknown
9052 dynamic_linker="$host_os ld.so"
9053 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9054 if test "$GCC" = yes; then
9055 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9056 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9057 # if the path contains ";" then we assume it to be the separator
9058 # otherwise default to the standard path separator (i.e. ":") - it is
9059 # assumed that no part of a normal pathname contains ";" but that should
9060 # okay in the real world where ";" in dirpaths is itself problematic.
9061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9063 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9066 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9068 need_lib_prefix=unknown
9069 hardcode_into_libs=no
9071 # when you set need_version to no, make sure it does not cause -set_version
9072 # flags to be left without arguments
9073 need_version=unknown
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9079 shlibpath_var=LIBPATH
9081 # AIX 3 has no versioning support, so we append a major version to the name.
9082 soname_spec='${libname}${release}${shared_ext}$major'
9089 hardcode_into_libs=yes
9090 if test "$host_cpu" = ia64; then
9091 # AIX 5 supports IA64
9092 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9093 shlibpath_var=LD_LIBRARY_PATH
9095 # With GCC up to 2.95.x, collect2 would create an import file
9096 # for dependence libraries. The import file would start with
9097 # the line `#! .'. This would cause the generated library to
9098 # depend on `.', always an invalid library. This was fixed in
9099 # development snapshots of GCC prior to 3.0.
9101 aix4 | aix4.[01] | aix4.[01].*)
9102 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9104 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9111 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9112 # soname into executable. Probably we can add versioning support to
9113 # collect2, so additional links can be useful in future.
9114 if test "$aix_use_runtimelinking" = yes; then
9115 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9116 # instead of lib<name>.a to let people know that these are not
9117 # typical AIX shared libraries.
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120 # We preserve .a as extension for shared libraries through AIX4.2
9121 # and later when we are not doing run time linking.
9122 library_names_spec='${libname}${release}.a $libname.a'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9125 shlibpath_var=LIBPATH
9130 library_names_spec='$libname.ixlibrary $libname.a'
9131 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9132 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'
9136 library_names_spec='${libname}${shared_ext}'
9137 dynamic_linker="$host_os ld.so"
9138 shlibpath_var=LIBRARY_PATH
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 soname_spec='${libname}${release}${shared_ext}$major'
9146 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9147 shlibpath_var=LD_LIBRARY_PATH
9148 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9149 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9150 # the default ld.so.conf also contains /usr/contrib/lib and
9151 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9152 # libtool to hard-code these into programs
9155 cygwin* | mingw* | pw32*)
9156 version_type=windows
9161 case $GCC,$host_os in
9162 yes,cygwin* | yes,mingw* | yes,pw32*)
9163 library_names_spec='$libname.dll.a'
9164 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9165 postinstall_cmds='base_file=`basename \${file}`~
9166 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9167 dldir=$destdir/`dirname \$dlpath`~
9168 test -d \$dldir || mkdir -p \$dldir~
9169 $install_prog $dir/$dlname \$dldir/$dlname~
9170 chmod a+x \$dldir/$dlname'
9171 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9172 dlpath=$dir/\$dldll~
9174 shlibpath_overrides_runpath=yes
9178 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9179 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9180 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9183 # MinGW DLLs use traditional 'lib' prefix
9184 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9185 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9186 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9187 # It is most probably a Windows format PATH printed by
9188 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9189 # path with ; separators, and with drive letters. We can handle the
9190 # drive letters (cygwin fileutils understands them), so leave them,
9191 # especially as we might pass files found there to a mingw objdump,
9192 # which wouldn't understand a cygwinified path. Ahh.
9193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9195 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9199 # pw32 DLLs use 'pw' prefix rather than 'lib'
9200 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9206 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9209 dynamic_linker='Win32 ld.exe'
9210 # FIXME: first we should search . and the directory the executable is in
9214 darwin* | rhapsody*)
9215 dynamic_linker="$host_os dyld"
9219 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9220 soname_spec='${libname}${release}${major}$shared_ext'
9221 shlibpath_overrides_runpath=yes
9222 shlibpath_var=DYLD_LIBRARY_PATH
9223 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9224 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9225 if test "$GCC" = yes; then
9226 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"`
9228 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9230 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9238 soname_spec='${libname}${release}${shared_ext}$major'
9239 shlibpath_var=LD_LIBRARY_PATH
9246 freebsd* | dragonfly*)
9247 # DragonFly does not have aout. When/if they implement a new
9248 # versioning mechanism, adjust this.
9249 if test -x /usr/bin/objformat; then
9250 objformat=`/usr/bin/objformat`
9253 freebsd[123]*) objformat=aout ;;
9257 version_type=freebsd-$objformat
9258 case $version_type in
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9269 shlibpath_var=LD_LIBRARY_PATH
9272 shlibpath_overrides_runpath=yes
9274 freebsd3.[01]* | freebsdelf3.[01]*)
9275 shlibpath_overrides_runpath=yes
9276 hardcode_into_libs=yes
9278 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9279 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9280 shlibpath_overrides_runpath=no
9281 hardcode_into_libs=yes
9283 freebsd*) # from 4.6 on
9284 shlibpath_overrides_runpath=yes
9285 hardcode_into_libs=yes
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9295 soname_spec='${libname}${release}${shared_ext}$major'
9296 shlibpath_var=LD_LIBRARY_PATH
9297 hardcode_into_libs=yes
9300 hpux9* | hpux10* | hpux11*)
9301 # Give a soname corresponding to the major version so that dld.sl refuses to
9302 # link against other versions.
9309 hardcode_into_libs=yes
9310 dynamic_linker="$host_os dld.so"
9311 shlibpath_var=LD_LIBRARY_PATH
9312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 if test "X$HPUX_IA64_MODE" = X32; then
9316 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9318 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9324 hardcode_into_libs=yes
9325 dynamic_linker="$host_os dld.sl"
9326 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9329 soname_spec='${libname}${release}${shared_ext}$major'
9330 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9335 dynamic_linker="$host_os dld.sl"
9336 shlibpath_var=SHLIB_PATH
9337 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
9342 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9343 postinstall_cmds='chmod 555 $lib'
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9353 shlibpath_var=LD_LIBRARY_PATH
9354 shlibpath_overrides_runpath=no
9355 hardcode_into_libs=yes
9358 irix5* | irix6* | nonstopux*)
9360 nonstopux*) version_type=nonstopux ;;
9362 if test "$lt_cv_prog_gnu_ld" = yes; then
9370 soname_spec='${libname}${release}${shared_ext}$major'
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9373 irix5* | nonstopux*)
9377 case $LD in # libtool.m4 will add one of these switches to LD
9378 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9379 libsuff= shlibsuff= libmagic=32-bit;;
9380 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9381 libsuff=32 shlibsuff=N32 libmagic=N32;;
9382 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9383 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9384 *) libsuff= shlibsuff= libmagic=never-match;;
9388 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9389 shlibpath_overrides_runpath=no
9390 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9391 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9392 hardcode_into_libs=yes
9395 # No shared lib support for Linux oldld, aout, or coff.
9396 linux*oldld* | linux*aout* | linux*coff*)
9400 # This must be Linux ELF.
9401 linux* | k*bsd*-gnu)
9405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9406 soname_spec='${libname}${release}${shared_ext}$major'
9407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9408 shlibpath_var=LD_LIBRARY_PATH
9409 shlibpath_overrides_runpath=no
9410 # This implies no fast_install, which is unacceptable.
9411 # Some rework will be needed to allow for fast_install
9412 # before this can be enabled.
9413 hardcode_into_libs=yes
9415 # Append ld.so.conf contents to the search path
9416 if test -f /etc/ld.so.conf; then
9417 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' ' '`
9418 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9421 # We used to test for /lib/ld.so.1 and disable shared libraries on
9422 # powerpc, because MkLinux only supported shared libraries with the
9423 # GNU dynamic linker. Since this was broken with cross compilers,
9424 # most powerpc-linux boxes support dynamic linking these days and
9425 # people can always --disable-shared, the test was removed, and we
9426 # assume the GNU/Linux dynamic linker is in use.
9427 dynamic_linker='GNU/Linux ld.so'
9434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9435 soname_spec='${libname}${release}${shared_ext}$major'
9436 shlibpath_var=LD_LIBRARY_PATH
9437 shlibpath_overrides_runpath=no
9438 hardcode_into_libs=yes
9439 dynamic_linker='NetBSD ld.elf_so'
9446 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9449 dynamic_linker='NetBSD (a.out) ld.so'
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9452 soname_spec='${libname}${release}${shared_ext}$major'
9453 dynamic_linker='NetBSD ld.elf_so'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 shlibpath_overrides_runpath=yes
9457 hardcode_into_libs=yes
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463 shlibpath_var=LD_LIBRARY_PATH
9464 shlibpath_overrides_runpath=yes
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472 soname_spec='${libname}${release}${shared_ext}$major'
9473 shlibpath_var=LD_LIBRARY_PATH
9474 shlibpath_overrides_runpath=yes
9479 sys_lib_dlsearch_path_spec="/usr/lib"
9481 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9483 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9484 *) need_version=no ;;
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9488 shlibpath_var=LD_LIBRARY_PATH
9489 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9491 openbsd2.[89] | openbsd2.[89].*)
9492 shlibpath_overrides_runpath=no
9495 shlibpath_overrides_runpath=yes
9499 shlibpath_overrides_runpath=yes
9504 libname_spec='$name'
9507 library_names_spec='$libname${shared_ext} $libname.a'
9508 dynamic_linker='OS/2 ld.exe'
9509 shlibpath_var=LIBPATH
9512 osf3* | osf4* | osf5*)
9516 soname_spec='${libname}${release}${shared_ext}$major'
9517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9518 shlibpath_var=LD_LIBRARY_PATH
9519 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9520 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528 soname_spec='${libname}${release}${shared_ext}$major'
9529 shlibpath_var=LD_LIBRARY_PATH
9530 shlibpath_overrides_runpath=yes
9531 hardcode_into_libs=yes
9532 # ldd complains unless libraries are executable
9533 postinstall_cmds='chmod +x $lib'
9538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9539 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9540 shlibpath_var=LD_LIBRARY_PATH
9541 shlibpath_overrides_runpath=yes
9542 if test "$with_gnu_ld" = yes; then
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551 soname_spec='${libname}${release}${shared_ext}$major'
9552 shlibpath_var=LD_LIBRARY_PATH
9553 case $host_vendor in
9555 shlibpath_overrides_runpath=no
9557 export_dynamic_flag_spec='${wl}-Blargedynsym'
9558 runpath_var=LD_RUN_PATH
9566 shlibpath_overrides_runpath=no
9567 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9573 if test -d /usr/nec ;then
9575 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9576 soname_spec='$libname${shared_ext}.$major'
9577 shlibpath_var=LD_LIBRARY_PATH
9581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9582 version_type=freebsd-elf
9585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9586 soname_spec='${libname}${release}${shared_ext}$major'
9587 shlibpath_var=LD_LIBRARY_PATH
9588 hardcode_into_libs=yes
9589 if test "$with_gnu_ld" = yes; then
9590 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9591 shlibpath_overrides_runpath=no
9593 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9594 shlibpath_overrides_runpath=yes
9597 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9601 sys_lib_dlsearch_path_spec='/usr/lib'
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607 soname_spec='${libname}${release}${shared_ext}$major'
9608 shlibpath_var=LD_LIBRARY_PATH
9615 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9616 echo "${ECHO_T}$dynamic_linker" >&6
9617 test "$dynamic_linker" = no && can_build_shared=no
9619 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9620 if test "$GCC" = yes; then
9621 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9624 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9625 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9627 if test -n "$hardcode_libdir_flag_spec" || \
9628 test -n "$runpath_var" || \
9629 test "X$hardcode_automatic" = "Xyes" ; then
9631 # We can hardcode non-existant directories.
9632 if test "$hardcode_direct" != no &&
9633 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9634 # have to relink, otherwise we might link with an installed library
9635 # when we should be linking with a yet-to-be-installed one
9636 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9637 test "$hardcode_minus_L" != no; then
9638 # Linking always hardcodes the temporary library directory.
9639 hardcode_action=relink
9641 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9642 hardcode_action=immediate
9645 # We cannot hardcode anything, or else we can only hardcode existing
9647 hardcode_action=unsupported
9649 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9650 echo "${ECHO_T}$hardcode_action" >&6
9652 if test "$hardcode_action" = relink; then
9653 # Fast installation is not supported
9654 enable_fast_install=no
9655 elif test "$shlibpath_overrides_runpath" = yes ||
9656 test "$enable_shared" = no; then
9657 # Fast installation is not necessary
9658 enable_fast_install=needless
9663 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9664 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9665 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9666 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9667 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9668 echo "$as_me:$LINENO: result: yes" >&5
9669 echo "${ECHO_T}yes" >&6
9671 # FIXME - insert some real tests, host_os isn't really good enough
9674 if test -n "$STRIP" ; then
9675 striplib="$STRIP -x"
9676 echo "$as_me:$LINENO: result: yes" >&5
9677 echo "${ECHO_T}yes" >&6
9679 echo "$as_me:$LINENO: result: no" >&5
9680 echo "${ECHO_T}no" >&6
9684 echo "$as_me:$LINENO: result: no" >&5
9685 echo "${ECHO_T}no" >&6
9690 if test "x$enable_dlopen" != xyes; then
9691 enable_dlopen=unknown
9692 enable_dlopen_self=unknown
9693 enable_dlopen_self_static=unknown
9700 lt_cv_dlopen="load_add_on"
9702 lt_cv_dlopen_self=yes
9706 lt_cv_dlopen="LoadLibrary"
9711 lt_cv_dlopen="dlopen"
9716 # if libdl is installed we need to link against it
9717 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9718 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 ac_check_lib_save_LIBS=$LIBS
9724 cat >conftest.$ac_ext <<_ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9731 /* Override any gcc2 internal prototype to avoid an error. */
9735 /* We use char because int might match the return type of a gcc2
9736 builtin and then its argument prototype would still apply. */
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9748 (eval $ac_link) 2>conftest.er1
9750 grep -v '^ *+' conftest.er1 >conftest.err
9752 cat conftest.err >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } &&
9755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try='test -s conftest$ac_exeext'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 ac_cv_lib_dl_dlopen=yes
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 ac_cv_lib_dl_dlopen=no
9774 rm -f conftest.err conftest.$ac_objext \
9775 conftest$ac_exeext conftest.$ac_ext
9776 LIBS=$ac_check_lib_save_LIBS
9778 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9779 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9780 if test $ac_cv_lib_dl_dlopen = yes; then
9781 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9786 lt_cv_dlopen_self=yes
9793 echo "$as_me:$LINENO: checking for shl_load" >&5
9794 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9795 if test "${ac_cv_func_shl_load+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 cat >conftest.$ac_ext <<_ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9806 #define shl_load innocuous_shl_load
9808 /* System header to define __stub macros and hopefully few prototypes,
9809 which can conflict with char shl_load (); below.
9810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9811 <limits.h> exists even on freestanding compilers. */
9814 # include <limits.h>
9816 # include <assert.h>
9821 /* Override any gcc2 internal prototype to avoid an error. */
9826 /* We use char because int might match the return type of a gcc2
9827 builtin and then its argument prototype would still apply. */
9829 /* The GNU C library defines this for functions which it implements
9830 to always fail with ENOSYS. Some functions are actually named
9831 something starting with __ and the normal name is an alias. */
9832 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9835 char (*f) () = shl_load;
9844 return f != shl_load;
9849 rm -f conftest.$ac_objext conftest$ac_exeext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851 (eval $ac_link) 2>conftest.er1
9853 grep -v '^ *+' conftest.er1 >conftest.err
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; } &&
9864 { ac_try='test -s conftest$ac_exeext'
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; }; then
9870 ac_cv_func_shl_load=yes
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 ac_cv_func_shl_load=no
9877 rm -f conftest.err conftest.$ac_objext \
9878 conftest$ac_exeext conftest.$ac_ext
9880 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9881 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9882 if test $ac_cv_func_shl_load = yes; then
9883 lt_cv_dlopen="shl_load"
9885 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9886 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9887 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 ac_check_lib_save_LIBS=$LIBS
9892 cat >conftest.$ac_ext <<_ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9899 /* Override any gcc2 internal prototype to avoid an error. */
9903 /* We use char because int might match the return type of a gcc2
9904 builtin and then its argument prototype would still apply. */
9914 rm -f conftest.$ac_objext conftest$ac_exeext
9915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9916 (eval $ac_link) 2>conftest.er1
9918 grep -v '^ *+' conftest.er1 >conftest.err
9920 cat conftest.err >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); } &&
9923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; } &&
9929 { ac_try='test -s conftest$ac_exeext'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 ac_cv_lib_dld_shl_load=yes
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9940 ac_cv_lib_dld_shl_load=no
9942 rm -f conftest.err conftest.$ac_objext \
9943 conftest$ac_exeext conftest.$ac_ext
9944 LIBS=$ac_check_lib_save_LIBS
9946 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9947 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9948 if test $ac_cv_lib_dld_shl_load = yes; then
9949 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9951 echo "$as_me:$LINENO: checking for dlopen" >&5
9952 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9953 if test "${ac_cv_func_dlopen+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 cat >conftest.$ac_ext <<_ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h. */
9962 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9964 #define dlopen innocuous_dlopen
9966 /* System header to define __stub macros and hopefully few prototypes,
9967 which can conflict with char dlopen (); below.
9968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9969 <limits.h> exists even on freestanding compilers. */
9972 # include <limits.h>
9974 # include <assert.h>
9979 /* Override any gcc2 internal prototype to avoid an error. */
9984 /* We use char because int might match the return type of a gcc2
9985 builtin and then its argument prototype would still apply. */
9987 /* The GNU C library defines this for functions which it implements
9988 to always fail with ENOSYS. Some functions are actually named
9989 something starting with __ and the normal name is an alias. */
9990 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9993 char (*f) () = dlopen;
10002 return f != dlopen;
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009 (eval $ac_link) 2>conftest.er1
10011 grep -v '^ *+' conftest.er1 >conftest.err
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } &&
10016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018 (eval $ac_try) 2>&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; } &&
10022 { ac_try='test -s conftest$ac_exeext'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10028 ac_cv_func_dlopen=yes
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10033 ac_cv_func_dlopen=no
10035 rm -f conftest.err conftest.$ac_objext \
10036 conftest$ac_exeext conftest.$ac_ext
10038 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10039 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10040 if test $ac_cv_func_dlopen = yes; then
10041 lt_cv_dlopen="dlopen"
10043 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10044 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10045 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 ac_check_lib_save_LIBS=$LIBS
10050 cat >conftest.$ac_ext <<_ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10057 /* Override any gcc2 internal prototype to avoid an error. */
10061 /* We use char because int might match the return type of a gcc2
10062 builtin and then its argument prototype would still apply. */
10072 rm -f conftest.$ac_objext conftest$ac_exeext
10073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10074 (eval $ac_link) 2>conftest.er1
10076 grep -v '^ *+' conftest.er1 >conftest.err
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } &&
10081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; } &&
10087 { ac_try='test -s conftest$ac_exeext'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; }; then
10093 ac_cv_lib_dl_dlopen=yes
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10098 ac_cv_lib_dl_dlopen=no
10100 rm -f conftest.err conftest.$ac_objext \
10101 conftest$ac_exeext conftest.$ac_ext
10102 LIBS=$ac_check_lib_save_LIBS
10104 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10105 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10106 if test $ac_cv_lib_dl_dlopen = yes; then
10107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10109 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10110 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10111 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 ac_check_lib_save_LIBS=$LIBS
10115 LIBS="-lsvld $LIBS"
10116 cat >conftest.$ac_ext <<_ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10123 /* Override any gcc2 internal prototype to avoid an error. */
10127 /* We use char because int might match the return type of a gcc2
10128 builtin and then its argument prototype would still apply. */
10138 rm -f conftest.$ac_objext conftest$ac_exeext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10140 (eval $ac_link) 2>conftest.er1
10142 grep -v '^ *+' conftest.er1 >conftest.err
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; } &&
10153 { ac_try='test -s conftest$ac_exeext'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; }; then
10159 ac_cv_lib_svld_dlopen=yes
10161 echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10164 ac_cv_lib_svld_dlopen=no
10166 rm -f conftest.err conftest.$ac_objext \
10167 conftest$ac_exeext conftest.$ac_ext
10168 LIBS=$ac_check_lib_save_LIBS
10170 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10171 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10172 if test $ac_cv_lib_svld_dlopen = yes; then
10173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10175 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10176 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10177 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 ac_check_lib_save_LIBS=$LIBS
10182 cat >conftest.$ac_ext <<_ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10189 /* Override any gcc2 internal prototype to avoid an error. */
10193 /* We use char because int might match the return type of a gcc2
10194 builtin and then its argument prototype would still apply. */
10204 rm -f conftest.$ac_objext conftest$ac_exeext
10205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10206 (eval $ac_link) 2>conftest.er1
10208 grep -v '^ *+' conftest.er1 >conftest.err
10210 cat conftest.err >&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } &&
10213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215 (eval $ac_try) 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; } &&
10219 { ac_try='test -s conftest$ac_exeext'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
10225 ac_cv_lib_dld_dld_link=yes
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10230 ac_cv_lib_dld_dld_link=no
10232 rm -f conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10234 LIBS=$ac_check_lib_save_LIBS
10236 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10237 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10238 if test $ac_cv_lib_dld_dld_link = yes; then
10239 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10260 if test "x$lt_cv_dlopen" != xno; then
10266 case $lt_cv_dlopen in
10268 save_CPPFLAGS="$CPPFLAGS"
10269 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10271 save_LDFLAGS="$LDFLAGS"
10272 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10275 LIBS="$lt_cv_dlopen_libs $LIBS"
10277 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10278 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10279 if test "${lt_cv_dlopen_self+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 if test "$cross_compiling" = yes; then :
10283 lt_cv_dlopen_self=cross
10285 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10286 lt_status=$lt_dlunknown
10287 cat > conftest.$ac_ext <<EOF
10288 #line 10288 "configure"
10289 #include "confdefs.h"
10298 # define LT_DLGLOBAL RTLD_GLOBAL
10301 # define LT_DLGLOBAL DL_GLOBAL
10303 # define LT_DLGLOBAL 0
10307 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10308 find out it does not work in some platform. */
10309 #ifndef LT_DLLAZY_OR_NOW
10311 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10314 # define LT_DLLAZY_OR_NOW DL_LAZY
10317 # define LT_DLLAZY_OR_NOW RTLD_NOW
10320 # define LT_DLLAZY_OR_NOW DL_NOW
10322 # define LT_DLLAZY_OR_NOW 0
10330 extern "C" void exit (int);
10333 void fnord() { int i=42;}
10336 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10337 int status = $lt_dlunknown;
10341 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10342 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10343 /* dlclose (self); */
10351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10352 (eval $ac_link) 2>&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10356 (./conftest; exit; ) >&5 2>/dev/null
10358 case x$lt_status in
10359 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10360 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10361 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10364 # compilation failed
10365 lt_cv_dlopen_self=no
10372 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10373 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10375 if test "x$lt_cv_dlopen_self" = xyes; then
10376 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10377 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10378 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10379 if test "${lt_cv_dlopen_self_static+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 if test "$cross_compiling" = yes; then :
10383 lt_cv_dlopen_self_static=cross
10385 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10386 lt_status=$lt_dlunknown
10387 cat > conftest.$ac_ext <<EOF
10388 #line 10388 "configure"
10389 #include "confdefs.h"
10398 # define LT_DLGLOBAL RTLD_GLOBAL
10401 # define LT_DLGLOBAL DL_GLOBAL
10403 # define LT_DLGLOBAL 0
10407 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10408 find out it does not work in some platform. */
10409 #ifndef LT_DLLAZY_OR_NOW
10411 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10414 # define LT_DLLAZY_OR_NOW DL_LAZY
10417 # define LT_DLLAZY_OR_NOW RTLD_NOW
10420 # define LT_DLLAZY_OR_NOW DL_NOW
10422 # define LT_DLLAZY_OR_NOW 0
10430 extern "C" void exit (int);
10433 void fnord() { int i=42;}
10436 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10437 int status = $lt_dlunknown;
10441 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10442 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10443 /* dlclose (self); */
10451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10452 (eval $ac_link) 2>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10456 (./conftest; exit; ) >&5 2>/dev/null
10458 case x$lt_status in
10459 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10460 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10461 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10464 # compilation failed
10465 lt_cv_dlopen_self_static=no
10472 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10473 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10476 CPPFLAGS="$save_CPPFLAGS"
10477 LDFLAGS="$save_LDFLAGS"
10482 case $lt_cv_dlopen_self in
10483 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10484 *) enable_dlopen_self=unknown ;;
10487 case $lt_cv_dlopen_self_static in
10488 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10489 *) enable_dlopen_self_static=unknown ;;
10494 # Report which library types will actually be built
10495 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10496 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10497 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10498 echo "${ECHO_T}$can_build_shared" >&6
10500 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10501 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10502 test "$can_build_shared" = "no" && enable_shared=no
10504 # On AIX, shared libraries and static libraries use the same namespace, and
10505 # are all built from PIC.
10508 test "$enable_shared" = yes && enable_static=no
10509 if test -n "$RANLIB"; then
10510 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10511 postinstall_cmds='$RANLIB $lib'
10516 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10517 test "$enable_shared" = yes && enable_static=no
10521 echo "$as_me:$LINENO: result: $enable_shared" >&5
10522 echo "${ECHO_T}$enable_shared" >&6
10524 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10525 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10526 # Make sure either enable_shared or enable_static is yes.
10527 test "$enable_shared" = yes || enable_static=yes
10528 echo "$as_me:$LINENO: result: $enable_static" >&5
10529 echo "${ECHO_T}$enable_static" >&6
10531 # The else clause should only fire when bootstrapping the
10532 # libtool distribution, otherwise you forgot to ship ltmain.sh
10533 # with your package, and you will get complaints that there are
10534 # no rules to generate ltmain.sh.
10535 if test -f "$ltmain"; then
10536 # See if we are running on zsh, and set the options which allow our commands through
10537 # without removal of \ escapes.
10538 if test -n "${ZSH_VERSION+set}" ; then
10539 setopt NO_GLOB_SUBST
10541 # Now quote all the things that may contain metacharacters while being
10542 # careful not to overquote the AC_SUBSTed values. We take copies of the
10543 # variables and quote the copies for generation of the libtool script.
10544 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10546 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10547 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10548 deplibs_check_method reload_flag reload_cmds need_locks \
10549 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10550 lt_cv_sys_global_symbol_to_c_name_address \
10551 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10552 old_postinstall_cmds old_postuninstall_cmds \
10556 lt_prog_compiler_wl \
10557 lt_prog_compiler_pic \
10558 lt_prog_compiler_static \
10559 lt_prog_compiler_no_builtin_flag \
10560 export_dynamic_flag_spec \
10561 thread_safe_flag_spec \
10562 whole_archive_flag_spec \
10563 enable_shared_with_static_runtimes \
10565 old_archive_from_new_cmds \
10570 compiler_lib_search_path \
10572 archive_expsym_cmds \
10574 postuninstall_cmds \
10575 old_archive_from_expsyms_cmds \
10576 allow_undefined_flag \
10577 no_undefined_flag \
10578 export_symbols_cmds \
10579 hardcode_libdir_flag_spec \
10580 hardcode_libdir_flag_spec_ld \
10581 hardcode_libdir_separator \
10582 hardcode_automatic \
10584 module_expsym_cmds \
10585 lt_cv_prog_compiler_c_o \
10587 include_expsyms; do
10590 old_archive_cmds | \
10591 old_archive_from_new_cmds | \
10593 archive_expsym_cmds | \
10595 module_expsym_cmds | \
10596 old_archive_from_expsyms_cmds | \
10597 export_symbols_cmds | \
10598 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10599 postinstall_cmds | postuninstall_cmds | \
10600 old_postinstall_cmds | old_postuninstall_cmds | \
10601 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10602 # Double-quote double-evaled strings.
10603 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10606 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10612 *'\$0 --fallback-echo"')
10613 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10617 cfgfile="${ofile}T"
10618 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10620 { echo "$as_me:$LINENO: creating $ofile" >&5
10621 echo "$as_me: creating $ofile" >&6;}
10623 cat <<__EOF__ >> "$cfgfile"
10626 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10627 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10628 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10630 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10631 # Free Software Foundation, Inc.
10633 # This file is part of GNU Libtool:
10634 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10636 # This program is free software; you can redistribute it and/or modify
10637 # it under the terms of the GNU General Public License as published by
10638 # the Free Software Foundation; either version 2 of the License, or
10639 # (at your option) any later version.
10641 # This program is distributed in the hope that it will be useful, but
10642 # WITHOUT ANY WARRANTY; without even the implied warranty of
10643 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10644 # General Public License for more details.
10646 # You should have received a copy of the GNU General Public License
10647 # along with this program; if not, write to the Free Software
10648 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10650 # As a special exception to the GNU General Public License, if you
10651 # distribute this file as part of a program that contains a
10652 # configuration script generated by Autoconf, you may include it under
10653 # the same distribution terms that you use for the rest of that program.
10655 # A sed program that does not truncate output.
10658 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10659 Xsed="$SED -e 1s/^X//"
10661 # The HP-UX ksh and POSIX shell print the target directory to stdout
10662 # if CDPATH is set.
10663 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10665 # The names of the tagged configurations supported by this script.
10668 # ### BEGIN LIBTOOL CONFIG
10670 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10672 # Shell to use when invoking shell scripts.
10675 # Whether or not to build shared libraries.
10676 build_libtool_libs=$enable_shared
10678 # Whether or not to build static libraries.
10679 build_old_libs=$enable_static
10681 # Whether or not to add -lc for building shared libraries.
10682 build_libtool_need_lc=$archive_cmds_need_lc
10684 # Whether or not to disallow shared libs when runtime libs are static
10685 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10687 # Whether or not to optimize for fast installation.
10688 fast_install=$enable_fast_install
10691 host_alias=$host_alias
10695 # The build system.
10696 build_alias=$build_alias
10700 # An echo program that does not interpret backslashes.
10705 AR_FLAGS=$lt_AR_FLAGS
10710 # LTCC compiler flags.
10711 LTCFLAGS=$lt_LTCFLAGS
10713 # A language-specific compiler.
10716 # Is the compiler the GNU C compiler?
10722 # The linker used to build libraries.
10725 # Whether we need hard or soft links.
10728 # A BSD-compatible nm program.
10731 # A symbol stripping program
10734 # Used to examine libraries when file_magic_cmd begins "file"
10735 MAGIC_CMD=$MAGIC_CMD
10737 # Used on cygwin: DLL creation program.
10740 # Used on cygwin: object dumper.
10743 # Used on cygwin: assembler.
10746 # The name of the directory that contains temporary libtool files.
10749 # How to create reloadable object files.
10750 reload_flag=$lt_reload_flag
10751 reload_cmds=$lt_reload_cmds
10753 # How to pass a linker flag through the compiler.
10754 wl=$lt_lt_prog_compiler_wl
10756 # Object file suffix (normally "o").
10757 objext="$ac_objext"
10759 # Old archive suffix (normally "a").
10762 # Shared library suffix (normally ".so").
10763 shrext_cmds='$shrext_cmds'
10765 # Executable file suffix (normally "").
10768 # Additional compiler flags for building library objects.
10769 pic_flag=$lt_lt_prog_compiler_pic
10772 # What is the maximum length of a command?
10773 max_cmd_len=$lt_cv_sys_max_cmd_len
10775 # Does compiler simultaneously support -c and -o options?
10776 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10778 # Must we lock files when doing compilation?
10779 need_locks=$lt_need_locks
10781 # Do we need the lib prefix for modules?
10782 need_lib_prefix=$need_lib_prefix
10784 # Do we need a version for libraries?
10785 need_version=$need_version
10787 # Whether dlopen is supported.
10788 dlopen_support=$enable_dlopen
10790 # Whether dlopen of programs is supported.
10791 dlopen_self=$enable_dlopen_self
10793 # Whether dlopen of statically linked programs is supported.
10794 dlopen_self_static=$enable_dlopen_self_static
10796 # Compiler flag to prevent dynamic linking.
10797 link_static_flag=$lt_lt_prog_compiler_static
10799 # Compiler flag to turn off builtin functions.
10800 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10802 # Compiler flag to allow reflexive dlopens.
10803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10805 # Compiler flag to generate shared objects directly from archives.
10806 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10808 # Compiler flag to generate thread-safe objects.
10809 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10811 # Library versioning type.
10812 version_type=$version_type
10814 # Format of library name prefix.
10815 libname_spec=$lt_libname_spec
10817 # List of archive names. First name is the real one, the rest are links.
10818 # The last name is the one that the linker finds with -lNAME.
10819 library_names_spec=$lt_library_names_spec
10821 # The coded name of the library, if different from the real name.
10822 soname_spec=$lt_soname_spec
10824 # Commands used to build and install an old-style archive.
10826 old_archive_cmds=$lt_old_archive_cmds
10827 old_postinstall_cmds=$lt_old_postinstall_cmds
10828 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10830 # Create an old-style archive from a shared archive.
10831 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10833 # Create a temporary old-style archive to link instead of a shared archive.
10834 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10836 # Commands used to build and install a shared archive.
10837 archive_cmds=$lt_archive_cmds
10838 archive_expsym_cmds=$lt_archive_expsym_cmds
10839 postinstall_cmds=$lt_postinstall_cmds
10840 postuninstall_cmds=$lt_postuninstall_cmds
10842 # Commands used to build a loadable module (assumed same as above if empty)
10843 module_cmds=$lt_module_cmds
10844 module_expsym_cmds=$lt_module_expsym_cmds
10846 # Commands to strip libraries.
10847 old_striplib=$lt_old_striplib
10848 striplib=$lt_striplib
10850 # Dependencies to place before the objects being linked to create a
10852 predep_objects=$lt_predep_objects
10854 # Dependencies to place after the objects being linked to create a
10856 postdep_objects=$lt_postdep_objects
10858 # Dependencies to place before the objects being linked to create a
10860 predeps=$lt_predeps
10862 # Dependencies to place after the objects being linked to create a
10864 postdeps=$lt_postdeps
10866 # The library search path used internally by the compiler when linking
10867 # a shared library.
10868 compiler_lib_search_path=$lt_compiler_lib_search_path
10870 # Method to check whether dependent libraries are shared objects.
10871 deplibs_check_method=$lt_deplibs_check_method
10873 # Command to use when deplibs_check_method == file_magic.
10874 file_magic_cmd=$lt_file_magic_cmd
10876 # Flag that allows shared libraries with undefined symbols to be built.
10877 allow_undefined_flag=$lt_allow_undefined_flag
10879 # Flag that forces no undefined symbols.
10880 no_undefined_flag=$lt_no_undefined_flag
10882 # Commands used to finish a libtool library installation in a directory.
10883 finish_cmds=$lt_finish_cmds
10885 # Same as above, but a single script fragment to be evaled but not shown.
10886 finish_eval=$lt_finish_eval
10888 # Take the output of nm and produce a listing of raw symbols and C names.
10889 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10891 # Transform the output of nm in a proper C declaration
10892 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10894 # Transform the output of nm in a C name address pair
10895 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10897 # This is the shared library runtime path variable.
10898 runpath_var=$runpath_var
10900 # This is the shared library path variable.
10901 shlibpath_var=$shlibpath_var
10903 # Is shlibpath searched before the hard-coded library search path?
10904 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10906 # How to hardcode a shared library path into an executable.
10907 hardcode_action=$hardcode_action
10909 # Whether we should hardcode library paths into libraries.
10910 hardcode_into_libs=$hardcode_into_libs
10912 # Flag to hardcode \$libdir into a binary during linking.
10913 # This must work even if \$libdir does not exist.
10914 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10916 # If ld is used when linking, flag to hardcode \$libdir into
10917 # a binary during linking. This must work even if \$libdir does
10919 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10921 # Whether we need a single -rpath flag with a separated argument.
10922 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10924 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10925 # resulting binary.
10926 hardcode_direct=$hardcode_direct
10928 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10929 # resulting binary.
10930 hardcode_minus_L=$hardcode_minus_L
10932 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10933 # the resulting binary.
10934 hardcode_shlibpath_var=$hardcode_shlibpath_var
10936 # Set to yes if building a shared library automatically hardcodes DIR into the library
10937 # and all subsequent libraries and executables linked against it.
10938 hardcode_automatic=$hardcode_automatic
10940 # Variables whose values should be saved in libtool wrapper scripts and
10941 # restored at relink time.
10942 variables_saved_for_relink="$variables_saved_for_relink"
10944 # Whether libtool must link a program against all its dependency libraries.
10945 link_all_deplibs=$link_all_deplibs
10947 # Compile-time system search path for libraries
10948 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10950 # Run-time system search path for libraries
10951 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10953 # Fix the shell variable \$srcfile for the compiler.
10954 fix_srcfile_path="$fix_srcfile_path"
10956 # Set to yes if exported symbols are required.
10957 always_export_symbols=$always_export_symbols
10959 # The commands to list exported symbols.
10960 export_symbols_cmds=$lt_export_symbols_cmds
10962 # The commands to extract the exported symbol list from a shared archive.
10963 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10965 # Symbols that should not be listed in the preloaded symbols.
10966 exclude_expsyms=$lt_exclude_expsyms
10968 # Symbols that must always be exported.
10969 include_expsyms=$lt_include_expsyms
10971 # ### END LIBTOOL CONFIG
10978 cat <<\EOF >> "$cfgfile"
10980 # AIX sometimes has problems with the GCC collect2 program. For some
10981 # reason, if we set the COLLECT_NAMES environment variable, the problems
10982 # vanish in a puff of smoke.
10983 if test "X${COLLECT_NAMES+set}" != Xset; then
10985 export COLLECT_NAMES
10991 # We use sed instead of cat because bash on DJGPP gets confused if
10992 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10993 # text mode, it properly converts lines to CR/LF. This bash problem
10994 # is reportedly fixed, but why not run on old versions too?
10995 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10997 mv -f "$cfgfile" "$ofile" || \
10998 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11002 # If there is no Makefile yet, we rely on a make rule to execute
11003 # `config.status --recheck' to rerun these tests and create the
11004 # libtool script then.
11005 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11006 if test -f "$ltmain_in"; then
11007 test -f Makefile && make "$ltmain"
11013 ac_cpp='$CPP $CPPFLAGS'
11014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11021 # Check whether --with-tags or --without-tags was given.
11022 if test "${with_tags+set}" = set; then
11023 withval="$with_tags"
11024 tagnames="$withval"
11027 if test -f "$ltmain" && test -n "$tagnames"; then
11028 if test ! -f "${ofile}"; then
11029 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11030 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11033 if test -z "$LTCC"; then
11034 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11035 if test -z "$LTCC"; then
11036 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11037 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11040 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11043 if test -z "$LTCFLAGS"; then
11044 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11047 # Extract list of available tagged configurations in $ofile.
11048 # Note that this assumes the entire list is on one line.
11049 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11051 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11052 for tagname in $tagnames; do
11054 # Check whether tagname contains only valid characters
11055 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11057 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11058 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11059 { (exit 1); exit 1; }; }
11063 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11065 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11066 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11067 { (exit 1); exit 1; }; }
11070 # Update the list of available tags.
11071 if test -n "$tagname"; then
11072 echo appending configuration tag \"$tagname\" to $ofile
11076 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11077 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11078 (test "X$CXX" != "Xg++"))) ; then
11080 ac_cpp='$CXXCPP $CPPFLAGS'
11081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11088 archive_cmds_need_lc_CXX=no
11089 allow_undefined_flag_CXX=
11090 always_export_symbols_CXX=no
11091 archive_expsym_cmds_CXX=
11092 export_dynamic_flag_spec_CXX=
11093 hardcode_direct_CXX=no
11094 hardcode_libdir_flag_spec_CXX=
11095 hardcode_libdir_flag_spec_ld_CXX=
11096 hardcode_libdir_separator_CXX=
11097 hardcode_minus_L_CXX=no
11098 hardcode_shlibpath_var_CXX=unsupported
11099 hardcode_automatic_CXX=no
11101 module_expsym_cmds_CXX=
11102 link_all_deplibs_CXX=unknown
11103 old_archive_cmds_CXX=$old_archive_cmds
11104 no_undefined_flag_CXX=
11105 whole_archive_flag_spec_CXX=
11106 enable_shared_with_static_runtimes_CXX=no
11108 # Dependencies to place before and after the object being linked:
11109 predep_objects_CXX=
11110 postdep_objects_CXX=
11113 compiler_lib_search_path_CXX=
11115 # Source file extension for C++ test sources.
11118 # Object file extension for compiled C++ test sources.
11122 # Code to be used in simple compile tests
11123 lt_simple_compile_test_code="int some_variable = 0;\n"
11125 # Code to be used in simple link tests
11126 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11128 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11130 # If no C compiler was specified, use CC.
11133 # If no C compiler flags were specified, use CFLAGS.
11134 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11136 # Allow CC to be a program name with arguments.
11140 # save warnings/boilerplate of simple test code
11141 ac_outfile=conftest.$ac_objext
11142 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11143 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11144 _lt_compiler_boilerplate=`cat conftest.err`
11147 ac_outfile=conftest.$ac_objext
11148 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11149 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11150 _lt_linker_boilerplate=`cat conftest.err`
11154 # Allow CC to be a program name with arguments.
11159 lt_save_with_gnu_ld=$with_gnu_ld
11160 lt_save_path_LD=$lt_cv_path_LD
11161 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11162 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11164 $as_unset lt_cv_prog_gnu_ld
11166 if test -n "${lt_cv_path_LDCXX+set}"; then
11167 lt_cv_path_LD=$lt_cv_path_LDCXX
11169 $as_unset lt_cv_path_LD
11171 test -z "${LDCXX+set}" || LD=$LDCXX
11175 for cc_temp in $compiler""; do
11177 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11178 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11183 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11186 # We don't want -fno-exception wen compiling C++ code, so set the
11187 # no_builtin_flag separately
11188 if test "$GXX" = yes; then
11189 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11191 lt_prog_compiler_no_builtin_flag_CXX=
11194 if test "$GXX" = yes; then
11195 # Set up default GNU C++ configuration
11198 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11199 if test "${with_gnu_ld+set}" = set; then
11200 withval="$with_gnu_ld"
11201 test "$withval" = no || with_gnu_ld=yes
11206 if test "$GCC" = yes; then
11207 # Check if gcc -print-prog-name=ld gives a path.
11208 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11209 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11212 # gcc leaves a trailing carriage return which upsets mingw
11213 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11215 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11218 # Accept absolute paths.
11220 re_direlt='/[^/][^/]*/\.\./'
11221 # Canonicalize the pathname of ld
11222 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11223 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11224 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11226 test -z "$LD" && LD="$ac_prog"
11229 # If it fails, then pretend we aren't using GCC.
11233 # If it is relative, then search for the first ld in PATH.
11234 with_gnu_ld=unknown
11237 elif test "$with_gnu_ld" = yes; then
11238 echo "$as_me:$LINENO: checking for GNU ld" >&5
11239 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11241 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11242 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11244 if test "${lt_cv_path_LD+set}" = set; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11247 if test -z "$LD"; then
11248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11249 for ac_dir in $PATH; do
11251 test -z "$ac_dir" && ac_dir=.
11252 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11253 lt_cv_path_LD="$ac_dir/$ac_prog"
11254 # Check to see if the program is GNU ld. I'd rather use --version,
11255 # but apparently some variants of GNU ld only accept -v.
11256 # Break only if it was the GNU/non-GNU ld that we prefer.
11257 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11258 *GNU* | *'with BFD'*)
11259 test "$with_gnu_ld" != no && break
11262 test "$with_gnu_ld" != yes && break
11269 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11273 LD="$lt_cv_path_LD"
11274 if test -n "$LD"; then
11275 echo "$as_me:$LINENO: result: $LD" >&5
11276 echo "${ECHO_T}$LD" >&6
11278 echo "$as_me:$LINENO: result: no" >&5
11279 echo "${ECHO_T}no" >&6
11281 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11282 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11283 { (exit 1); exit 1; }; }
11284 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11285 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11286 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11290 case `$LD -v 2>&1 </dev/null` in
11291 *GNU* | *'with BFD'*)
11292 lt_cv_prog_gnu_ld=yes
11295 lt_cv_prog_gnu_ld=no
11299 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11300 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11301 with_gnu_ld=$lt_cv_prog_gnu_ld
11305 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11306 # archiving commands below assume that GNU ld is being used.
11307 if test "$with_gnu_ld" = yes; then
11308 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11309 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'
11311 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11312 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11314 # If archive_cmds runs LD, not CC, wlarc should be empty
11315 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11316 # investigate it a little bit more. (MM)
11319 # ancient GNU ld didn't support --whole-archive et. al.
11320 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11321 grep 'no-whole-archive' > /dev/null; then
11322 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11324 whole_archive_flag_spec_CXX=
11330 # A generic and very simple default shared library creation
11331 # command for GNU C++ for the case where it uses the native
11332 # linker, instead of GNU ld. If possible, this setting should
11333 # overridden to take advantage of the native linker features on
11334 # the platform it is being used on.
11335 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11338 # Commands to make compiler produce verbose output that lists
11339 # what "hidden" libraries, object files and flags are used when
11340 # linking a shared library.
11341 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11349 # PORTME: fill in a description of your system's C++ link characteristics
11350 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11351 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11355 # FIXME: insert proper C++ library support
11359 if test "$host_cpu" = ia64; then
11360 # On IA64, the linker does run time linking by default, so we don't
11361 # have to do anything special.
11362 aix_use_runtimelinking=no
11363 exp_sym_flag='-Bexport'
11366 aix_use_runtimelinking=no
11368 # Test if we are trying to use run time linking or normal
11369 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11370 # need to do runtime linking.
11371 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11372 for ld_flag in $LDFLAGS; do
11375 aix_use_runtimelinking=yes
11383 exp_sym_flag='-bexport'
11384 no_entry_flag='-bnoentry'
11387 # When large executables or shared objects are built, AIX ld can
11388 # have problems creating the table of contents. If linking a library
11389 # or program results in "error TOC overflow" add -mminimal-toc to
11390 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11391 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11393 archive_cmds_CXX=''
11394 hardcode_direct_CXX=yes
11395 hardcode_libdir_separator_CXX=':'
11396 link_all_deplibs_CXX=yes
11398 if test "$GXX" = yes; then
11399 case $host_os in aix4.[012]|aix4.[012].*)
11400 # We only want to do this on AIX 4.2 and lower, the check
11401 # below for broken collect2 doesn't work under 4.3+
11402 collect2name=`${CC} -print-prog-name=collect2`
11403 if test -f "$collect2name" && \
11404 strings "$collect2name" | grep resolve_lib_name >/dev/null
11406 # We have reworked collect2
11407 hardcode_direct_CXX=yes
11409 # We have old collect2
11410 hardcode_direct_CXX=unsupported
11411 # It fails to find uninstalled libraries when the uninstalled
11412 # path is not listed in the libpath. Setting hardcode_minus_L
11413 # to unsupported forces relinking
11414 hardcode_minus_L_CXX=yes
11415 hardcode_libdir_flag_spec_CXX='-L$libdir'
11416 hardcode_libdir_separator_CXX=
11420 shared_flag='-shared'
11421 if test "$aix_use_runtimelinking" = yes; then
11422 shared_flag="$shared_flag "'${wl}-G'
11426 if test "$host_cpu" = ia64; then
11427 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11428 # chokes on -Wl,-G. The following line is correct:
11431 if test "$aix_use_runtimelinking" = yes; then
11432 shared_flag='${wl}-G'
11434 shared_flag='${wl}-bM:SRE'
11439 # It seems that -bexpall does not export symbols beginning with
11440 # underscore (_), so it is better to generate a list of symbols to export.
11441 always_export_symbols_CXX=yes
11442 if test "$aix_use_runtimelinking" = yes; then
11443 # Warning - without using the other runtime loading flags (-brtl),
11444 # -berok will link without error, but may produce a broken library.
11445 allow_undefined_flag_CXX='-berok'
11446 # Determine the default libpath from the value encoded in an empty executable.
11447 cat >conftest.$ac_ext <<_ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11462 rm -f conftest.$ac_objext conftest$ac_exeext
11463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11464 (eval $ac_link) 2>conftest.er1
11466 grep -v '^ *+' conftest.er1 >conftest.err
11468 cat conftest.err >&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } &&
11471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; } &&
11477 { ac_try='test -s conftest$ac_exeext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11486 # Check for a 64-bit object if we didn't find anything.
11487 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; }
11490 echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11494 rm -f conftest.err conftest.$ac_objext \
11495 conftest$ac_exeext conftest.$ac_ext
11496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11498 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11500 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"
11502 if test "$host_cpu" = ia64; then
11503 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11504 allow_undefined_flag_CXX="-z nodefs"
11505 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"
11507 # Determine the default libpath from the value encoded in an empty executable.
11508 cat >conftest.$ac_ext <<_ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11523 rm -f conftest.$ac_objext conftest$ac_exeext
11524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11525 (eval $ac_link) 2>conftest.er1
11527 grep -v '^ *+' conftest.er1 >conftest.err
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } &&
11532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11534 (eval $ac_try) 2>&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; } &&
11538 { ac_try='test -s conftest$ac_exeext'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
11545 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11547 # Check for a 64-bit object if we didn't find anything.
11548 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; }
11551 echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11555 rm -f conftest.err conftest.$ac_objext \
11556 conftest$ac_exeext conftest.$ac_ext
11557 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11559 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11560 # Warning - without using the other run time loading flags,
11561 # -berok will link without error, but may produce a broken library.
11562 no_undefined_flag_CXX=' ${wl}-bernotok'
11563 allow_undefined_flag_CXX=' ${wl}-berok'
11564 # Exported symbols can be pulled into shared objects from archives
11565 whole_archive_flag_spec_CXX='$convenience'
11566 archive_cmds_need_lc_CXX=yes
11567 # This is similar to how AIX traditionally builds its shared libraries.
11568 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'
11574 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11575 allow_undefined_flag_CXX=unsupported
11576 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11577 # support --undefined. This deserves some investigation. FIXME
11578 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11585 case $cc_basename in
11587 # FIXME: insert proper C++ library support
11593 cygwin* | mingw* | pw32*)
11594 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11595 # as there is no search path for DLLs.
11596 hardcode_libdir_flag_spec_CXX='-L$libdir'
11597 allow_undefined_flag_CXX=unsupported
11598 always_export_symbols_CXX=no
11599 enable_shared_with_static_runtimes_CXX=yes
11601 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11602 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'
11603 # If the export-symbols file already is a .def file (1st line
11604 # is EXPORTS), use it as is; otherwise, prepend...
11605 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11606 cp $export_symbols $output_objdir/$soname.def;
11608 echo EXPORTS > $output_objdir/$soname.def;
11609 cat $export_symbols >> $output_objdir/$soname.def;
11611 $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'
11616 darwin* | rhapsody*)
11618 rhapsody* | darwin1.[012])
11619 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11622 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11623 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11625 case ${MACOSX_DEPLOYMENT_TARGET} in
11627 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11630 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11636 archive_cmds_need_lc_CXX=no
11637 hardcode_direct_CXX=no
11638 hardcode_automatic_CXX=yes
11639 hardcode_shlibpath_var_CXX=unsupported
11640 whole_archive_flag_spec_CXX=''
11641 link_all_deplibs_CXX=yes
11643 if test "$GXX" = yes ; then
11644 lt_int_apple_cc_single_mod=no
11645 output_verbose_link_cmd='echo'
11646 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11647 lt_int_apple_cc_single_mod=yes
11649 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11650 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11652 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'
11654 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11655 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11656 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11657 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}'
11659 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}'
11661 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}'
11663 case $cc_basename in
11665 output_verbose_link_cmd='echo'
11666 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'
11667 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11668 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11669 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}'
11670 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}'
11680 case $cc_basename in
11682 # FIXME: insert proper C++ library support
11686 # Green Hills C++ Compiler
11687 # FIXME: insert proper C++ library support
11691 # FIXME: insert proper C++ library support
11697 # C++ shared libraries reported to be fairly broken before switch to ELF
11701 archive_cmds_need_lc_CXX=no
11703 freebsd* | dragonfly*)
11704 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11711 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11712 hardcode_libdir_separator_CXX=:
11713 export_dynamic_flag_spec_CXX='${wl}-E'
11714 hardcode_direct_CXX=yes
11715 hardcode_minus_L_CXX=yes # Not in the search PATH,
11716 # but as the default
11717 # location of the library.
11719 case $cc_basename in
11721 # FIXME: insert proper C++ library support
11725 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'
11726 # Commands to make compiler produce verbose output that lists
11727 # what "hidden" libraries, object files and flags are used when
11728 # linking a shared library.
11730 # There doesn't appear to be a way to prevent this compiler from
11731 # explicitly linking system object files so we need to strip them
11732 # from the output so that they don't get included in the library
11734 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'
11737 if test "$GXX" = yes; then
11738 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'
11740 # FIXME: insert proper C++ library support
11747 if test $with_gnu_ld = no; then
11748 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11749 hardcode_libdir_separator_CXX=:
11753 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11756 export_dynamic_flag_spec_CXX='${wl}-E'
11762 hardcode_direct_CXX=no
11763 hardcode_shlibpath_var_CXX=no
11766 hardcode_direct_CXX=yes
11767 hardcode_minus_L_CXX=yes # Not in the search PATH,
11768 # but as the default
11769 # location of the library.
11773 case $cc_basename in
11775 # FIXME: insert proper C++ library support
11781 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11784 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11787 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11790 # Commands to make compiler produce verbose output that lists
11791 # what "hidden" libraries, object files and flags are used when
11792 # linking a shared library.
11794 # There doesn't appear to be a way to prevent this compiler from
11795 # explicitly linking system object files so we need to strip them
11796 # from the output so that they don't get included in the library
11798 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'
11801 if test "$GXX" = yes; then
11802 if test $with_gnu_ld = no; then
11805 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11808 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11811 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'
11816 # FIXME: insert proper C++ library support
11823 hardcode_direct_CXX=no
11824 hardcode_shlibpath_var_CXX=no
11825 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11826 export_dynamic_flag_spec_CXX='${wl}-E'
11827 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11828 # Instead, shared libraries are loaded at an image base (0x10000000 by
11829 # default) and relocated if they conflict, which is a slow very memory
11830 # consuming and fragmenting process. To avoid this, we pick a random,
11831 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11832 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11833 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'
11834 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'
11837 case $cc_basename in
11840 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'
11842 # Archives containing C++ object files must be created using
11843 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11844 # necessary to make sure instantiated templates are included
11846 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11849 if test "$GXX" = yes; then
11850 if test "$with_gnu_ld" = no; then
11851 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'
11853 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'
11856 link_all_deplibs_CXX=yes
11859 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11860 hardcode_libdir_separator_CXX=:
11862 linux* | k*bsd*-gnu)
11863 case $cc_basename in
11865 # Kuck and Associates, Inc. (KAI) C++ Compiler
11867 # KCC will only create a shared library if the output file
11868 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11869 # to its proper name (with version) after linking.
11870 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'
11871 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'
11872 # Commands to make compiler produce verbose output that lists
11873 # what "hidden" libraries, object files and flags are used when
11874 # linking a shared library.
11876 # There doesn't appear to be a way to prevent this compiler from
11877 # explicitly linking system object files so we need to strip them
11878 # from the output so that they don't get included in the library
11880 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'
11882 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11883 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11885 # Archives containing C++ object files must be created using
11886 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11887 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11892 # version 8.0 and above of icpc choke on multiply defined symbols
11893 # if we add $predep_objects and $postdep_objects, however 7.1 and
11894 # earlier do not add the objects themselves.
11895 case `$CC -V 2>&1` in
11897 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11898 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'
11900 *) # Version 8.0 or newer
11903 ia64*) tmp_idyn=' -i_dynamic';;
11905 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11906 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'
11909 archive_cmds_need_lc_CXX=no
11910 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11911 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11912 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11915 # Portland Group C++ compiler
11916 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11917 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'
11919 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11920 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11921 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'
11925 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11926 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'
11928 runpath_var=LD_RUN_PATH
11929 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11930 hardcode_libdir_separator_CXX=:
11932 # Commands to make compiler produce verbose output that lists
11933 # what "hidden" libraries, object files and flags are used when
11934 # linking a shared library.
11936 # There doesn't appear to be a way to prevent this compiler from
11937 # explicitly linking system object files so we need to strip them
11938 # from the output so that they don't get included in the library
11940 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'
11945 # FIXME: insert proper C++ library support
11949 # FIXME: insert proper C++ library support
11953 case $cc_basename in
11955 # FIXME: insert proper C++ library support
11959 # FIXME: insert proper C++ library support
11964 netbsd* | netbsdelf*-gnu)
11965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11966 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11968 hardcode_libdir_flag_spec_CXX='-R$libdir'
11969 hardcode_direct_CXX=yes
11970 hardcode_shlibpath_var_CXX=no
11972 # Workaround some broken pre-1.5 toolchains
11973 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11976 # C++ shared libraries are fairly broken
11980 hardcode_direct_CXX=yes
11981 hardcode_shlibpath_var_CXX=no
11982 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11983 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11984 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11985 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11986 export_dynamic_flag_spec_CXX='${wl}-E'
11987 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11989 output_verbose_link_cmd='echo'
11992 case $cc_basename in
11994 # Kuck and Associates, Inc. (KAI) C++ Compiler
11996 # KCC will only create a shared library if the output file
11997 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11998 # to its proper name (with version) after linking.
11999 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'
12001 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12002 hardcode_libdir_separator_CXX=:
12004 # Archives containing C++ object files must be created using
12005 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12006 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12010 # Rational C++ 2.4.1
12011 # FIXME: insert proper C++ library support
12015 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12016 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'
12018 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12019 hardcode_libdir_separator_CXX=:
12021 # Commands to make compiler produce verbose output that lists
12022 # what "hidden" libraries, object files and flags are used when
12023 # linking a shared library.
12025 # There doesn't appear to be a way to prevent this compiler from
12026 # explicitly linking system object files so we need to strip them
12027 # from the output so that they don't get included in the library
12029 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'
12032 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12033 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12034 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'
12036 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12037 hardcode_libdir_separator_CXX=:
12039 # Commands to make compiler produce verbose output that lists
12040 # what "hidden" libraries, object files and flags are used when
12041 # linking a shared library.
12042 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12045 # FIXME: insert proper C++ library support
12052 case $cc_basename in
12054 # Kuck and Associates, Inc. (KAI) C++ Compiler
12056 # KCC will only create a shared library if the output file
12057 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12058 # to its proper name (with version) after linking.
12059 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'
12061 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12062 hardcode_libdir_separator_CXX=:
12064 # Archives containing C++ object files must be created using
12065 # the KAI C++ compiler.
12066 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12069 # Rational C++ 2.4.1
12070 # FIXME: insert proper C++ library support
12074 allow_undefined_flag_CXX=' -expect_unresolved \*'
12075 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'
12076 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12077 echo "-hidden">> $lib.exp~
12078 $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~
12081 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12082 hardcode_libdir_separator_CXX=:
12084 # Commands to make compiler produce verbose output that lists
12085 # what "hidden" libraries, object files and flags are used when
12086 # linking a shared library.
12088 # There doesn't appear to be a way to prevent this compiler from
12089 # explicitly linking system object files so we need to strip them
12090 # from the output so that they don't get included in the library
12092 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'
12095 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12096 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12097 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'
12099 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12100 hardcode_libdir_separator_CXX=:
12102 # Commands to make compiler produce verbose output that lists
12103 # what "hidden" libraries, object files and flags are used when
12104 # linking a shared library.
12105 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12108 # FIXME: insert proper C++ library support
12115 # FIXME: insert proper C++ library support
12119 case $cc_basename in
12122 # FIXME: insert proper C++ library support
12127 # FIXME: insert proper C++ library support
12131 # FIXME: insert proper C++ library support
12137 case $cc_basename in
12139 # Sun C++ 4.2, 5.x and Centerline C++
12140 archive_cmds_need_lc_CXX=yes
12141 no_undefined_flag_CXX=' -zdefs'
12142 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12143 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12144 $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'
12146 hardcode_libdir_flag_spec_CXX='-R$libdir'
12147 hardcode_shlibpath_var_CXX=no
12149 solaris2.[0-5] | solaris2.[0-5].*) ;;
12151 # The C++ compiler is used as linker so we must use $wl
12152 # flag to pass the commands to the underlying system
12153 # linker. We must also pass each convience library through
12154 # to the system linker between allextract/defaultextract.
12155 # The C++ compiler will combine linker options so we
12156 # cannot just pass the convience library names through
12158 # Supported since Solaris 2.6 (maybe 2.5.1?)
12159 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'
12162 link_all_deplibs_CXX=yes
12164 output_verbose_link_cmd='echo'
12166 # Archives containing C++ object files must be created using
12167 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12168 # necessary to make sure instantiated templates are included
12170 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12173 # Green Hills C++ Compiler
12174 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12176 # The C++ compiler must be used to create the archive.
12177 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12180 # GNU C++ compiler with Solaris linker
12181 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12182 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12183 if $CC --version | grep -v '^2\.7' > /dev/null; then
12184 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12185 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12186 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12188 # Commands to make compiler produce verbose output that lists
12189 # what "hidden" libraries, object files and flags are used when
12190 # linking a shared library.
12191 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12193 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12195 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12196 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12197 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12199 # Commands to make compiler produce verbose output that lists
12200 # what "hidden" libraries, object files and flags are used when
12201 # linking a shared library.
12202 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12205 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12210 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12211 no_undefined_flag_CXX='${wl}-z,text'
12212 archive_cmds_need_lc_CXX=no
12213 hardcode_shlibpath_var_CXX=no
12214 runpath_var='LD_RUN_PATH'
12216 case $cc_basename in
12218 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12219 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12222 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12223 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12227 sysv5* | sco3.2v5* | sco5v6*)
12228 # Note: We can NOT use -z defs as we might desire, because we do not
12229 # link with -lc, and that would cause any symbols used from libc to
12230 # always be unresolved, which means just about no library would
12231 # ever link correctly. If we're not using GNU ld we use -z text
12232 # though, which does catch some bad symbols but isn't as heavy-handed
12234 # For security reasons, it is highly recommended that you always
12235 # use absolute paths for naming shared libraries, and exclude the
12236 # DT_RUNPATH tag from executables and libraries. But doing so
12237 # requires that you compile everything twice, which is a pain.
12238 # So that behaviour is only enabled if SCOABSPATH is set to a
12239 # non-empty value in the environment. Most likely only useful for
12240 # creating official distributions of packages.
12241 # This is a hack until libtool officially supports absolute path
12242 # names for shared libraries.
12243 no_undefined_flag_CXX='${wl}-z,text'
12244 allow_undefined_flag_CXX='${wl}-z,nodefs'
12245 archive_cmds_need_lc_CXX=no
12246 hardcode_shlibpath_var_CXX=no
12247 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12248 hardcode_libdir_separator_CXX=':'
12249 link_all_deplibs_CXX=yes
12250 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12251 runpath_var='LD_RUN_PATH'
12253 case $cc_basename in
12255 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12256 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12259 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12260 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12265 case $cc_basename in
12267 # NonStop-UX NCC 3.20
12268 # FIXME: insert proper C++ library support
12272 # FIXME: insert proper C++ library support
12278 # FIXME: insert proper C++ library support
12282 # FIXME: insert proper C++ library support
12286 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12287 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12288 test "$ld_shlibs_CXX" = no && can_build_shared=no
12294 cat > conftest.$ac_ext <<EOF
12298 Foo (void) { a = 0; }
12304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12305 (eval $ac_compile) 2>&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; then
12309 # Parse the compiler output and extract the necessary
12310 # objects, libraries and library flags.
12312 # Sentinel used to keep track of whether or not we are before
12313 # the conftest object file.
12314 pre_test_object_deps_done=no
12316 # The `*' in the case matches for architectures that use `case' in
12317 # $output_verbose_cmd can trigger glob expansion during the loop
12318 # eval without this substitution.
12319 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12321 for p in `eval $output_verbose_link_cmd`; do
12325 # Some compilers place space between "-{L,R}" and the path.
12326 # Remove the space.
12327 if test $p = "-L" \
12328 || test $p = "-R"; then
12335 if test "$pre_test_object_deps_done" = no; then
12338 # Internal compiler library paths should come after those
12339 # provided the user. The postdeps already come after the
12340 # user supplied libs so there is no need to process them.
12341 if test -z "$compiler_lib_search_path_CXX"; then
12342 compiler_lib_search_path_CXX="${prev}${p}"
12344 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12347 # The "-l" case would never come before the object being
12348 # linked, so don't bother handling this case.
12351 if test -z "$postdeps_CXX"; then
12352 postdeps_CXX="${prev}${p}"
12354 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12360 # This assumes that the test object file only shows up
12361 # once in the compiler output.
12362 if test "$p" = "conftest.$objext"; then
12363 pre_test_object_deps_done=yes
12367 if test "$pre_test_object_deps_done" = no; then
12368 if test -z "$predep_objects_CXX"; then
12369 predep_objects_CXX="$p"
12371 predep_objects_CXX="$predep_objects_CXX $p"
12374 if test -z "$postdep_objects_CXX"; then
12375 postdep_objects_CXX="$p"
12377 postdep_objects_CXX="$postdep_objects_CXX $p"
12382 *) ;; # Ignore the rest.
12390 echo "libtool.m4: error: problem compiling CXX test program"
12393 $rm -f confest.$objext
12395 # PORTME: override above test on systems where it is broken
12398 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12399 # hack all around it, let's just trust "g++" to DTRT.
12400 predep_objects_CXX=
12401 postdep_objects_CXX=
12406 case $cc_basename in
12408 # Adding this requires a known-good setup of shared libraries for
12409 # Sun compiler versions before 5.6, else PIC objects from an old
12410 # archive will be linked into the output, leading to subtle bugs.
12411 postdeps_CXX='-lCstd -lCrun'
12418 case " $postdeps_CXX " in
12419 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12422 lt_prog_compiler_wl_CXX=
12423 lt_prog_compiler_pic_CXX=
12424 lt_prog_compiler_static_CXX=
12426 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12427 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12429 # C++ specific cases for pic, static, wl, etc.
12430 if test "$GXX" = yes; then
12431 lt_prog_compiler_wl_CXX='-Wl,'
12432 lt_prog_compiler_static_CXX='-static'
12436 # All AIX code is PIC.
12437 if test "$host_cpu" = ia64; then
12438 # AIX 5 now supports IA64 processor
12439 lt_prog_compiler_static_CXX='-Bstatic'
12443 # FIXME: we need at least 68020 code to build shared libraries, but
12444 # adding the `-m68020' flag to GCC prevents building anything better,
12446 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12448 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12449 # PIC is the default for these OSes.
12451 mingw* | os2* | pw32*)
12452 # This hack is so that the source file can tell whether it is being
12453 # built for inclusion in a dll (and should export symbols for example).
12454 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12456 darwin* | rhapsody*)
12457 # PIC is the default on this platform
12458 # Common symbols not allowed in MH_DYLIB files
12459 lt_prog_compiler_pic_CXX='-fno-common'
12462 # DJGPP does not support shared libraries at all
12463 lt_prog_compiler_pic_CXX=
12466 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12467 # Instead, we relocate shared libraries at runtime.
12470 if test -d /usr/nec; then
12471 lt_prog_compiler_pic_CXX=-Kconform_pic
12475 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12476 # not for PA HP-UX.
12481 lt_prog_compiler_pic_CXX='-fPIC'
12486 lt_prog_compiler_pic_CXX='-fPIC'
12492 # All AIX code is PIC.
12493 if test "$host_cpu" = ia64; then
12494 # AIX 5 now supports IA64 processor
12495 lt_prog_compiler_static_CXX='-Bstatic'
12497 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12501 case $cc_basename in
12503 # Green Hills C++ Compiler
12504 # _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"
12509 # PIC is the default on this platform
12510 # Common symbols not allowed in MH_DYLIB files
12511 case $cc_basename in
12513 lt_prog_compiler_pic_CXX='-qnocommon'
12514 lt_prog_compiler_wl_CXX='-Wl,'
12519 case $cc_basename in
12521 lt_prog_compiler_pic_CXX='-KPIC'
12524 # Green Hills C++ Compiler
12525 lt_prog_compiler_pic_CXX='-pic'
12531 freebsd* | dragonfly*)
12532 # FreeBSD uses GNU C++
12534 hpux9* | hpux10* | hpux11*)
12535 case $cc_basename in
12537 lt_prog_compiler_wl_CXX='-Wl,'
12538 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12539 if test "$host_cpu" != ia64; then
12540 lt_prog_compiler_pic_CXX='+Z'
12544 lt_prog_compiler_wl_CXX='-Wl,'
12545 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12551 lt_prog_compiler_pic_CXX='+Z'
12560 # This is c89, which is MS Visual C++ (no shared libs)
12561 # Anyone wants to do a port?
12563 irix5* | irix6* | nonstopux*)
12564 case $cc_basename in
12566 lt_prog_compiler_wl_CXX='-Wl,'
12567 lt_prog_compiler_static_CXX='-non_shared'
12568 # CC pic flag -KPIC is the default.
12574 linux* | k*bsd*-gnu)
12575 case $cc_basename in
12578 lt_prog_compiler_wl_CXX='--backend -Wl,'
12579 lt_prog_compiler_pic_CXX='-fPIC'
12583 lt_prog_compiler_wl_CXX='-Wl,'
12584 lt_prog_compiler_pic_CXX='-KPIC'
12585 lt_prog_compiler_static_CXX='-static'
12588 # Portland Group C++ compiler.
12589 lt_prog_compiler_wl_CXX='-Wl,'
12590 lt_prog_compiler_pic_CXX='-fpic'
12591 lt_prog_compiler_static_CXX='-Bstatic'
12595 # Make sure the PIC flag is empty. It appears that all Alpha
12596 # Linux and Compaq Tru64 Unix objects are PIC.
12597 lt_prog_compiler_pic_CXX=
12598 lt_prog_compiler_static_CXX='-non_shared'
12609 case $cc_basename in
12611 lt_prog_compiler_pic_CXX='-W c,exportall'
12617 netbsd* | netbsdelf*-gnu)
12619 osf3* | osf4* | osf5*)
12620 case $cc_basename in
12622 lt_prog_compiler_wl_CXX='--backend -Wl,'
12625 # Rational C++ 2.4.1
12626 lt_prog_compiler_pic_CXX='-pic'
12629 # Digital/Compaq C++
12630 lt_prog_compiler_wl_CXX='-Wl,'
12631 # Make sure the PIC flag is empty. It appears that all Alpha
12632 # Linux and Compaq Tru64 Unix objects are PIC.
12633 lt_prog_compiler_pic_CXX=
12634 lt_prog_compiler_static_CXX='-non_shared'
12643 case $cc_basename in
12645 # Sun C++ 4.2, 5.x and Centerline C++
12646 lt_prog_compiler_pic_CXX='-KPIC'
12647 lt_prog_compiler_static_CXX='-Bstatic'
12648 lt_prog_compiler_wl_CXX='-Qoption ld '
12651 # Green Hills C++ Compiler
12652 lt_prog_compiler_pic_CXX='-PIC'
12659 case $cc_basename in
12662 lt_prog_compiler_pic_CXX='-pic'
12663 lt_prog_compiler_static_CXX='-Bstatic'
12667 lt_prog_compiler_pic_CXX='-pic'
12674 case $cc_basename in
12676 # NonStop-UX NCC 3.20
12677 lt_prog_compiler_pic_CXX='-KPIC'
12683 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12684 case $cc_basename in
12686 lt_prog_compiler_wl_CXX='-Wl,'
12687 lt_prog_compiler_pic_CXX='-KPIC'
12688 lt_prog_compiler_static_CXX='-Bstatic'
12695 lt_prog_compiler_can_build_shared_CXX=no
12700 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12701 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12704 # Check to make sure the PIC flag actually works.
12706 if test -n "$lt_prog_compiler_pic_CXX"; then
12708 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12709 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12710 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 lt_prog_compiler_pic_works_CXX=no
12714 ac_outfile=conftest.$ac_objext
12715 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12716 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12717 # Insert the option either (1) after the last *FLAGS variable, or
12718 # (2) before a word containing "conftest.", or (3) at the end.
12719 # Note that $ac_compile itself does not contain backslashes and begins
12720 # with a dollar sign (not a hyphen), so the echo should work correctly.
12721 # The option is referenced via a variable to avoid confusing sed.
12722 lt_compile=`echo "$ac_compile" | $SED \
12723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12725 -e 's:$: $lt_compiler_flag:'`
12726 (eval echo "\"\$as_me:12726: $lt_compile\"" >&5)
12727 (eval "$lt_compile" 2>conftest.err)
12729 cat conftest.err >&5
12730 echo "$as_me:12730: \$? = $ac_status" >&5
12731 if (exit $ac_status) && test -s "$ac_outfile"; then
12732 # The compiler can only warn and ignore the option if not recognized
12733 # So say no if there are warnings other than the usual output.
12734 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12736 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12737 lt_prog_compiler_pic_works_CXX=yes
12743 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12744 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12746 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12747 case $lt_prog_compiler_pic_CXX in
12749 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12752 lt_prog_compiler_pic_CXX=
12753 lt_prog_compiler_can_build_shared_CXX=no
12758 # For platforms which do not support PIC, -DPIC is meaningless:
12760 lt_prog_compiler_pic_CXX=
12763 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12768 # Check to make sure the static flag actually works.
12770 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12771 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12772 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12773 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 lt_prog_compiler_static_works_CXX=no
12777 save_LDFLAGS="$LDFLAGS"
12778 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12779 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12780 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12781 # The linker can only warn and ignore the option if not recognized
12782 # So say no if there are warnings
12783 if test -s conftest.err; then
12784 # Append any errors to the config.log.
12785 cat conftest.err 1>&5
12786 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12788 if diff conftest.exp conftest.er2 >/dev/null; then
12789 lt_prog_compiler_static_works_CXX=yes
12792 lt_prog_compiler_static_works_CXX=yes
12796 LDFLAGS="$save_LDFLAGS"
12799 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12800 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12802 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12805 lt_prog_compiler_static_CXX=
12809 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12810 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12811 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12814 lt_cv_prog_compiler_c_o_CXX=no
12815 $rm -r conftest 2>/dev/null
12819 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12821 lt_compiler_flag="-o out/conftest2.$ac_objext"
12822 # Insert the option either (1) after the last *FLAGS variable, or
12823 # (2) before a word containing "conftest.", or (3) at the end.
12824 # Note that $ac_compile itself does not contain backslashes and begins
12825 # with a dollar sign (not a hyphen), so the echo should work correctly.
12826 lt_compile=`echo "$ac_compile" | $SED \
12827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12829 -e 's:$: $lt_compiler_flag:'`
12830 (eval echo "\"\$as_me:12830: $lt_compile\"" >&5)
12831 (eval "$lt_compile" 2>out/conftest.err)
12833 cat out/conftest.err >&5
12834 echo "$as_me:12834: \$? = $ac_status" >&5
12835 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12837 # The compiler can only warn and ignore the option if not recognized
12838 # So say no if there are warnings
12839 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12840 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12841 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12842 lt_cv_prog_compiler_c_o_CXX=yes
12847 # SGI C++ compiler will create directory out/ii_files/ for
12848 # template instantiation
12849 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12850 $rm out/* && rmdir out
12856 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12857 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12860 hard_links="nottested"
12861 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12862 # do not overwrite the value of need_locks provided by the user
12863 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12864 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12867 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12869 ln conftest.a conftest.b 2>&5 || hard_links=no
12870 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12871 echo "$as_me:$LINENO: result: $hard_links" >&5
12872 echo "${ECHO_T}$hard_links" >&6
12873 if test "$hard_links" = no; then
12874 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12875 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12882 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12883 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12885 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12888 # If we're using GNU nm, then we don't want the "-C" option.
12889 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12890 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12891 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'
12893 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'
12897 export_symbols_cmds_CXX="$ltdll_cmds"
12900 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'
12902 linux* | k*bsd*-gnu)
12903 link_all_deplibs_CXX=no
12906 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12910 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12911 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12912 test "$ld_shlibs_CXX" = no && can_build_shared=no
12915 # Do we need to explicitly link libc?
12917 case "x$archive_cmds_need_lc_CXX" in
12919 # Assume -lc should be added
12920 archive_cmds_need_lc_CXX=yes
12922 if test "$enable_shared" = yes && test "$GCC" = yes; then
12923 case $archive_cmds_CXX in
12925 # FIXME: we may have to deal with multi-command sequences.
12928 # Test whether the compiler implicitly links with -lc since on some
12929 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12930 # to ld, don't add -lc before -lgcc.
12931 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12932 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12937 (eval $ac_compile) 2>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } 2>conftest.err; then
12943 libobjs=conftest.$ac_objext
12945 wl=$lt_prog_compiler_wl_CXX
12946 pic_flag=$lt_prog_compiler_pic_CXX
12952 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12953 allow_undefined_flag_CXX=
12954 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12955 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }
12960 archive_cmds_need_lc_CXX=no
12962 archive_cmds_need_lc_CXX=yes
12964 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12966 cat conftest.err 1>&5
12969 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12970 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12977 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12978 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12979 library_names_spec=
12980 libname_spec='lib$name'
12984 postuninstall_cmds=
12988 shlibpath_overrides_runpath=unknown
12990 dynamic_linker="$host_os ld.so"
12991 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12992 if test "$GCC" = yes; then
12993 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12994 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12995 # if the path contains ";" then we assume it to be the separator
12996 # otherwise default to the standard path separator (i.e. ":") - it is
12997 # assumed that no part of a normal pathname contains ";" but that should
12998 # okay in the real world where ";" in dirpaths is itself problematic.
12999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13004 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13006 need_lib_prefix=unknown
13007 hardcode_into_libs=no
13009 # when you set need_version to no, make sure it does not cause -set_version
13010 # flags to be left without arguments
13011 need_version=unknown
13016 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13017 shlibpath_var=LIBPATH
13019 # AIX 3 has no versioning support, so we append a major version to the name.
13020 soname_spec='${libname}${release}${shared_ext}$major'
13027 hardcode_into_libs=yes
13028 if test "$host_cpu" = ia64; then
13029 # AIX 5 supports IA64
13030 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13031 shlibpath_var=LD_LIBRARY_PATH
13033 # With GCC up to 2.95.x, collect2 would create an import file
13034 # for dependence libraries. The import file would start with
13035 # the line `#! .'. This would cause the generated library to
13036 # depend on `.', always an invalid library. This was fixed in
13037 # development snapshots of GCC prior to 3.0.
13039 aix4 | aix4.[01] | aix4.[01].*)
13040 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13042 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13045 can_build_shared=no
13049 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13050 # soname into executable. Probably we can add versioning support to
13051 # collect2, so additional links can be useful in future.
13052 if test "$aix_use_runtimelinking" = yes; then
13053 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13054 # instead of lib<name>.a to let people know that these are not
13055 # typical AIX shared libraries.
13056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13058 # We preserve .a as extension for shared libraries through AIX4.2
13059 # and later when we are not doing run time linking.
13060 library_names_spec='${libname}${release}.a $libname.a'
13061 soname_spec='${libname}${release}${shared_ext}$major'
13063 shlibpath_var=LIBPATH
13068 library_names_spec='$libname.ixlibrary $libname.a'
13069 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13070 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'
13074 library_names_spec='${libname}${shared_ext}'
13075 dynamic_linker="$host_os ld.so"
13076 shlibpath_var=LIBRARY_PATH
13082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13083 soname_spec='${libname}${release}${shared_ext}$major'
13084 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13085 shlibpath_var=LD_LIBRARY_PATH
13086 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13087 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13088 # the default ld.so.conf also contains /usr/contrib/lib and
13089 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13090 # libtool to hard-code these into programs
13093 cygwin* | mingw* | pw32*)
13094 version_type=windows
13099 case $GCC,$host_os in
13100 yes,cygwin* | yes,mingw* | yes,pw32*)
13101 library_names_spec='$libname.dll.a'
13102 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13103 postinstall_cmds='base_file=`basename \${file}`~
13104 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13105 dldir=$destdir/`dirname \$dlpath`~
13106 test -d \$dldir || mkdir -p \$dldir~
13107 $install_prog $dir/$dlname \$dldir/$dlname~
13108 chmod a+x \$dldir/$dlname'
13109 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13110 dlpath=$dir/\$dldll~
13112 shlibpath_overrides_runpath=yes
13116 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13117 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13118 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13121 # MinGW DLLs use traditional 'lib' prefix
13122 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13123 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13124 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13125 # It is most probably a Windows format PATH printed by
13126 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13127 # path with ; separators, and with drive letters. We can handle the
13128 # drive letters (cygwin fileutils understands them), so leave them,
13129 # especially as we might pass files found there to a mingw objdump,
13130 # which wouldn't understand a cygwinified path. Ahh.
13131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13133 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13137 # pw32 DLLs use 'pw' prefix rather than 'lib'
13138 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13144 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13147 dynamic_linker='Win32 ld.exe'
13148 # FIXME: first we should search . and the directory the executable is in
13152 darwin* | rhapsody*)
13153 dynamic_linker="$host_os dyld"
13154 version_type=darwin
13157 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13158 soname_spec='${libname}${release}${major}$shared_ext'
13159 shlibpath_overrides_runpath=yes
13160 shlibpath_var=DYLD_LIBRARY_PATH
13161 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13162 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13163 if test "$GCC" = yes; then
13164 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"`
13166 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13168 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13176 soname_spec='${libname}${release}${shared_ext}$major'
13177 shlibpath_var=LD_LIBRARY_PATH
13184 freebsd* | dragonfly*)
13185 # DragonFly does not have aout. When/if they implement a new
13186 # versioning mechanism, adjust this.
13187 if test -x /usr/bin/objformat; then
13188 objformat=`/usr/bin/objformat`
13191 freebsd[123]*) objformat=aout ;;
13192 *) objformat=elf ;;
13195 version_type=freebsd-$objformat
13196 case $version_type in
13198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13203 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13207 shlibpath_var=LD_LIBRARY_PATH
13210 shlibpath_overrides_runpath=yes
13212 freebsd3.[01]* | freebsdelf3.[01]*)
13213 shlibpath_overrides_runpath=yes
13214 hardcode_into_libs=yes
13216 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13217 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13218 shlibpath_overrides_runpath=no
13219 hardcode_into_libs=yes
13221 freebsd*) # from 4.6 on
13222 shlibpath_overrides_runpath=yes
13223 hardcode_into_libs=yes
13232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13233 soname_spec='${libname}${release}${shared_ext}$major'
13234 shlibpath_var=LD_LIBRARY_PATH
13235 hardcode_into_libs=yes
13238 hpux9* | hpux10* | hpux11*)
13239 # Give a soname corresponding to the major version so that dld.sl refuses to
13240 # link against other versions.
13247 hardcode_into_libs=yes
13248 dynamic_linker="$host_os dld.so"
13249 shlibpath_var=LD_LIBRARY_PATH
13250 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13252 soname_spec='${libname}${release}${shared_ext}$major'
13253 if test "X$HPUX_IA64_MODE" = X32; then
13254 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13256 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13258 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13262 hardcode_into_libs=yes
13263 dynamic_linker="$host_os dld.sl"
13264 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13267 soname_spec='${libname}${release}${shared_ext}$major'
13268 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13273 dynamic_linker="$host_os dld.sl"
13274 shlibpath_var=SHLIB_PATH
13275 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
13280 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13281 postinstall_cmds='chmod 555 $lib'
13288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13289 soname_spec='${libname}${release}${shared_ext}$major'
13290 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13291 shlibpath_var=LD_LIBRARY_PATH
13292 shlibpath_overrides_runpath=no
13293 hardcode_into_libs=yes
13296 irix5* | irix6* | nonstopux*)
13298 nonstopux*) version_type=nonstopux ;;
13300 if test "$lt_cv_prog_gnu_ld" = yes; then
13308 soname_spec='${libname}${release}${shared_ext}$major'
13309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13311 irix5* | nonstopux*)
13312 libsuff= shlibsuff=
13315 case $LD in # libtool.m4 will add one of these switches to LD
13316 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13317 libsuff= shlibsuff= libmagic=32-bit;;
13318 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13319 libsuff=32 shlibsuff=N32 libmagic=N32;;
13320 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13321 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13322 *) libsuff= shlibsuff= libmagic=never-match;;
13326 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13327 shlibpath_overrides_runpath=no
13328 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13329 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13330 hardcode_into_libs=yes
13333 # No shared lib support for Linux oldld, aout, or coff.
13334 linux*oldld* | linux*aout* | linux*coff*)
13338 # This must be Linux ELF.
13339 linux* | k*bsd*-gnu)
13343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13344 soname_spec='${libname}${release}${shared_ext}$major'
13345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13346 shlibpath_var=LD_LIBRARY_PATH
13347 shlibpath_overrides_runpath=no
13348 # This implies no fast_install, which is unacceptable.
13349 # Some rework will be needed to allow for fast_install
13350 # before this can be enabled.
13351 hardcode_into_libs=yes
13353 # Append ld.so.conf contents to the search path
13354 if test -f /etc/ld.so.conf; then
13355 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' ' '`
13356 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13359 # We used to test for /lib/ld.so.1 and disable shared libraries on
13360 # powerpc, because MkLinux only supported shared libraries with the
13361 # GNU dynamic linker. Since this was broken with cross compilers,
13362 # most powerpc-linux boxes support dynamic linking these days and
13363 # people can always --disable-shared, the test was removed, and we
13364 # assume the GNU/Linux dynamic linker is in use.
13365 dynamic_linker='GNU/Linux ld.so'
13372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13373 soname_spec='${libname}${release}${shared_ext}$major'
13374 shlibpath_var=LD_LIBRARY_PATH
13375 shlibpath_overrides_runpath=no
13376 hardcode_into_libs=yes
13377 dynamic_linker='NetBSD ld.elf_so'
13384 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13387 dynamic_linker='NetBSD (a.out) ld.so'
13389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13390 soname_spec='${libname}${release}${shared_ext}$major'
13391 dynamic_linker='NetBSD ld.elf_so'
13393 shlibpath_var=LD_LIBRARY_PATH
13394 shlibpath_overrides_runpath=yes
13395 hardcode_into_libs=yes
13400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13401 shlibpath_var=LD_LIBRARY_PATH
13402 shlibpath_overrides_runpath=yes
13409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13410 soname_spec='${libname}${release}${shared_ext}$major'
13411 shlibpath_var=LD_LIBRARY_PATH
13412 shlibpath_overrides_runpath=yes
13417 sys_lib_dlsearch_path_spec="/usr/lib"
13419 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13421 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13422 *) need_version=no ;;
13424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13426 shlibpath_var=LD_LIBRARY_PATH
13427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13429 openbsd2.[89] | openbsd2.[89].*)
13430 shlibpath_overrides_runpath=no
13433 shlibpath_overrides_runpath=yes
13437 shlibpath_overrides_runpath=yes
13442 libname_spec='$name'
13445 library_names_spec='$libname${shared_ext} $libname.a'
13446 dynamic_linker='OS/2 ld.exe'
13447 shlibpath_var=LIBPATH
13450 osf3* | osf4* | osf5*)
13454 soname_spec='${libname}${release}${shared_ext}$major'
13455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13456 shlibpath_var=LD_LIBRARY_PATH
13457 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13458 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13466 soname_spec='${libname}${release}${shared_ext}$major'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 shlibpath_overrides_runpath=yes
13469 hardcode_into_libs=yes
13470 # ldd complains unless libraries are executable
13471 postinstall_cmds='chmod +x $lib'
13476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13477 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13478 shlibpath_var=LD_LIBRARY_PATH
13479 shlibpath_overrides_runpath=yes
13480 if test "$with_gnu_ld" = yes; then
13488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13489 soname_spec='${libname}${release}${shared_ext}$major'
13490 shlibpath_var=LD_LIBRARY_PATH
13491 case $host_vendor in
13493 shlibpath_overrides_runpath=no
13495 export_dynamic_flag_spec='${wl}-Blargedynsym'
13496 runpath_var=LD_RUN_PATH
13504 shlibpath_overrides_runpath=no
13505 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13511 if test -d /usr/nec ;then
13513 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13514 soname_spec='$libname${shared_ext}.$major'
13515 shlibpath_var=LD_LIBRARY_PATH
13519 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13520 version_type=freebsd-elf
13523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13524 soname_spec='${libname}${release}${shared_ext}$major'
13525 shlibpath_var=LD_LIBRARY_PATH
13526 hardcode_into_libs=yes
13527 if test "$with_gnu_ld" = yes; then
13528 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13529 shlibpath_overrides_runpath=no
13531 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13532 shlibpath_overrides_runpath=yes
13535 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13539 sys_lib_dlsearch_path_spec='/usr/lib'
13544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13545 soname_spec='${libname}${release}${shared_ext}$major'
13546 shlibpath_var=LD_LIBRARY_PATH
13553 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13554 echo "${ECHO_T}$dynamic_linker" >&6
13555 test "$dynamic_linker" = no && can_build_shared=no
13557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13558 if test "$GCC" = yes; then
13559 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13562 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13563 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13564 hardcode_action_CXX=
13565 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13566 test -n "$runpath_var_CXX" || \
13567 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13569 # We can hardcode non-existant directories.
13570 if test "$hardcode_direct_CXX" != no &&
13571 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13572 # have to relink, otherwise we might link with an installed library
13573 # when we should be linking with a yet-to-be-installed one
13574 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13575 test "$hardcode_minus_L_CXX" != no; then
13576 # Linking always hardcodes the temporary library directory.
13577 hardcode_action_CXX=relink
13579 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13580 hardcode_action_CXX=immediate
13583 # We cannot hardcode anything, or else we can only hardcode existing
13585 hardcode_action_CXX=unsupported
13587 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13588 echo "${ECHO_T}$hardcode_action_CXX" >&6
13590 if test "$hardcode_action_CXX" = relink; then
13591 # Fast installation is not supported
13592 enable_fast_install=no
13593 elif test "$shlibpath_overrides_runpath" = yes ||
13594 test "$enable_shared" = no; then
13595 # Fast installation is not necessary
13596 enable_fast_install=needless
13600 # The else clause should only fire when bootstrapping the
13601 # libtool distribution, otherwise you forgot to ship ltmain.sh
13602 # with your package, and you will get complaints that there are
13603 # no rules to generate ltmain.sh.
13604 if test -f "$ltmain"; then
13605 # See if we are running on zsh, and set the options which allow our commands through
13606 # without removal of \ escapes.
13607 if test -n "${ZSH_VERSION+set}" ; then
13608 setopt NO_GLOB_SUBST
13610 # Now quote all the things that may contain metacharacters while being
13611 # careful not to overquote the AC_SUBSTed values. We take copies of the
13612 # variables and quote the copies for generation of the libtool script.
13613 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13615 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13616 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13617 deplibs_check_method reload_flag reload_cmds need_locks \
13618 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13619 lt_cv_sys_global_symbol_to_c_name_address \
13620 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13621 old_postinstall_cmds old_postuninstall_cmds \
13625 lt_prog_compiler_wl_CXX \
13626 lt_prog_compiler_pic_CXX \
13627 lt_prog_compiler_static_CXX \
13628 lt_prog_compiler_no_builtin_flag_CXX \
13629 export_dynamic_flag_spec_CXX \
13630 thread_safe_flag_spec_CXX \
13631 whole_archive_flag_spec_CXX \
13632 enable_shared_with_static_runtimes_CXX \
13633 old_archive_cmds_CXX \
13634 old_archive_from_new_cmds_CXX \
13635 predep_objects_CXX \
13636 postdep_objects_CXX \
13639 compiler_lib_search_path_CXX \
13641 archive_expsym_cmds_CXX \
13642 postinstall_cmds_CXX \
13643 postuninstall_cmds_CXX \
13644 old_archive_from_expsyms_cmds_CXX \
13645 allow_undefined_flag_CXX \
13646 no_undefined_flag_CXX \
13647 export_symbols_cmds_CXX \
13648 hardcode_libdir_flag_spec_CXX \
13649 hardcode_libdir_flag_spec_ld_CXX \
13650 hardcode_libdir_separator_CXX \
13651 hardcode_automatic_CXX \
13653 module_expsym_cmds_CXX \
13654 lt_cv_prog_compiler_c_o_CXX \
13655 exclude_expsyms_CXX \
13656 include_expsyms_CXX; do
13659 old_archive_cmds_CXX | \
13660 old_archive_from_new_cmds_CXX | \
13661 archive_cmds_CXX | \
13662 archive_expsym_cmds_CXX | \
13663 module_cmds_CXX | \
13664 module_expsym_cmds_CXX | \
13665 old_archive_from_expsyms_cmds_CXX | \
13666 export_symbols_cmds_CXX | \
13667 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13668 postinstall_cmds | postuninstall_cmds | \
13669 old_postinstall_cmds | old_postuninstall_cmds | \
13670 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13671 # Double-quote double-evaled strings.
13672 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13675 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13681 *'\$0 --fallback-echo"')
13682 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13688 cat <<__EOF__ >> "$cfgfile"
13689 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13691 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13693 # Shell to use when invoking shell scripts.
13696 # Whether or not to build shared libraries.
13697 build_libtool_libs=$enable_shared
13699 # Whether or not to build static libraries.
13700 build_old_libs=$enable_static
13702 # Whether or not to add -lc for building shared libraries.
13703 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13705 # Whether or not to disallow shared libs when runtime libs are static
13706 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13708 # Whether or not to optimize for fast installation.
13709 fast_install=$enable_fast_install
13712 host_alias=$host_alias
13716 # The build system.
13717 build_alias=$build_alias
13721 # An echo program that does not interpret backslashes.
13726 AR_FLAGS=$lt_AR_FLAGS
13731 # LTCC compiler flags.
13732 LTCFLAGS=$lt_LTCFLAGS
13734 # A language-specific compiler.
13735 CC=$lt_compiler_CXX
13737 # Is the compiler the GNU C compiler?
13743 # The linker used to build libraries.
13746 # Whether we need hard or soft links.
13749 # A BSD-compatible nm program.
13752 # A symbol stripping program
13755 # Used to examine libraries when file_magic_cmd begins "file"
13756 MAGIC_CMD=$MAGIC_CMD
13758 # Used on cygwin: DLL creation program.
13761 # Used on cygwin: object dumper.
13764 # Used on cygwin: assembler.
13767 # The name of the directory that contains temporary libtool files.
13770 # How to create reloadable object files.
13771 reload_flag=$lt_reload_flag
13772 reload_cmds=$lt_reload_cmds
13774 # How to pass a linker flag through the compiler.
13775 wl=$lt_lt_prog_compiler_wl_CXX
13777 # Object file suffix (normally "o").
13778 objext="$ac_objext"
13780 # Old archive suffix (normally "a").
13783 # Shared library suffix (normally ".so").
13784 shrext_cmds='$shrext_cmds'
13786 # Executable file suffix (normally "").
13789 # Additional compiler flags for building library objects.
13790 pic_flag=$lt_lt_prog_compiler_pic_CXX
13793 # What is the maximum length of a command?
13794 max_cmd_len=$lt_cv_sys_max_cmd_len
13796 # Does compiler simultaneously support -c and -o options?
13797 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13799 # Must we lock files when doing compilation?
13800 need_locks=$lt_need_locks
13802 # Do we need the lib prefix for modules?
13803 need_lib_prefix=$need_lib_prefix
13805 # Do we need a version for libraries?
13806 need_version=$need_version
13808 # Whether dlopen is supported.
13809 dlopen_support=$enable_dlopen
13811 # Whether dlopen of programs is supported.
13812 dlopen_self=$enable_dlopen_self
13814 # Whether dlopen of statically linked programs is supported.
13815 dlopen_self_static=$enable_dlopen_self_static
13817 # Compiler flag to prevent dynamic linking.
13818 link_static_flag=$lt_lt_prog_compiler_static_CXX
13820 # Compiler flag to turn off builtin functions.
13821 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13823 # Compiler flag to allow reflexive dlopens.
13824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13826 # Compiler flag to generate shared objects directly from archives.
13827 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13829 # Compiler flag to generate thread-safe objects.
13830 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13832 # Library versioning type.
13833 version_type=$version_type
13835 # Format of library name prefix.
13836 libname_spec=$lt_libname_spec
13838 # List of archive names. First name is the real one, the rest are links.
13839 # The last name is the one that the linker finds with -lNAME.
13840 library_names_spec=$lt_library_names_spec
13842 # The coded name of the library, if different from the real name.
13843 soname_spec=$lt_soname_spec
13845 # Commands used to build and install an old-style archive.
13847 old_archive_cmds=$lt_old_archive_cmds_CXX
13848 old_postinstall_cmds=$lt_old_postinstall_cmds
13849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13851 # Create an old-style archive from a shared archive.
13852 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13854 # Create a temporary old-style archive to link instead of a shared archive.
13855 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13857 # Commands used to build and install a shared archive.
13858 archive_cmds=$lt_archive_cmds_CXX
13859 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13860 postinstall_cmds=$lt_postinstall_cmds
13861 postuninstall_cmds=$lt_postuninstall_cmds
13863 # Commands used to build a loadable module (assumed same as above if empty)
13864 module_cmds=$lt_module_cmds_CXX
13865 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13867 # Commands to strip libraries.
13868 old_striplib=$lt_old_striplib
13869 striplib=$lt_striplib
13871 # Dependencies to place before the objects being linked to create a
13873 predep_objects=$lt_predep_objects_CXX
13875 # Dependencies to place after the objects being linked to create a
13877 postdep_objects=$lt_postdep_objects_CXX
13879 # Dependencies to place before the objects being linked to create a
13881 predeps=$lt_predeps_CXX
13883 # Dependencies to place after the objects being linked to create a
13885 postdeps=$lt_postdeps_CXX
13887 # The library search path used internally by the compiler when linking
13888 # a shared library.
13889 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13891 # Method to check whether dependent libraries are shared objects.
13892 deplibs_check_method=$lt_deplibs_check_method
13894 # Command to use when deplibs_check_method == file_magic.
13895 file_magic_cmd=$lt_file_magic_cmd
13897 # Flag that allows shared libraries with undefined symbols to be built.
13898 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13900 # Flag that forces no undefined symbols.
13901 no_undefined_flag=$lt_no_undefined_flag_CXX
13903 # Commands used to finish a libtool library installation in a directory.
13904 finish_cmds=$lt_finish_cmds
13906 # Same as above, but a single script fragment to be evaled but not shown.
13907 finish_eval=$lt_finish_eval
13909 # Take the output of nm and produce a listing of raw symbols and C names.
13910 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13912 # Transform the output of nm in a proper C declaration
13913 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13915 # Transform the output of nm in a C name address pair
13916 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13918 # This is the shared library runtime path variable.
13919 runpath_var=$runpath_var
13921 # This is the shared library path variable.
13922 shlibpath_var=$shlibpath_var
13924 # Is shlibpath searched before the hard-coded library search path?
13925 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13927 # How to hardcode a shared library path into an executable.
13928 hardcode_action=$hardcode_action_CXX
13930 # Whether we should hardcode library paths into libraries.
13931 hardcode_into_libs=$hardcode_into_libs
13933 # Flag to hardcode \$libdir into a binary during linking.
13934 # This must work even if \$libdir does not exist.
13935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13937 # If ld is used when linking, flag to hardcode \$libdir into
13938 # a binary during linking. This must work even if \$libdir does
13940 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13942 # Whether we need a single -rpath flag with a separated argument.
13943 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13945 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13946 # resulting binary.
13947 hardcode_direct=$hardcode_direct_CXX
13949 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13950 # resulting binary.
13951 hardcode_minus_L=$hardcode_minus_L_CXX
13953 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13954 # the resulting binary.
13955 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13957 # Set to yes if building a shared library automatically hardcodes DIR into the library
13958 # and all subsequent libraries and executables linked against it.
13959 hardcode_automatic=$hardcode_automatic_CXX
13961 # Variables whose values should be saved in libtool wrapper scripts and
13962 # restored at relink time.
13963 variables_saved_for_relink="$variables_saved_for_relink"
13965 # Whether libtool must link a program against all its dependency libraries.
13966 link_all_deplibs=$link_all_deplibs_CXX
13968 # Compile-time system search path for libraries
13969 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13971 # Run-time system search path for libraries
13972 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13974 # Fix the shell variable \$srcfile for the compiler.
13975 fix_srcfile_path="$fix_srcfile_path_CXX"
13977 # Set to yes if exported symbols are required.
13978 always_export_symbols=$always_export_symbols_CXX
13980 # The commands to list exported symbols.
13981 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13983 # The commands to extract the exported symbol list from a shared archive.
13984 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13986 # Symbols that should not be listed in the preloaded symbols.
13987 exclude_expsyms=$lt_exclude_expsyms_CXX
13989 # Symbols that must always be exported.
13990 include_expsyms=$lt_include_expsyms_CXX
13992 # ### END LIBTOOL TAG CONFIG: $tagname
13998 # If there is no Makefile yet, we rely on a make rule to execute
13999 # `config.status --recheck' to rerun these tests and create the
14000 # libtool script then.
14001 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14002 if test -f "$ltmain_in"; then
14003 test -f Makefile && make "$ltmain"
14009 ac_cpp='$CPP $CPPFLAGS'
14010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14018 with_gnu_ldcxx=$with_gnu_ld
14019 with_gnu_ld=$lt_save_with_gnu_ld
14020 lt_cv_path_LDCXX=$lt_cv_path_LD
14021 lt_cv_path_LD=$lt_save_path_LD
14022 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14023 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14031 if test -n "$F77" && test "X$F77" != "Xno"; then
14034 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14035 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14036 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14039 archive_cmds_need_lc_F77=no
14040 allow_undefined_flag_F77=
14041 always_export_symbols_F77=no
14042 archive_expsym_cmds_F77=
14043 export_dynamic_flag_spec_F77=
14044 hardcode_direct_F77=no
14045 hardcode_libdir_flag_spec_F77=
14046 hardcode_libdir_flag_spec_ld_F77=
14047 hardcode_libdir_separator_F77=
14048 hardcode_minus_L_F77=no
14049 hardcode_automatic_F77=no
14051 module_expsym_cmds_F77=
14052 link_all_deplibs_F77=unknown
14053 old_archive_cmds_F77=$old_archive_cmds
14054 no_undefined_flag_F77=
14055 whole_archive_flag_spec_F77=
14056 enable_shared_with_static_runtimes_F77=no
14058 # Source file extension for f77 test sources.
14061 # Object file extension for compiled f77 test sources.
14065 # Code to be used in simple compile tests
14066 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14068 # Code to be used in simple link tests
14069 lt_simple_link_test_code=" program t\n end\n"
14071 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14073 # If no C compiler was specified, use CC.
14076 # If no C compiler flags were specified, use CFLAGS.
14077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14079 # Allow CC to be a program name with arguments.
14083 # save warnings/boilerplate of simple test code
14084 ac_outfile=conftest.$ac_objext
14085 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14086 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14087 _lt_compiler_boilerplate=`cat conftest.err`
14090 ac_outfile=conftest.$ac_objext
14091 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14092 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14093 _lt_linker_boilerplate=`cat conftest.err`
14097 # Allow CC to be a program name with arguments.
14102 for cc_temp in $compiler""; do
14104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14110 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14113 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14114 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14115 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14116 echo "${ECHO_T}$can_build_shared" >&6
14118 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14119 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14120 test "$can_build_shared" = "no" && enable_shared=no
14122 # On AIX, shared libraries and static libraries use the same namespace, and
14123 # are all built from PIC.
14126 test "$enable_shared" = yes && enable_static=no
14127 if test -n "$RANLIB"; then
14128 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14129 postinstall_cmds='$RANLIB $lib'
14133 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14134 test "$enable_shared" = yes && enable_static=no
14138 echo "$as_me:$LINENO: result: $enable_shared" >&5
14139 echo "${ECHO_T}$enable_shared" >&6
14141 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14142 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14143 # Make sure either enable_shared or enable_static is yes.
14144 test "$enable_shared" = yes || enable_static=yes
14145 echo "$as_me:$LINENO: result: $enable_static" >&5
14146 echo "${ECHO_T}$enable_static" >&6
14151 lt_prog_compiler_wl_F77=
14152 lt_prog_compiler_pic_F77=
14153 lt_prog_compiler_static_F77=
14155 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14156 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14158 if test "$GCC" = yes; then
14159 lt_prog_compiler_wl_F77='-Wl,'
14160 lt_prog_compiler_static_F77='-static'
14164 # All AIX code is PIC.
14165 if test "$host_cpu" = ia64; then
14166 # AIX 5 now supports IA64 processor
14167 lt_prog_compiler_static_F77='-Bstatic'
14172 # FIXME: we need at least 68020 code to build shared libraries, but
14173 # adding the `-m68020' flag to GCC prevents building anything better,
14175 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14178 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14179 # PIC is the default for these OSes.
14182 mingw* | pw32* | os2*)
14183 # This hack is so that the source file can tell whether it is being
14184 # built for inclusion in a dll (and should export symbols for example).
14185 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14188 darwin* | rhapsody*)
14189 # PIC is the default on this platform
14190 # Common symbols not allowed in MH_DYLIB files
14191 lt_prog_compiler_pic_F77='-fno-common'
14195 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14196 # Instead, we relocate shared libraries at runtime.
14200 # Just because we use GCC doesn't mean we suddenly get shared libraries
14201 # on systems that don't support them.
14202 lt_prog_compiler_can_build_shared_F77=no
14207 if test -d /usr/nec; then
14208 lt_prog_compiler_pic_F77=-Kconform_pic
14213 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14214 # not for PA HP-UX.
14220 lt_prog_compiler_pic_F77='-fPIC'
14226 lt_prog_compiler_pic_F77='-fPIC'
14230 # PORTME Check for flag to pass linker flags through the system compiler.
14233 lt_prog_compiler_wl_F77='-Wl,'
14234 if test "$host_cpu" = ia64; then
14235 # AIX 5 now supports IA64 processor
14236 lt_prog_compiler_static_F77='-Bstatic'
14238 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14242 # PIC is the default on this platform
14243 # Common symbols not allowed in MH_DYLIB files
14244 case $cc_basename in
14246 lt_prog_compiler_pic_F77='-qnocommon'
14247 lt_prog_compiler_wl_F77='-Wl,'
14252 mingw* | pw32* | os2*)
14253 # This hack is so that the source file can tell whether it is being
14254 # built for inclusion in a dll (and should export symbols for example).
14255 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14258 hpux9* | hpux10* | hpux11*)
14259 lt_prog_compiler_wl_F77='-Wl,'
14260 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14261 # not for PA HP-UX.
14267 lt_prog_compiler_pic_F77='+Z'
14270 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14271 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14274 irix5* | irix6* | nonstopux*)
14275 lt_prog_compiler_wl_F77='-Wl,'
14276 # PIC (with -KPIC) is the default.
14277 lt_prog_compiler_static_F77='-non_shared'
14281 lt_prog_compiler_pic_F77='-KPIC'
14282 lt_prog_compiler_static_F77='-Bstatic'
14285 linux* | k*bsd*-gnu)
14286 case $cc_basename in
14288 lt_prog_compiler_wl_F77='-Wl,'
14289 lt_prog_compiler_pic_F77='-KPIC'
14290 lt_prog_compiler_static_F77='-static'
14292 pgcc* | pgf77* | pgf90* | pgf95*)
14293 # Portland Group compilers (*not* the Pentium gcc compiler,
14294 # which looks to be a dead project)
14295 lt_prog_compiler_wl_F77='-Wl,'
14296 lt_prog_compiler_pic_F77='-fpic'
14297 lt_prog_compiler_static_F77='-Bstatic'
14300 lt_prog_compiler_wl_F77='-Wl,'
14301 # All Alpha code is PIC.
14302 lt_prog_compiler_static_F77='-non_shared'
14307 osf3* | osf4* | osf5*)
14308 lt_prog_compiler_wl_F77='-Wl,'
14309 # All OSF/1 code is PIC.
14310 lt_prog_compiler_static_F77='-non_shared'
14314 lt_prog_compiler_pic_F77='-KPIC'
14315 lt_prog_compiler_static_F77='-Bstatic'
14316 case $cc_basename in
14317 f77* | f90* | f95*)
14318 lt_prog_compiler_wl_F77='-Qoption ld ';;
14320 lt_prog_compiler_wl_F77='-Wl,';;
14325 lt_prog_compiler_wl_F77='-Qoption ld '
14326 lt_prog_compiler_pic_F77='-PIC'
14327 lt_prog_compiler_static_F77='-Bstatic'
14330 sysv4 | sysv4.2uw2* | sysv4.3*)
14331 lt_prog_compiler_wl_F77='-Wl,'
14332 lt_prog_compiler_pic_F77='-KPIC'
14333 lt_prog_compiler_static_F77='-Bstatic'
14337 if test -d /usr/nec ;then
14338 lt_prog_compiler_pic_F77='-Kconform_pic'
14339 lt_prog_compiler_static_F77='-Bstatic'
14343 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14344 lt_prog_compiler_wl_F77='-Wl,'
14345 lt_prog_compiler_pic_F77='-KPIC'
14346 lt_prog_compiler_static_F77='-Bstatic'
14350 lt_prog_compiler_wl_F77='-Wl,'
14351 lt_prog_compiler_can_build_shared_F77=no
14355 lt_prog_compiler_pic_F77='-pic'
14356 lt_prog_compiler_static_F77='-Bstatic'
14360 lt_prog_compiler_can_build_shared_F77=no
14365 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14366 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14369 # Check to make sure the PIC flag actually works.
14371 if test -n "$lt_prog_compiler_pic_F77"; then
14373 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14374 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14375 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14376 echo $ECHO_N "(cached) $ECHO_C" >&6
14378 lt_prog_compiler_pic_works_F77=no
14379 ac_outfile=conftest.$ac_objext
14380 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14381 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14382 # Insert the option either (1) after the last *FLAGS variable, or
14383 # (2) before a word containing "conftest.", or (3) at the end.
14384 # Note that $ac_compile itself does not contain backslashes and begins
14385 # with a dollar sign (not a hyphen), so the echo should work correctly.
14386 # The option is referenced via a variable to avoid confusing sed.
14387 lt_compile=`echo "$ac_compile" | $SED \
14388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14390 -e 's:$: $lt_compiler_flag:'`
14391 (eval echo "\"\$as_me:14391: $lt_compile\"" >&5)
14392 (eval "$lt_compile" 2>conftest.err)
14394 cat conftest.err >&5
14395 echo "$as_me:14395: \$? = $ac_status" >&5
14396 if (exit $ac_status) && test -s "$ac_outfile"; then
14397 # The compiler can only warn and ignore the option if not recognized
14398 # So say no if there are warnings other than the usual output.
14399 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14401 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14402 lt_prog_compiler_pic_works_F77=yes
14408 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14409 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14411 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14412 case $lt_prog_compiler_pic_F77 in
14414 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14417 lt_prog_compiler_pic_F77=
14418 lt_prog_compiler_can_build_shared_F77=no
14423 # For platforms which do not support PIC, -DPIC is meaningless:
14425 lt_prog_compiler_pic_F77=
14428 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14433 # Check to make sure the static flag actually works.
14435 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14436 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14437 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14438 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14441 lt_prog_compiler_static_works_F77=no
14442 save_LDFLAGS="$LDFLAGS"
14443 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14444 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14446 # The linker can only warn and ignore the option if not recognized
14447 # So say no if there are warnings
14448 if test -s conftest.err; then
14449 # Append any errors to the config.log.
14450 cat conftest.err 1>&5
14451 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14453 if diff conftest.exp conftest.er2 >/dev/null; then
14454 lt_prog_compiler_static_works_F77=yes
14457 lt_prog_compiler_static_works_F77=yes
14461 LDFLAGS="$save_LDFLAGS"
14464 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14465 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14467 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14470 lt_prog_compiler_static_F77=
14474 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14475 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14476 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14479 lt_cv_prog_compiler_c_o_F77=no
14480 $rm -r conftest 2>/dev/null
14484 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14486 lt_compiler_flag="-o out/conftest2.$ac_objext"
14487 # Insert the option either (1) after the last *FLAGS variable, or
14488 # (2) before a word containing "conftest.", or (3) at the end.
14489 # Note that $ac_compile itself does not contain backslashes and begins
14490 # with a dollar sign (not a hyphen), so the echo should work correctly.
14491 lt_compile=`echo "$ac_compile" | $SED \
14492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14494 -e 's:$: $lt_compiler_flag:'`
14495 (eval echo "\"\$as_me:14495: $lt_compile\"" >&5)
14496 (eval "$lt_compile" 2>out/conftest.err)
14498 cat out/conftest.err >&5
14499 echo "$as_me:14499: \$? = $ac_status" >&5
14500 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14502 # The compiler can only warn and ignore the option if not recognized
14503 # So say no if there are warnings
14504 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14505 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14506 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14507 lt_cv_prog_compiler_c_o_F77=yes
14512 # SGI C++ compiler will create directory out/ii_files/ for
14513 # template instantiation
14514 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14515 $rm out/* && rmdir out
14521 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14522 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14525 hard_links="nottested"
14526 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14527 # do not overwrite the value of need_locks provided by the user
14528 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14529 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14534 ln conftest.a conftest.b 2>&5 || hard_links=no
14535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14536 echo "$as_me:$LINENO: result: $hard_links" >&5
14537 echo "${ECHO_T}$hard_links" >&6
14538 if test "$hard_links" = no; then
14539 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14540 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14547 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14548 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14551 allow_undefined_flag_F77=
14552 enable_shared_with_static_runtimes_F77=no
14554 archive_expsym_cmds_F77=
14555 old_archive_From_new_cmds_F77=
14556 old_archive_from_expsyms_cmds_F77=
14557 export_dynamic_flag_spec_F77=
14558 whole_archive_flag_spec_F77=
14559 thread_safe_flag_spec_F77=
14560 hardcode_libdir_flag_spec_F77=
14561 hardcode_libdir_flag_spec_ld_F77=
14562 hardcode_libdir_separator_F77=
14563 hardcode_direct_F77=no
14564 hardcode_minus_L_F77=no
14565 hardcode_shlibpath_var_F77=unsupported
14566 link_all_deplibs_F77=unknown
14567 hardcode_automatic_F77=no
14569 module_expsym_cmds_F77=
14570 always_export_symbols_F77=no
14571 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14572 # include_expsyms should be a list of space-separated symbols to be *always*
14573 # included in the symbol list
14574 include_expsyms_F77=
14575 # exclude_expsyms can be an extended regexp of symbols to exclude
14576 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14577 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14578 # as well as any symbol that contains `d'.
14579 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14580 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14581 # platforms (ab)use it in PIC code, but their linkers get confused if
14582 # the symbol is explicitly referenced. Since portable code cannot
14583 # rely on this symbol name, it's probably fine to never include it in
14584 # preloaded symbol tables.
14585 extract_expsyms_cmds=
14586 # Just being paranoid about ensuring that cc_basename is set.
14587 for cc_temp in $compiler""; do
14589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14595 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14598 cygwin* | mingw* | pw32*)
14599 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14600 # When not using gcc, we currently assume that we are using
14601 # Microsoft Visual C++.
14602 if test "$GCC" != yes; then
14607 # we just hope/assume this is gcc and not c89 (= MSVC++)
14616 if test "$with_gnu_ld" = yes; then
14617 # If archive_cmds runs LD, not CC, wlarc should be empty
14620 # Set some defaults for GNU ld with shared library support. These
14621 # are reset later if shared libraries are not supported. Putting them
14622 # here allows them to be overridden if necessary.
14623 runpath_var=LD_RUN_PATH
14624 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14625 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14626 # ancient GNU ld didn't support --whole-archive et. al.
14627 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14628 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14630 whole_archive_flag_spec_F77=
14632 supports_anon_versioning=no
14633 case `$LD -v 2>/dev/null` in
14634 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14635 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14636 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14637 *\ 2.11.*) ;; # other 2.11 versions
14638 *) supports_anon_versioning=yes ;;
14641 # See if GNU ld supports shared libraries.
14643 aix3* | aix4* | aix5*)
14644 # On AIX/PPC, the GNU linker is very broken
14645 if test "$host_cpu" != ia64; then
14649 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14650 *** to be unable to reliably create shared libraries on AIX.
14651 *** Therefore, libtool is disabling shared libraries support. If you
14652 *** really care for shared libraries, you may want to modify your PATH
14653 *** so that a non-GNU linker is found, and then restart.
14660 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)'
14661 hardcode_libdir_flag_spec_F77='-L$libdir'
14662 hardcode_minus_L_F77=yes
14664 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14665 # that the semantics of dynamic libraries on AmigaOS, at least up
14666 # to version 4, is to share data among multiple programs linked
14667 # with the same dynamic library. Since this doesn't match the
14668 # behavior of shared libraries on other platforms, we can't use
14674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14675 allow_undefined_flag_F77=unsupported
14676 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14677 # support --undefined. This deserves some investigation. FIXME
14678 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14684 cygwin* | mingw* | pw32*)
14685 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14686 # as there is no search path for DLLs.
14687 hardcode_libdir_flag_spec_F77='-L$libdir'
14688 allow_undefined_flag_F77=unsupported
14689 always_export_symbols_F77=no
14690 enable_shared_with_static_runtimes_F77=yes
14691 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14693 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14694 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14695 # If the export-symbols file already is a .def file (1st line
14696 # is EXPORTS), use it as is; otherwise, prepend...
14697 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14698 cp $export_symbols $output_objdir/$soname.def;
14700 echo EXPORTS > $output_objdir/$soname.def;
14701 cat $export_symbols >> $output_objdir/$soname.def;
14703 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14710 hardcode_direct_F77=no
14711 hardcode_shlibpath_var_F77=no
14712 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14713 export_dynamic_flag_spec_F77='${wl}-E'
14714 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14715 # Instead, shared libraries are loaded at an image base (0x10000000 by
14716 # default) and relocated if they conflict, which is a slow very memory
14717 # consuming and fragmenting process. To avoid this, we pick a random,
14718 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14719 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14720 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'
14721 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'
14724 linux* | k*bsd*-gnu)
14725 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14727 case $cc_basename,$host_cpu in
14728 pgcc*) # Portland Group C compiler
14729 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'
14730 tmp_addflag=' $pic_flag'
14732 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14733 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'
14734 tmp_addflag=' $pic_flag -Mnomain' ;;
14735 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14736 tmp_addflag=' -i_dynamic' ;;
14737 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14738 tmp_addflag=' -i_dynamic -nofor_main' ;;
14739 ifc* | ifort*) # Intel Fortran compiler
14740 tmp_addflag=' -nofor_main' ;;
14742 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14744 if test $supports_anon_versioning = yes; then
14745 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14747 $echo "local: *; };" >> $output_objdir/$libname.ver~
14748 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14750 link_all_deplibs_F77=no
14756 netbsd* | netbsdelf*-gnu)
14757 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14758 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14761 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14762 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14767 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14771 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14772 *** create shared libraries on Solaris systems. Therefore, libtool
14773 *** is disabling shared libraries support. We urge you to upgrade GNU
14774 *** binutils to release 2.9.1 or newer. Another option is to modify
14775 *** your PATH or compiler configuration so that the native linker is
14776 *** used, and then restart.
14779 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14780 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14781 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14787 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14788 case `$LD -v 2>&1` in
14789 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14793 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14794 *** reliably create shared libraries on SCO systems. Therefore, libtool
14795 *** is disabling shared libraries support. We urge you to upgrade GNU
14796 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14797 *** your PATH or compiler configuration so that the native linker is
14798 *** used, and then restart.
14803 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14804 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14805 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14806 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14815 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14817 hardcode_direct_F77=yes
14818 hardcode_shlibpath_var_F77=no
14822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14823 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14824 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14831 if test "$ld_shlibs_F77" = no; then
14833 hardcode_libdir_flag_spec_F77=
14834 export_dynamic_flag_spec_F77=
14835 whole_archive_flag_spec_F77=
14838 # PORTME fill in a description of your system's linker (not GNU ld)
14841 allow_undefined_flag_F77=unsupported
14842 always_export_symbols_F77=yes
14843 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'
14844 # Note: this linker hardcodes the directories in LIBPATH if there
14845 # are no directories specified by -L.
14846 hardcode_minus_L_F77=yes
14847 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14848 # Neither direct hardcoding nor static linking is supported with a
14850 hardcode_direct_F77=unsupported
14855 if test "$host_cpu" = ia64; then
14856 # On IA64, the linker does run time linking by default, so we don't
14857 # have to do anything special.
14858 aix_use_runtimelinking=no
14859 exp_sym_flag='-Bexport'
14862 # If we're using GNU nm, then we don't want the "-C" option.
14863 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14864 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14865 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'
14867 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'
14869 aix_use_runtimelinking=no
14871 # Test if we are trying to use run time linking or normal
14872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14873 # need to do runtime linking.
14874 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14875 for ld_flag in $LDFLAGS; do
14876 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14877 aix_use_runtimelinking=yes
14884 exp_sym_flag='-bexport'
14885 no_entry_flag='-bnoentry'
14888 # When large executables or shared objects are built, AIX ld can
14889 # have problems creating the table of contents. If linking a library
14890 # or program results in "error TOC overflow" add -mminimal-toc to
14891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14894 archive_cmds_F77=''
14895 hardcode_direct_F77=yes
14896 hardcode_libdir_separator_F77=':'
14897 link_all_deplibs_F77=yes
14899 if test "$GCC" = yes; then
14900 case $host_os in aix4.[012]|aix4.[012].*)
14901 # We only want to do this on AIX 4.2 and lower, the check
14902 # below for broken collect2 doesn't work under 4.3+
14903 collect2name=`${CC} -print-prog-name=collect2`
14904 if test -f "$collect2name" && \
14905 strings "$collect2name" | grep resolve_lib_name >/dev/null
14907 # We have reworked collect2
14908 hardcode_direct_F77=yes
14910 # We have old collect2
14911 hardcode_direct_F77=unsupported
14912 # It fails to find uninstalled libraries when the uninstalled
14913 # path is not listed in the libpath. Setting hardcode_minus_L
14914 # to unsupported forces relinking
14915 hardcode_minus_L_F77=yes
14916 hardcode_libdir_flag_spec_F77='-L$libdir'
14917 hardcode_libdir_separator_F77=
14921 shared_flag='-shared'
14922 if test "$aix_use_runtimelinking" = yes; then
14923 shared_flag="$shared_flag "'${wl}-G'
14927 if test "$host_cpu" = ia64; then
14928 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14929 # chokes on -Wl,-G. The following line is correct:
14932 if test "$aix_use_runtimelinking" = yes; then
14933 shared_flag='${wl}-G'
14935 shared_flag='${wl}-bM:SRE'
14940 # It seems that -bexpall does not export symbols beginning with
14941 # underscore (_), so it is better to generate a list of symbols to export.
14942 always_export_symbols_F77=yes
14943 if test "$aix_use_runtimelinking" = yes; then
14944 # Warning - without using the other runtime loading flags (-brtl),
14945 # -berok will link without error, but may produce a broken library.
14946 allow_undefined_flag_F77='-berok'
14947 # Determine the default libpath from the value encoded in an empty executable.
14948 cat >conftest.$ac_ext <<_ACEOF
14953 rm -f conftest.$ac_objext conftest$ac_exeext
14954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14955 (eval $ac_link) 2>conftest.er1
14957 grep -v '^ *+' conftest.er1 >conftest.err
14959 cat conftest.err >&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } &&
14962 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964 (eval $ac_try) 2>&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; } &&
14968 { ac_try='test -s conftest$ac_exeext'
14969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14970 (eval $ac_try) 2>&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); }; }; then
14975 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14977 # Check for a 64-bit object if we didn't find anything.
14978 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; }
14981 echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14985 rm -f conftest.err conftest.$ac_objext \
14986 conftest$ac_exeext conftest.$ac_ext
14987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14989 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14990 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"
14992 if test "$host_cpu" = ia64; then
14993 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14994 allow_undefined_flag_F77="-z nodefs"
14995 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"
14997 # Determine the default libpath from the value encoded in an empty executable.
14998 cat >conftest.$ac_ext <<_ACEOF
15003 rm -f conftest.$ac_objext conftest$ac_exeext
15004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15005 (eval $ac_link) 2>conftest.er1
15007 grep -v '^ *+' conftest.er1 >conftest.err
15009 cat conftest.err >&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); } &&
15012 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; } &&
15018 { ac_try='test -s conftest$ac_exeext'
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
15025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15027 # Check for a 64-bit object if we didn't find anything.
15028 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; }
15031 echo "$as_me: failed program was:" >&5
15032 sed 's/^/| /' conftest.$ac_ext >&5
15035 rm -f conftest.err conftest.$ac_objext \
15036 conftest$ac_exeext conftest.$ac_ext
15037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15039 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15040 # Warning - without using the other run time loading flags,
15041 # -berok will link without error, but may produce a broken library.
15042 no_undefined_flag_F77=' ${wl}-bernotok'
15043 allow_undefined_flag_F77=' ${wl}-berok'
15044 # Exported symbols can be pulled into shared objects from archives
15045 whole_archive_flag_spec_F77='$convenience'
15046 archive_cmds_need_lc_F77=yes
15047 # This is similar to how AIX traditionally builds its shared libraries.
15048 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'
15054 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)'
15055 hardcode_libdir_flag_spec_F77='-L$libdir'
15056 hardcode_minus_L_F77=yes
15057 # see comment about different semantics on the GNU ld section
15062 export_dynamic_flag_spec_F77=-rdynamic
15065 cygwin* | mingw* | pw32*)
15066 # When not using gcc, we currently assume that we are using
15067 # Microsoft Visual C++.
15068 # hardcode_libdir_flag_spec is actually meaningless, as there is
15069 # no search path for DLLs.
15070 hardcode_libdir_flag_spec_F77=' '
15071 allow_undefined_flag_F77=unsupported
15072 # Tell ltmain to make .lib files, not .a files.
15074 # Tell ltmain to make .dll files, not .so files.
15076 # FIXME: Setting linknames here is a bad hack.
15077 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15078 # The linker will automatically build a .lib file if we build a DLL.
15079 old_archive_From_new_cmds_F77='true'
15080 # FIXME: Should let the user specify the lib program.
15081 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15082 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15083 enable_shared_with_static_runtimes_F77=yes
15086 darwin* | rhapsody*)
15088 rhapsody* | darwin1.[012])
15089 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15092 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15093 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15095 case ${MACOSX_DEPLOYMENT_TARGET} in
15097 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15100 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15106 archive_cmds_need_lc_F77=no
15107 hardcode_direct_F77=no
15108 hardcode_automatic_F77=yes
15109 hardcode_shlibpath_var_F77=unsupported
15110 whole_archive_flag_spec_F77=''
15111 link_all_deplibs_F77=yes
15112 if test "$GCC" = yes ; then
15113 output_verbose_link_cmd='echo'
15114 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15115 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15116 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15117 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}'
15118 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}'
15120 case $cc_basename in
15122 output_verbose_link_cmd='echo'
15123 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15124 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15125 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15126 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}'
15127 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}'
15137 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15138 hardcode_libdir_flag_spec_F77='-L$libdir'
15139 hardcode_shlibpath_var_F77=no
15146 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15147 # support. Future versions do this automatically, but an explicit c++rt0.o
15148 # does not break anything, and helps significantly (at the cost of a little
15151 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15152 hardcode_libdir_flag_spec_F77='-R$libdir'
15153 hardcode_direct_F77=yes
15154 hardcode_shlibpath_var_F77=no
15157 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15159 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15160 hardcode_direct_F77=yes
15161 hardcode_minus_L_F77=yes
15162 hardcode_shlibpath_var_F77=no
15165 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15166 freebsd* | dragonfly*)
15167 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15168 hardcode_libdir_flag_spec_F77='-R$libdir'
15169 hardcode_direct_F77=yes
15170 hardcode_shlibpath_var_F77=no
15174 if test "$GCC" = yes; then
15175 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'
15177 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'
15179 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15180 hardcode_libdir_separator_F77=:
15181 hardcode_direct_F77=yes
15183 # hardcode_minus_L: Not really in the search PATH,
15184 # but as the default location of the library.
15185 hardcode_minus_L_F77=yes
15186 export_dynamic_flag_spec_F77='${wl}-E'
15190 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15191 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15193 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15195 if test "$with_gnu_ld" = no; then
15196 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15197 hardcode_libdir_separator_F77=:
15199 hardcode_direct_F77=yes
15200 export_dynamic_flag_spec_F77='${wl}-E'
15202 # hardcode_minus_L: Not really in the search PATH,
15203 # but as the default location of the library.
15204 hardcode_minus_L_F77=yes
15209 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15212 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15215 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15218 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15224 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15227 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15230 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15234 if test "$with_gnu_ld" = no; then
15235 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15236 hardcode_libdir_separator_F77=:
15240 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15241 hardcode_direct_F77=no
15242 hardcode_shlibpath_var_F77=no
15245 hardcode_direct_F77=yes
15246 export_dynamic_flag_spec_F77='${wl}-E'
15248 # hardcode_minus_L: Not really in the search PATH,
15249 # but as the default location of the library.
15250 hardcode_minus_L_F77=yes
15256 irix5* | irix6* | nonstopux*)
15257 if test "$GCC" = yes; then
15258 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'
15260 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'
15261 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15263 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15264 hardcode_libdir_separator_F77=:
15265 link_all_deplibs_F77=yes
15268 netbsd* | netbsdelf*-gnu)
15269 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15270 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15272 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15274 hardcode_libdir_flag_spec_F77='-R$libdir'
15275 hardcode_direct_F77=yes
15276 hardcode_shlibpath_var_F77=no
15280 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15281 hardcode_direct_F77=yes
15282 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15283 hardcode_libdir_separator_F77=:
15284 hardcode_shlibpath_var_F77=no
15288 hardcode_direct_F77=yes
15289 hardcode_shlibpath_var_F77=no
15290 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15291 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15292 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15293 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15294 export_dynamic_flag_spec_F77='${wl}-E'
15297 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15298 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15299 hardcode_libdir_flag_spec_F77='-R$libdir'
15302 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15303 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15310 hardcode_libdir_flag_spec_F77='-L$libdir'
15311 hardcode_minus_L_F77=yes
15312 allow_undefined_flag_F77=unsupported
15313 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'
15314 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15322 allow_undefined_flag_F77=' -expect_unresolved \*'
15323 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'
15325 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15326 hardcode_libdir_separator_F77=:
15329 osf4* | osf5*) # as osf3* with the addition of -msym flag
15330 if test "$GCC" = yes; then
15331 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15332 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'
15333 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15335 allow_undefined_flag_F77=' -expect_unresolved \*'
15336 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'
15337 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~
15338 $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'
15340 # Both c and cxx compiler support -rpath directly
15341 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15343 hardcode_libdir_separator_F77=:
15347 no_undefined_flag_F77=' -z text'
15348 if test "$GCC" = yes; then
15350 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15351 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15352 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15355 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15356 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15357 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15359 hardcode_libdir_flag_spec_F77='-R$libdir'
15360 hardcode_shlibpath_var_F77=no
15362 solaris2.[0-5] | solaris2.[0-5].*) ;;
15364 # The compiler driver will combine linker options so we
15365 # cannot just pass the convience library names through
15366 # without $wl, iff we do not link with $LD.
15367 # Luckily, gcc supports the same syntax we need for Sun Studio.
15368 # Supported since Solaris 2.6 (maybe 2.5.1?)
15371 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15373 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' ;;
15376 link_all_deplibs_F77=yes
15380 if test "x$host_vendor" = xsequent; then
15381 # Use $CC to link under sequent, because it throws in some extra .o
15382 # files that make .init and .fini sections work.
15383 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15385 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15387 hardcode_libdir_flag_spec_F77='-L$libdir'
15388 hardcode_direct_F77=yes
15389 hardcode_minus_L_F77=yes
15390 hardcode_shlibpath_var_F77=no
15394 case $host_vendor in
15396 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15397 hardcode_direct_F77=yes # is this really true???
15400 ## LD is ld it makes a PLAMLIB
15401 ## CC just makes a GrossModule.
15402 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15403 reload_cmds_F77='$CC -r -o $output$reload_objs'
15404 hardcode_direct_F77=no
15407 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15408 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15411 runpath_var='LD_RUN_PATH'
15412 hardcode_shlibpath_var_F77=no
15416 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15417 hardcode_shlibpath_var_F77=no
15418 export_dynamic_flag_spec_F77='-Bexport'
15422 if test -d /usr/nec; then
15423 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15424 hardcode_shlibpath_var_F77=no
15425 runpath_var=LD_RUN_PATH
15426 hardcode_runpath_var=yes
15431 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15432 no_undefined_flag_F77='${wl}-z,text'
15433 archive_cmds_need_lc_F77=no
15434 hardcode_shlibpath_var_F77=no
15435 runpath_var='LD_RUN_PATH'
15437 if test "$GCC" = yes; then
15438 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15439 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15441 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15442 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15446 sysv5* | sco3.2v5* | sco5v6*)
15447 # Note: We can NOT use -z defs as we might desire, because we do not
15448 # link with -lc, and that would cause any symbols used from libc to
15449 # always be unresolved, which means just about no library would
15450 # ever link correctly. If we're not using GNU ld we use -z text
15451 # though, which does catch some bad symbols but isn't as heavy-handed
15453 no_undefined_flag_F77='${wl}-z,text'
15454 allow_undefined_flag_F77='${wl}-z,nodefs'
15455 archive_cmds_need_lc_F77=no
15456 hardcode_shlibpath_var_F77=no
15457 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15458 hardcode_libdir_separator_F77=':'
15459 link_all_deplibs_F77=yes
15460 export_dynamic_flag_spec_F77='${wl}-Bexport'
15461 runpath_var='LD_RUN_PATH'
15463 if test "$GCC" = yes; then
15464 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15465 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15467 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15468 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15473 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15474 hardcode_libdir_flag_spec_F77='-L$libdir'
15475 hardcode_shlibpath_var_F77=no
15484 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15485 echo "${ECHO_T}$ld_shlibs_F77" >&6
15486 test "$ld_shlibs_F77" = no && can_build_shared=no
15489 # Do we need to explicitly link libc?
15491 case "x$archive_cmds_need_lc_F77" in
15493 # Assume -lc should be added
15494 archive_cmds_need_lc_F77=yes
15496 if test "$enable_shared" = yes && test "$GCC" = yes; then
15497 case $archive_cmds_F77 in
15499 # FIXME: we may have to deal with multi-command sequences.
15502 # Test whether the compiler implicitly links with -lc since on some
15503 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15504 # to ld, don't add -lc before -lgcc.
15505 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15506 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15508 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15511 (eval $ac_compile) 2>&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } 2>conftest.err; then
15517 libobjs=conftest.$ac_objext
15519 wl=$lt_prog_compiler_wl_F77
15520 pic_flag=$lt_prog_compiler_pic_F77
15526 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15527 allow_undefined_flag_F77=
15528 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15529 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }
15534 archive_cmds_need_lc_F77=no
15536 archive_cmds_need_lc_F77=yes
15538 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15540 cat conftest.err 1>&5
15543 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15544 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15551 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15552 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15553 library_names_spec=
15554 libname_spec='lib$name'
15558 postuninstall_cmds=
15562 shlibpath_overrides_runpath=unknown
15564 dynamic_linker="$host_os ld.so"
15565 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15566 if test "$GCC" = yes; then
15567 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15568 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15569 # if the path contains ";" then we assume it to be the separator
15570 # otherwise default to the standard path separator (i.e. ":") - it is
15571 # assumed that no part of a normal pathname contains ";" but that should
15572 # okay in the real world where ";" in dirpaths is itself problematic.
15573 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15575 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15578 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15580 need_lib_prefix=unknown
15581 hardcode_into_libs=no
15583 # when you set need_version to no, make sure it does not cause -set_version
15584 # flags to be left without arguments
15585 need_version=unknown
15590 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15591 shlibpath_var=LIBPATH
15593 # AIX 3 has no versioning support, so we append a major version to the name.
15594 soname_spec='${libname}${release}${shared_ext}$major'
15601 hardcode_into_libs=yes
15602 if test "$host_cpu" = ia64; then
15603 # AIX 5 supports IA64
15604 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15605 shlibpath_var=LD_LIBRARY_PATH
15607 # With GCC up to 2.95.x, collect2 would create an import file
15608 # for dependence libraries. The import file would start with
15609 # the line `#! .'. This would cause the generated library to
15610 # depend on `.', always an invalid library. This was fixed in
15611 # development snapshots of GCC prior to 3.0.
15613 aix4 | aix4.[01] | aix4.[01].*)
15614 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15616 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15619 can_build_shared=no
15623 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15624 # soname into executable. Probably we can add versioning support to
15625 # collect2, so additional links can be useful in future.
15626 if test "$aix_use_runtimelinking" = yes; then
15627 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15628 # instead of lib<name>.a to let people know that these are not
15629 # typical AIX shared libraries.
15630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15632 # We preserve .a as extension for shared libraries through AIX4.2
15633 # and later when we are not doing run time linking.
15634 library_names_spec='${libname}${release}.a $libname.a'
15635 soname_spec='${libname}${release}${shared_ext}$major'
15637 shlibpath_var=LIBPATH
15642 library_names_spec='$libname.ixlibrary $libname.a'
15643 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15644 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'
15648 library_names_spec='${libname}${shared_ext}'
15649 dynamic_linker="$host_os ld.so"
15650 shlibpath_var=LIBRARY_PATH
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657 soname_spec='${libname}${release}${shared_ext}$major'
15658 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15661 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15662 # the default ld.so.conf also contains /usr/contrib/lib and
15663 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15664 # libtool to hard-code these into programs
15667 cygwin* | mingw* | pw32*)
15668 version_type=windows
15673 case $GCC,$host_os in
15674 yes,cygwin* | yes,mingw* | yes,pw32*)
15675 library_names_spec='$libname.dll.a'
15676 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15677 postinstall_cmds='base_file=`basename \${file}`~
15678 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15679 dldir=$destdir/`dirname \$dlpath`~
15680 test -d \$dldir || mkdir -p \$dldir~
15681 $install_prog $dir/$dlname \$dldir/$dlname~
15682 chmod a+x \$dldir/$dlname'
15683 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15684 dlpath=$dir/\$dldll~
15686 shlibpath_overrides_runpath=yes
15690 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15691 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15692 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15695 # MinGW DLLs use traditional 'lib' prefix
15696 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15697 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15698 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15699 # It is most probably a Windows format PATH printed by
15700 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15701 # path with ; separators, and with drive letters. We can handle the
15702 # drive letters (cygwin fileutils understands them), so leave them,
15703 # especially as we might pass files found there to a mingw objdump,
15704 # which wouldn't understand a cygwinified path. Ahh.
15705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15711 # pw32 DLLs use 'pw' prefix rather than 'lib'
15712 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15718 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15721 dynamic_linker='Win32 ld.exe'
15722 # FIXME: first we should search . and the directory the executable is in
15726 darwin* | rhapsody*)
15727 dynamic_linker="$host_os dyld"
15728 version_type=darwin
15731 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15732 soname_spec='${libname}${release}${major}$shared_ext'
15733 shlibpath_overrides_runpath=yes
15734 shlibpath_var=DYLD_LIBRARY_PATH
15735 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15736 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15737 if test "$GCC" = yes; then
15738 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"`
15740 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15742 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15750 soname_spec='${libname}${release}${shared_ext}$major'
15751 shlibpath_var=LD_LIBRARY_PATH
15758 freebsd* | dragonfly*)
15759 # DragonFly does not have aout. When/if they implement a new
15760 # versioning mechanism, adjust this.
15761 if test -x /usr/bin/objformat; then
15762 objformat=`/usr/bin/objformat`
15765 freebsd[123]*) objformat=aout ;;
15766 *) objformat=elf ;;
15769 version_type=freebsd-$objformat
15770 case $version_type in
15772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15781 shlibpath_var=LD_LIBRARY_PATH
15784 shlibpath_overrides_runpath=yes
15786 freebsd3.[01]* | freebsdelf3.[01]*)
15787 shlibpath_overrides_runpath=yes
15788 hardcode_into_libs=yes
15790 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15791 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15792 shlibpath_overrides_runpath=no
15793 hardcode_into_libs=yes
15795 freebsd*) # from 4.6 on
15796 shlibpath_overrides_runpath=yes
15797 hardcode_into_libs=yes
15806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15807 soname_spec='${libname}${release}${shared_ext}$major'
15808 shlibpath_var=LD_LIBRARY_PATH
15809 hardcode_into_libs=yes
15812 hpux9* | hpux10* | hpux11*)
15813 # Give a soname corresponding to the major version so that dld.sl refuses to
15814 # link against other versions.
15821 hardcode_into_libs=yes
15822 dynamic_linker="$host_os dld.so"
15823 shlibpath_var=LD_LIBRARY_PATH
15824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15826 soname_spec='${libname}${release}${shared_ext}$major'
15827 if test "X$HPUX_IA64_MODE" = X32; then
15828 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15830 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15832 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15836 hardcode_into_libs=yes
15837 dynamic_linker="$host_os dld.sl"
15838 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15841 soname_spec='${libname}${release}${shared_ext}$major'
15842 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15847 dynamic_linker="$host_os dld.sl"
15848 shlibpath_var=SHLIB_PATH
15849 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
15854 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15855 postinstall_cmds='chmod 555 $lib'
15862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15863 soname_spec='${libname}${release}${shared_ext}$major'
15864 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15865 shlibpath_var=LD_LIBRARY_PATH
15866 shlibpath_overrides_runpath=no
15867 hardcode_into_libs=yes
15870 irix5* | irix6* | nonstopux*)
15872 nonstopux*) version_type=nonstopux ;;
15874 if test "$lt_cv_prog_gnu_ld" = yes; then
15882 soname_spec='${libname}${release}${shared_ext}$major'
15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15885 irix5* | nonstopux*)
15886 libsuff= shlibsuff=
15889 case $LD in # libtool.m4 will add one of these switches to LD
15890 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15891 libsuff= shlibsuff= libmagic=32-bit;;
15892 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15893 libsuff=32 shlibsuff=N32 libmagic=N32;;
15894 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15895 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15896 *) libsuff= shlibsuff= libmagic=never-match;;
15900 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15901 shlibpath_overrides_runpath=no
15902 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15903 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15904 hardcode_into_libs=yes
15907 # No shared lib support for Linux oldld, aout, or coff.
15908 linux*oldld* | linux*aout* | linux*coff*)
15912 # This must be Linux ELF.
15913 linux* | k*bsd*-gnu)
15917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15918 soname_spec='${libname}${release}${shared_ext}$major'
15919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15920 shlibpath_var=LD_LIBRARY_PATH
15921 shlibpath_overrides_runpath=no
15922 # This implies no fast_install, which is unacceptable.
15923 # Some rework will be needed to allow for fast_install
15924 # before this can be enabled.
15925 hardcode_into_libs=yes
15927 # Append ld.so.conf contents to the search path
15928 if test -f /etc/ld.so.conf; then
15929 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' ' '`
15930 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15933 # We used to test for /lib/ld.so.1 and disable shared libraries on
15934 # powerpc, because MkLinux only supported shared libraries with the
15935 # GNU dynamic linker. Since this was broken with cross compilers,
15936 # most powerpc-linux boxes support dynamic linking these days and
15937 # people can always --disable-shared, the test was removed, and we
15938 # assume the GNU/Linux dynamic linker is in use.
15939 dynamic_linker='GNU/Linux ld.so'
15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15947 soname_spec='${libname}${release}${shared_ext}$major'
15948 shlibpath_var=LD_LIBRARY_PATH
15949 shlibpath_overrides_runpath=no
15950 hardcode_into_libs=yes
15951 dynamic_linker='NetBSD ld.elf_so'
15958 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15961 dynamic_linker='NetBSD (a.out) ld.so'
15963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15964 soname_spec='${libname}${release}${shared_ext}$major'
15965 dynamic_linker='NetBSD ld.elf_so'
15967 shlibpath_var=LD_LIBRARY_PATH
15968 shlibpath_overrides_runpath=yes
15969 hardcode_into_libs=yes
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15975 shlibpath_var=LD_LIBRARY_PATH
15976 shlibpath_overrides_runpath=yes
15983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984 soname_spec='${libname}${release}${shared_ext}$major'
15985 shlibpath_var=LD_LIBRARY_PATH
15986 shlibpath_overrides_runpath=yes
15991 sys_lib_dlsearch_path_spec="/usr/lib"
15993 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15995 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15996 *) need_version=no ;;
15998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16000 shlibpath_var=LD_LIBRARY_PATH
16001 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16003 openbsd2.[89] | openbsd2.[89].*)
16004 shlibpath_overrides_runpath=no
16007 shlibpath_overrides_runpath=yes
16011 shlibpath_overrides_runpath=yes
16016 libname_spec='$name'
16019 library_names_spec='$libname${shared_ext} $libname.a'
16020 dynamic_linker='OS/2 ld.exe'
16021 shlibpath_var=LIBPATH
16024 osf3* | osf4* | osf5*)
16028 soname_spec='${libname}${release}${shared_ext}$major'
16029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16030 shlibpath_var=LD_LIBRARY_PATH
16031 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16032 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040 soname_spec='${libname}${release}${shared_ext}$major'
16041 shlibpath_var=LD_LIBRARY_PATH
16042 shlibpath_overrides_runpath=yes
16043 hardcode_into_libs=yes
16044 # ldd complains unless libraries are executable
16045 postinstall_cmds='chmod +x $lib'
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16051 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16052 shlibpath_var=LD_LIBRARY_PATH
16053 shlibpath_overrides_runpath=yes
16054 if test "$with_gnu_ld" = yes; then
16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16063 soname_spec='${libname}${release}${shared_ext}$major'
16064 shlibpath_var=LD_LIBRARY_PATH
16065 case $host_vendor in
16067 shlibpath_overrides_runpath=no
16069 export_dynamic_flag_spec='${wl}-Blargedynsym'
16070 runpath_var=LD_RUN_PATH
16078 shlibpath_overrides_runpath=no
16079 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16085 if test -d /usr/nec ;then
16087 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16088 soname_spec='$libname${shared_ext}.$major'
16089 shlibpath_var=LD_LIBRARY_PATH
16093 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16094 version_type=freebsd-elf
16097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16098 soname_spec='${libname}${release}${shared_ext}$major'
16099 shlibpath_var=LD_LIBRARY_PATH
16100 hardcode_into_libs=yes
16101 if test "$with_gnu_ld" = yes; then
16102 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16103 shlibpath_overrides_runpath=no
16105 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16106 shlibpath_overrides_runpath=yes
16109 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16113 sys_lib_dlsearch_path_spec='/usr/lib'
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119 soname_spec='${libname}${release}${shared_ext}$major'
16120 shlibpath_var=LD_LIBRARY_PATH
16127 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16128 echo "${ECHO_T}$dynamic_linker" >&6
16129 test "$dynamic_linker" = no && can_build_shared=no
16131 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16132 if test "$GCC" = yes; then
16133 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16136 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16137 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16138 hardcode_action_F77=
16139 if test -n "$hardcode_libdir_flag_spec_F77" || \
16140 test -n "$runpath_var_F77" || \
16141 test "X$hardcode_automatic_F77" = "Xyes" ; then
16143 # We can hardcode non-existant directories.
16144 if test "$hardcode_direct_F77" != no &&
16145 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16146 # have to relink, otherwise we might link with an installed library
16147 # when we should be linking with a yet-to-be-installed one
16148 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16149 test "$hardcode_minus_L_F77" != no; then
16150 # Linking always hardcodes the temporary library directory.
16151 hardcode_action_F77=relink
16153 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16154 hardcode_action_F77=immediate
16157 # We cannot hardcode anything, or else we can only hardcode existing
16159 hardcode_action_F77=unsupported
16161 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16162 echo "${ECHO_T}$hardcode_action_F77" >&6
16164 if test "$hardcode_action_F77" = relink; then
16165 # Fast installation is not supported
16166 enable_fast_install=no
16167 elif test "$shlibpath_overrides_runpath" = yes ||
16168 test "$enable_shared" = no; then
16169 # Fast installation is not necessary
16170 enable_fast_install=needless
16174 # The else clause should only fire when bootstrapping the
16175 # libtool distribution, otherwise you forgot to ship ltmain.sh
16176 # with your package, and you will get complaints that there are
16177 # no rules to generate ltmain.sh.
16178 if test -f "$ltmain"; then
16179 # See if we are running on zsh, and set the options which allow our commands through
16180 # without removal of \ escapes.
16181 if test -n "${ZSH_VERSION+set}" ; then
16182 setopt NO_GLOB_SUBST
16184 # Now quote all the things that may contain metacharacters while being
16185 # careful not to overquote the AC_SUBSTed values. We take copies of the
16186 # variables and quote the copies for generation of the libtool script.
16187 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16189 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16190 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16191 deplibs_check_method reload_flag reload_cmds need_locks \
16192 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16193 lt_cv_sys_global_symbol_to_c_name_address \
16194 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16195 old_postinstall_cmds old_postuninstall_cmds \
16199 lt_prog_compiler_wl_F77 \
16200 lt_prog_compiler_pic_F77 \
16201 lt_prog_compiler_static_F77 \
16202 lt_prog_compiler_no_builtin_flag_F77 \
16203 export_dynamic_flag_spec_F77 \
16204 thread_safe_flag_spec_F77 \
16205 whole_archive_flag_spec_F77 \
16206 enable_shared_with_static_runtimes_F77 \
16207 old_archive_cmds_F77 \
16208 old_archive_from_new_cmds_F77 \
16209 predep_objects_F77 \
16210 postdep_objects_F77 \
16213 compiler_lib_search_path_F77 \
16215 archive_expsym_cmds_F77 \
16216 postinstall_cmds_F77 \
16217 postuninstall_cmds_F77 \
16218 old_archive_from_expsyms_cmds_F77 \
16219 allow_undefined_flag_F77 \
16220 no_undefined_flag_F77 \
16221 export_symbols_cmds_F77 \
16222 hardcode_libdir_flag_spec_F77 \
16223 hardcode_libdir_flag_spec_ld_F77 \
16224 hardcode_libdir_separator_F77 \
16225 hardcode_automatic_F77 \
16227 module_expsym_cmds_F77 \
16228 lt_cv_prog_compiler_c_o_F77 \
16229 exclude_expsyms_F77 \
16230 include_expsyms_F77; do
16233 old_archive_cmds_F77 | \
16234 old_archive_from_new_cmds_F77 | \
16235 archive_cmds_F77 | \
16236 archive_expsym_cmds_F77 | \
16237 module_cmds_F77 | \
16238 module_expsym_cmds_F77 | \
16239 old_archive_from_expsyms_cmds_F77 | \
16240 export_symbols_cmds_F77 | \
16241 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16242 postinstall_cmds | postuninstall_cmds | \
16243 old_postinstall_cmds | old_postuninstall_cmds | \
16244 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16245 # Double-quote double-evaled strings.
16246 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16255 *'\$0 --fallback-echo"')
16256 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16262 cat <<__EOF__ >> "$cfgfile"
16263 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16265 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16267 # Shell to use when invoking shell scripts.
16270 # Whether or not to build shared libraries.
16271 build_libtool_libs=$enable_shared
16273 # Whether or not to build static libraries.
16274 build_old_libs=$enable_static
16276 # Whether or not to add -lc for building shared libraries.
16277 build_libtool_need_lc=$archive_cmds_need_lc_F77
16279 # Whether or not to disallow shared libs when runtime libs are static
16280 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16282 # Whether or not to optimize for fast installation.
16283 fast_install=$enable_fast_install
16286 host_alias=$host_alias
16290 # The build system.
16291 build_alias=$build_alias
16295 # An echo program that does not interpret backslashes.
16300 AR_FLAGS=$lt_AR_FLAGS
16305 # LTCC compiler flags.
16306 LTCFLAGS=$lt_LTCFLAGS
16308 # A language-specific compiler.
16309 CC=$lt_compiler_F77
16311 # Is the compiler the GNU C compiler?
16317 # The linker used to build libraries.
16320 # Whether we need hard or soft links.
16323 # A BSD-compatible nm program.
16326 # A symbol stripping program
16329 # Used to examine libraries when file_magic_cmd begins "file"
16330 MAGIC_CMD=$MAGIC_CMD
16332 # Used on cygwin: DLL creation program.
16335 # Used on cygwin: object dumper.
16338 # Used on cygwin: assembler.
16341 # The name of the directory that contains temporary libtool files.
16344 # How to create reloadable object files.
16345 reload_flag=$lt_reload_flag
16346 reload_cmds=$lt_reload_cmds
16348 # How to pass a linker flag through the compiler.
16349 wl=$lt_lt_prog_compiler_wl_F77
16351 # Object file suffix (normally "o").
16352 objext="$ac_objext"
16354 # Old archive suffix (normally "a").
16357 # Shared library suffix (normally ".so").
16358 shrext_cmds='$shrext_cmds'
16360 # Executable file suffix (normally "").
16363 # Additional compiler flags for building library objects.
16364 pic_flag=$lt_lt_prog_compiler_pic_F77
16367 # What is the maximum length of a command?
16368 max_cmd_len=$lt_cv_sys_max_cmd_len
16370 # Does compiler simultaneously support -c and -o options?
16371 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16373 # Must we lock files when doing compilation?
16374 need_locks=$lt_need_locks
16376 # Do we need the lib prefix for modules?
16377 need_lib_prefix=$need_lib_prefix
16379 # Do we need a version for libraries?
16380 need_version=$need_version
16382 # Whether dlopen is supported.
16383 dlopen_support=$enable_dlopen
16385 # Whether dlopen of programs is supported.
16386 dlopen_self=$enable_dlopen_self
16388 # Whether dlopen of statically linked programs is supported.
16389 dlopen_self_static=$enable_dlopen_self_static
16391 # Compiler flag to prevent dynamic linking.
16392 link_static_flag=$lt_lt_prog_compiler_static_F77
16394 # Compiler flag to turn off builtin functions.
16395 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16397 # Compiler flag to allow reflexive dlopens.
16398 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16400 # Compiler flag to generate shared objects directly from archives.
16401 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16403 # Compiler flag to generate thread-safe objects.
16404 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16406 # Library versioning type.
16407 version_type=$version_type
16409 # Format of library name prefix.
16410 libname_spec=$lt_libname_spec
16412 # List of archive names. First name is the real one, the rest are links.
16413 # The last name is the one that the linker finds with -lNAME.
16414 library_names_spec=$lt_library_names_spec
16416 # The coded name of the library, if different from the real name.
16417 soname_spec=$lt_soname_spec
16419 # Commands used to build and install an old-style archive.
16421 old_archive_cmds=$lt_old_archive_cmds_F77
16422 old_postinstall_cmds=$lt_old_postinstall_cmds
16423 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16425 # Create an old-style archive from a shared archive.
16426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16428 # Create a temporary old-style archive to link instead of a shared archive.
16429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16431 # Commands used to build and install a shared archive.
16432 archive_cmds=$lt_archive_cmds_F77
16433 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16434 postinstall_cmds=$lt_postinstall_cmds
16435 postuninstall_cmds=$lt_postuninstall_cmds
16437 # Commands used to build a loadable module (assumed same as above if empty)
16438 module_cmds=$lt_module_cmds_F77
16439 module_expsym_cmds=$lt_module_expsym_cmds_F77
16441 # Commands to strip libraries.
16442 old_striplib=$lt_old_striplib
16443 striplib=$lt_striplib
16445 # Dependencies to place before the objects being linked to create a
16447 predep_objects=$lt_predep_objects_F77
16449 # Dependencies to place after the objects being linked to create a
16451 postdep_objects=$lt_postdep_objects_F77
16453 # Dependencies to place before the objects being linked to create a
16455 predeps=$lt_predeps_F77
16457 # Dependencies to place after the objects being linked to create a
16459 postdeps=$lt_postdeps_F77
16461 # The library search path used internally by the compiler when linking
16462 # a shared library.
16463 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16465 # Method to check whether dependent libraries are shared objects.
16466 deplibs_check_method=$lt_deplibs_check_method
16468 # Command to use when deplibs_check_method == file_magic.
16469 file_magic_cmd=$lt_file_magic_cmd
16471 # Flag that allows shared libraries with undefined symbols to be built.
16472 allow_undefined_flag=$lt_allow_undefined_flag_F77
16474 # Flag that forces no undefined symbols.
16475 no_undefined_flag=$lt_no_undefined_flag_F77
16477 # Commands used to finish a libtool library installation in a directory.
16478 finish_cmds=$lt_finish_cmds
16480 # Same as above, but a single script fragment to be evaled but not shown.
16481 finish_eval=$lt_finish_eval
16483 # Take the output of nm and produce a listing of raw symbols and C names.
16484 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16486 # Transform the output of nm in a proper C declaration
16487 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16489 # Transform the output of nm in a C name address pair
16490 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16492 # This is the shared library runtime path variable.
16493 runpath_var=$runpath_var
16495 # This is the shared library path variable.
16496 shlibpath_var=$shlibpath_var
16498 # Is shlibpath searched before the hard-coded library search path?
16499 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16501 # How to hardcode a shared library path into an executable.
16502 hardcode_action=$hardcode_action_F77
16504 # Whether we should hardcode library paths into libraries.
16505 hardcode_into_libs=$hardcode_into_libs
16507 # Flag to hardcode \$libdir into a binary during linking.
16508 # This must work even if \$libdir does not exist.
16509 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16511 # If ld is used when linking, flag to hardcode \$libdir into
16512 # a binary during linking. This must work even if \$libdir does
16514 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16516 # Whether we need a single -rpath flag with a separated argument.
16517 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16519 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16520 # resulting binary.
16521 hardcode_direct=$hardcode_direct_F77
16523 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16524 # resulting binary.
16525 hardcode_minus_L=$hardcode_minus_L_F77
16527 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16528 # the resulting binary.
16529 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16531 # Set to yes if building a shared library automatically hardcodes DIR into the library
16532 # and all subsequent libraries and executables linked against it.
16533 hardcode_automatic=$hardcode_automatic_F77
16535 # Variables whose values should be saved in libtool wrapper scripts and
16536 # restored at relink time.
16537 variables_saved_for_relink="$variables_saved_for_relink"
16539 # Whether libtool must link a program against all its dependency libraries.
16540 link_all_deplibs=$link_all_deplibs_F77
16542 # Compile-time system search path for libraries
16543 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16545 # Run-time system search path for libraries
16546 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16548 # Fix the shell variable \$srcfile for the compiler.
16549 fix_srcfile_path="$fix_srcfile_path_F77"
16551 # Set to yes if exported symbols are required.
16552 always_export_symbols=$always_export_symbols_F77
16554 # The commands to list exported symbols.
16555 export_symbols_cmds=$lt_export_symbols_cmds_F77
16557 # The commands to extract the exported symbol list from a shared archive.
16558 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16560 # Symbols that should not be listed in the preloaded symbols.
16561 exclude_expsyms=$lt_exclude_expsyms_F77
16563 # Symbols that must always be exported.
16564 include_expsyms=$lt_include_expsyms_F77
16566 # ### END LIBTOOL TAG CONFIG: $tagname
16572 # If there is no Makefile yet, we rely on a make rule to execute
16573 # `config.status --recheck' to rerun these tests and create the
16574 # libtool script then.
16575 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16576 if test -f "$ltmain_in"; then
16577 test -f Makefile && make "$ltmain"
16583 ac_cpp='$CPP $CPPFLAGS'
16584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16596 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16600 # Source file extension for Java test sources.
16603 # Object file extension for compiled Java test sources.
16607 # Code to be used in simple compile tests
16608 lt_simple_compile_test_code="class foo {}\n"
16610 # Code to be used in simple link tests
16611 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16613 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16615 # If no C compiler was specified, use CC.
16618 # If no C compiler flags were specified, use CFLAGS.
16619 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16621 # Allow CC to be a program name with arguments.
16625 # save warnings/boilerplate of simple test code
16626 ac_outfile=conftest.$ac_objext
16627 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16628 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16629 _lt_compiler_boilerplate=`cat conftest.err`
16632 ac_outfile=conftest.$ac_objext
16633 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16634 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16635 _lt_linker_boilerplate=`cat conftest.err`
16639 # Allow CC to be a program name with arguments.
16644 for cc_temp in $compiler""; do
16646 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16647 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16652 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16655 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16656 archive_cmds_need_lc_GCJ=no
16658 old_archive_cmds_GCJ=$old_archive_cmds
16661 lt_prog_compiler_no_builtin_flag_GCJ=
16663 if test "$GCC" = yes; then
16664 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16667 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16668 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16669 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16670 echo $ECHO_N "(cached) $ECHO_C" >&6
16672 lt_cv_prog_compiler_rtti_exceptions=no
16673 ac_outfile=conftest.$ac_objext
16674 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16675 lt_compiler_flag="-fno-rtti -fno-exceptions"
16676 # Insert the option either (1) after the last *FLAGS variable, or
16677 # (2) before a word containing "conftest.", or (3) at the end.
16678 # Note that $ac_compile itself does not contain backslashes and begins
16679 # with a dollar sign (not a hyphen), so the echo should work correctly.
16680 # The option is referenced via a variable to avoid confusing sed.
16681 lt_compile=`echo "$ac_compile" | $SED \
16682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16684 -e 's:$: $lt_compiler_flag:'`
16685 (eval echo "\"\$as_me:16685: $lt_compile\"" >&5)
16686 (eval "$lt_compile" 2>conftest.err)
16688 cat conftest.err >&5
16689 echo "$as_me:16689: \$? = $ac_status" >&5
16690 if (exit $ac_status) && test -s "$ac_outfile"; then
16691 # The compiler can only warn and ignore the option if not recognized
16692 # So say no if there are warnings other than the usual output.
16693 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16694 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16695 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16696 lt_cv_prog_compiler_rtti_exceptions=yes
16702 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16703 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16705 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16706 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16713 lt_prog_compiler_wl_GCJ=
16714 lt_prog_compiler_pic_GCJ=
16715 lt_prog_compiler_static_GCJ=
16717 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16718 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16720 if test "$GCC" = yes; then
16721 lt_prog_compiler_wl_GCJ='-Wl,'
16722 lt_prog_compiler_static_GCJ='-static'
16726 # All AIX code is PIC.
16727 if test "$host_cpu" = ia64; then
16728 # AIX 5 now supports IA64 processor
16729 lt_prog_compiler_static_GCJ='-Bstatic'
16734 # FIXME: we need at least 68020 code to build shared libraries, but
16735 # adding the `-m68020' flag to GCC prevents building anything better,
16737 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16740 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16741 # PIC is the default for these OSes.
16744 mingw* | pw32* | os2*)
16745 # This hack is so that the source file can tell whether it is being
16746 # built for inclusion in a dll (and should export symbols for example).
16747 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16750 darwin* | rhapsody*)
16751 # PIC is the default on this platform
16752 # Common symbols not allowed in MH_DYLIB files
16753 lt_prog_compiler_pic_GCJ='-fno-common'
16757 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16758 # Instead, we relocate shared libraries at runtime.
16762 # Just because we use GCC doesn't mean we suddenly get shared libraries
16763 # on systems that don't support them.
16764 lt_prog_compiler_can_build_shared_GCJ=no
16769 if test -d /usr/nec; then
16770 lt_prog_compiler_pic_GCJ=-Kconform_pic
16775 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16776 # not for PA HP-UX.
16782 lt_prog_compiler_pic_GCJ='-fPIC'
16788 lt_prog_compiler_pic_GCJ='-fPIC'
16792 # PORTME Check for flag to pass linker flags through the system compiler.
16795 lt_prog_compiler_wl_GCJ='-Wl,'
16796 if test "$host_cpu" = ia64; then
16797 # AIX 5 now supports IA64 processor
16798 lt_prog_compiler_static_GCJ='-Bstatic'
16800 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16804 # PIC is the default on this platform
16805 # Common symbols not allowed in MH_DYLIB files
16806 case $cc_basename in
16808 lt_prog_compiler_pic_GCJ='-qnocommon'
16809 lt_prog_compiler_wl_GCJ='-Wl,'
16814 mingw* | pw32* | os2*)
16815 # This hack is so that the source file can tell whether it is being
16816 # built for inclusion in a dll (and should export symbols for example).
16817 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16820 hpux9* | hpux10* | hpux11*)
16821 lt_prog_compiler_wl_GCJ='-Wl,'
16822 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16823 # not for PA HP-UX.
16829 lt_prog_compiler_pic_GCJ='+Z'
16832 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16833 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16836 irix5* | irix6* | nonstopux*)
16837 lt_prog_compiler_wl_GCJ='-Wl,'
16838 # PIC (with -KPIC) is the default.
16839 lt_prog_compiler_static_GCJ='-non_shared'
16843 lt_prog_compiler_pic_GCJ='-KPIC'
16844 lt_prog_compiler_static_GCJ='-Bstatic'
16847 linux* | k*bsd*-gnu)
16848 case $cc_basename in
16850 lt_prog_compiler_wl_GCJ='-Wl,'
16851 lt_prog_compiler_pic_GCJ='-KPIC'
16852 lt_prog_compiler_static_GCJ='-static'
16854 pgcc* | pgf77* | pgf90* | pgf95*)
16855 # Portland Group compilers (*not* the Pentium gcc compiler,
16856 # which looks to be a dead project)
16857 lt_prog_compiler_wl_GCJ='-Wl,'
16858 lt_prog_compiler_pic_GCJ='-fpic'
16859 lt_prog_compiler_static_GCJ='-Bstatic'
16862 lt_prog_compiler_wl_GCJ='-Wl,'
16863 # All Alpha code is PIC.
16864 lt_prog_compiler_static_GCJ='-non_shared'
16869 osf3* | osf4* | osf5*)
16870 lt_prog_compiler_wl_GCJ='-Wl,'
16871 # All OSF/1 code is PIC.
16872 lt_prog_compiler_static_GCJ='-non_shared'
16876 lt_prog_compiler_pic_GCJ='-KPIC'
16877 lt_prog_compiler_static_GCJ='-Bstatic'
16878 case $cc_basename in
16879 f77* | f90* | f95*)
16880 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16882 lt_prog_compiler_wl_GCJ='-Wl,';;
16887 lt_prog_compiler_wl_GCJ='-Qoption ld '
16888 lt_prog_compiler_pic_GCJ='-PIC'
16889 lt_prog_compiler_static_GCJ='-Bstatic'
16892 sysv4 | sysv4.2uw2* | sysv4.3*)
16893 lt_prog_compiler_wl_GCJ='-Wl,'
16894 lt_prog_compiler_pic_GCJ='-KPIC'
16895 lt_prog_compiler_static_GCJ='-Bstatic'
16899 if test -d /usr/nec ;then
16900 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16901 lt_prog_compiler_static_GCJ='-Bstatic'
16905 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16906 lt_prog_compiler_wl_GCJ='-Wl,'
16907 lt_prog_compiler_pic_GCJ='-KPIC'
16908 lt_prog_compiler_static_GCJ='-Bstatic'
16912 lt_prog_compiler_wl_GCJ='-Wl,'
16913 lt_prog_compiler_can_build_shared_GCJ=no
16917 lt_prog_compiler_pic_GCJ='-pic'
16918 lt_prog_compiler_static_GCJ='-Bstatic'
16922 lt_prog_compiler_can_build_shared_GCJ=no
16927 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16928 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16931 # Check to make sure the PIC flag actually works.
16933 if test -n "$lt_prog_compiler_pic_GCJ"; then
16935 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16936 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16937 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16938 echo $ECHO_N "(cached) $ECHO_C" >&6
16940 lt_prog_compiler_pic_works_GCJ=no
16941 ac_outfile=conftest.$ac_objext
16942 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16943 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16944 # Insert the option either (1) after the last *FLAGS variable, or
16945 # (2) before a word containing "conftest.", or (3) at the end.
16946 # Note that $ac_compile itself does not contain backslashes and begins
16947 # with a dollar sign (not a hyphen), so the echo should work correctly.
16948 # The option is referenced via a variable to avoid confusing sed.
16949 lt_compile=`echo "$ac_compile" | $SED \
16950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16952 -e 's:$: $lt_compiler_flag:'`
16953 (eval echo "\"\$as_me:16953: $lt_compile\"" >&5)
16954 (eval "$lt_compile" 2>conftest.err)
16956 cat conftest.err >&5
16957 echo "$as_me:16957: \$? = $ac_status" >&5
16958 if (exit $ac_status) && test -s "$ac_outfile"; then
16959 # The compiler can only warn and ignore the option if not recognized
16960 # So say no if there are warnings other than the usual output.
16961 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16964 lt_prog_compiler_pic_works_GCJ=yes
16970 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16971 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16973 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16974 case $lt_prog_compiler_pic_GCJ in
16976 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16979 lt_prog_compiler_pic_GCJ=
16980 lt_prog_compiler_can_build_shared_GCJ=no
16985 # For platforms which do not support PIC, -DPIC is meaningless:
16987 lt_prog_compiler_pic_GCJ=
16990 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16995 # Check to make sure the static flag actually works.
16997 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16998 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16999 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17000 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17001 echo $ECHO_N "(cached) $ECHO_C" >&6
17003 lt_prog_compiler_static_works_GCJ=no
17004 save_LDFLAGS="$LDFLAGS"
17005 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17006 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17008 # The linker can only warn and ignore the option if not recognized
17009 # So say no if there are warnings
17010 if test -s conftest.err; then
17011 # Append any errors to the config.log.
17012 cat conftest.err 1>&5
17013 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17015 if diff conftest.exp conftest.er2 >/dev/null; then
17016 lt_prog_compiler_static_works_GCJ=yes
17019 lt_prog_compiler_static_works_GCJ=yes
17023 LDFLAGS="$save_LDFLAGS"
17026 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17027 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17029 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17032 lt_prog_compiler_static_GCJ=
17036 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17037 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17038 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 lt_cv_prog_compiler_c_o_GCJ=no
17042 $rm -r conftest 2>/dev/null
17046 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17048 lt_compiler_flag="-o out/conftest2.$ac_objext"
17049 # Insert the option either (1) after the last *FLAGS variable, or
17050 # (2) before a word containing "conftest.", or (3) at the end.
17051 # Note that $ac_compile itself does not contain backslashes and begins
17052 # with a dollar sign (not a hyphen), so the echo should work correctly.
17053 lt_compile=`echo "$ac_compile" | $SED \
17054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17056 -e 's:$: $lt_compiler_flag:'`
17057 (eval echo "\"\$as_me:17057: $lt_compile\"" >&5)
17058 (eval "$lt_compile" 2>out/conftest.err)
17060 cat out/conftest.err >&5
17061 echo "$as_me:17061: \$? = $ac_status" >&5
17062 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17064 # The compiler can only warn and ignore the option if not recognized
17065 # So say no if there are warnings
17066 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17067 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17068 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17069 lt_cv_prog_compiler_c_o_GCJ=yes
17074 # SGI C++ compiler will create directory out/ii_files/ for
17075 # template instantiation
17076 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17077 $rm out/* && rmdir out
17083 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17084 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17087 hard_links="nottested"
17088 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17089 # do not overwrite the value of need_locks provided by the user
17090 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17091 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17094 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17096 ln conftest.a conftest.b 2>&5 || hard_links=no
17097 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17098 echo "$as_me:$LINENO: result: $hard_links" >&5
17099 echo "${ECHO_T}$hard_links" >&6
17100 if test "$hard_links" = no; then
17101 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17102 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17109 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17110 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17113 allow_undefined_flag_GCJ=
17114 enable_shared_with_static_runtimes_GCJ=no
17116 archive_expsym_cmds_GCJ=
17117 old_archive_From_new_cmds_GCJ=
17118 old_archive_from_expsyms_cmds_GCJ=
17119 export_dynamic_flag_spec_GCJ=
17120 whole_archive_flag_spec_GCJ=
17121 thread_safe_flag_spec_GCJ=
17122 hardcode_libdir_flag_spec_GCJ=
17123 hardcode_libdir_flag_spec_ld_GCJ=
17124 hardcode_libdir_separator_GCJ=
17125 hardcode_direct_GCJ=no
17126 hardcode_minus_L_GCJ=no
17127 hardcode_shlibpath_var_GCJ=unsupported
17128 link_all_deplibs_GCJ=unknown
17129 hardcode_automatic_GCJ=no
17131 module_expsym_cmds_GCJ=
17132 always_export_symbols_GCJ=no
17133 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17134 # include_expsyms should be a list of space-separated symbols to be *always*
17135 # included in the symbol list
17136 include_expsyms_GCJ=
17137 # exclude_expsyms can be an extended regexp of symbols to exclude
17138 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17139 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17140 # as well as any symbol that contains `d'.
17141 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17142 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17143 # platforms (ab)use it in PIC code, but their linkers get confused if
17144 # the symbol is explicitly referenced. Since portable code cannot
17145 # rely on this symbol name, it's probably fine to never include it in
17146 # preloaded symbol tables.
17147 extract_expsyms_cmds=
17148 # Just being paranoid about ensuring that cc_basename is set.
17149 for cc_temp in $compiler""; do
17151 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17152 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17157 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17160 cygwin* | mingw* | pw32*)
17161 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17162 # When not using gcc, we currently assume that we are using
17163 # Microsoft Visual C++.
17164 if test "$GCC" != yes; then
17169 # we just hope/assume this is gcc and not c89 (= MSVC++)
17178 if test "$with_gnu_ld" = yes; then
17179 # If archive_cmds runs LD, not CC, wlarc should be empty
17182 # Set some defaults for GNU ld with shared library support. These
17183 # are reset later if shared libraries are not supported. Putting them
17184 # here allows them to be overridden if necessary.
17185 runpath_var=LD_RUN_PATH
17186 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17187 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17188 # ancient GNU ld didn't support --whole-archive et. al.
17189 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17190 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17192 whole_archive_flag_spec_GCJ=
17194 supports_anon_versioning=no
17195 case `$LD -v 2>/dev/null` in
17196 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17197 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17198 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17199 *\ 2.11.*) ;; # other 2.11 versions
17200 *) supports_anon_versioning=yes ;;
17203 # See if GNU ld supports shared libraries.
17205 aix3* | aix4* | aix5*)
17206 # On AIX/PPC, the GNU linker is very broken
17207 if test "$host_cpu" != ia64; then
17211 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17212 *** to be unable to reliably create shared libraries on AIX.
17213 *** Therefore, libtool is disabling shared libraries support. If you
17214 *** really care for shared libraries, you may want to modify your PATH
17215 *** so that a non-GNU linker is found, and then restart.
17222 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)'
17223 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17224 hardcode_minus_L_GCJ=yes
17226 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17227 # that the semantics of dynamic libraries on AmigaOS, at least up
17228 # to version 4, is to share data among multiple programs linked
17229 # with the same dynamic library. Since this doesn't match the
17230 # behavior of shared libraries on other platforms, we can't use
17236 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17237 allow_undefined_flag_GCJ=unsupported
17238 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17239 # support --undefined. This deserves some investigation. FIXME
17240 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17246 cygwin* | mingw* | pw32*)
17247 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17248 # as there is no search path for DLLs.
17249 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17250 allow_undefined_flag_GCJ=unsupported
17251 always_export_symbols_GCJ=no
17252 enable_shared_with_static_runtimes_GCJ=yes
17253 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17255 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17256 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17257 # If the export-symbols file already is a .def file (1st line
17258 # is EXPORTS), use it as is; otherwise, prepend...
17259 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17260 cp $export_symbols $output_objdir/$soname.def;
17262 echo EXPORTS > $output_objdir/$soname.def;
17263 cat $export_symbols >> $output_objdir/$soname.def;
17265 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17272 hardcode_direct_GCJ=no
17273 hardcode_shlibpath_var_GCJ=no
17274 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17275 export_dynamic_flag_spec_GCJ='${wl}-E'
17276 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17277 # Instead, shared libraries are loaded at an image base (0x10000000 by
17278 # default) and relocated if they conflict, which is a slow very memory
17279 # consuming and fragmenting process. To avoid this, we pick a random,
17280 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17281 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17282 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'
17283 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'
17286 linux* | k*bsd*-gnu)
17287 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17289 case $cc_basename,$host_cpu in
17290 pgcc*) # Portland Group C compiler
17291 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'
17292 tmp_addflag=' $pic_flag'
17294 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17295 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'
17296 tmp_addflag=' $pic_flag -Mnomain' ;;
17297 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17298 tmp_addflag=' -i_dynamic' ;;
17299 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17300 tmp_addflag=' -i_dynamic -nofor_main' ;;
17301 ifc* | ifort*) # Intel Fortran compiler
17302 tmp_addflag=' -nofor_main' ;;
17304 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17306 if test $supports_anon_versioning = yes; then
17307 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17308 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17309 $echo "local: *; };" >> $output_objdir/$libname.ver~
17310 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17312 link_all_deplibs_GCJ=no
17318 netbsd* | netbsdelf*-gnu)
17319 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17320 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17323 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17324 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17329 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17333 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17334 *** create shared libraries on Solaris systems. Therefore, libtool
17335 *** is disabling shared libraries support. We urge you to upgrade GNU
17336 *** binutils to release 2.9.1 or newer. Another option is to modify
17337 *** your PATH or compiler configuration so that the native linker is
17338 *** used, and then restart.
17341 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17342 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17343 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17349 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17350 case `$LD -v 2>&1` in
17351 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17355 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17356 *** reliably create shared libraries on SCO systems. Therefore, libtool
17357 *** is disabling shared libraries support. We urge you to upgrade GNU
17358 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17359 *** your PATH or compiler configuration so that the native linker is
17360 *** used, and then restart.
17365 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17366 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17367 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17368 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17377 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17379 hardcode_direct_GCJ=yes
17380 hardcode_shlibpath_var_GCJ=no
17384 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17385 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17386 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17393 if test "$ld_shlibs_GCJ" = no; then
17395 hardcode_libdir_flag_spec_GCJ=
17396 export_dynamic_flag_spec_GCJ=
17397 whole_archive_flag_spec_GCJ=
17400 # PORTME fill in a description of your system's linker (not GNU ld)
17403 allow_undefined_flag_GCJ=unsupported
17404 always_export_symbols_GCJ=yes
17405 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'
17406 # Note: this linker hardcodes the directories in LIBPATH if there
17407 # are no directories specified by -L.
17408 hardcode_minus_L_GCJ=yes
17409 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17410 # Neither direct hardcoding nor static linking is supported with a
17412 hardcode_direct_GCJ=unsupported
17417 if test "$host_cpu" = ia64; then
17418 # On IA64, the linker does run time linking by default, so we don't
17419 # have to do anything special.
17420 aix_use_runtimelinking=no
17421 exp_sym_flag='-Bexport'
17424 # If we're using GNU nm, then we don't want the "-C" option.
17425 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17426 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17427 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'
17429 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'
17431 aix_use_runtimelinking=no
17433 # Test if we are trying to use run time linking or normal
17434 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17435 # need to do runtime linking.
17436 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17437 for ld_flag in $LDFLAGS; do
17438 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17439 aix_use_runtimelinking=yes
17446 exp_sym_flag='-bexport'
17447 no_entry_flag='-bnoentry'
17450 # When large executables or shared objects are built, AIX ld can
17451 # have problems creating the table of contents. If linking a library
17452 # or program results in "error TOC overflow" add -mminimal-toc to
17453 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17454 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17456 archive_cmds_GCJ=''
17457 hardcode_direct_GCJ=yes
17458 hardcode_libdir_separator_GCJ=':'
17459 link_all_deplibs_GCJ=yes
17461 if test "$GCC" = yes; then
17462 case $host_os in aix4.[012]|aix4.[012].*)
17463 # We only want to do this on AIX 4.2 and lower, the check
17464 # below for broken collect2 doesn't work under 4.3+
17465 collect2name=`${CC} -print-prog-name=collect2`
17466 if test -f "$collect2name" && \
17467 strings "$collect2name" | grep resolve_lib_name >/dev/null
17469 # We have reworked collect2
17470 hardcode_direct_GCJ=yes
17472 # We have old collect2
17473 hardcode_direct_GCJ=unsupported
17474 # It fails to find uninstalled libraries when the uninstalled
17475 # path is not listed in the libpath. Setting hardcode_minus_L
17476 # to unsupported forces relinking
17477 hardcode_minus_L_GCJ=yes
17478 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17479 hardcode_libdir_separator_GCJ=
17483 shared_flag='-shared'
17484 if test "$aix_use_runtimelinking" = yes; then
17485 shared_flag="$shared_flag "'${wl}-G'
17489 if test "$host_cpu" = ia64; then
17490 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17491 # chokes on -Wl,-G. The following line is correct:
17494 if test "$aix_use_runtimelinking" = yes; then
17495 shared_flag='${wl}-G'
17497 shared_flag='${wl}-bM:SRE'
17502 # It seems that -bexpall does not export symbols beginning with
17503 # underscore (_), so it is better to generate a list of symbols to export.
17504 always_export_symbols_GCJ=yes
17505 if test "$aix_use_runtimelinking" = yes; then
17506 # Warning - without using the other runtime loading flags (-brtl),
17507 # -berok will link without error, but may produce a broken library.
17508 allow_undefined_flag_GCJ='-berok'
17509 # Determine the default libpath from the value encoded in an empty executable.
17510 cat >conftest.$ac_ext <<_ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17525 rm -f conftest.$ac_objext conftest$ac_exeext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527 (eval $ac_link) 2>conftest.er1
17529 grep -v '^ *+' conftest.er1 >conftest.err
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } &&
17534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; } &&
17540 { ac_try='test -s conftest$ac_exeext'
17541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542 (eval $ac_try) 2>&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; }; then
17547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17549 # Check for a 64-bit object if we didn't find anything.
17550 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; }
17553 echo "$as_me: failed program was:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17557 rm -f conftest.err conftest.$ac_objext \
17558 conftest$ac_exeext conftest.$ac_ext
17559 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17561 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17562 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"
17564 if test "$host_cpu" = ia64; then
17565 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17566 allow_undefined_flag_GCJ="-z nodefs"
17567 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"
17569 # Determine the default libpath from the value encoded in an empty executable.
17570 cat >conftest.$ac_ext <<_ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h. */
17585 rm -f conftest.$ac_objext conftest$ac_exeext
17586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17587 (eval $ac_link) 2>conftest.er1
17589 grep -v '^ *+' conftest.er1 >conftest.err
17591 cat conftest.err >&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } &&
17594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; } &&
17600 { ac_try='test -s conftest$ac_exeext'
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; }; then
17607 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17609 # Check for a 64-bit object if we didn't find anything.
17610 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; }
17613 echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17617 rm -f conftest.err conftest.$ac_objext \
17618 conftest$ac_exeext conftest.$ac_ext
17619 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17621 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17622 # Warning - without using the other run time loading flags,
17623 # -berok will link without error, but may produce a broken library.
17624 no_undefined_flag_GCJ=' ${wl}-bernotok'
17625 allow_undefined_flag_GCJ=' ${wl}-berok'
17626 # Exported symbols can be pulled into shared objects from archives
17627 whole_archive_flag_spec_GCJ='$convenience'
17628 archive_cmds_need_lc_GCJ=yes
17629 # This is similar to how AIX traditionally builds its shared libraries.
17630 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'
17636 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)'
17637 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17638 hardcode_minus_L_GCJ=yes
17639 # see comment about different semantics on the GNU ld section
17644 export_dynamic_flag_spec_GCJ=-rdynamic
17647 cygwin* | mingw* | pw32*)
17648 # When not using gcc, we currently assume that we are using
17649 # Microsoft Visual C++.
17650 # hardcode_libdir_flag_spec is actually meaningless, as there is
17651 # no search path for DLLs.
17652 hardcode_libdir_flag_spec_GCJ=' '
17653 allow_undefined_flag_GCJ=unsupported
17654 # Tell ltmain to make .lib files, not .a files.
17656 # Tell ltmain to make .dll files, not .so files.
17658 # FIXME: Setting linknames here is a bad hack.
17659 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17660 # The linker will automatically build a .lib file if we build a DLL.
17661 old_archive_From_new_cmds_GCJ='true'
17662 # FIXME: Should let the user specify the lib program.
17663 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17664 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17665 enable_shared_with_static_runtimes_GCJ=yes
17668 darwin* | rhapsody*)
17670 rhapsody* | darwin1.[012])
17671 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17674 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17675 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17677 case ${MACOSX_DEPLOYMENT_TARGET} in
17679 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17682 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17688 archive_cmds_need_lc_GCJ=no
17689 hardcode_direct_GCJ=no
17690 hardcode_automatic_GCJ=yes
17691 hardcode_shlibpath_var_GCJ=unsupported
17692 whole_archive_flag_spec_GCJ=''
17693 link_all_deplibs_GCJ=yes
17694 if test "$GCC" = yes ; then
17695 output_verbose_link_cmd='echo'
17696 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17697 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17698 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17699 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}'
17700 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}'
17702 case $cc_basename in
17704 output_verbose_link_cmd='echo'
17705 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17706 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17707 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17708 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}'
17709 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}'
17719 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17720 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17721 hardcode_shlibpath_var_GCJ=no
17728 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17729 # support. Future versions do this automatically, but an explicit c++rt0.o
17730 # does not break anything, and helps significantly (at the cost of a little
17733 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17734 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17735 hardcode_direct_GCJ=yes
17736 hardcode_shlibpath_var_GCJ=no
17739 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17741 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17742 hardcode_direct_GCJ=yes
17743 hardcode_minus_L_GCJ=yes
17744 hardcode_shlibpath_var_GCJ=no
17747 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17748 freebsd* | dragonfly*)
17749 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17750 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17751 hardcode_direct_GCJ=yes
17752 hardcode_shlibpath_var_GCJ=no
17756 if test "$GCC" = yes; then
17757 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'
17759 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'
17761 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17762 hardcode_libdir_separator_GCJ=:
17763 hardcode_direct_GCJ=yes
17765 # hardcode_minus_L: Not really in the search PATH,
17766 # but as the default location of the library.
17767 hardcode_minus_L_GCJ=yes
17768 export_dynamic_flag_spec_GCJ='${wl}-E'
17772 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17773 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17775 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17777 if test "$with_gnu_ld" = no; then
17778 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17779 hardcode_libdir_separator_GCJ=:
17781 hardcode_direct_GCJ=yes
17782 export_dynamic_flag_spec_GCJ='${wl}-E'
17784 # hardcode_minus_L: Not really in the search PATH,
17785 # but as the default location of the library.
17786 hardcode_minus_L_GCJ=yes
17791 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17794 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17797 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17800 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17806 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17809 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17812 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17816 if test "$with_gnu_ld" = no; then
17817 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17818 hardcode_libdir_separator_GCJ=:
17822 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17823 hardcode_direct_GCJ=no
17824 hardcode_shlibpath_var_GCJ=no
17827 hardcode_direct_GCJ=yes
17828 export_dynamic_flag_spec_GCJ='${wl}-E'
17830 # hardcode_minus_L: Not really in the search PATH,
17831 # but as the default location of the library.
17832 hardcode_minus_L_GCJ=yes
17838 irix5* | irix6* | nonstopux*)
17839 if test "$GCC" = yes; then
17840 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'
17842 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'
17843 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17845 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17846 hardcode_libdir_separator_GCJ=:
17847 link_all_deplibs_GCJ=yes
17850 netbsd* | netbsdelf*-gnu)
17851 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17852 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17854 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17856 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17857 hardcode_direct_GCJ=yes
17858 hardcode_shlibpath_var_GCJ=no
17862 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17863 hardcode_direct_GCJ=yes
17864 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17865 hardcode_libdir_separator_GCJ=:
17866 hardcode_shlibpath_var_GCJ=no
17870 hardcode_direct_GCJ=yes
17871 hardcode_shlibpath_var_GCJ=no
17872 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17873 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17874 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17875 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17876 export_dynamic_flag_spec_GCJ='${wl}-E'
17879 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17880 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17881 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17884 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17885 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17892 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17893 hardcode_minus_L_GCJ=yes
17894 allow_undefined_flag_GCJ=unsupported
17895 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'
17896 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17904 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17905 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'
17907 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17908 hardcode_libdir_separator_GCJ=:
17911 osf4* | osf5*) # as osf3* with the addition of -msym flag
17912 if test "$GCC" = yes; then
17913 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17914 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'
17915 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17917 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17918 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'
17919 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~
17920 $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'
17922 # Both c and cxx compiler support -rpath directly
17923 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17925 hardcode_libdir_separator_GCJ=:
17929 no_undefined_flag_GCJ=' -z text'
17930 if test "$GCC" = yes; then
17932 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17933 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17934 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17937 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17938 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17939 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17941 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17942 hardcode_shlibpath_var_GCJ=no
17944 solaris2.[0-5] | solaris2.[0-5].*) ;;
17946 # The compiler driver will combine linker options so we
17947 # cannot just pass the convience library names through
17948 # without $wl, iff we do not link with $LD.
17949 # Luckily, gcc supports the same syntax we need for Sun Studio.
17950 # Supported since Solaris 2.6 (maybe 2.5.1?)
17953 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17955 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' ;;
17958 link_all_deplibs_GCJ=yes
17962 if test "x$host_vendor" = xsequent; then
17963 # Use $CC to link under sequent, because it throws in some extra .o
17964 # files that make .init and .fini sections work.
17965 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17967 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17969 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17970 hardcode_direct_GCJ=yes
17971 hardcode_minus_L_GCJ=yes
17972 hardcode_shlibpath_var_GCJ=no
17976 case $host_vendor in
17978 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17979 hardcode_direct_GCJ=yes # is this really true???
17982 ## LD is ld it makes a PLAMLIB
17983 ## CC just makes a GrossModule.
17984 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17985 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17986 hardcode_direct_GCJ=no
17989 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17990 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17993 runpath_var='LD_RUN_PATH'
17994 hardcode_shlibpath_var_GCJ=no
17998 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17999 hardcode_shlibpath_var_GCJ=no
18000 export_dynamic_flag_spec_GCJ='-Bexport'
18004 if test -d /usr/nec; then
18005 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18006 hardcode_shlibpath_var_GCJ=no
18007 runpath_var=LD_RUN_PATH
18008 hardcode_runpath_var=yes
18013 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18014 no_undefined_flag_GCJ='${wl}-z,text'
18015 archive_cmds_need_lc_GCJ=no
18016 hardcode_shlibpath_var_GCJ=no
18017 runpath_var='LD_RUN_PATH'
18019 if test "$GCC" = yes; then
18020 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18021 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18023 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18024 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18028 sysv5* | sco3.2v5* | sco5v6*)
18029 # Note: We can NOT use -z defs as we might desire, because we do not
18030 # link with -lc, and that would cause any symbols used from libc to
18031 # always be unresolved, which means just about no library would
18032 # ever link correctly. If we're not using GNU ld we use -z text
18033 # though, which does catch some bad symbols but isn't as heavy-handed
18035 no_undefined_flag_GCJ='${wl}-z,text'
18036 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18037 archive_cmds_need_lc_GCJ=no
18038 hardcode_shlibpath_var_GCJ=no
18039 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18040 hardcode_libdir_separator_GCJ=':'
18041 link_all_deplibs_GCJ=yes
18042 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18043 runpath_var='LD_RUN_PATH'
18045 if test "$GCC" = yes; then
18046 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18047 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18049 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18050 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18055 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18056 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18057 hardcode_shlibpath_var_GCJ=no
18066 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18067 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18068 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18071 # Do we need to explicitly link libc?
18073 case "x$archive_cmds_need_lc_GCJ" in
18075 # Assume -lc should be added
18076 archive_cmds_need_lc_GCJ=yes
18078 if test "$enable_shared" = yes && test "$GCC" = yes; then
18079 case $archive_cmds_GCJ in
18081 # FIXME: we may have to deal with multi-command sequences.
18084 # Test whether the compiler implicitly links with -lc since on some
18085 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18086 # to ld, don't add -lc before -lgcc.
18087 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18088 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18090 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18093 (eval $ac_compile) 2>&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } 2>conftest.err; then
18099 libobjs=conftest.$ac_objext
18101 wl=$lt_prog_compiler_wl_GCJ
18102 pic_flag=$lt_prog_compiler_pic_GCJ
18108 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18109 allow_undefined_flag_GCJ=
18110 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18111 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }
18116 archive_cmds_need_lc_GCJ=no
18118 archive_cmds_need_lc_GCJ=yes
18120 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18122 cat conftest.err 1>&5
18125 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18126 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18133 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18134 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18135 library_names_spec=
18136 libname_spec='lib$name'
18140 postuninstall_cmds=
18144 shlibpath_overrides_runpath=unknown
18146 dynamic_linker="$host_os ld.so"
18147 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18148 if test "$GCC" = yes; then
18149 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18150 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18151 # if the path contains ";" then we assume it to be the separator
18152 # otherwise default to the standard path separator (i.e. ":") - it is
18153 # assumed that no part of a normal pathname contains ";" but that should
18154 # okay in the real world where ";" in dirpaths is itself problematic.
18155 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18157 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18160 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18162 need_lib_prefix=unknown
18163 hardcode_into_libs=no
18165 # when you set need_version to no, make sure it does not cause -set_version
18166 # flags to be left without arguments
18167 need_version=unknown
18172 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18173 shlibpath_var=LIBPATH
18175 # AIX 3 has no versioning support, so we append a major version to the name.
18176 soname_spec='${libname}${release}${shared_ext}$major'
18183 hardcode_into_libs=yes
18184 if test "$host_cpu" = ia64; then
18185 # AIX 5 supports IA64
18186 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18187 shlibpath_var=LD_LIBRARY_PATH
18189 # With GCC up to 2.95.x, collect2 would create an import file
18190 # for dependence libraries. The import file would start with
18191 # the line `#! .'. This would cause the generated library to
18192 # depend on `.', always an invalid library. This was fixed in
18193 # development snapshots of GCC prior to 3.0.
18195 aix4 | aix4.[01] | aix4.[01].*)
18196 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18198 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18201 can_build_shared=no
18205 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18206 # soname into executable. Probably we can add versioning support to
18207 # collect2, so additional links can be useful in future.
18208 if test "$aix_use_runtimelinking" = yes; then
18209 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18210 # instead of lib<name>.a to let people know that these are not
18211 # typical AIX shared libraries.
18212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18214 # We preserve .a as extension for shared libraries through AIX4.2
18215 # and later when we are not doing run time linking.
18216 library_names_spec='${libname}${release}.a $libname.a'
18217 soname_spec='${libname}${release}${shared_ext}$major'
18219 shlibpath_var=LIBPATH
18224 library_names_spec='$libname.ixlibrary $libname.a'
18225 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18226 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'
18230 library_names_spec='${libname}${shared_ext}'
18231 dynamic_linker="$host_os ld.so"
18232 shlibpath_var=LIBRARY_PATH
18238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18239 soname_spec='${libname}${release}${shared_ext}$major'
18240 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18241 shlibpath_var=LD_LIBRARY_PATH
18242 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18243 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18244 # the default ld.so.conf also contains /usr/contrib/lib and
18245 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18246 # libtool to hard-code these into programs
18249 cygwin* | mingw* | pw32*)
18250 version_type=windows
18255 case $GCC,$host_os in
18256 yes,cygwin* | yes,mingw* | yes,pw32*)
18257 library_names_spec='$libname.dll.a'
18258 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18259 postinstall_cmds='base_file=`basename \${file}`~
18260 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18261 dldir=$destdir/`dirname \$dlpath`~
18262 test -d \$dldir || mkdir -p \$dldir~
18263 $install_prog $dir/$dlname \$dldir/$dlname~
18264 chmod a+x \$dldir/$dlname'
18265 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18266 dlpath=$dir/\$dldll~
18268 shlibpath_overrides_runpath=yes
18272 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18273 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18274 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18277 # MinGW DLLs use traditional 'lib' prefix
18278 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18279 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18280 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18281 # It is most probably a Windows format PATH printed by
18282 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18283 # path with ; separators, and with drive letters. We can handle the
18284 # drive letters (cygwin fileutils understands them), so leave them,
18285 # especially as we might pass files found there to a mingw objdump,
18286 # which wouldn't understand a cygwinified path. Ahh.
18287 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18289 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18293 # pw32 DLLs use 'pw' prefix rather than 'lib'
18294 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18300 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18303 dynamic_linker='Win32 ld.exe'
18304 # FIXME: first we should search . and the directory the executable is in
18308 darwin* | rhapsody*)
18309 dynamic_linker="$host_os dyld"
18310 version_type=darwin
18313 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18314 soname_spec='${libname}${release}${major}$shared_ext'
18315 shlibpath_overrides_runpath=yes
18316 shlibpath_var=DYLD_LIBRARY_PATH
18317 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18318 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18319 if test "$GCC" = yes; then
18320 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"`
18322 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18324 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18332 soname_spec='${libname}${release}${shared_ext}$major'
18333 shlibpath_var=LD_LIBRARY_PATH
18340 freebsd* | dragonfly*)
18341 # DragonFly does not have aout. When/if they implement a new
18342 # versioning mechanism, adjust this.
18343 if test -x /usr/bin/objformat; then
18344 objformat=`/usr/bin/objformat`
18347 freebsd[123]*) objformat=aout ;;
18348 *) objformat=elf ;;
18351 version_type=freebsd-$objformat
18352 case $version_type in
18354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18359 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18363 shlibpath_var=LD_LIBRARY_PATH
18366 shlibpath_overrides_runpath=yes
18368 freebsd3.[01]* | freebsdelf3.[01]*)
18369 shlibpath_overrides_runpath=yes
18370 hardcode_into_libs=yes
18372 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18373 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18374 shlibpath_overrides_runpath=no
18375 hardcode_into_libs=yes
18377 freebsd*) # from 4.6 on
18378 shlibpath_overrides_runpath=yes
18379 hardcode_into_libs=yes
18388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18389 soname_spec='${libname}${release}${shared_ext}$major'
18390 shlibpath_var=LD_LIBRARY_PATH
18391 hardcode_into_libs=yes
18394 hpux9* | hpux10* | hpux11*)
18395 # Give a soname corresponding to the major version so that dld.sl refuses to
18396 # link against other versions.
18403 hardcode_into_libs=yes
18404 dynamic_linker="$host_os dld.so"
18405 shlibpath_var=LD_LIBRARY_PATH
18406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18408 soname_spec='${libname}${release}${shared_ext}$major'
18409 if test "X$HPUX_IA64_MODE" = X32; then
18410 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18412 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18414 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18418 hardcode_into_libs=yes
18419 dynamic_linker="$host_os dld.sl"
18420 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18421 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18423 soname_spec='${libname}${release}${shared_ext}$major'
18424 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18425 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18429 dynamic_linker="$host_os dld.sl"
18430 shlibpath_var=SHLIB_PATH
18431 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
18436 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18437 postinstall_cmds='chmod 555 $lib'
18444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18445 soname_spec='${libname}${release}${shared_ext}$major'
18446 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18447 shlibpath_var=LD_LIBRARY_PATH
18448 shlibpath_overrides_runpath=no
18449 hardcode_into_libs=yes
18452 irix5* | irix6* | nonstopux*)
18454 nonstopux*) version_type=nonstopux ;;
18456 if test "$lt_cv_prog_gnu_ld" = yes; then
18464 soname_spec='${libname}${release}${shared_ext}$major'
18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18467 irix5* | nonstopux*)
18468 libsuff= shlibsuff=
18471 case $LD in # libtool.m4 will add one of these switches to LD
18472 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18473 libsuff= shlibsuff= libmagic=32-bit;;
18474 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18475 libsuff=32 shlibsuff=N32 libmagic=N32;;
18476 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18477 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18478 *) libsuff= shlibsuff= libmagic=never-match;;
18482 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18483 shlibpath_overrides_runpath=no
18484 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18485 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18486 hardcode_into_libs=yes
18489 # No shared lib support for Linux oldld, aout, or coff.
18490 linux*oldld* | linux*aout* | linux*coff*)
18494 # This must be Linux ELF.
18495 linux* | k*bsd*-gnu)
18499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18500 soname_spec='${libname}${release}${shared_ext}$major'
18501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18502 shlibpath_var=LD_LIBRARY_PATH
18503 shlibpath_overrides_runpath=no
18504 # This implies no fast_install, which is unacceptable.
18505 # Some rework will be needed to allow for fast_install
18506 # before this can be enabled.
18507 hardcode_into_libs=yes
18509 # Append ld.so.conf contents to the search path
18510 if test -f /etc/ld.so.conf; then
18511 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' ' '`
18512 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18515 # We used to test for /lib/ld.so.1 and disable shared libraries on
18516 # powerpc, because MkLinux only supported shared libraries with the
18517 # GNU dynamic linker. Since this was broken with cross compilers,
18518 # most powerpc-linux boxes support dynamic linking these days and
18519 # people can always --disable-shared, the test was removed, and we
18520 # assume the GNU/Linux dynamic linker is in use.
18521 dynamic_linker='GNU/Linux ld.so'
18528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18529 soname_spec='${libname}${release}${shared_ext}$major'
18530 shlibpath_var=LD_LIBRARY_PATH
18531 shlibpath_overrides_runpath=no
18532 hardcode_into_libs=yes
18533 dynamic_linker='NetBSD ld.elf_so'
18540 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18543 dynamic_linker='NetBSD (a.out) ld.so'
18545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18546 soname_spec='${libname}${release}${shared_ext}$major'
18547 dynamic_linker='NetBSD ld.elf_so'
18549 shlibpath_var=LD_LIBRARY_PATH
18550 shlibpath_overrides_runpath=yes
18551 hardcode_into_libs=yes
18556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18557 shlibpath_var=LD_LIBRARY_PATH
18558 shlibpath_overrides_runpath=yes
18565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18566 soname_spec='${libname}${release}${shared_ext}$major'
18567 shlibpath_var=LD_LIBRARY_PATH
18568 shlibpath_overrides_runpath=yes
18573 sys_lib_dlsearch_path_spec="/usr/lib"
18575 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18577 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18578 *) need_version=no ;;
18580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18582 shlibpath_var=LD_LIBRARY_PATH
18583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18585 openbsd2.[89] | openbsd2.[89].*)
18586 shlibpath_overrides_runpath=no
18589 shlibpath_overrides_runpath=yes
18593 shlibpath_overrides_runpath=yes
18598 libname_spec='$name'
18601 library_names_spec='$libname${shared_ext} $libname.a'
18602 dynamic_linker='OS/2 ld.exe'
18603 shlibpath_var=LIBPATH
18606 osf3* | osf4* | osf5*)
18610 soname_spec='${libname}${release}${shared_ext}$major'
18611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18612 shlibpath_var=LD_LIBRARY_PATH
18613 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18614 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18622 soname_spec='${libname}${release}${shared_ext}$major'
18623 shlibpath_var=LD_LIBRARY_PATH
18624 shlibpath_overrides_runpath=yes
18625 hardcode_into_libs=yes
18626 # ldd complains unless libraries are executable
18627 postinstall_cmds='chmod +x $lib'
18632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18633 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18634 shlibpath_var=LD_LIBRARY_PATH
18635 shlibpath_overrides_runpath=yes
18636 if test "$with_gnu_ld" = yes; then
18644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18645 soname_spec='${libname}${release}${shared_ext}$major'
18646 shlibpath_var=LD_LIBRARY_PATH
18647 case $host_vendor in
18649 shlibpath_overrides_runpath=no
18651 export_dynamic_flag_spec='${wl}-Blargedynsym'
18652 runpath_var=LD_RUN_PATH
18660 shlibpath_overrides_runpath=no
18661 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18667 if test -d /usr/nec ;then
18669 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18670 soname_spec='$libname${shared_ext}.$major'
18671 shlibpath_var=LD_LIBRARY_PATH
18675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18676 version_type=freebsd-elf
18679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18680 soname_spec='${libname}${release}${shared_ext}$major'
18681 shlibpath_var=LD_LIBRARY_PATH
18682 hardcode_into_libs=yes
18683 if test "$with_gnu_ld" = yes; then
18684 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18685 shlibpath_overrides_runpath=no
18687 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18688 shlibpath_overrides_runpath=yes
18691 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18695 sys_lib_dlsearch_path_spec='/usr/lib'
18700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18701 soname_spec='${libname}${release}${shared_ext}$major'
18702 shlibpath_var=LD_LIBRARY_PATH
18709 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18710 echo "${ECHO_T}$dynamic_linker" >&6
18711 test "$dynamic_linker" = no && can_build_shared=no
18713 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18714 if test "$GCC" = yes; then
18715 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18718 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18719 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18720 hardcode_action_GCJ=
18721 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18722 test -n "$runpath_var_GCJ" || \
18723 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18725 # We can hardcode non-existant directories.
18726 if test "$hardcode_direct_GCJ" != no &&
18727 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18728 # have to relink, otherwise we might link with an installed library
18729 # when we should be linking with a yet-to-be-installed one
18730 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18731 test "$hardcode_minus_L_GCJ" != no; then
18732 # Linking always hardcodes the temporary library directory.
18733 hardcode_action_GCJ=relink
18735 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18736 hardcode_action_GCJ=immediate
18739 # We cannot hardcode anything, or else we can only hardcode existing
18741 hardcode_action_GCJ=unsupported
18743 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18744 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18746 if test "$hardcode_action_GCJ" = relink; then
18747 # Fast installation is not supported
18748 enable_fast_install=no
18749 elif test "$shlibpath_overrides_runpath" = yes ||
18750 test "$enable_shared" = no; then
18751 # Fast installation is not necessary
18752 enable_fast_install=needless
18756 # The else clause should only fire when bootstrapping the
18757 # libtool distribution, otherwise you forgot to ship ltmain.sh
18758 # with your package, and you will get complaints that there are
18759 # no rules to generate ltmain.sh.
18760 if test -f "$ltmain"; then
18761 # See if we are running on zsh, and set the options which allow our commands through
18762 # without removal of \ escapes.
18763 if test -n "${ZSH_VERSION+set}" ; then
18764 setopt NO_GLOB_SUBST
18766 # Now quote all the things that may contain metacharacters while being
18767 # careful not to overquote the AC_SUBSTed values. We take copies of the
18768 # variables and quote the copies for generation of the libtool script.
18769 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18771 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18772 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18773 deplibs_check_method reload_flag reload_cmds need_locks \
18774 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18775 lt_cv_sys_global_symbol_to_c_name_address \
18776 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18777 old_postinstall_cmds old_postuninstall_cmds \
18781 lt_prog_compiler_wl_GCJ \
18782 lt_prog_compiler_pic_GCJ \
18783 lt_prog_compiler_static_GCJ \
18784 lt_prog_compiler_no_builtin_flag_GCJ \
18785 export_dynamic_flag_spec_GCJ \
18786 thread_safe_flag_spec_GCJ \
18787 whole_archive_flag_spec_GCJ \
18788 enable_shared_with_static_runtimes_GCJ \
18789 old_archive_cmds_GCJ \
18790 old_archive_from_new_cmds_GCJ \
18791 predep_objects_GCJ \
18792 postdep_objects_GCJ \
18795 compiler_lib_search_path_GCJ \
18797 archive_expsym_cmds_GCJ \
18798 postinstall_cmds_GCJ \
18799 postuninstall_cmds_GCJ \
18800 old_archive_from_expsyms_cmds_GCJ \
18801 allow_undefined_flag_GCJ \
18802 no_undefined_flag_GCJ \
18803 export_symbols_cmds_GCJ \
18804 hardcode_libdir_flag_spec_GCJ \
18805 hardcode_libdir_flag_spec_ld_GCJ \
18806 hardcode_libdir_separator_GCJ \
18807 hardcode_automatic_GCJ \
18809 module_expsym_cmds_GCJ \
18810 lt_cv_prog_compiler_c_o_GCJ \
18811 exclude_expsyms_GCJ \
18812 include_expsyms_GCJ; do
18815 old_archive_cmds_GCJ | \
18816 old_archive_from_new_cmds_GCJ | \
18817 archive_cmds_GCJ | \
18818 archive_expsym_cmds_GCJ | \
18819 module_cmds_GCJ | \
18820 module_expsym_cmds_GCJ | \
18821 old_archive_from_expsyms_cmds_GCJ | \
18822 export_symbols_cmds_GCJ | \
18823 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18824 postinstall_cmds | postuninstall_cmds | \
18825 old_postinstall_cmds | old_postuninstall_cmds | \
18826 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18827 # Double-quote double-evaled strings.
18828 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18831 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18837 *'\$0 --fallback-echo"')
18838 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18844 cat <<__EOF__ >> "$cfgfile"
18845 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18847 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18849 # Shell to use when invoking shell scripts.
18852 # Whether or not to build shared libraries.
18853 build_libtool_libs=$enable_shared
18855 # Whether or not to build static libraries.
18856 build_old_libs=$enable_static
18858 # Whether or not to add -lc for building shared libraries.
18859 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18861 # Whether or not to disallow shared libs when runtime libs are static
18862 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18864 # Whether or not to optimize for fast installation.
18865 fast_install=$enable_fast_install
18868 host_alias=$host_alias
18872 # The build system.
18873 build_alias=$build_alias
18877 # An echo program that does not interpret backslashes.
18882 AR_FLAGS=$lt_AR_FLAGS
18887 # LTCC compiler flags.
18888 LTCFLAGS=$lt_LTCFLAGS
18890 # A language-specific compiler.
18891 CC=$lt_compiler_GCJ
18893 # Is the compiler the GNU C compiler?
18899 # The linker used to build libraries.
18902 # Whether we need hard or soft links.
18905 # A BSD-compatible nm program.
18908 # A symbol stripping program
18911 # Used to examine libraries when file_magic_cmd begins "file"
18912 MAGIC_CMD=$MAGIC_CMD
18914 # Used on cygwin: DLL creation program.
18917 # Used on cygwin: object dumper.
18920 # Used on cygwin: assembler.
18923 # The name of the directory that contains temporary libtool files.
18926 # How to create reloadable object files.
18927 reload_flag=$lt_reload_flag
18928 reload_cmds=$lt_reload_cmds
18930 # How to pass a linker flag through the compiler.
18931 wl=$lt_lt_prog_compiler_wl_GCJ
18933 # Object file suffix (normally "o").
18934 objext="$ac_objext"
18936 # Old archive suffix (normally "a").
18939 # Shared library suffix (normally ".so").
18940 shrext_cmds='$shrext_cmds'
18942 # Executable file suffix (normally "").
18945 # Additional compiler flags for building library objects.
18946 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18949 # What is the maximum length of a command?
18950 max_cmd_len=$lt_cv_sys_max_cmd_len
18952 # Does compiler simultaneously support -c and -o options?
18953 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18955 # Must we lock files when doing compilation?
18956 need_locks=$lt_need_locks
18958 # Do we need the lib prefix for modules?
18959 need_lib_prefix=$need_lib_prefix
18961 # Do we need a version for libraries?
18962 need_version=$need_version
18964 # Whether dlopen is supported.
18965 dlopen_support=$enable_dlopen
18967 # Whether dlopen of programs is supported.
18968 dlopen_self=$enable_dlopen_self
18970 # Whether dlopen of statically linked programs is supported.
18971 dlopen_self_static=$enable_dlopen_self_static
18973 # Compiler flag to prevent dynamic linking.
18974 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18976 # Compiler flag to turn off builtin functions.
18977 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18979 # Compiler flag to allow reflexive dlopens.
18980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18982 # Compiler flag to generate shared objects directly from archives.
18983 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18985 # Compiler flag to generate thread-safe objects.
18986 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18988 # Library versioning type.
18989 version_type=$version_type
18991 # Format of library name prefix.
18992 libname_spec=$lt_libname_spec
18994 # List of archive names. First name is the real one, the rest are links.
18995 # The last name is the one that the linker finds with -lNAME.
18996 library_names_spec=$lt_library_names_spec
18998 # The coded name of the library, if different from the real name.
18999 soname_spec=$lt_soname_spec
19001 # Commands used to build and install an old-style archive.
19003 old_archive_cmds=$lt_old_archive_cmds_GCJ
19004 old_postinstall_cmds=$lt_old_postinstall_cmds
19005 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19007 # Create an old-style archive from a shared archive.
19008 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19010 # Create a temporary old-style archive to link instead of a shared archive.
19011 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19013 # Commands used to build and install a shared archive.
19014 archive_cmds=$lt_archive_cmds_GCJ
19015 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19016 postinstall_cmds=$lt_postinstall_cmds
19017 postuninstall_cmds=$lt_postuninstall_cmds
19019 # Commands used to build a loadable module (assumed same as above if empty)
19020 module_cmds=$lt_module_cmds_GCJ
19021 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19023 # Commands to strip libraries.
19024 old_striplib=$lt_old_striplib
19025 striplib=$lt_striplib
19027 # Dependencies to place before the objects being linked to create a
19029 predep_objects=$lt_predep_objects_GCJ
19031 # Dependencies to place after the objects being linked to create a
19033 postdep_objects=$lt_postdep_objects_GCJ
19035 # Dependencies to place before the objects being linked to create a
19037 predeps=$lt_predeps_GCJ
19039 # Dependencies to place after the objects being linked to create a
19041 postdeps=$lt_postdeps_GCJ
19043 # The library search path used internally by the compiler when linking
19044 # a shared library.
19045 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19047 # Method to check whether dependent libraries are shared objects.
19048 deplibs_check_method=$lt_deplibs_check_method
19050 # Command to use when deplibs_check_method == file_magic.
19051 file_magic_cmd=$lt_file_magic_cmd
19053 # Flag that allows shared libraries with undefined symbols to be built.
19054 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19056 # Flag that forces no undefined symbols.
19057 no_undefined_flag=$lt_no_undefined_flag_GCJ
19059 # Commands used to finish a libtool library installation in a directory.
19060 finish_cmds=$lt_finish_cmds
19062 # Same as above, but a single script fragment to be evaled but not shown.
19063 finish_eval=$lt_finish_eval
19065 # Take the output of nm and produce a listing of raw symbols and C names.
19066 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19068 # Transform the output of nm in a proper C declaration
19069 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19071 # Transform the output of nm in a C name address pair
19072 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19074 # This is the shared library runtime path variable.
19075 runpath_var=$runpath_var
19077 # This is the shared library path variable.
19078 shlibpath_var=$shlibpath_var
19080 # Is shlibpath searched before the hard-coded library search path?
19081 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19083 # How to hardcode a shared library path into an executable.
19084 hardcode_action=$hardcode_action_GCJ
19086 # Whether we should hardcode library paths into libraries.
19087 hardcode_into_libs=$hardcode_into_libs
19089 # Flag to hardcode \$libdir into a binary during linking.
19090 # This must work even if \$libdir does not exist.
19091 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19093 # If ld is used when linking, flag to hardcode \$libdir into
19094 # a binary during linking. This must work even if \$libdir does
19096 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19098 # Whether we need a single -rpath flag with a separated argument.
19099 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19101 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19102 # resulting binary.
19103 hardcode_direct=$hardcode_direct_GCJ
19105 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19106 # resulting binary.
19107 hardcode_minus_L=$hardcode_minus_L_GCJ
19109 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19110 # the resulting binary.
19111 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19113 # Set to yes if building a shared library automatically hardcodes DIR into the library
19114 # and all subsequent libraries and executables linked against it.
19115 hardcode_automatic=$hardcode_automatic_GCJ
19117 # Variables whose values should be saved in libtool wrapper scripts and
19118 # restored at relink time.
19119 variables_saved_for_relink="$variables_saved_for_relink"
19121 # Whether libtool must link a program against all its dependency libraries.
19122 link_all_deplibs=$link_all_deplibs_GCJ
19124 # Compile-time system search path for libraries
19125 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19127 # Run-time system search path for libraries
19128 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19130 # Fix the shell variable \$srcfile for the compiler.
19131 fix_srcfile_path="$fix_srcfile_path_GCJ"
19133 # Set to yes if exported symbols are required.
19134 always_export_symbols=$always_export_symbols_GCJ
19136 # The commands to list exported symbols.
19137 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19139 # The commands to extract the exported symbol list from a shared archive.
19140 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19142 # Symbols that should not be listed in the preloaded symbols.
19143 exclude_expsyms=$lt_exclude_expsyms_GCJ
19145 # Symbols that must always be exported.
19146 include_expsyms=$lt_include_expsyms_GCJ
19148 # ### END LIBTOOL TAG CONFIG: $tagname
19154 # If there is no Makefile yet, we rely on a make rule to execute
19155 # `config.status --recheck' to rerun these tests and create the
19156 # libtool script then.
19157 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19158 if test -f "$ltmain_in"; then
19159 test -f Makefile && make "$ltmain"
19165 ac_cpp='$CPP $CPPFLAGS'
19166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19181 # Source file extension for RC test sources.
19184 # Object file extension for compiled RC test sources.
19188 # Code to be used in simple compile tests
19189 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19191 # Code to be used in simple link tests
19192 lt_simple_link_test_code="$lt_simple_compile_test_code"
19194 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19196 # If no C compiler was specified, use CC.
19199 # If no C compiler flags were specified, use CFLAGS.
19200 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19202 # Allow CC to be a program name with arguments.
19206 # save warnings/boilerplate of simple test code
19207 ac_outfile=conftest.$ac_objext
19208 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19209 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19210 _lt_compiler_boilerplate=`cat conftest.err`
19213 ac_outfile=conftest.$ac_objext
19214 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19215 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19216 _lt_linker_boilerplate=`cat conftest.err`
19220 # Allow CC to be a program name with arguments.
19225 for cc_temp in $compiler""; do
19227 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19228 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19233 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19235 lt_cv_prog_compiler_c_o_RC=yes
19237 # The else clause should only fire when bootstrapping the
19238 # libtool distribution, otherwise you forgot to ship ltmain.sh
19239 # with your package, and you will get complaints that there are
19240 # no rules to generate ltmain.sh.
19241 if test -f "$ltmain"; then
19242 # See if we are running on zsh, and set the options which allow our commands through
19243 # without removal of \ escapes.
19244 if test -n "${ZSH_VERSION+set}" ; then
19245 setopt NO_GLOB_SUBST
19247 # Now quote all the things that may contain metacharacters while being
19248 # careful not to overquote the AC_SUBSTed values. We take copies of the
19249 # variables and quote the copies for generation of the libtool script.
19250 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19252 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19253 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19254 deplibs_check_method reload_flag reload_cmds need_locks \
19255 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19256 lt_cv_sys_global_symbol_to_c_name_address \
19257 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19258 old_postinstall_cmds old_postuninstall_cmds \
19262 lt_prog_compiler_wl_RC \
19263 lt_prog_compiler_pic_RC \
19264 lt_prog_compiler_static_RC \
19265 lt_prog_compiler_no_builtin_flag_RC \
19266 export_dynamic_flag_spec_RC \
19267 thread_safe_flag_spec_RC \
19268 whole_archive_flag_spec_RC \
19269 enable_shared_with_static_runtimes_RC \
19270 old_archive_cmds_RC \
19271 old_archive_from_new_cmds_RC \
19272 predep_objects_RC \
19273 postdep_objects_RC \
19276 compiler_lib_search_path_RC \
19278 archive_expsym_cmds_RC \
19279 postinstall_cmds_RC \
19280 postuninstall_cmds_RC \
19281 old_archive_from_expsyms_cmds_RC \
19282 allow_undefined_flag_RC \
19283 no_undefined_flag_RC \
19284 export_symbols_cmds_RC \
19285 hardcode_libdir_flag_spec_RC \
19286 hardcode_libdir_flag_spec_ld_RC \
19287 hardcode_libdir_separator_RC \
19288 hardcode_automatic_RC \
19290 module_expsym_cmds_RC \
19291 lt_cv_prog_compiler_c_o_RC \
19292 exclude_expsyms_RC \
19293 include_expsyms_RC; do
19296 old_archive_cmds_RC | \
19297 old_archive_from_new_cmds_RC | \
19298 archive_cmds_RC | \
19299 archive_expsym_cmds_RC | \
19301 module_expsym_cmds_RC | \
19302 old_archive_from_expsyms_cmds_RC | \
19303 export_symbols_cmds_RC | \
19304 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19305 postinstall_cmds | postuninstall_cmds | \
19306 old_postinstall_cmds | old_postuninstall_cmds | \
19307 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19308 # Double-quote double-evaled strings.
19309 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19312 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19318 *'\$0 --fallback-echo"')
19319 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19325 cat <<__EOF__ >> "$cfgfile"
19326 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19328 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19330 # Shell to use when invoking shell scripts.
19333 # Whether or not to build shared libraries.
19334 build_libtool_libs=$enable_shared
19336 # Whether or not to build static libraries.
19337 build_old_libs=$enable_static
19339 # Whether or not to add -lc for building shared libraries.
19340 build_libtool_need_lc=$archive_cmds_need_lc_RC
19342 # Whether or not to disallow shared libs when runtime libs are static
19343 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19345 # Whether or not to optimize for fast installation.
19346 fast_install=$enable_fast_install
19349 host_alias=$host_alias
19353 # The build system.
19354 build_alias=$build_alias
19358 # An echo program that does not interpret backslashes.
19363 AR_FLAGS=$lt_AR_FLAGS
19368 # LTCC compiler flags.
19369 LTCFLAGS=$lt_LTCFLAGS
19371 # A language-specific compiler.
19374 # Is the compiler the GNU C compiler?
19380 # The linker used to build libraries.
19383 # Whether we need hard or soft links.
19386 # A BSD-compatible nm program.
19389 # A symbol stripping program
19392 # Used to examine libraries when file_magic_cmd begins "file"
19393 MAGIC_CMD=$MAGIC_CMD
19395 # Used on cygwin: DLL creation program.
19398 # Used on cygwin: object dumper.
19401 # Used on cygwin: assembler.
19404 # The name of the directory that contains temporary libtool files.
19407 # How to create reloadable object files.
19408 reload_flag=$lt_reload_flag
19409 reload_cmds=$lt_reload_cmds
19411 # How to pass a linker flag through the compiler.
19412 wl=$lt_lt_prog_compiler_wl_RC
19414 # Object file suffix (normally "o").
19415 objext="$ac_objext"
19417 # Old archive suffix (normally "a").
19420 # Shared library suffix (normally ".so").
19421 shrext_cmds='$shrext_cmds'
19423 # Executable file suffix (normally "").
19426 # Additional compiler flags for building library objects.
19427 pic_flag=$lt_lt_prog_compiler_pic_RC
19430 # What is the maximum length of a command?
19431 max_cmd_len=$lt_cv_sys_max_cmd_len
19433 # Does compiler simultaneously support -c and -o options?
19434 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19436 # Must we lock files when doing compilation?
19437 need_locks=$lt_need_locks
19439 # Do we need the lib prefix for modules?
19440 need_lib_prefix=$need_lib_prefix
19442 # Do we need a version for libraries?
19443 need_version=$need_version
19445 # Whether dlopen is supported.
19446 dlopen_support=$enable_dlopen
19448 # Whether dlopen of programs is supported.
19449 dlopen_self=$enable_dlopen_self
19451 # Whether dlopen of statically linked programs is supported.
19452 dlopen_self_static=$enable_dlopen_self_static
19454 # Compiler flag to prevent dynamic linking.
19455 link_static_flag=$lt_lt_prog_compiler_static_RC
19457 # Compiler flag to turn off builtin functions.
19458 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19460 # Compiler flag to allow reflexive dlopens.
19461 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19463 # Compiler flag to generate shared objects directly from archives.
19464 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19466 # Compiler flag to generate thread-safe objects.
19467 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19469 # Library versioning type.
19470 version_type=$version_type
19472 # Format of library name prefix.
19473 libname_spec=$lt_libname_spec
19475 # List of archive names. First name is the real one, the rest are links.
19476 # The last name is the one that the linker finds with -lNAME.
19477 library_names_spec=$lt_library_names_spec
19479 # The coded name of the library, if different from the real name.
19480 soname_spec=$lt_soname_spec
19482 # Commands used to build and install an old-style archive.
19484 old_archive_cmds=$lt_old_archive_cmds_RC
19485 old_postinstall_cmds=$lt_old_postinstall_cmds
19486 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19488 # Create an old-style archive from a shared archive.
19489 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19491 # Create a temporary old-style archive to link instead of a shared archive.
19492 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19494 # Commands used to build and install a shared archive.
19495 archive_cmds=$lt_archive_cmds_RC
19496 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19497 postinstall_cmds=$lt_postinstall_cmds
19498 postuninstall_cmds=$lt_postuninstall_cmds
19500 # Commands used to build a loadable module (assumed same as above if empty)
19501 module_cmds=$lt_module_cmds_RC
19502 module_expsym_cmds=$lt_module_expsym_cmds_RC
19504 # Commands to strip libraries.
19505 old_striplib=$lt_old_striplib
19506 striplib=$lt_striplib
19508 # Dependencies to place before the objects being linked to create a
19510 predep_objects=$lt_predep_objects_RC
19512 # Dependencies to place after the objects being linked to create a
19514 postdep_objects=$lt_postdep_objects_RC
19516 # Dependencies to place before the objects being linked to create a
19518 predeps=$lt_predeps_RC
19520 # Dependencies to place after the objects being linked to create a
19522 postdeps=$lt_postdeps_RC
19524 # The library search path used internally by the compiler when linking
19525 # a shared library.
19526 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19528 # Method to check whether dependent libraries are shared objects.
19529 deplibs_check_method=$lt_deplibs_check_method
19531 # Command to use when deplibs_check_method == file_magic.
19532 file_magic_cmd=$lt_file_magic_cmd
19534 # Flag that allows shared libraries with undefined symbols to be built.
19535 allow_undefined_flag=$lt_allow_undefined_flag_RC
19537 # Flag that forces no undefined symbols.
19538 no_undefined_flag=$lt_no_undefined_flag_RC
19540 # Commands used to finish a libtool library installation in a directory.
19541 finish_cmds=$lt_finish_cmds
19543 # Same as above, but a single script fragment to be evaled but not shown.
19544 finish_eval=$lt_finish_eval
19546 # Take the output of nm and produce a listing of raw symbols and C names.
19547 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19549 # Transform the output of nm in a proper C declaration
19550 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19552 # Transform the output of nm in a C name address pair
19553 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19555 # This is the shared library runtime path variable.
19556 runpath_var=$runpath_var
19558 # This is the shared library path variable.
19559 shlibpath_var=$shlibpath_var
19561 # Is shlibpath searched before the hard-coded library search path?
19562 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19564 # How to hardcode a shared library path into an executable.
19565 hardcode_action=$hardcode_action_RC
19567 # Whether we should hardcode library paths into libraries.
19568 hardcode_into_libs=$hardcode_into_libs
19570 # Flag to hardcode \$libdir into a binary during linking.
19571 # This must work even if \$libdir does not exist.
19572 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19574 # If ld is used when linking, flag to hardcode \$libdir into
19575 # a binary during linking. This must work even if \$libdir does
19577 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19579 # Whether we need a single -rpath flag with a separated argument.
19580 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19582 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19583 # resulting binary.
19584 hardcode_direct=$hardcode_direct_RC
19586 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19587 # resulting binary.
19588 hardcode_minus_L=$hardcode_minus_L_RC
19590 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19591 # the resulting binary.
19592 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19594 # Set to yes if building a shared library automatically hardcodes DIR into the library
19595 # and all subsequent libraries and executables linked against it.
19596 hardcode_automatic=$hardcode_automatic_RC
19598 # Variables whose values should be saved in libtool wrapper scripts and
19599 # restored at relink time.
19600 variables_saved_for_relink="$variables_saved_for_relink"
19602 # Whether libtool must link a program against all its dependency libraries.
19603 link_all_deplibs=$link_all_deplibs_RC
19605 # Compile-time system search path for libraries
19606 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19608 # Run-time system search path for libraries
19609 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19611 # Fix the shell variable \$srcfile for the compiler.
19612 fix_srcfile_path="$fix_srcfile_path_RC"
19614 # Set to yes if exported symbols are required.
19615 always_export_symbols=$always_export_symbols_RC
19617 # The commands to list exported symbols.
19618 export_symbols_cmds=$lt_export_symbols_cmds_RC
19620 # The commands to extract the exported symbol list from a shared archive.
19621 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19623 # Symbols that should not be listed in the preloaded symbols.
19624 exclude_expsyms=$lt_exclude_expsyms_RC
19626 # Symbols that must always be exported.
19627 include_expsyms=$lt_include_expsyms_RC
19629 # ### END LIBTOOL TAG CONFIG: $tagname
19635 # If there is no Makefile yet, we rely on a make rule to execute
19636 # `config.status --recheck' to rerun these tests and create the
19637 # libtool script then.
19638 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19639 if test -f "$ltmain_in"; then
19640 test -f Makefile && make "$ltmain"
19646 ac_cpp='$CPP $CPPFLAGS'
19647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19656 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19657 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19658 { (exit 1); exit 1; }; }
19662 # Append the new tag name to the list of available tags.
19663 if test -n "$tagname" ; then
19664 available_tags="$available_tags $tagname"
19670 # Now substitute the updated list of available tags.
19671 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19672 mv "${ofile}T" "$ofile"
19676 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19677 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19678 { (exit 1); exit 1; }; }
19684 # This can be used to rebuild libtool when needed
19685 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19687 # Always use our own libtool.
19688 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19690 # Prevent multiple expansion
19712 if test "x$cross_compiling" = "xno"; then
19713 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
19715 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
19720 if test -n "$ac_tool_prefix"; then
19721 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19722 set dummy ${ac_tool_prefix}ar; ac_word=$2
19723 echo "$as_me:$LINENO: checking for $ac_word" >&5
19724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19725 if test "${ac_cv_prog_AR+set}" = set; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19728 if test -n "$AR"; then
19729 ac_cv_prog_AR="$AR" # Let the user override the test.
19731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19732 for as_dir in $PATH
19735 test -z "$as_dir" && as_dir=.
19736 for ac_exec_ext in '' $ac_executable_extensions; do
19737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19738 ac_cv_prog_AR="${ac_tool_prefix}ar"
19739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19748 if test -n "$AR"; then
19749 echo "$as_me:$LINENO: result: $AR" >&5
19750 echo "${ECHO_T}$AR" >&6
19752 echo "$as_me:$LINENO: result: no" >&5
19753 echo "${ECHO_T}no" >&6
19757 if test -z "$ac_cv_prog_AR"; then
19759 # Extract the first word of "ar", so it can be a program name with args.
19760 set dummy ar; ac_word=$2
19761 echo "$as_me:$LINENO: checking for $ac_word" >&5
19762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19763 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19764 echo $ECHO_N "(cached) $ECHO_C" >&6
19766 if test -n "$ac_ct_AR"; then
19767 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19770 for as_dir in $PATH
19773 test -z "$as_dir" && as_dir=.
19774 for ac_exec_ext in '' $ac_executable_extensions; do
19775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19776 ac_cv_prog_ac_ct_AR="ar"
19777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19785 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19786 if test -n "$ac_ct_AR"; then
19787 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19788 echo "${ECHO_T}$ac_ct_AR" >&6
19790 echo "$as_me:$LINENO: result: no" >&5
19791 echo "${ECHO_T}no" >&6
19796 AR="$ac_cv_prog_AR"
19799 if test -n "$ac_tool_prefix"; then
19800 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
19801 set dummy ${ac_tool_prefix}ld; ac_word=$2
19802 echo "$as_me:$LINENO: checking for $ac_word" >&5
19803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19804 if test "${ac_cv_prog_LD+set}" = set; then
19805 echo $ECHO_N "(cached) $ECHO_C" >&6
19807 if test -n "$LD"; then
19808 ac_cv_prog_LD="$LD" # Let the user override the test.
19810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19811 for as_dir in $PATH
19814 test -z "$as_dir" && as_dir=.
19815 for ac_exec_ext in '' $ac_executable_extensions; do
19816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19817 ac_cv_prog_LD="${ac_tool_prefix}ld"
19818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19827 if test -n "$LD"; then
19828 echo "$as_me:$LINENO: result: $LD" >&5
19829 echo "${ECHO_T}$LD" >&6
19831 echo "$as_me:$LINENO: result: no" >&5
19832 echo "${ECHO_T}no" >&6
19836 if test -z "$ac_cv_prog_LD"; then
19838 # Extract the first word of "ld", so it can be a program name with args.
19839 set dummy ld; ac_word=$2
19840 echo "$as_me:$LINENO: checking for $ac_word" >&5
19841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19842 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19845 if test -n "$ac_ct_LD"; then
19846 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
19848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19849 for as_dir in $PATH
19852 test -z "$as_dir" && as_dir=.
19853 for ac_exec_ext in '' $ac_executable_extensions; do
19854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19855 ac_cv_prog_ac_ct_LD="ld"
19856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19864 ac_ct_LD=$ac_cv_prog_ac_ct_LD
19865 if test -n "$ac_ct_LD"; then
19866 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
19867 echo "${ECHO_T}$ac_ct_LD" >&6
19869 echo "$as_me:$LINENO: result: no" >&5
19870 echo "${ECHO_T}no" >&6
19875 LD="$ac_cv_prog_LD"
19879 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19880 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19881 if test "${ac_cv_header_stdc+set}" = set; then
19882 echo $ECHO_N "(cached) $ECHO_C" >&6
19884 cat >conftest.$ac_ext <<_ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h. */
19890 #include <stdlib.h>
19891 #include <stdarg.h>
19892 #include <string.h>
19903 rm -f conftest.$ac_objext
19904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19905 (eval $ac_compile) 2>conftest.er1
19907 grep -v '^ *+' conftest.er1 >conftest.err
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } &&
19912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914 (eval $ac_try) 2>&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; } &&
19918 { ac_try='test -s conftest.$ac_objext'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; }; then
19924 ac_cv_header_stdc=yes
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19929 ac_cv_header_stdc=no
19931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19933 if test $ac_cv_header_stdc = yes; then
19934 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19935 cat >conftest.$ac_ext <<_ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h. */
19941 #include <string.h>
19944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19945 $EGREP "memchr" >/dev/null 2>&1; then
19948 ac_cv_header_stdc=no
19954 if test $ac_cv_header_stdc = yes; then
19955 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19956 cat >conftest.$ac_ext <<_ACEOF
19959 cat confdefs.h >>conftest.$ac_ext
19960 cat >>conftest.$ac_ext <<_ACEOF
19961 /* end confdefs.h. */
19962 #include <stdlib.h>
19965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19966 $EGREP "free" >/dev/null 2>&1; then
19969 ac_cv_header_stdc=no
19975 if test $ac_cv_header_stdc = yes; then
19976 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19977 if test "$cross_compiling" = yes; then
19980 cat >conftest.$ac_ext <<_ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h. */
19987 #if ((' ' & 0x0FF) == 0x020)
19988 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19989 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19991 # define ISLOWER(c) \
19992 (('a' <= (c) && (c) <= 'i') \
19993 || ('j' <= (c) && (c) <= 'r') \
19994 || ('s' <= (c) && (c) <= 'z'))
19995 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19998 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20003 for (i = 0; i < 256; i++)
20004 if (XOR (islower (i), ISLOWER (i))
20005 || toupper (i) != TOUPPER (i))
20010 rm -f conftest$ac_exeext
20011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20012 (eval $ac_link) 2>&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017 (eval $ac_try) 2>&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); }; }; then
20023 echo "$as_me: program exited with status $ac_status" >&5
20024 echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.$ac_ext >&5
20027 ( exit $ac_status )
20028 ac_cv_header_stdc=no
20030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20034 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20035 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20036 if test $ac_cv_header_stdc = yes; then
20038 cat >>confdefs.h <<\_ACEOF
20039 #define STDC_HEADERS 1
20045 echo "$as_me:$LINENO: checking for GNU libc2" >&5
20046 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6
20047 if test "${knfsd_cv_glibc2+set}" = set; then
20048 echo $ECHO_N "(cached) $ECHO_C" >&6
20050 cat >conftest.$ac_ext <<_ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h. */
20057 #include <features.h>
20058 #if !defined(__GLIBC__)
20063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20066 grep -v '^ *+' conftest.er1 >conftest.err
20068 cat conftest.err >&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } >/dev/null; then
20071 if test -s conftest.err; then
20072 ac_cpp_err=$ac_c_preproc_warn_flag
20073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20080 if test -z "$ac_cpp_err"; then
20081 knfsd_cv_glibc2=yes
20083 echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20088 rm -f conftest.err conftest.$ac_ext
20091 echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20092 echo "${ECHO_T}$knfsd_cv_glibc2" >&6
20093 if test $knfsd_cv_glibc2 = yes; then
20094 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20095 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20099 echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20100 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6
20101 if test "${knfsd_cv_bsd_signals+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20104 if test "$cross_compiling" = yes; then
20105 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20106 See \`config.log' for more details." >&5
20107 echo "$as_me: error: cannot run test program while cross compiling
20108 See \`config.log' for more details." >&2;}
20109 { (exit 1); exit 1; }; }
20111 cat >conftest.$ac_ext <<_ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h. */
20118 #include <signal.h>
20119 #include <unistd.h>
20120 #include <sys/wait.h>
20122 static int counter = 0;
20123 static RETSIGTYPE handler(int num) { counter++; }
20128 if ((s = fork()) < 0) return 1;
20130 if (wait(&s) < 0) return 1;
20131 return WIFSIGNALED(s)? 1 : 0;
20134 signal(SIGHUP, handler);
20135 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20136 return (counter == 2)? 0 : 1;
20140 rm -f conftest$ac_exeext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20142 (eval $ac_link) 2>&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147 (eval $ac_try) 2>&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; }; then
20151 knfsd_cv_bsd_signals=yes
20153 echo "$as_me: program exited with status $ac_status" >&5
20154 echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20157 ( exit $ac_status )
20158 knfsd_cv_bsd_signals=no
20160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20163 echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20164 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6
20165 test $knfsd_cv_bsd_signals = yes &&
20166 cat >>confdefs.h <<\_ACEOF
20167 #define HAVE_BSD_SIGNALS 1
20172 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
20173 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
20174 if test "${ac_cv_lib_socket_main+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20177 ac_check_lib_save_LIBS=$LIBS
20178 LIBS="-lsocket $LIBS"
20179 cat >conftest.$ac_ext <<_ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20195 rm -f conftest.$ac_objext conftest$ac_exeext
20196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20197 (eval $ac_link) 2>conftest.er1
20199 grep -v '^ *+' conftest.er1 >conftest.err
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } &&
20204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206 (eval $ac_try) 2>&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); }; } &&
20210 { ac_try='test -s conftest$ac_exeext'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; }; then
20216 ac_cv_lib_socket_main=yes
20218 echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20221 ac_cv_lib_socket_main=no
20223 rm -f conftest.err conftest.$ac_objext \
20224 conftest$ac_exeext conftest.$ac_ext
20225 LIBS=$ac_check_lib_save_LIBS
20227 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
20228 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
20229 if test $ac_cv_lib_socket_main = yes; then
20233 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
20234 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
20235 if test "${ac_cv_lib_nsl_main+set}" = set; then
20236 echo $ECHO_N "(cached) $ECHO_C" >&6
20238 ac_check_lib_save_LIBS=$LIBS
20240 cat >conftest.$ac_ext <<_ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h. */
20256 rm -f conftest.$ac_objext conftest$ac_exeext
20257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20258 (eval $ac_link) 2>conftest.er1
20260 grep -v '^ *+' conftest.er1 >conftest.err
20262 cat conftest.err >&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } &&
20265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; } &&
20271 { ac_try='test -s conftest$ac_exeext'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20277 ac_cv_lib_nsl_main=yes
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ac_cv_lib_nsl_main=no
20284 rm -f conftest.err conftest.$ac_objext \
20285 conftest$ac_exeext conftest.$ac_ext
20286 LIBS=$ac_check_lib_save_LIBS
20288 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
20289 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
20290 if test $ac_cv_lib_nsl_main = yes; then
20294 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
20295 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
20296 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20299 ac_check_lib_save_LIBS=$LIBS
20300 LIBS="-lcrypt $LIBS"
20301 cat >conftest.$ac_ext <<_ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20308 /* Override any gcc2 internal prototype to avoid an error. */
20312 /* We use char because int might match the return type of a gcc2
20313 builtin and then its argument prototype would still apply. */
20323 rm -f conftest.$ac_objext conftest$ac_exeext
20324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20325 (eval $ac_link) 2>conftest.er1
20327 grep -v '^ *+' conftest.er1 >conftest.err
20329 cat conftest.err >&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } &&
20332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20334 (eval $ac_try) 2>&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); }; } &&
20338 { ac_try='test -s conftest$ac_exeext'
20339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340 (eval $ac_try) 2>&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; }; then
20344 ac_cv_lib_crypt_crypt=yes
20346 echo "$as_me: failed program was:" >&5
20347 sed 's/^/| /' conftest.$ac_ext >&5
20349 ac_cv_lib_crypt_crypt=no
20351 rm -f conftest.err conftest.$ac_objext \
20352 conftest$ac_exeext conftest.$ac_ext
20353 LIBS=$ac_check_lib_save_LIBS
20355 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
20356 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
20357 if test $ac_cv_lib_crypt_crypt = yes; then
20361 if test "$enable_nfsv4" = yes; then
20362 echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
20363 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6
20364 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
20365 echo $ECHO_N "(cached) $ECHO_C" >&6
20367 ac_check_lib_save_LIBS=$LIBS
20368 LIBS="-levent $LIBS"
20369 cat >conftest.$ac_ext <<_ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20376 /* Override any gcc2 internal prototype to avoid an error. */
20380 /* We use char because int might match the return type of a gcc2
20381 builtin and then its argument prototype would still apply. */
20382 char event_dispatch ();
20391 rm -f conftest.$ac_objext conftest$ac_exeext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20393 (eval $ac_link) 2>conftest.er1
20395 grep -v '^ *+' conftest.er1 >conftest.err
20397 cat conftest.err >&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); } &&
20400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402 (eval $ac_try) 2>&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; } &&
20406 { ac_try='test -s conftest$ac_exeext'
20407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408 (eval $ac_try) 2>&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; }; then
20412 ac_cv_lib_event_event_dispatch=yes
20414 echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20417 ac_cv_lib_event_event_dispatch=no
20419 rm -f conftest.err conftest.$ac_objext \
20420 conftest$ac_exeext conftest.$ac_ext
20421 LIBS=$ac_check_lib_save_LIBS
20423 echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
20424 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6
20425 if test $ac_cv_lib_event_event_dispatch = yes; then
20428 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
20429 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
20430 { (exit 1); exit 1; }; }
20433 echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
20434 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6
20435 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20438 ac_check_lib_save_LIBS=$LIBS
20439 LIBS="-lnfsidmap $LIBS"
20440 cat >conftest.$ac_ext <<_ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20447 /* Override any gcc2 internal prototype to avoid an error. */
20451 /* We use char because int might match the return type of a gcc2
20452 builtin and then its argument prototype would still apply. */
20453 char nfs4_init_name_mapping ();
20457 nfs4_init_name_mapping ();
20462 rm -f conftest.$ac_objext conftest$ac_exeext
20463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20464 (eval $ac_link) 2>conftest.er1
20466 grep -v '^ *+' conftest.er1 >conftest.err
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } &&
20471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; } &&
20477 { ac_try='test -s conftest$ac_exeext'
20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; }; then
20483 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
20485 echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.$ac_ext >&5
20488 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
20490 rm -f conftest.err conftest.$ac_objext \
20491 conftest$ac_exeext conftest.$ac_ext
20492 LIBS=$ac_check_lib_save_LIBS
20494 echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
20495 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6
20496 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
20499 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
20500 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
20501 { (exit 1); exit 1; }; }
20505 for ac_header in event.h
20507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20509 echo "$as_me:$LINENO: checking for $ac_header" >&5
20510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20517 # Is the header compilable?
20518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20520 cat >conftest.$ac_ext <<_ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20526 $ac_includes_default
20527 #include <$ac_header>
20529 rm -f conftest.$ac_objext
20530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20531 (eval $ac_compile) 2>conftest.er1
20533 grep -v '^ *+' conftest.er1 >conftest.err
20535 cat conftest.err >&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } &&
20538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540 (eval $ac_try) 2>&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; } &&
20544 { ac_try='test -s conftest.$ac_objext'
20545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546 (eval $ac_try) 2>&5
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; }; then
20550 ac_header_compiler=yes
20552 echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20555 ac_header_compiler=no
20557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20558 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20559 echo "${ECHO_T}$ac_header_compiler" >&6
20561 # Is the header present?
20562 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20564 cat >conftest.$ac_ext <<_ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20570 #include <$ac_header>
20572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20575 grep -v '^ *+' conftest.er1 >conftest.err
20577 cat conftest.err >&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } >/dev/null; then
20580 if test -s conftest.err; then
20581 ac_cpp_err=$ac_c_preproc_warn_flag
20582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20589 if test -z "$ac_cpp_err"; then
20590 ac_header_preproc=yes
20592 echo "$as_me: failed program was:" >&5
20593 sed 's/^/| /' conftest.$ac_ext >&5
20595 ac_header_preproc=no
20597 rm -f conftest.err conftest.$ac_ext
20598 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20599 echo "${ECHO_T}$ac_header_preproc" >&6
20601 # So? What about this header?
20602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20608 ac_header_preproc=yes
20611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20618 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20625 ## ------------------------------- ##
20626 ## Report this to nfs@lists.sf.net ##
20627 ## ------------------------------- ##
20630 sed "s/^/$as_me: WARNING: /" >&2
20633 echo "$as_me:$LINENO: checking for $ac_header" >&5
20634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20636 echo $ECHO_N "(cached) $ECHO_C" >&6
20638 eval "$as_ac_Header=\$ac_header_preproc"
20640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20645 cat >>confdefs.h <<_ACEOF
20646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20650 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
20651 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
20652 { (exit 1); exit 1; }; }
20658 for ac_header in nfsidmap.h
20660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20662 echo "$as_me:$LINENO: checking for $ac_header" >&5
20663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
20667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20670 # Is the header compilable?
20671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20673 cat >conftest.$ac_ext <<_ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20679 $ac_includes_default
20680 #include <$ac_header>
20682 rm -f conftest.$ac_objext
20683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20684 (eval $ac_compile) 2>conftest.er1
20686 grep -v '^ *+' conftest.er1 >conftest.err
20688 cat conftest.err >&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } &&
20691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20693 (eval $ac_try) 2>&5
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); }; } &&
20697 { ac_try='test -s conftest.$ac_objext'
20698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699 (eval $ac_try) 2>&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); }; }; then
20703 ac_header_compiler=yes
20705 echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20708 ac_header_compiler=no
20710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20712 echo "${ECHO_T}$ac_header_compiler" >&6
20714 # Is the header present?
20715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20717 cat >conftest.$ac_ext <<_ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20723 #include <$ac_header>
20725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20728 grep -v '^ *+' conftest.er1 >conftest.err
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } >/dev/null; then
20733 if test -s conftest.err; then
20734 ac_cpp_err=$ac_c_preproc_warn_flag
20735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20742 if test -z "$ac_cpp_err"; then
20743 ac_header_preproc=yes
20745 echo "$as_me: failed program was:" >&5
20746 sed 's/^/| /' conftest.$ac_ext >&5
20748 ac_header_preproc=no
20750 rm -f conftest.err conftest.$ac_ext
20751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20752 echo "${ECHO_T}$ac_header_preproc" >&6
20754 # So? What about this header?
20755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20761 ac_header_preproc=yes
20764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20771 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20778 ## ------------------------------- ##
20779 ## Report this to nfs@lists.sf.net ##
20780 ## ------------------------------- ##
20783 sed "s/^/$as_me: WARNING: /" >&2
20786 echo "$as_me:$LINENO: checking for $ac_header" >&5
20787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20789 echo $ECHO_N "(cached) $ECHO_C" >&6
20791 eval "$as_ac_Header=\$ac_header_preproc"
20793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20798 cat >>confdefs.h <<_ACEOF
20799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20803 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
20804 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
20805 { (exit 1); exit 1; }; }
20810 if test "$enable_gss" = yes; then
20813 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20814 if test -n "$ac_tool_prefix"; then
20815 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20816 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20817 echo "$as_me:$LINENO: checking for $ac_word" >&5
20818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20819 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20820 echo $ECHO_N "(cached) $ECHO_C" >&6
20822 case $PKG_CONFIG in
20824 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20828 for as_dir in $PATH
20831 test -z "$as_dir" && as_dir=.
20832 for ac_exec_ext in '' $ac_executable_extensions; do
20833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20834 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20844 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20846 if test -n "$PKG_CONFIG"; then
20847 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20848 echo "${ECHO_T}$PKG_CONFIG" >&6
20850 echo "$as_me:$LINENO: result: no" >&5
20851 echo "${ECHO_T}no" >&6
20855 if test -z "$ac_cv_path_PKG_CONFIG"; then
20856 ac_pt_PKG_CONFIG=$PKG_CONFIG
20857 # Extract the first word of "pkg-config", so it can be a program name with args.
20858 set dummy pkg-config; ac_word=$2
20859 echo "$as_me:$LINENO: checking for $ac_word" >&5
20860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20861 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20862 echo $ECHO_N "(cached) $ECHO_C" >&6
20864 case $ac_pt_PKG_CONFIG in
20866 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20870 for as_dir in $PATH
20873 test -z "$as_dir" && as_dir=.
20874 for ac_exec_ext in '' $ac_executable_extensions; do
20875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20876 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20886 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20888 if test -n "$ac_pt_PKG_CONFIG"; then
20889 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20890 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
20892 echo "$as_me:$LINENO: result: no" >&5
20893 echo "${ECHO_T}no" >&6
20896 PKG_CONFIG=$ac_pt_PKG_CONFIG
20898 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20902 if test -n "$PKG_CONFIG"; then
20903 _pkg_min_version=0.9.0
20904 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20905 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20906 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20907 echo "$as_me:$LINENO: result: yes" >&5
20908 echo "${ECHO_T}yes" >&6
20910 echo "$as_me:$LINENO: result: no" >&5
20911 echo "${ECHO_T}no" >&6
20918 echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
20919 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6
20921 if test -n "$PKG_CONFIG"; then
20922 if test -n "$RPCSECGSS_CFLAGS"; then
20923 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
20925 if test -n "$PKG_CONFIG" && \
20926 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss\"") >&5
20927 ($PKG_CONFIG --exists --print-errors "librpcsecgss") 2>&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; then
20931 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss" 2>/dev/null`
20939 if test -n "$PKG_CONFIG"; then
20940 if test -n "$RPCSECGSS_LIBS"; then
20941 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
20943 if test -n "$PKG_CONFIG" && \
20944 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss\"") >&5
20945 ($PKG_CONFIG --exists --print-errors "librpcsecgss") 2>&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; then
20949 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss" 2>/dev/null`
20960 if test $pkg_failed = yes; then
20962 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20963 _pkg_short_errors_supported=yes
20965 _pkg_short_errors_supported=no
20967 if test $_pkg_short_errors_supported = yes; then
20968 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss"`
20970 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss"`
20972 # Put the nasty error message in config.log where it belongs
20973 echo "$RPCSECGSS_PKG_ERRORS" >&5
20975 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
20976 If you have pkgconfig installed, you might try setting environment
20977 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
20978 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
20979 If you have pkgconfig installed, you might try setting environment
20980 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
20981 { (exit 1); exit 1; }; }
20984 elif test $pkg_failed = untried; then
20985 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
20986 If you have pkgconfig installed, you might try setting environment
20987 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
20988 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
20989 If you have pkgconfig installed, you might try setting environment
20990 variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
20991 { (exit 1); exit 1; }; }
20995 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
20996 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
20997 echo "$as_me:$LINENO: result: yes" >&5
20998 echo "${ECHO_T}yes" >&6
21004 if test "$knfsd_cv_glibc2" = no; then
21005 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
21006 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
21007 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
21008 echo $ECHO_N "(cached) $ECHO_C" >&6
21010 ac_check_lib_save_LIBS=$LIBS
21012 cat >conftest.$ac_ext <<_ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h. */
21019 /* Override any gcc2 internal prototype to avoid an error. */
21023 /* We use char because int might match the return type of a gcc2
21024 builtin and then its argument prototype would still apply. */
21034 rm -f conftest.$ac_objext conftest$ac_exeext
21035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21036 (eval $ac_link) 2>conftest.er1
21038 grep -v '^ *+' conftest.er1 >conftest.err
21040 cat conftest.err >&5
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); } &&
21043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21045 (eval $ac_try) 2>&5
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); }; } &&
21049 { ac_try='test -s conftest$ac_exeext'
21050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21051 (eval $ac_try) 2>&5
21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); }; }; then
21055 ac_cv_lib_bsd_daemon=yes
21057 echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21060 ac_cv_lib_bsd_daemon=no
21062 rm -f conftest.err conftest.$ac_objext \
21063 conftest$ac_exeext conftest.$ac_ext
21064 LIBS=$ac_check_lib_save_LIBS
21066 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
21067 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
21068 if test $ac_cv_lib_bsd_daemon = yes; then
21078 if test "$enable_gss" = yes; then
21080 for ac_header in nfsidmap.h
21082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21084 echo "$as_me:$LINENO: checking for $ac_header" >&5
21085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21087 echo $ECHO_N "(cached) $ECHO_C" >&6
21089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21092 # Is the header compilable?
21093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21095 cat >conftest.$ac_ext <<_ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h. */
21101 $ac_includes_default
21102 #include <$ac_header>
21104 rm -f conftest.$ac_objext
21105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21106 (eval $ac_compile) 2>conftest.er1
21108 grep -v '^ *+' conftest.er1 >conftest.err
21110 cat conftest.err >&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } &&
21113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115 (eval $ac_try) 2>&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); }; } &&
21119 { ac_try='test -s conftest.$ac_objext'
21120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21121 (eval $ac_try) 2>&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); }; }; then
21125 ac_header_compiler=yes
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21130 ac_header_compiler=no
21132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21134 echo "${ECHO_T}$ac_header_compiler" >&6
21136 # Is the header present?
21137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21139 cat >conftest.$ac_ext <<_ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21145 #include <$ac_header>
21147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21150 grep -v '^ *+' conftest.er1 >conftest.err
21152 cat conftest.err >&5
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); } >/dev/null; then
21155 if test -s conftest.err; then
21156 ac_cpp_err=$ac_c_preproc_warn_flag
21157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21164 if test -z "$ac_cpp_err"; then
21165 ac_header_preproc=yes
21167 echo "$as_me: failed program was:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21170 ac_header_preproc=no
21172 rm -f conftest.err conftest.$ac_ext
21173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21174 echo "${ECHO_T}$ac_header_preproc" >&6
21176 # So? What about this header?
21177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21183 ac_header_preproc=yes
21186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21193 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21200 ## ------------------------------- ##
21201 ## Report this to nfs@lists.sf.net ##
21202 ## ------------------------------- ##
21205 sed "s/^/$as_me: WARNING: /" >&2
21208 echo "$as_me:$LINENO: checking for $ac_header" >&5
21209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21211 echo $ECHO_N "(cached) $ECHO_C" >&6
21213 eval "$as_ac_Header=\$ac_header_preproc"
21215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21220 cat >>confdefs.h <<_ACEOF
21221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21225 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
21226 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
21227 { (exit 1); exit 1; }; }
21233 for ac_header in spkm3.h
21235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21237 echo "$as_me:$LINENO: checking for $ac_header" >&5
21238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21240 echo $ECHO_N "(cached) $ECHO_C" >&6
21242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21245 # Is the header compilable?
21246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21248 cat >conftest.$ac_ext <<_ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21254 $ac_includes_default
21255 #include <$ac_header>
21257 rm -f conftest.$ac_objext
21258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21259 (eval $ac_compile) 2>conftest.er1
21261 grep -v '^ *+' conftest.er1 >conftest.err
21263 cat conftest.err >&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } &&
21266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268 (eval $ac_try) 2>&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; } &&
21272 { ac_try='test -s conftest.$ac_objext'
21273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274 (eval $ac_try) 2>&5
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }; }; then
21278 ac_header_compiler=yes
21280 echo "$as_me: failed program was:" >&5
21281 sed 's/^/| /' conftest.$ac_ext >&5
21283 ac_header_compiler=no
21285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21287 echo "${ECHO_T}$ac_header_compiler" >&6
21289 # Is the header present?
21290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21292 cat >conftest.$ac_ext <<_ACEOF
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h. */
21298 #include <$ac_header>
21300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21303 grep -v '^ *+' conftest.er1 >conftest.err
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } >/dev/null; then
21308 if test -s conftest.err; then
21309 ac_cpp_err=$ac_c_preproc_warn_flag
21310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21317 if test -z "$ac_cpp_err"; then
21318 ac_header_preproc=yes
21320 echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21323 ac_header_preproc=no
21325 rm -f conftest.err conftest.$ac_ext
21326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21327 echo "${ECHO_T}$ac_header_preproc" >&6
21329 # So? What about this header?
21330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21336 ac_header_preproc=yes
21339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21353 ## ------------------------------- ##
21354 ## Report this to nfs@lists.sf.net ##
21355 ## ------------------------------- ##
21358 sed "s/^/$as_me: WARNING: /" >&2
21361 echo "$as_me:$LINENO: checking for $ac_header" >&5
21362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21364 echo $ECHO_N "(cached) $ECHO_C" >&6
21366 eval "$as_ac_Header=\$ac_header_preproc"
21368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21373 cat >>confdefs.h <<_ACEOF
21374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21378 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
21379 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
21386 echo "$as_me:$LINENO: checking for Kerberos v5" >&5
21387 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6
21389 # Check whether --with-krb5 or --without-krb5 was given.
21390 if test "${with_krb5+set}" = set; then
21391 withval="$with_krb5"
21397 krb5_with="$withval"
21403 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
21404 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
21406 if test -f $dir/bin/krb5-config; then
21407 K5CONFIG=$dir/bin/krb5-config
21408 elif test -f "/usr/kerberos/bin/krb5-config"; then
21409 K5CONFIG="/usr/kerberos/bin/krb5-config"
21410 elif test -f "/usr/lib/mit/bin/krb5-config"; then
21411 K5CONFIG="/usr/lib/mit/bin/krb5-config"
21413 if test "$K5CONFIG" != ""; then
21414 KRBCFLAGS=`$K5CONFIG --cflags`
21415 KRBLIBS=`$K5CONFIG --libs gssapi`
21416 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
21418 cat >>confdefs.h <<_ACEOF
21419 #define KRB5_VERSION $K5VERS
21422 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
21423 \( -f $dir/lib/libgssapi_krb5.a -o \
21424 -f $dir/lib/libgssapi_krb5.so \) ; then
21426 cat >>confdefs.h <<\_ACEOF
21427 #define HAVE_KRB5 1
21431 if test $K5VERS -le 131; then
21433 cat >>confdefs.h <<\_ACEOF
21434 #define USE_GSS_KRB5_CCACHE_NAME 1
21438 gssapi_lib=gssapi_krb5
21440 elif test \( -f $dir/include/heim_err.h -o\
21441 -f $dir/include/heimdal/heim_err.h \) -a \
21442 -f $dir/lib/libroken.a; then
21444 cat >>confdefs.h <<\_ACEOF
21445 #define HAVE_HEIMDAL 1
21454 if test "x$KRBDIR" = "x"; then
21455 if test "x$krb5_with" = "x"; then
21456 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
21457 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
21458 { (exit 1); exit 1; }; }
21460 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
21461 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
21462 { (exit 1); exit 1; }; }
21465 echo "$as_me:$LINENO: result: $KRBDIR" >&5
21466 echo "${ECHO_T}$KRBDIR" >&6
21468 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
21469 echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
21470 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6
21471 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21472 echo $ECHO_N "(cached) $ECHO_C" >&6
21474 ac_check_lib_save_LIBS=$LIBS
21475 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21476 cat >conftest.$ac_ext <<_ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21483 /* Override any gcc2 internal prototype to avoid an error. */
21487 /* We use char because int might match the return type of a gcc2
21488 builtin and then its argument prototype would still apply. */
21489 char gss_krb5_export_lucid_sec_context ();
21493 gss_krb5_export_lucid_sec_context ();
21498 rm -f conftest.$ac_objext conftest$ac_exeext
21499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21500 (eval $ac_link) 2>conftest.er1
21502 grep -v '^ *+' conftest.er1 >conftest.err
21504 cat conftest.err >&5
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } &&
21507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21509 (eval $ac_try) 2>&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); }; } &&
21513 { ac_try='test -s conftest$ac_exeext'
21514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21515 (eval $ac_try) 2>&5
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); }; }; then
21519 eval "$as_ac_Lib=yes"
21521 echo "$as_me: failed program was:" >&5
21522 sed 's/^/| /' conftest.$ac_ext >&5
21524 eval "$as_ac_Lib=no"
21526 rm -f conftest.err conftest.$ac_objext \
21527 conftest$ac_exeext conftest.$ac_ext
21528 LIBS=$ac_check_lib_save_LIBS
21530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21531 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21532 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21534 cat >>confdefs.h <<\_ACEOF
21535 #define HAVE_LUCID_CONTEXT_SUPPORT 1
21540 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
21541 echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
21542 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6
21543 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21544 echo $ECHO_N "(cached) $ECHO_C" >&6
21546 ac_check_lib_save_LIBS=$LIBS
21547 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21548 cat >conftest.$ac_ext <<_ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h. */
21555 /* Override any gcc2 internal prototype to avoid an error. */
21559 /* We use char because int might match the return type of a gcc2
21560 builtin and then its argument prototype would still apply. */
21561 char gss_krb5_set_allowable_enctypes ();
21565 gss_krb5_set_allowable_enctypes ();
21570 rm -f conftest.$ac_objext conftest$ac_exeext
21571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21572 (eval $ac_link) 2>conftest.er1
21574 grep -v '^ *+' conftest.er1 >conftest.err
21576 cat conftest.err >&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); } &&
21579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21581 (eval $ac_try) 2>&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); }; } &&
21585 { ac_try='test -s conftest$ac_exeext'
21586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21587 (eval $ac_try) 2>&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); }; }; then
21591 eval "$as_ac_Lib=yes"
21593 echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21596 eval "$as_ac_Lib=no"
21598 rm -f conftest.err conftest.$ac_objext \
21599 conftest$ac_exeext conftest.$ac_ext
21600 LIBS=$ac_check_lib_save_LIBS
21602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21603 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21604 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21606 cat >>confdefs.h <<\_ACEOF
21607 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
21612 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
21613 echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
21614 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6
21615 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21616 echo $ECHO_N "(cached) $ECHO_C" >&6
21618 ac_check_lib_save_LIBS=$LIBS
21619 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21620 cat >conftest.$ac_ext <<_ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h. */
21627 /* Override any gcc2 internal prototype to avoid an error. */
21631 /* We use char because int might match the return type of a gcc2
21632 builtin and then its argument prototype would still apply. */
21633 char gss_krb5_ccache_name ();
21637 gss_krb5_ccache_name ();
21642 rm -f conftest.$ac_objext conftest$ac_exeext
21643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21644 (eval $ac_link) 2>conftest.er1
21646 grep -v '^ *+' conftest.er1 >conftest.err
21648 cat conftest.err >&5
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); } &&
21651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; } &&
21657 { ac_try='test -s conftest$ac_exeext'
21658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659 (eval $ac_try) 2>&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; }; then
21663 eval "$as_ac_Lib=yes"
21665 echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21668 eval "$as_ac_Lib=no"
21670 rm -f conftest.err conftest.$ac_objext \
21671 conftest$ac_exeext conftest.$ac_ext
21672 LIBS=$ac_check_lib_save_LIBS
21674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21675 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21676 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21678 cat >>confdefs.h <<\_ACEOF
21679 #define HAVE_GSS_KRB5_CCACHE_NAME 1
21685 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
21686 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
21687 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
21697 echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
21698 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6
21699 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
21700 echo $ECHO_N "(cached) $ECHO_C" >&6
21702 ac_check_lib_save_LIBS=$LIBS
21703 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
21704 cat >conftest.$ac_ext <<_ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h. */
21711 /* Override any gcc2 internal prototype to avoid an error. */
21715 /* We use char because int might match the return type of a gcc2
21716 builtin and then its argument prototype would still apply. */
21717 char authgss_create_default ();
21721 authgss_create_default ();
21726 rm -f conftest.$ac_objext conftest$ac_exeext
21727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21728 (eval $ac_link) 2>conftest.er1
21730 grep -v '^ *+' conftest.er1 >conftest.err
21732 cat conftest.err >&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } &&
21735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21737 (eval $ac_try) 2>&5
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); }; } &&
21741 { ac_try='test -s conftest$ac_exeext'
21742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743 (eval $ac_try) 2>&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; }; then
21747 ac_cv_lib_rpcsecgss_authgss_create_default=yes
21749 echo "$as_me: failed program was:" >&5
21750 sed 's/^/| /' conftest.$ac_ext >&5
21752 ac_cv_lib_rpcsecgss_authgss_create_default=no
21754 rm -f conftest.err conftest.$ac_objext \
21755 conftest$ac_exeext conftest.$ac_ext
21756 LIBS=$ac_check_lib_save_LIBS
21758 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
21759 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6
21760 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
21763 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
21764 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
21765 { (exit 1); exit 1; }; }
21768 echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
21769 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6
21770 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
21771 echo $ECHO_N "(cached) $ECHO_C" >&6
21773 ac_check_lib_save_LIBS=$LIBS
21774 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
21775 cat >conftest.$ac_ext <<_ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h. */
21782 /* Override any gcc2 internal prototype to avoid an error. */
21786 /* We use char because int might match the return type of a gcc2
21787 builtin and then its argument prototype would still apply. */
21788 char authgss_set_debug_level ();
21792 authgss_set_debug_level ();
21797 rm -f conftest.$ac_objext conftest$ac_exeext
21798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21799 (eval $ac_link) 2>conftest.er1
21801 grep -v '^ *+' conftest.er1 >conftest.err
21803 cat conftest.err >&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } &&
21806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808 (eval $ac_try) 2>&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); }; } &&
21812 { ac_try='test -s conftest$ac_exeext'
21813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21814 (eval $ac_try) 2>&5
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); }; }; then
21818 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
21820 echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21823 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
21825 rm -f conftest.err conftest.$ac_objext \
21826 conftest$ac_exeext conftest.$ac_ext
21827 LIBS=$ac_check_lib_save_LIBS
21829 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
21830 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6
21831 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
21833 cat >>confdefs.h <<\_ACEOF
21834 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
21864 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
21865 malloc.h memory.h netdb.h netinet/in.h paths.h \
21866 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
21867 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
21868 syslog.h unistd.h com_err.h et/com_err.h
21870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21872 echo "$as_me:$LINENO: checking for $ac_header" >&5
21873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21875 echo $ECHO_N "(cached) $ECHO_C" >&6
21877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21880 # Is the header compilable?
21881 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21883 cat >conftest.$ac_ext <<_ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21889 $ac_includes_default
21890 #include <$ac_header>
21892 rm -f conftest.$ac_objext
21893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21894 (eval $ac_compile) 2>conftest.er1
21896 grep -v '^ *+' conftest.er1 >conftest.err
21898 cat conftest.err >&5
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } &&
21901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903 (eval $ac_try) 2>&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); }; } &&
21907 { ac_try='test -s conftest.$ac_objext'
21908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909 (eval $ac_try) 2>&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; }; then
21913 ac_header_compiler=yes
21915 echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21918 ac_header_compiler=no
21920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21922 echo "${ECHO_T}$ac_header_compiler" >&6
21924 # Is the header present?
21925 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21926 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21927 cat >conftest.$ac_ext <<_ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h. */
21933 #include <$ac_header>
21935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21938 grep -v '^ *+' conftest.er1 >conftest.err
21940 cat conftest.err >&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); } >/dev/null; then
21943 if test -s conftest.err; then
21944 ac_cpp_err=$ac_c_preproc_warn_flag
21945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21952 if test -z "$ac_cpp_err"; then
21953 ac_header_preproc=yes
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21958 ac_header_preproc=no
21960 rm -f conftest.err conftest.$ac_ext
21961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21962 echo "${ECHO_T}$ac_header_preproc" >&6
21964 # So? What about this header?
21965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21971 ac_header_preproc=yes
21974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21978 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21980 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21981 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21984 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21988 ## ------------------------------- ##
21989 ## Report this to nfs@lists.sf.net ##
21990 ## ------------------------------- ##
21993 sed "s/^/$as_me: WARNING: /" >&2
21996 echo "$as_me:$LINENO: checking for $ac_header" >&5
21997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22001 eval "$as_ac_Header=\$ac_header_preproc"
22003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22008 cat >>confdefs.h <<_ACEOF
22009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22017 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22018 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22019 if test "${ac_cv_c_const+set}" = set; then
22020 echo $ECHO_N "(cached) $ECHO_C" >&6
22022 cat >conftest.$ac_ext <<_ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h. */
22032 /* FIXME: Include the comments suggested by Paul. */
22033 #ifndef __cplusplus
22034 /* Ultrix mips cc rejects this. */
22035 typedef int charset[2];
22037 /* SunOS 4.1.1 cc rejects this. */
22038 char const *const *ccp;
22040 /* NEC SVR4.0.2 mips cc rejects this. */
22041 struct point {int x, y;};
22042 static struct point const zero = {0,0};
22043 /* AIX XL C 1.02.0.0 rejects this.
22044 It does not let you subtract one const X* pointer from another in
22045 an arm of an if-expression whose if-part is not a constant
22047 const char *g = "string";
22048 ccp = &g + (g ? g-g : 0);
22049 /* HPUX 7.0 cc rejects these. */
22052 ccp = (char const *const *) p;
22053 { /* SCO 3.2v4 cc rejects this. */
22055 char const *s = 0 ? (char *) 0 : (char const *) 0;
22059 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22060 int x[] = {25, 17};
22061 const int *foo = &x[0];
22064 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22065 typedef const int *iptr;
22069 { /* AIX XL C 1.02.0.0 rejects this saying
22070 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22071 struct s { int j; const int *ap[3]; };
22072 struct s *b; b->j = 5;
22074 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22075 const int foo = 10;
22083 rm -f conftest.$ac_objext
22084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22085 (eval $ac_compile) 2>conftest.er1
22087 grep -v '^ *+' conftest.er1 >conftest.err
22089 cat conftest.err >&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } &&
22092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094 (eval $ac_try) 2>&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; } &&
22098 { ac_try='test -s conftest.$ac_objext'
22099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100 (eval $ac_try) 2>&5
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); }; }; then
22106 echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22113 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22114 echo "${ECHO_T}$ac_cv_c_const" >&6
22115 if test $ac_cv_c_const = no; then
22117 cat >>confdefs.h <<\_ACEOF
22123 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22124 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22125 if test "${ac_cv_type_uid_t+set}" = set; then
22126 echo $ECHO_N "(cached) $ECHO_C" >&6
22128 cat >conftest.$ac_ext <<_ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h. */
22134 #include <sys/types.h>
22137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22138 $EGREP "uid_t" >/dev/null 2>&1; then
22139 ac_cv_type_uid_t=yes
22141 ac_cv_type_uid_t=no
22146 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22147 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22148 if test $ac_cv_type_uid_t = no; then
22150 cat >>confdefs.h <<\_ACEOF
22155 cat >>confdefs.h <<\_ACEOF
22161 echo "$as_me:$LINENO: checking for inline" >&5
22162 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22163 if test "${ac_cv_c_inline+set}" = set; then
22164 echo $ECHO_N "(cached) $ECHO_C" >&6
22167 for ac_kw in inline __inline__ __inline; do
22168 cat >conftest.$ac_ext <<_ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h. */
22174 #ifndef __cplusplus
22176 static $ac_kw foo_t static_foo () {return 0; }
22177 $ac_kw foo_t foo () {return 0; }
22181 rm -f conftest.$ac_objext
22182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22183 (eval $ac_compile) 2>conftest.er1
22185 grep -v '^ *+' conftest.er1 >conftest.err
22187 cat conftest.err >&5
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); } &&
22190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22192 (eval $ac_try) 2>&5
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); }; } &&
22196 { ac_try='test -s conftest.$ac_objext'
22197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198 (eval $ac_try) 2>&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); }; }; then
22202 ac_cv_c_inline=$ac_kw; break
22204 echo "$as_me: failed program was:" >&5
22205 sed 's/^/| /' conftest.$ac_ext >&5
22208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22212 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22213 echo "${ECHO_T}$ac_cv_c_inline" >&6
22216 case $ac_cv_c_inline in
22219 case $ac_cv_c_inline in
22221 *) ac_val=$ac_cv_c_inline;;
22223 cat >>confdefs.h <<_ACEOF
22224 #ifndef __cplusplus
22225 #define inline $ac_val
22231 echo "$as_me:$LINENO: checking for off_t" >&5
22232 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22233 if test "${ac_cv_type_off_t+set}" = set; then
22234 echo $ECHO_N "(cached) $ECHO_C" >&6
22236 cat >conftest.$ac_ext <<_ACEOF
22239 cat confdefs.h >>conftest.$ac_ext
22240 cat >>conftest.$ac_ext <<_ACEOF
22241 /* end confdefs.h. */
22242 $ac_includes_default
22248 if (sizeof (off_t))
22254 rm -f conftest.$ac_objext
22255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22256 (eval $ac_compile) 2>conftest.er1
22258 grep -v '^ *+' conftest.er1 >conftest.err
22260 cat conftest.err >&5
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); } &&
22263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265 (eval $ac_try) 2>&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); }; } &&
22269 { ac_try='test -s conftest.$ac_objext'
22270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22271 (eval $ac_try) 2>&5
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); }; }; then
22275 ac_cv_type_off_t=yes
22277 echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22280 ac_cv_type_off_t=no
22282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22284 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22285 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22286 if test $ac_cv_type_off_t = yes; then
22290 cat >>confdefs.h <<_ACEOF
22296 echo "$as_me:$LINENO: checking for pid_t" >&5
22297 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22298 if test "${ac_cv_type_pid_t+set}" = set; then
22299 echo $ECHO_N "(cached) $ECHO_C" >&6
22301 cat >conftest.$ac_ext <<_ACEOF
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h. */
22307 $ac_includes_default
22313 if (sizeof (pid_t))
22319 rm -f conftest.$ac_objext
22320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22321 (eval $ac_compile) 2>conftest.er1
22323 grep -v '^ *+' conftest.er1 >conftest.err
22325 cat conftest.err >&5
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); } &&
22328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22330 (eval $ac_try) 2>&5
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); }; } &&
22334 { ac_try='test -s conftest.$ac_objext'
22335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22336 (eval $ac_try) 2>&5
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); }; }; then
22340 ac_cv_type_pid_t=yes
22342 echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.$ac_ext >&5
22345 ac_cv_type_pid_t=no
22347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22349 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22350 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22351 if test $ac_cv_type_pid_t = yes; then
22355 cat >>confdefs.h <<_ACEOF
22361 echo "$as_me:$LINENO: checking for size_t" >&5
22362 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22363 if test "${ac_cv_type_size_t+set}" = set; then
22364 echo $ECHO_N "(cached) $ECHO_C" >&6
22366 cat >conftest.$ac_ext <<_ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22372 $ac_includes_default
22378 if (sizeof (size_t))
22384 rm -f conftest.$ac_objext
22385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22386 (eval $ac_compile) 2>conftest.er1
22388 grep -v '^ *+' conftest.er1 >conftest.err
22390 cat conftest.err >&5
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); } &&
22393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395 (eval $ac_try) 2>&5
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); }; } &&
22399 { ac_try='test -s conftest.$ac_objext'
22400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22401 (eval $ac_try) 2>&5
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); }; }; then
22405 ac_cv_type_size_t=yes
22407 echo "$as_me: failed program was:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22410 ac_cv_type_size_t=no
22412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22414 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22415 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22416 if test $ac_cv_type_size_t = yes; then
22420 cat >>confdefs.h <<_ACEOF
22421 #define size_t unsigned
22426 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22427 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22428 if test "${ac_cv_header_time+set}" = set; then
22429 echo $ECHO_N "(cached) $ECHO_C" >&6
22431 cat >conftest.$ac_ext <<_ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22437 #include <sys/types.h>
22438 #include <sys/time.h>
22444 if ((struct tm *) 0)
22450 rm -f conftest.$ac_objext
22451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22452 (eval $ac_compile) 2>conftest.er1
22454 grep -v '^ *+' conftest.er1 >conftest.err
22456 cat conftest.err >&5
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } &&
22459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22461 (eval $ac_try) 2>&5
22463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464 (exit $ac_status); }; } &&
22465 { ac_try='test -s conftest.$ac_objext'
22466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22467 (eval $ac_try) 2>&5
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); }; }; then
22471 ac_cv_header_time=yes
22473 echo "$as_me: failed program was:" >&5
22474 sed 's/^/| /' conftest.$ac_ext >&5
22476 ac_cv_header_time=no
22478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22480 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22481 echo "${ECHO_T}$ac_cv_header_time" >&6
22482 if test $ac_cv_header_time = yes; then
22484 cat >>confdefs.h <<\_ACEOF
22485 #define TIME_WITH_SYS_TIME 1
22490 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22491 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22492 if test "${ac_cv_struct_tm+set}" = set; then
22493 echo $ECHO_N "(cached) $ECHO_C" >&6
22495 cat >conftest.$ac_ext <<_ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 #include <sys/types.h>
22507 struct tm *tp; tp->tm_sec;
22512 rm -f conftest.$ac_objext
22513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22514 (eval $ac_compile) 2>conftest.er1
22516 grep -v '^ *+' conftest.er1 >conftest.err
22518 cat conftest.err >&5
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); } &&
22521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22523 (eval $ac_try) 2>&5
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); }; } &&
22527 { ac_try='test -s conftest.$ac_objext'
22528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22529 (eval $ac_try) 2>&5
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); }; }; then
22533 ac_cv_struct_tm=time.h
22535 echo "$as_me: failed program was:" >&5
22536 sed 's/^/| /' conftest.$ac_ext >&5
22538 ac_cv_struct_tm=sys/time.h
22540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22542 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22543 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22544 if test $ac_cv_struct_tm = sys/time.h; then
22546 cat >>confdefs.h <<\_ACEOF
22547 #define TM_IN_SYS_TIME 1
22553 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22554 # for constant arguments. Useless!
22555 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22556 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22557 if test "${ac_cv_working_alloca_h+set}" = set; then
22558 echo $ECHO_N "(cached) $ECHO_C" >&6
22560 cat >conftest.$ac_ext <<_ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h. */
22566 #include <alloca.h>
22570 char *p = (char *) alloca (2 * sizeof (int));
22575 rm -f conftest.$ac_objext conftest$ac_exeext
22576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22577 (eval $ac_link) 2>conftest.er1
22579 grep -v '^ *+' conftest.er1 >conftest.err
22581 cat conftest.err >&5
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); } &&
22584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22586 (eval $ac_try) 2>&5
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); }; } &&
22590 { ac_try='test -s conftest$ac_exeext'
22591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22592 (eval $ac_try) 2>&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); }; }; then
22596 ac_cv_working_alloca_h=yes
22598 echo "$as_me: failed program was:" >&5
22599 sed 's/^/| /' conftest.$ac_ext >&5
22601 ac_cv_working_alloca_h=no
22603 rm -f conftest.err conftest.$ac_objext \
22604 conftest$ac_exeext conftest.$ac_ext
22606 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22607 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22608 if test $ac_cv_working_alloca_h = yes; then
22610 cat >>confdefs.h <<\_ACEOF
22611 #define HAVE_ALLOCA_H 1
22616 echo "$as_me:$LINENO: checking for alloca" >&5
22617 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22618 if test "${ac_cv_func_alloca_works+set}" = set; then
22619 echo $ECHO_N "(cached) $ECHO_C" >&6
22621 cat >conftest.$ac_ext <<_ACEOF
22624 cat confdefs.h >>conftest.$ac_ext
22625 cat >>conftest.$ac_ext <<_ACEOF
22626 /* end confdefs.h. */
22628 # define alloca __builtin_alloca
22631 # include <malloc.h>
22632 # define alloca _alloca
22635 # include <alloca.h>
22640 # ifndef alloca /* predefined by HP cc +Olibcalls */
22651 char *p = (char *) alloca (1);
22656 rm -f conftest.$ac_objext conftest$ac_exeext
22657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22658 (eval $ac_link) 2>conftest.er1
22660 grep -v '^ *+' conftest.er1 >conftest.err
22662 cat conftest.err >&5
22663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664 (exit $ac_status); } &&
22665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22667 (eval $ac_try) 2>&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); }; } &&
22671 { ac_try='test -s conftest$ac_exeext'
22672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673 (eval $ac_try) 2>&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); }; }; then
22677 ac_cv_func_alloca_works=yes
22679 echo "$as_me: failed program was:" >&5
22680 sed 's/^/| /' conftest.$ac_ext >&5
22682 ac_cv_func_alloca_works=no
22684 rm -f conftest.err conftest.$ac_objext \
22685 conftest$ac_exeext conftest.$ac_ext
22687 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22688 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22690 if test $ac_cv_func_alloca_works = yes; then
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_ALLOCA 1
22697 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22698 # that cause trouble. Some versions do not even contain alloca or
22699 # contain a buggy version. If you still want to use their alloca,
22700 # use ar to extract alloca.o from them instead of compiling alloca.c.
22702 ALLOCA=alloca.$ac_objext
22704 cat >>confdefs.h <<\_ACEOF
22709 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22710 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22711 if test "${ac_cv_os_cray+set}" = set; then
22712 echo $ECHO_N "(cached) $ECHO_C" >&6
22714 cat >conftest.$ac_ext <<_ACEOF
22717 cat confdefs.h >>conftest.$ac_ext
22718 cat >>conftest.$ac_ext <<_ACEOF
22719 /* end confdefs.h. */
22720 #if defined(CRAY) && ! defined(CRAY2)
22727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22728 $EGREP "webecray" >/dev/null 2>&1; then
22736 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22737 echo "${ECHO_T}$ac_cv_os_cray" >&6
22738 if test $ac_cv_os_cray = yes; then
22739 for ac_func in _getb67 GETB67 getb67; do
22740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22741 echo "$as_me:$LINENO: checking for $ac_func" >&5
22742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22743 if eval "test \"\${$as_ac_var+set}\" = set"; then
22744 echo $ECHO_N "(cached) $ECHO_C" >&6
22746 cat >conftest.$ac_ext <<_ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h. */
22752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22754 #define $ac_func innocuous_$ac_func
22756 /* System header to define __stub macros and hopefully few prototypes,
22757 which can conflict with char $ac_func (); below.
22758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22759 <limits.h> exists even on freestanding compilers. */
22762 # include <limits.h>
22764 # include <assert.h>
22769 /* Override any gcc2 internal prototype to avoid an error. */
22774 /* We use char because int might match the return type of a gcc2
22775 builtin and then its argument prototype would still apply. */
22777 /* The GNU C library defines this for functions which it implements
22778 to always fail with ENOSYS. Some functions are actually named
22779 something starting with __ and the normal name is an alias. */
22780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22783 char (*f) () = $ac_func;
22792 return f != $ac_func;
22797 rm -f conftest.$ac_objext conftest$ac_exeext
22798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22799 (eval $ac_link) 2>conftest.er1
22801 grep -v '^ *+' conftest.er1 >conftest.err
22803 cat conftest.err >&5
22804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805 (exit $ac_status); } &&
22806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22808 (eval $ac_try) 2>&5
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); }; } &&
22812 { ac_try='test -s conftest$ac_exeext'
22813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22814 (eval $ac_try) 2>&5
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); }; }; then
22818 eval "$as_ac_var=yes"
22820 echo "$as_me: failed program was:" >&5
22821 sed 's/^/| /' conftest.$ac_ext >&5
22823 eval "$as_ac_var=no"
22825 rm -f conftest.err conftest.$ac_objext \
22826 conftest$ac_exeext conftest.$ac_ext
22828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22830 if test `eval echo '${'$as_ac_var'}'` = yes; then
22832 cat >>confdefs.h <<_ACEOF
22833 #define CRAY_STACKSEG_END $ac_func
22842 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22843 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22844 if test "${ac_cv_c_stack_direction+set}" = set; then
22845 echo $ECHO_N "(cached) $ECHO_C" >&6
22847 if test "$cross_compiling" = yes; then
22848 ac_cv_c_stack_direction=0
22850 cat >conftest.$ac_ext <<_ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h. */
22857 find_stack_direction ()
22859 static char *addr = 0;
22864 return find_stack_direction ();
22867 return (&dummy > addr) ? 1 : -1;
22873 exit (find_stack_direction () < 0);
22876 rm -f conftest$ac_exeext
22877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22878 (eval $ac_link) 2>&5
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883 (eval $ac_try) 2>&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); }; }; then
22887 ac_cv_c_stack_direction=1
22889 echo "$as_me: program exited with status $ac_status" >&5
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22893 ( exit $ac_status )
22894 ac_cv_c_stack_direction=-1
22896 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22899 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22900 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22902 cat >>confdefs.h <<_ACEOF
22903 #define STACK_DIRECTION $ac_cv_c_stack_direction
22914 ac_header_dirent=no
22915 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22916 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22917 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22918 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
22919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22920 echo $ECHO_N "(cached) $ECHO_C" >&6
22922 cat >conftest.$ac_ext <<_ACEOF
22925 cat confdefs.h >>conftest.$ac_ext
22926 cat >>conftest.$ac_ext <<_ACEOF
22927 /* end confdefs.h. */
22928 #include <sys/types.h>
22940 rm -f conftest.$ac_objext
22941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22942 (eval $ac_compile) 2>conftest.er1
22944 grep -v '^ *+' conftest.er1 >conftest.err
22946 cat conftest.err >&5
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); } &&
22949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22951 (eval $ac_try) 2>&5
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); }; } &&
22955 { ac_try='test -s conftest.$ac_objext'
22956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22957 (eval $ac_try) 2>&5
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); }; }; then
22961 eval "$as_ac_Header=yes"
22963 echo "$as_me: failed program was:" >&5
22964 sed 's/^/| /' conftest.$ac_ext >&5
22966 eval "$as_ac_Header=no"
22968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22973 cat >>confdefs.h <<_ACEOF
22974 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22977 ac_header_dirent=$ac_hdr; break
22981 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22982 if test $ac_header_dirent = dirent.h; then
22983 echo "$as_me:$LINENO: checking for library containing opendir" >&5
22984 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
22985 if test "${ac_cv_search_opendir+set}" = set; then
22986 echo $ECHO_N "(cached) $ECHO_C" >&6
22988 ac_func_search_save_LIBS=$LIBS
22989 ac_cv_search_opendir=no
22990 cat >conftest.$ac_ext <<_ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h. */
22997 /* Override any gcc2 internal prototype to avoid an error. */
23001 /* We use char because int might match the return type of a gcc2
23002 builtin and then its argument prototype would still apply. */
23012 rm -f conftest.$ac_objext conftest$ac_exeext
23013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23014 (eval $ac_link) 2>conftest.er1
23016 grep -v '^ *+' conftest.er1 >conftest.err
23018 cat conftest.err >&5
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); } &&
23021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23023 (eval $ac_try) 2>&5
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); }; } &&
23027 { ac_try='test -s conftest$ac_exeext'
23028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23029 (eval $ac_try) 2>&5
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); }; }; then
23033 ac_cv_search_opendir="none required"
23035 echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23039 rm -f conftest.err conftest.$ac_objext \
23040 conftest$ac_exeext conftest.$ac_ext
23041 if test "$ac_cv_search_opendir" = no; then
23042 for ac_lib in dir; do
23043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23044 cat >conftest.$ac_ext <<_ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h. */
23051 /* Override any gcc2 internal prototype to avoid an error. */
23055 /* We use char because int might match the return type of a gcc2
23056 builtin and then its argument prototype would still apply. */
23066 rm -f conftest.$ac_objext conftest$ac_exeext
23067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23068 (eval $ac_link) 2>conftest.er1
23070 grep -v '^ *+' conftest.er1 >conftest.err
23072 cat conftest.err >&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } &&
23075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077 (eval $ac_try) 2>&5
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; } &&
23081 { ac_try='test -s conftest$ac_exeext'
23082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083 (eval $ac_try) 2>&5
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); }; }; then
23087 ac_cv_search_opendir="-l$ac_lib"
23090 echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23094 rm -f conftest.err conftest.$ac_objext \
23095 conftest$ac_exeext conftest.$ac_ext
23098 LIBS=$ac_func_search_save_LIBS
23100 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23101 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23102 if test "$ac_cv_search_opendir" != no; then
23103 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23108 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23109 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23110 if test "${ac_cv_search_opendir+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23113 ac_func_search_save_LIBS=$LIBS
23114 ac_cv_search_opendir=no
23115 cat >conftest.$ac_ext <<_ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h. */
23122 /* Override any gcc2 internal prototype to avoid an error. */
23126 /* We use char because int might match the return type of a gcc2
23127 builtin and then its argument prototype would still apply. */
23137 rm -f conftest.$ac_objext conftest$ac_exeext
23138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23139 (eval $ac_link) 2>conftest.er1
23141 grep -v '^ *+' conftest.er1 >conftest.err
23143 cat conftest.err >&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); } &&
23146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23148 (eval $ac_try) 2>&5
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); }; } &&
23152 { ac_try='test -s conftest$ac_exeext'
23153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23154 (eval $ac_try) 2>&5
23156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157 (exit $ac_status); }; }; then
23158 ac_cv_search_opendir="none required"
23160 echo "$as_me: failed program was:" >&5
23161 sed 's/^/| /' conftest.$ac_ext >&5
23164 rm -f conftest.err conftest.$ac_objext \
23165 conftest$ac_exeext conftest.$ac_ext
23166 if test "$ac_cv_search_opendir" = no; then
23167 for ac_lib in x; do
23168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23169 cat >conftest.$ac_ext <<_ACEOF
23172 cat confdefs.h >>conftest.$ac_ext
23173 cat >>conftest.$ac_ext <<_ACEOF
23174 /* end confdefs.h. */
23176 /* Override any gcc2 internal prototype to avoid an error. */
23180 /* We use char because int might match the return type of a gcc2
23181 builtin and then its argument prototype would still apply. */
23191 rm -f conftest.$ac_objext conftest$ac_exeext
23192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23193 (eval $ac_link) 2>conftest.er1
23195 grep -v '^ *+' conftest.er1 >conftest.err
23197 cat conftest.err >&5
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); } &&
23200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23202 (eval $ac_try) 2>&5
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); }; } &&
23206 { ac_try='test -s conftest$ac_exeext'
23207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208 (eval $ac_try) 2>&5
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); }; }; then
23212 ac_cv_search_opendir="-l$ac_lib"
23215 echo "$as_me: failed program was:" >&5
23216 sed 's/^/| /' conftest.$ac_ext >&5
23219 rm -f conftest.err conftest.$ac_objext \
23220 conftest$ac_exeext conftest.$ac_ext
23223 LIBS=$ac_func_search_save_LIBS
23225 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23226 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23227 if test "$ac_cv_search_opendir" != no; then
23228 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23234 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
23235 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
23236 if test "${ac_cv_func_closedir_void+set}" = set; then
23237 echo $ECHO_N "(cached) $ECHO_C" >&6
23239 if test "$cross_compiling" = yes; then
23240 ac_cv_func_closedir_void=yes
23242 cat >conftest.$ac_ext <<_ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23248 $ac_includes_default
23249 #include <$ac_header_dirent>
23250 #ifndef __cplusplus
23257 exit (closedir (opendir (".")) != 0);
23262 rm -f conftest$ac_exeext
23263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23264 (eval $ac_link) 2>&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23269 (eval $ac_try) 2>&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); }; }; then
23273 ac_cv_func_closedir_void=no
23275 echo "$as_me: program exited with status $ac_status" >&5
23276 echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23279 ( exit $ac_status )
23280 ac_cv_func_closedir_void=yes
23282 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23285 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
23286 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
23287 if test $ac_cv_func_closedir_void = yes; then
23289 cat >>confdefs.h <<\_ACEOF
23290 #define CLOSEDIR_VOID 1
23295 echo "$as_me:$LINENO: checking for error_at_line" >&5
23296 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
23297 if test "${ac_cv_lib_error_at_line+set}" = set; then
23298 echo $ECHO_N "(cached) $ECHO_C" >&6
23300 cat >conftest.$ac_ext <<_ACEOF
23303 cat confdefs.h >>conftest.$ac_ext
23304 cat >>conftest.$ac_ext <<_ACEOF
23305 /* end confdefs.h. */
23306 $ac_includes_default
23310 error_at_line (0, 0, "", 0, "");
23315 rm -f conftest.$ac_objext conftest$ac_exeext
23316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23317 (eval $ac_link) 2>conftest.er1
23319 grep -v '^ *+' conftest.er1 >conftest.err
23321 cat conftest.err >&5
23322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323 (exit $ac_status); } &&
23324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23326 (eval $ac_try) 2>&5
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); }; } &&
23330 { ac_try='test -s conftest$ac_exeext'
23331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23332 (eval $ac_try) 2>&5
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); }; }; then
23336 ac_cv_lib_error_at_line=yes
23338 echo "$as_me: failed program was:" >&5
23339 sed 's/^/| /' conftest.$ac_ext >&5
23341 ac_cv_lib_error_at_line=no
23343 rm -f conftest.err conftest.$ac_objext \
23344 conftest$ac_exeext conftest.$ac_ext
23346 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
23347 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
23348 if test $ac_cv_lib_error_at_line = no; then
23350 "error.$ac_objext" | \
23351 *" error.$ac_objext" | \
23352 "error.$ac_objext "* | \
23353 *" error.$ac_objext "* ) ;;
23354 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
23361 for ac_header in unistd.h vfork.h
23363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23365 echo "$as_me:$LINENO: checking for $ac_header" >&5
23366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23368 echo $ECHO_N "(cached) $ECHO_C" >&6
23370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23373 # Is the header compilable?
23374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23376 cat >conftest.$ac_ext <<_ACEOF
23379 cat confdefs.h >>conftest.$ac_ext
23380 cat >>conftest.$ac_ext <<_ACEOF
23381 /* end confdefs.h. */
23382 $ac_includes_default
23383 #include <$ac_header>
23385 rm -f conftest.$ac_objext
23386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23387 (eval $ac_compile) 2>conftest.er1
23389 grep -v '^ *+' conftest.er1 >conftest.err
23391 cat conftest.err >&5
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); } &&
23394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396 (eval $ac_try) 2>&5
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); }; } &&
23400 { ac_try='test -s conftest.$ac_objext'
23401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402 (eval $ac_try) 2>&5
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; }; then
23406 ac_header_compiler=yes
23408 echo "$as_me: failed program was:" >&5
23409 sed 's/^/| /' conftest.$ac_ext >&5
23411 ac_header_compiler=no
23413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23415 echo "${ECHO_T}$ac_header_compiler" >&6
23417 # Is the header present?
23418 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23420 cat >conftest.$ac_ext <<_ACEOF
23423 cat confdefs.h >>conftest.$ac_ext
23424 cat >>conftest.$ac_ext <<_ACEOF
23425 /* end confdefs.h. */
23426 #include <$ac_header>
23428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23431 grep -v '^ *+' conftest.er1 >conftest.err
23433 cat conftest.err >&5
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); } >/dev/null; then
23436 if test -s conftest.err; then
23437 ac_cpp_err=$ac_c_preproc_warn_flag
23438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23445 if test -z "$ac_cpp_err"; then
23446 ac_header_preproc=yes
23448 echo "$as_me: failed program was:" >&5
23449 sed 's/^/| /' conftest.$ac_ext >&5
23451 ac_header_preproc=no
23453 rm -f conftest.err conftest.$ac_ext
23454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23455 echo "${ECHO_T}$ac_header_preproc" >&6
23457 # So? What about this header?
23458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23464 ac_header_preproc=yes
23467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23481 ## ------------------------------- ##
23482 ## Report this to nfs@lists.sf.net ##
23483 ## ------------------------------- ##
23486 sed "s/^/$as_me: WARNING: /" >&2
23489 echo "$as_me:$LINENO: checking for $ac_header" >&5
23490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23492 echo $ECHO_N "(cached) $ECHO_C" >&6
23494 eval "$as_ac_Header=\$ac_header_preproc"
23496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23501 cat >>confdefs.h <<_ACEOF
23502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23511 for ac_func in fork vfork
23513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23514 echo "$as_me:$LINENO: checking for $ac_func" >&5
23515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23516 if eval "test \"\${$as_ac_var+set}\" = set"; then
23517 echo $ECHO_N "(cached) $ECHO_C" >&6
23519 cat >conftest.$ac_ext <<_ACEOF
23522 cat confdefs.h >>conftest.$ac_ext
23523 cat >>conftest.$ac_ext <<_ACEOF
23524 /* end confdefs.h. */
23525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23527 #define $ac_func innocuous_$ac_func
23529 /* System header to define __stub macros and hopefully few prototypes,
23530 which can conflict with char $ac_func (); below.
23531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23532 <limits.h> exists even on freestanding compilers. */
23535 # include <limits.h>
23537 # include <assert.h>
23542 /* Override any gcc2 internal prototype to avoid an error. */
23547 /* We use char because int might match the return type of a gcc2
23548 builtin and then its argument prototype would still apply. */
23550 /* The GNU C library defines this for functions which it implements
23551 to always fail with ENOSYS. Some functions are actually named
23552 something starting with __ and the normal name is an alias. */
23553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23556 char (*f) () = $ac_func;
23565 return f != $ac_func;
23570 rm -f conftest.$ac_objext conftest$ac_exeext
23571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23572 (eval $ac_link) 2>conftest.er1
23574 grep -v '^ *+' conftest.er1 >conftest.err
23576 cat conftest.err >&5
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); } &&
23579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23581 (eval $ac_try) 2>&5
23583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584 (exit $ac_status); }; } &&
23585 { ac_try='test -s conftest$ac_exeext'
23586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23587 (eval $ac_try) 2>&5
23589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590 (exit $ac_status); }; }; then
23591 eval "$as_ac_var=yes"
23593 echo "$as_me: failed program was:" >&5
23594 sed 's/^/| /' conftest.$ac_ext >&5
23596 eval "$as_ac_var=no"
23598 rm -f conftest.err conftest.$ac_objext \
23599 conftest$ac_exeext conftest.$ac_ext
23601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23603 if test `eval echo '${'$as_ac_var'}'` = yes; then
23604 cat >>confdefs.h <<_ACEOF
23605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23611 if test "x$ac_cv_func_fork" = xyes; then
23612 echo "$as_me:$LINENO: checking for working fork" >&5
23613 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23614 if test "${ac_cv_func_fork_works+set}" = set; then
23615 echo $ECHO_N "(cached) $ECHO_C" >&6
23617 if test "$cross_compiling" = yes; then
23618 ac_cv_func_fork_works=cross
23620 cat >conftest.$ac_ext <<_ACEOF
23623 cat confdefs.h >>conftest.$ac_ext
23624 cat >>conftest.$ac_ext <<_ACEOF
23625 /* end confdefs.h. */
23626 $ac_includes_default
23631 /* By Ruediger Kuhlmann. */
23640 rm -f conftest$ac_exeext
23641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23642 (eval $ac_link) 2>&5
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23647 (eval $ac_try) 2>&5
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); }; }; then
23651 ac_cv_func_fork_works=yes
23653 echo "$as_me: program exited with status $ac_status" >&5
23654 echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23657 ( exit $ac_status )
23658 ac_cv_func_fork_works=no
23660 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23663 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23664 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
23667 ac_cv_func_fork_works=$ac_cv_func_fork
23669 if test "x$ac_cv_func_fork_works" = xcross; then
23671 *-*-amigaos* | *-*-msdosdjgpp*)
23672 # Override, as these systems have only a dummy fork() stub
23673 ac_cv_func_fork_works=no
23676 ac_cv_func_fork_works=yes
23679 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23680 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23682 ac_cv_func_vfork_works=$ac_cv_func_vfork
23683 if test "x$ac_cv_func_vfork" = xyes; then
23684 echo "$as_me:$LINENO: checking for working vfork" >&5
23685 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
23686 if test "${ac_cv_func_vfork_works+set}" = set; then
23687 echo $ECHO_N "(cached) $ECHO_C" >&6
23689 if test "$cross_compiling" = yes; then
23690 ac_cv_func_vfork_works=cross
23692 cat >conftest.$ac_ext <<_ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h. */
23698 /* Thanks to Paul Eggert for this test. */
23700 #include <stdlib.h>
23701 #include <sys/types.h>
23702 #include <sys/stat.h>
23703 #include <sys/wait.h>
23705 # include <unistd.h>
23708 # include <vfork.h>
23710 /* On some sparc systems, changes by the child to local and incoming
23711 argument registers are propagated back to the parent. The compiler
23712 is told about this with #include <vfork.h>, but some compilers
23713 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23714 static variable whose address is put into a register that is
23715 clobbered by the vfork. */
23718 sparc_address_test (int arg)
23720 sparc_address_test (arg) int arg;
23723 static pid_t child;
23741 pid_t parent = getpid ();
23744 sparc_address_test (0);
23749 /* Here is another test for sparc vfork register problems. This
23750 test uses lots of local variables, at least as many local
23751 variables as main has allocated so far including compiler
23752 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23753 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23754 reuse the register of parent for one of the local variables,
23755 since it will think that parent can't possibly be used any more
23756 in this routine. Assigning to the local variable will thus
23757 munge parent in the parent process. */
23759 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23760 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23761 /* Convince the compiler that p..p7 are live; otherwise, it might
23762 use the same hardware register for all 8 local variables. */
23763 if (p != p1 || p != p2 || p != p3 || p != p4
23764 || p != p5 || p != p6 || p != p7)
23767 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23768 from child file descriptors. If the child closes a descriptor
23769 before it execs or exits, this munges the parent's descriptor
23770 as well. Test for this by closing stdout in the child. */
23771 _exit(close(fileno(stdout)) != 0);
23776 while (wait(&status) != child)
23779 /* Was there some problem with vforking? */
23782 /* Did the child fail? (This shouldn't happen.) */
23785 /* Did the vfork/compiler bug occur? */
23786 || parent != getpid()
23788 /* Did the file descriptor bug occur? */
23789 || fstat(fileno(stdout), &st) != 0
23794 rm -f conftest$ac_exeext
23795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23796 (eval $ac_link) 2>&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23801 (eval $ac_try) 2>&5
23803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); }; }; then
23805 ac_cv_func_vfork_works=yes
23807 echo "$as_me: program exited with status $ac_status" >&5
23808 echo "$as_me: failed program was:" >&5
23809 sed 's/^/| /' conftest.$ac_ext >&5
23811 ( exit $ac_status )
23812 ac_cv_func_vfork_works=no
23814 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23817 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23818 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23821 if test "x$ac_cv_func_fork_works" = xcross; then
23822 ac_cv_func_vfork_works=$ac_cv_func_vfork
23823 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23824 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23827 if test "x$ac_cv_func_vfork_works" = xyes; then
23829 cat >>confdefs.h <<\_ACEOF
23830 #define HAVE_WORKING_VFORK 1
23835 cat >>confdefs.h <<\_ACEOF
23840 if test "x$ac_cv_func_fork_works" = xyes; then
23842 cat >>confdefs.h <<\_ACEOF
23843 #define HAVE_WORKING_FORK 1
23848 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
23849 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
23850 if test "${ac_cv_type_getgroups+set}" = set; then
23851 echo $ECHO_N "(cached) $ECHO_C" >&6
23853 if test "$cross_compiling" = yes; then
23854 ac_cv_type_getgroups=cross
23856 cat >conftest.$ac_ext <<_ACEOF
23859 cat confdefs.h >>conftest.$ac_ext
23860 cat >>conftest.$ac_ext <<_ACEOF
23861 /* end confdefs.h. */
23862 /* Thanks to Mike Rendell for this test. */
23863 #include <sys/types.h>
23866 #define MAX(x, y) ((x) > (y) ? (x) : (y))
23871 gid_t gidset[NGID];
23873 union { gid_t gval; long lval; } val;
23876 for (i = 0; i < NGID; i++)
23877 gidset[i] = val.gval;
23878 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
23880 /* Exit non-zero if getgroups seems to require an array of ints. This
23881 happens when gid_t is short but getgroups modifies an array of ints. */
23882 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
23885 rm -f conftest$ac_exeext
23886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23887 (eval $ac_link) 2>&5
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892 (eval $ac_try) 2>&5
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); }; }; then
23896 ac_cv_type_getgroups=gid_t
23898 echo "$as_me: program exited with status $ac_status" >&5
23899 echo "$as_me: failed program was:" >&5
23900 sed 's/^/| /' conftest.$ac_ext >&5
23902 ( exit $ac_status )
23903 ac_cv_type_getgroups=int
23905 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23907 if test $ac_cv_type_getgroups = cross; then
23908 cat >conftest.$ac_ext <<_ACEOF
23911 cat confdefs.h >>conftest.$ac_ext
23912 cat >>conftest.$ac_ext <<_ACEOF
23913 /* end confdefs.h. */
23914 #include <unistd.h>
23917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23918 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
23919 ac_cv_type_getgroups=gid_t
23921 ac_cv_type_getgroups=int
23927 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
23928 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
23930 cat >>confdefs.h <<_ACEOF
23931 #define GETGROUPS_T $ac_cv_type_getgroups
23935 echo "$as_me:$LINENO: checking for getgroups" >&5
23936 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
23937 if test "${ac_cv_func_getgroups+set}" = set; then
23938 echo $ECHO_N "(cached) $ECHO_C" >&6
23940 cat >conftest.$ac_ext <<_ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h. */
23946 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
23947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23948 #define getgroups innocuous_getgroups
23950 /* System header to define __stub macros and hopefully few prototypes,
23951 which can conflict with char getgroups (); below.
23952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23953 <limits.h> exists even on freestanding compilers. */
23956 # include <limits.h>
23958 # include <assert.h>
23963 /* Override any gcc2 internal prototype to avoid an error. */
23968 /* We use char because int might match the return type of a gcc2
23969 builtin and then its argument prototype would still apply. */
23971 /* The GNU C library defines this for functions which it implements
23972 to always fail with ENOSYS. Some functions are actually named
23973 something starting with __ and the normal name is an alias. */
23974 #if defined (__stub_getgroups) || defined (__stub___getgroups)
23977 char (*f) () = getgroups;
23986 return f != getgroups;
23991 rm -f conftest.$ac_objext conftest$ac_exeext
23992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23993 (eval $ac_link) 2>conftest.er1
23995 grep -v '^ *+' conftest.er1 >conftest.err
23997 cat conftest.err >&5
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); } &&
24000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24002 (eval $ac_try) 2>&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); }; } &&
24006 { ac_try='test -s conftest$ac_exeext'
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; }; then
24012 ac_cv_func_getgroups=yes
24014 echo "$as_me: failed program was:" >&5
24015 sed 's/^/| /' conftest.$ac_ext >&5
24017 ac_cv_func_getgroups=no
24019 rm -f conftest.err conftest.$ac_objext \
24020 conftest$ac_exeext conftest.$ac_ext
24022 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
24023 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
24026 # If we don't yet have getgroups, see if it's in -lbsd.
24027 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24029 if test $ac_cv_func_getgroups = no; then
24030 echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
24031 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
24032 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
24033 echo $ECHO_N "(cached) $ECHO_C" >&6
24035 ac_check_lib_save_LIBS=$LIBS
24037 cat >conftest.$ac_ext <<_ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h. */
24044 /* Override any gcc2 internal prototype to avoid an error. */
24048 /* We use char because int might match the return type of a gcc2
24049 builtin and then its argument prototype would still apply. */
24059 rm -f conftest.$ac_objext conftest$ac_exeext
24060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24061 (eval $ac_link) 2>conftest.er1
24063 grep -v '^ *+' conftest.er1 >conftest.err
24065 cat conftest.err >&5
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); } &&
24068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24070 (eval $ac_try) 2>&5
24072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); }; } &&
24074 { ac_try='test -s conftest$ac_exeext'
24075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24076 (eval $ac_try) 2>&5
24078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079 (exit $ac_status); }; }; then
24080 ac_cv_lib_bsd_getgroups=yes
24082 echo "$as_me: failed program was:" >&5
24083 sed 's/^/| /' conftest.$ac_ext >&5
24085 ac_cv_lib_bsd_getgroups=no
24087 rm -f conftest.err conftest.$ac_objext \
24088 conftest$ac_exeext conftest.$ac_ext
24089 LIBS=$ac_check_lib_save_LIBS
24091 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
24092 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
24093 if test $ac_cv_lib_bsd_getgroups = yes; then
24094 GETGROUPS_LIB=-lbsd
24099 # Run the program to test the functionality of the system-supplied
24100 # getgroups function only if there is such a function.
24101 if test $ac_cv_func_getgroups = yes; then
24102 echo "$as_me:$LINENO: checking for working getgroups" >&5
24103 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
24104 if test "${ac_cv_func_getgroups_works+set}" = set; then
24105 echo $ECHO_N "(cached) $ECHO_C" >&6
24107 if test "$cross_compiling" = yes; then
24108 ac_cv_func_getgroups_works=no
24110 cat >conftest.$ac_ext <<_ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h. */
24116 $ac_includes_default
24120 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24121 exit (getgroups (0, 0) == -1 ? 1 : 0);
24126 rm -f conftest$ac_exeext
24127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24128 (eval $ac_link) 2>&5
24130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24133 (eval $ac_try) 2>&5
24135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); }; }; then
24137 ac_cv_func_getgroups_works=yes
24139 echo "$as_me: program exited with status $ac_status" >&5
24140 echo "$as_me: failed program was:" >&5
24141 sed 's/^/| /' conftest.$ac_ext >&5
24143 ( exit $ac_status )
24144 ac_cv_func_getgroups_works=no
24146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24150 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
24151 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
24152 if test $ac_cv_func_getgroups_works = yes; then
24154 cat >>confdefs.h <<\_ACEOF
24155 #define HAVE_GETGROUPS 1
24162 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
24163 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
24164 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
24165 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
24166 echo $ECHO_N "(cached) $ECHO_C" >&6
24168 ac_check_lib_save_LIBS=$LIBS
24170 cat >conftest.$ac_ext <<_ACEOF
24173 cat confdefs.h >>conftest.$ac_ext
24174 cat >>conftest.$ac_ext <<_ACEOF
24175 /* end confdefs.h. */
24177 /* Override any gcc2 internal prototype to avoid an error. */
24181 /* We use char because int might match the return type of a gcc2
24182 builtin and then its argument prototype would still apply. */
24192 rm -f conftest.$ac_objext conftest$ac_exeext
24193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24194 (eval $ac_link) 2>conftest.er1
24196 grep -v '^ *+' conftest.er1 >conftest.err
24198 cat conftest.err >&5
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); } &&
24201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203 (eval $ac_try) 2>&5
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); }; } &&
24207 { ac_try='test -s conftest$ac_exeext'
24208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24209 (eval $ac_try) 2>&5
24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); }; }; then
24213 ac_cv_lib_sun_getmntent=yes
24215 echo "$as_me: failed program was:" >&5
24216 sed 's/^/| /' conftest.$ac_ext >&5
24218 ac_cv_lib_sun_getmntent=no
24220 rm -f conftest.err conftest.$ac_objext \
24221 conftest$ac_exeext conftest.$ac_ext
24222 LIBS=$ac_check_lib_save_LIBS
24224 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
24225 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
24226 if test $ac_cv_lib_sun_getmntent = yes; then
24229 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
24230 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
24231 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
24232 echo $ECHO_N "(cached) $ECHO_C" >&6
24234 ac_check_lib_save_LIBS=$LIBS
24236 cat >conftest.$ac_ext <<_ACEOF
24239 cat confdefs.h >>conftest.$ac_ext
24240 cat >>conftest.$ac_ext <<_ACEOF
24241 /* end confdefs.h. */
24243 /* Override any gcc2 internal prototype to avoid an error. */
24247 /* We use char because int might match the return type of a gcc2
24248 builtin and then its argument prototype would still apply. */
24258 rm -f conftest.$ac_objext conftest$ac_exeext
24259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24260 (eval $ac_link) 2>conftest.er1
24262 grep -v '^ *+' conftest.er1 >conftest.err
24264 cat conftest.err >&5
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); } &&
24267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24269 (eval $ac_try) 2>&5
24271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); }; } &&
24273 { ac_try='test -s conftest$ac_exeext'
24274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24275 (eval $ac_try) 2>&5
24277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278 (exit $ac_status); }; }; then
24279 ac_cv_lib_seq_getmntent=yes
24281 echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24284 ac_cv_lib_seq_getmntent=no
24286 rm -f conftest.err conftest.$ac_objext \
24287 conftest$ac_exeext conftest.$ac_ext
24288 LIBS=$ac_check_lib_save_LIBS
24290 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
24291 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
24292 if test $ac_cv_lib_seq_getmntent = yes; then
24295 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
24296 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
24297 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
24298 echo $ECHO_N "(cached) $ECHO_C" >&6
24300 ac_check_lib_save_LIBS=$LIBS
24302 cat >conftest.$ac_ext <<_ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h. */
24309 /* Override any gcc2 internal prototype to avoid an error. */
24313 /* We use char because int might match the return type of a gcc2
24314 builtin and then its argument prototype would still apply. */
24324 rm -f conftest.$ac_objext conftest$ac_exeext
24325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24326 (eval $ac_link) 2>conftest.er1
24328 grep -v '^ *+' conftest.er1 >conftest.err
24330 cat conftest.err >&5
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); } &&
24333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24335 (eval $ac_try) 2>&5
24337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338 (exit $ac_status); }; } &&
24339 { ac_try='test -s conftest$ac_exeext'
24340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24341 (eval $ac_try) 2>&5
24343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); }; }; then
24345 ac_cv_lib_gen_getmntent=yes
24347 echo "$as_me: failed program was:" >&5
24348 sed 's/^/| /' conftest.$ac_ext >&5
24350 ac_cv_lib_gen_getmntent=no
24352 rm -f conftest.err conftest.$ac_objext \
24353 conftest$ac_exeext conftest.$ac_ext
24354 LIBS=$ac_check_lib_save_LIBS
24356 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
24357 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
24358 if test $ac_cv_lib_gen_getmntent = yes; then
24367 for ac_func in getmntent
24369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24370 echo "$as_me:$LINENO: checking for $ac_func" >&5
24371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24372 if eval "test \"\${$as_ac_var+set}\" = set"; then
24373 echo $ECHO_N "(cached) $ECHO_C" >&6
24375 cat >conftest.$ac_ext <<_ACEOF
24378 cat confdefs.h >>conftest.$ac_ext
24379 cat >>conftest.$ac_ext <<_ACEOF
24380 /* end confdefs.h. */
24381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24383 #define $ac_func innocuous_$ac_func
24385 /* System header to define __stub macros and hopefully few prototypes,
24386 which can conflict with char $ac_func (); below.
24387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24388 <limits.h> exists even on freestanding compilers. */
24391 # include <limits.h>
24393 # include <assert.h>
24398 /* Override any gcc2 internal prototype to avoid an error. */
24403 /* We use char because int might match the return type of a gcc2
24404 builtin and then its argument prototype would still apply. */
24406 /* The GNU C library defines this for functions which it implements
24407 to always fail with ENOSYS. Some functions are actually named
24408 something starting with __ and the normal name is an alias. */
24409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24412 char (*f) () = $ac_func;
24421 return f != $ac_func;
24426 rm -f conftest.$ac_objext conftest$ac_exeext
24427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24428 (eval $ac_link) 2>conftest.er1
24430 grep -v '^ *+' conftest.er1 >conftest.err
24432 cat conftest.err >&5
24433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434 (exit $ac_status); } &&
24435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24437 (eval $ac_try) 2>&5
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); }; } &&
24441 { ac_try='test -s conftest$ac_exeext'
24442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24443 (eval $ac_try) 2>&5
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); }; }; then
24447 eval "$as_ac_var=yes"
24449 echo "$as_me: failed program was:" >&5
24450 sed 's/^/| /' conftest.$ac_ext >&5
24452 eval "$as_ac_var=no"
24454 rm -f conftest.err conftest.$ac_objext \
24455 conftest$ac_exeext conftest.$ac_ext
24457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24459 if test `eval echo '${'$as_ac_var'}'` = yes; then
24460 cat >>confdefs.h <<_ACEOF
24461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24468 if test $ac_cv_c_compiler_gnu = yes; then
24469 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
24470 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
24471 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
24472 echo $ECHO_N "(cached) $ECHO_C" >&6
24474 ac_pattern="Autoconf.*'x'"
24475 cat >conftest.$ac_ext <<_ACEOF
24478 cat confdefs.h >>conftest.$ac_ext
24479 cat >>conftest.$ac_ext <<_ACEOF
24480 /* end confdefs.h. */
24484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24485 $EGREP "$ac_pattern" >/dev/null 2>&1; then
24486 ac_cv_prog_gcc_traditional=yes
24488 ac_cv_prog_gcc_traditional=no
24493 if test $ac_cv_prog_gcc_traditional = no; then
24494 cat >conftest.$ac_ext <<_ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24500 #include <termio.h>
24503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24504 $EGREP "$ac_pattern" >/dev/null 2>&1; then
24505 ac_cv_prog_gcc_traditional=yes
24511 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
24512 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
24513 if test $ac_cv_prog_gcc_traditional = yes; then
24514 CC="$CC -traditional"
24518 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24519 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24520 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24521 echo $ECHO_N "(cached) $ECHO_C" >&6
24523 rm -f conftest.sym conftest.file
24524 echo >conftest.file
24525 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24526 if test "$cross_compiling" = yes; then
24527 ac_cv_func_lstat_dereferences_slashed_symlink=no
24529 cat >conftest.$ac_ext <<_ACEOF
24532 cat confdefs.h >>conftest.$ac_ext
24533 cat >>conftest.$ac_ext <<_ACEOF
24534 /* end confdefs.h. */
24535 $ac_includes_default
24540 /* Linux will dereference the symlink and fail.
24541 That is better in the sense that it means we will not
24542 have to compile and use the lstat wrapper. */
24543 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24548 rm -f conftest$ac_exeext
24549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24550 (eval $ac_link) 2>&5
24552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24555 (eval $ac_try) 2>&5
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); }; }; then
24559 ac_cv_func_lstat_dereferences_slashed_symlink=yes
24561 echo "$as_me: program exited with status $ac_status" >&5
24562 echo "$as_me: failed program was:" >&5
24563 sed 's/^/| /' conftest.$ac_ext >&5
24565 ( exit $ac_status )
24566 ac_cv_func_lstat_dereferences_slashed_symlink=no
24568 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24571 # If the `ln -s' command failed, then we probably don't even
24572 # have an lstat function.
24573 ac_cv_func_lstat_dereferences_slashed_symlink=no
24575 rm -f conftest.sym conftest.file
24578 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24579 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24581 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24583 cat >>confdefs.h <<_ACEOF
24584 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24588 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24590 "lstat.$ac_objext" | \
24591 *" lstat.$ac_objext" | \
24592 "lstat.$ac_objext "* | \
24593 *" lstat.$ac_objext "* ) ;;
24594 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24599 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
24600 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
24601 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
24602 echo $ECHO_N "(cached) $ECHO_C" >&6
24604 if test "$cross_compiling" = yes; then
24605 ac_cv_func_lstat_empty_string_bug=yes
24607 cat >conftest.$ac_ext <<_ACEOF
24610 cat confdefs.h >>conftest.$ac_ext
24611 cat >>conftest.$ac_ext <<_ACEOF
24612 /* end confdefs.h. */
24613 $ac_includes_default
24618 exit (lstat ("", &sbuf) ? 1 : 0);
24623 rm -f conftest$ac_exeext
24624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24625 (eval $ac_link) 2>&5
24627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630 (eval $ac_try) 2>&5
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); }; }; then
24634 ac_cv_func_lstat_empty_string_bug=yes
24636 echo "$as_me: program exited with status $ac_status" >&5
24637 echo "$as_me: failed program was:" >&5
24638 sed 's/^/| /' conftest.$ac_ext >&5
24640 ( exit $ac_status )
24641 ac_cv_func_lstat_empty_string_bug=no
24643 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24646 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
24647 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
24648 if test $ac_cv_func_lstat_empty_string_bug = yes; then
24650 "lstat.$ac_objext" | \
24651 *" lstat.$ac_objext" | \
24652 "lstat.$ac_objext "* | \
24653 *" lstat.$ac_objext "* ) ;;
24654 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24658 cat >>confdefs.h <<_ACEOF
24659 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
24664 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24665 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24666 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24667 echo $ECHO_N "(cached) $ECHO_C" >&6
24669 rm -f conftest.sym conftest.file
24670 echo >conftest.file
24671 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24672 if test "$cross_compiling" = yes; then
24673 ac_cv_func_lstat_dereferences_slashed_symlink=no
24675 cat >conftest.$ac_ext <<_ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h. */
24681 $ac_includes_default
24686 /* Linux will dereference the symlink and fail.
24687 That is better in the sense that it means we will not
24688 have to compile and use the lstat wrapper. */
24689 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24694 rm -f conftest$ac_exeext
24695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24696 (eval $ac_link) 2>&5
24698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24701 (eval $ac_try) 2>&5
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); }; }; then
24705 ac_cv_func_lstat_dereferences_slashed_symlink=yes
24707 echo "$as_me: program exited with status $ac_status" >&5
24708 echo "$as_me: failed program was:" >&5
24709 sed 's/^/| /' conftest.$ac_ext >&5
24711 ( exit $ac_status )
24712 ac_cv_func_lstat_dereferences_slashed_symlink=no
24714 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24717 # If the `ln -s' command failed, then we probably don't even
24718 # have an lstat function.
24719 ac_cv_func_lstat_dereferences_slashed_symlink=no
24721 rm -f conftest.sym conftest.file
24724 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24725 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24727 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24729 cat >>confdefs.h <<_ACEOF
24730 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24734 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24736 "lstat.$ac_objext" | \
24737 *" lstat.$ac_objext" | \
24738 "lstat.$ac_objext "* | \
24739 *" lstat.$ac_objext "* ) ;;
24740 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24745 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24746 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
24747 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24748 echo $ECHO_N "(cached) $ECHO_C" >&6
24750 cat >conftest.$ac_ext <<_ACEOF
24753 cat confdefs.h >>conftest.$ac_ext
24754 cat >>conftest.$ac_ext <<_ACEOF
24755 /* end confdefs.h. */
24756 #include <sys/types.h>
24760 return makedev(0, 0);
24765 rm -f conftest.$ac_objext conftest$ac_exeext
24766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24767 (eval $ac_link) 2>conftest.er1
24769 grep -v '^ *+' conftest.er1 >conftest.err
24771 cat conftest.err >&5
24772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773 (exit $ac_status); } &&
24774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24776 (eval $ac_try) 2>&5
24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); }; } &&
24780 { ac_try='test -s conftest$ac_exeext'
24781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24782 (eval $ac_try) 2>&5
24784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785 (exit $ac_status); }; }; then
24786 ac_cv_header_sys_types_h_makedev=yes
24788 echo "$as_me: failed program was:" >&5
24789 sed 's/^/| /' conftest.$ac_ext >&5
24791 ac_cv_header_sys_types_h_makedev=no
24793 rm -f conftest.err conftest.$ac_objext \
24794 conftest$ac_exeext conftest.$ac_ext
24797 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24798 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
24800 if test $ac_cv_header_sys_types_h_makedev = no; then
24801 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24802 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24803 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
24804 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24805 echo $ECHO_N "(cached) $ECHO_C" >&6
24807 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24808 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
24810 # Is the header compilable?
24811 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24812 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
24813 cat >conftest.$ac_ext <<_ACEOF
24816 cat confdefs.h >>conftest.$ac_ext
24817 cat >>conftest.$ac_ext <<_ACEOF
24818 /* end confdefs.h. */
24819 $ac_includes_default
24820 #include <sys/mkdev.h>
24822 rm -f conftest.$ac_objext
24823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24824 (eval $ac_compile) 2>conftest.er1
24826 grep -v '^ *+' conftest.er1 >conftest.err
24828 cat conftest.err >&5
24829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); } &&
24831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24833 (eval $ac_try) 2>&5
24835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836 (exit $ac_status); }; } &&
24837 { ac_try='test -s conftest.$ac_objext'
24838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24839 (eval $ac_try) 2>&5
24841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842 (exit $ac_status); }; }; then
24843 ac_header_compiler=yes
24845 echo "$as_me: failed program was:" >&5
24846 sed 's/^/| /' conftest.$ac_ext >&5
24848 ac_header_compiler=no
24850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24852 echo "${ECHO_T}$ac_header_compiler" >&6
24854 # Is the header present?
24855 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24856 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
24857 cat >conftest.$ac_ext <<_ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h. */
24863 #include <sys/mkdev.h>
24865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24868 grep -v '^ *+' conftest.er1 >conftest.err
24870 cat conftest.err >&5
24871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872 (exit $ac_status); } >/dev/null; then
24873 if test -s conftest.err; then
24874 ac_cpp_err=$ac_c_preproc_warn_flag
24875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24882 if test -z "$ac_cpp_err"; then
24883 ac_header_preproc=yes
24885 echo "$as_me: failed program was:" >&5
24886 sed 's/^/| /' conftest.$ac_ext >&5
24888 ac_header_preproc=no
24890 rm -f conftest.err conftest.$ac_ext
24891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24892 echo "${ECHO_T}$ac_header_preproc" >&6
24894 # So? What about this header?
24895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24897 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
24898 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24899 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
24900 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
24901 ac_header_preproc=yes
24904 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
24905 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
24906 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
24907 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
24908 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
24909 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
24910 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
24911 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
24912 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
24913 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
24914 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
24915 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
24918 ## ------------------------------- ##
24919 ## Report this to nfs@lists.sf.net ##
24920 ## ------------------------------- ##
24923 sed "s/^/$as_me: WARNING: /" >&2
24926 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24927 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
24928 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24929 echo $ECHO_N "(cached) $ECHO_C" >&6
24931 ac_cv_header_sys_mkdev_h=$ac_header_preproc
24933 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24934 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
24937 if test $ac_cv_header_sys_mkdev_h = yes; then
24939 cat >>confdefs.h <<\_ACEOF
24940 #define MAJOR_IN_MKDEV 1
24947 if test $ac_cv_header_sys_mkdev_h = no; then
24948 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24949 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24950 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
24951 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24952 echo $ECHO_N "(cached) $ECHO_C" >&6
24954 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24955 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
24957 # Is the header compilable?
24958 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
24959 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
24960 cat >conftest.$ac_ext <<_ACEOF
24963 cat confdefs.h >>conftest.$ac_ext
24964 cat >>conftest.$ac_ext <<_ACEOF
24965 /* end confdefs.h. */
24966 $ac_includes_default
24967 #include <sys/sysmacros.h>
24969 rm -f conftest.$ac_objext
24970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24971 (eval $ac_compile) 2>conftest.er1
24973 grep -v '^ *+' conftest.er1 >conftest.err
24975 cat conftest.err >&5
24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); } &&
24978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24980 (eval $ac_try) 2>&5
24982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); }; } &&
24984 { ac_try='test -s conftest.$ac_objext'
24985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24986 (eval $ac_try) 2>&5
24988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); }; }; then
24990 ac_header_compiler=yes
24992 echo "$as_me: failed program was:" >&5
24993 sed 's/^/| /' conftest.$ac_ext >&5
24995 ac_header_compiler=no
24997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24999 echo "${ECHO_T}$ac_header_compiler" >&6
25001 # Is the header present?
25002 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
25003 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
25004 cat >conftest.$ac_ext <<_ACEOF
25007 cat confdefs.h >>conftest.$ac_ext
25008 cat >>conftest.$ac_ext <<_ACEOF
25009 /* end confdefs.h. */
25010 #include <sys/sysmacros.h>
25012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25015 grep -v '^ *+' conftest.er1 >conftest.err
25017 cat conftest.err >&5
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); } >/dev/null; then
25020 if test -s conftest.err; then
25021 ac_cpp_err=$ac_c_preproc_warn_flag
25022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25029 if test -z "$ac_cpp_err"; then
25030 ac_header_preproc=yes
25032 echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25035 ac_header_preproc=no
25037 rm -f conftest.err conftest.$ac_ext
25038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25039 echo "${ECHO_T}$ac_header_preproc" >&6
25041 # So? What about this header?
25042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25044 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25045 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25046 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25047 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25048 ac_header_preproc=yes
25051 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25052 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25053 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
25054 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
25055 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25056 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25057 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
25058 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
25059 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
25060 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
25061 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
25062 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
25065 ## ------------------------------- ##
25066 ## Report this to nfs@lists.sf.net ##
25067 ## ------------------------------- ##
25070 sed "s/^/$as_me: WARNING: /" >&2
25073 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25074 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
25075 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25076 echo $ECHO_N "(cached) $ECHO_C" >&6
25078 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
25080 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25081 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
25084 if test $ac_cv_header_sys_sysmacros_h = yes; then
25086 cat >>confdefs.h <<\_ACEOF
25087 #define MAJOR_IN_SYSMACROS 1
25097 echo "$as_me:$LINENO: checking for working memcmp" >&5
25098 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
25099 if test "${ac_cv_func_memcmp_working+set}" = set; then
25100 echo $ECHO_N "(cached) $ECHO_C" >&6
25102 if test "$cross_compiling" = yes; then
25103 ac_cv_func_memcmp_working=no
25105 cat >conftest.$ac_ext <<_ACEOF
25108 cat confdefs.h >>conftest.$ac_ext
25109 cat >>conftest.$ac_ext <<_ACEOF
25110 /* end confdefs.h. */
25111 $ac_includes_default
25116 /* Some versions of memcmp are not 8-bit clean. */
25117 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
25118 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25121 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25122 or more and with at least one buffer not starting on a 4-byte boundary.
25123 William Lewis provided this test program. */
25128 for (i = 0; i < 4; i++)
25132 strcpy (a, "--------01111111");
25133 strcpy (b, "--------10000000");
25134 if (memcmp (a, b, 16) >= 0)
25144 rm -f conftest$ac_exeext
25145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25146 (eval $ac_link) 2>&5
25148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25151 (eval $ac_try) 2>&5
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); }; }; then
25155 ac_cv_func_memcmp_working=yes
25157 echo "$as_me: program exited with status $ac_status" >&5
25158 echo "$as_me: failed program was:" >&5
25159 sed 's/^/| /' conftest.$ac_ext >&5
25161 ( exit $ac_status )
25162 ac_cv_func_memcmp_working=no
25164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25167 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25168 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
25169 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
25170 "memcmp.$ac_objext" | \
25171 *" memcmp.$ac_objext" | \
25172 "memcmp.$ac_objext "* | \
25173 *" memcmp.$ac_objext "* ) ;;
25174 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
25181 for ac_header in sys/select.h sys/socket.h
25183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25185 echo "$as_me:$LINENO: checking for $ac_header" >&5
25186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25188 echo $ECHO_N "(cached) $ECHO_C" >&6
25190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25193 # Is the header compilable?
25194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25196 cat >conftest.$ac_ext <<_ACEOF
25199 cat confdefs.h >>conftest.$ac_ext
25200 cat >>conftest.$ac_ext <<_ACEOF
25201 /* end confdefs.h. */
25202 $ac_includes_default
25203 #include <$ac_header>
25205 rm -f conftest.$ac_objext
25206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25207 (eval $ac_compile) 2>conftest.er1
25209 grep -v '^ *+' conftest.er1 >conftest.err
25211 cat conftest.err >&5
25212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213 (exit $ac_status); } &&
25214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25216 (eval $ac_try) 2>&5
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); }; } &&
25220 { ac_try='test -s conftest.$ac_objext'
25221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25222 (eval $ac_try) 2>&5
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); }; }; then
25226 ac_header_compiler=yes
25228 echo "$as_me: failed program was:" >&5
25229 sed 's/^/| /' conftest.$ac_ext >&5
25231 ac_header_compiler=no
25233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25235 echo "${ECHO_T}$ac_header_compiler" >&6
25237 # Is the header present?
25238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25240 cat >conftest.$ac_ext <<_ACEOF
25243 cat confdefs.h >>conftest.$ac_ext
25244 cat >>conftest.$ac_ext <<_ACEOF
25245 /* end confdefs.h. */
25246 #include <$ac_header>
25248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25251 grep -v '^ *+' conftest.er1 >conftest.err
25253 cat conftest.err >&5
25254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); } >/dev/null; then
25256 if test -s conftest.err; then
25257 ac_cpp_err=$ac_c_preproc_warn_flag
25258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25265 if test -z "$ac_cpp_err"; then
25266 ac_header_preproc=yes
25268 echo "$as_me: failed program was:" >&5
25269 sed 's/^/| /' conftest.$ac_ext >&5
25271 ac_header_preproc=no
25273 rm -f conftest.err conftest.$ac_ext
25274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25275 echo "${ECHO_T}$ac_header_preproc" >&6
25277 # So? What about this header?
25278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25284 ac_header_preproc=yes
25287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25301 ## ------------------------------- ##
25302 ## Report this to nfs@lists.sf.net ##
25303 ## ------------------------------- ##
25306 sed "s/^/$as_me: WARNING: /" >&2
25309 echo "$as_me:$LINENO: checking for $ac_header" >&5
25310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25312 echo $ECHO_N "(cached) $ECHO_C" >&6
25314 eval "$as_ac_Header=\$ac_header_preproc"
25316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25321 cat >>confdefs.h <<_ACEOF
25322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25329 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25330 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25331 if test "${ac_cv_func_select_args+set}" = set; then
25332 echo $ECHO_N "(cached) $ECHO_C" >&6
25334 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25335 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25336 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25337 cat >conftest.$ac_ext <<_ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h. */
25343 $ac_includes_default
25344 #if HAVE_SYS_SELECT_H
25345 # include <sys/select.h>
25347 #if HAVE_SYS_SOCKET_H
25348 # include <sys/socket.h>
25354 extern int select ($ac_arg1,
25355 $ac_arg234, $ac_arg234, $ac_arg234,
25361 rm -f conftest.$ac_objext
25362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25363 (eval $ac_compile) 2>conftest.er1
25365 grep -v '^ *+' conftest.er1 >conftest.err
25367 cat conftest.err >&5
25368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369 (exit $ac_status); } &&
25370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25372 (eval $ac_try) 2>&5
25374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375 (exit $ac_status); }; } &&
25376 { ac_try='test -s conftest.$ac_objext'
25377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25378 (eval $ac_try) 2>&5
25380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381 (exit $ac_status); }; }; then
25382 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25384 echo "$as_me: failed program was:" >&5
25385 sed 's/^/| /' conftest.$ac_ext >&5
25388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25392 # Provide a safe default value.
25393 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25396 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25397 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25398 ac_save_IFS=$IFS; IFS=','
25399 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25403 cat >>confdefs.h <<_ACEOF
25404 #define SELECT_TYPE_ARG1 $1
25408 cat >>confdefs.h <<_ACEOF
25409 #define SELECT_TYPE_ARG234 ($2)
25413 cat >>confdefs.h <<_ACEOF
25414 #define SELECT_TYPE_ARG5 ($3)
25419 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25420 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
25421 if test "${ac_cv_type_signal+set}" = set; then
25422 echo $ECHO_N "(cached) $ECHO_C" >&6
25424 cat >conftest.$ac_ext <<_ACEOF
25427 cat confdefs.h >>conftest.$ac_ext
25428 cat >>conftest.$ac_ext <<_ACEOF
25429 /* end confdefs.h. */
25430 #include <sys/types.h>
25431 #include <signal.h>
25436 extern "C" void (*signal (int, void (*)(int)))(int);
25438 void (*signal ()) ();
25449 rm -f conftest.$ac_objext
25450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25451 (eval $ac_compile) 2>conftest.er1
25453 grep -v '^ *+' conftest.er1 >conftest.err
25455 cat conftest.err >&5
25456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457 (exit $ac_status); } &&
25458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460 (eval $ac_try) 2>&5
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); }; } &&
25464 { ac_try='test -s conftest.$ac_objext'
25465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466 (eval $ac_try) 2>&5
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); }; }; then
25470 ac_cv_type_signal=void
25472 echo "$as_me: failed program was:" >&5
25473 sed 's/^/| /' conftest.$ac_ext >&5
25475 ac_cv_type_signal=int
25477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25479 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25480 echo "${ECHO_T}$ac_cv_type_signal" >&6
25482 cat >>confdefs.h <<_ACEOF
25483 #define RETSIGTYPE $ac_cv_type_signal
25487 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
25488 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
25489 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
25490 echo $ECHO_N "(cached) $ECHO_C" >&6
25492 if test "$cross_compiling" = yes; then
25493 ac_cv_func_stat_empty_string_bug=yes
25495 cat >conftest.$ac_ext <<_ACEOF
25498 cat confdefs.h >>conftest.$ac_ext
25499 cat >>conftest.$ac_ext <<_ACEOF
25500 /* end confdefs.h. */
25501 $ac_includes_default
25506 exit (stat ("", &sbuf) ? 1 : 0);
25511 rm -f conftest$ac_exeext
25512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25513 (eval $ac_link) 2>&5
25515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518 (eval $ac_try) 2>&5
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); }; }; then
25522 ac_cv_func_stat_empty_string_bug=yes
25524 echo "$as_me: program exited with status $ac_status" >&5
25525 echo "$as_me: failed program was:" >&5
25526 sed 's/^/| /' conftest.$ac_ext >&5
25528 ( exit $ac_status )
25529 ac_cv_func_stat_empty_string_bug=no
25531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25534 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
25535 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
25536 if test $ac_cv_func_stat_empty_string_bug = yes; then
25538 "stat.$ac_objext" | \
25539 *" stat.$ac_objext" | \
25540 "stat.$ac_objext "* | \
25541 *" stat.$ac_objext "* ) ;;
25542 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
25546 cat >>confdefs.h <<_ACEOF
25547 #define HAVE_STAT_EMPTY_STRING_BUG 1
25553 for ac_func in vprintf
25555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25556 echo "$as_me:$LINENO: checking for $ac_func" >&5
25557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25558 if eval "test \"\${$as_ac_var+set}\" = set"; then
25559 echo $ECHO_N "(cached) $ECHO_C" >&6
25561 cat >conftest.$ac_ext <<_ACEOF
25564 cat confdefs.h >>conftest.$ac_ext
25565 cat >>conftest.$ac_ext <<_ACEOF
25566 /* end confdefs.h. */
25567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25569 #define $ac_func innocuous_$ac_func
25571 /* System header to define __stub macros and hopefully few prototypes,
25572 which can conflict with char $ac_func (); below.
25573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25574 <limits.h> exists even on freestanding compilers. */
25577 # include <limits.h>
25579 # include <assert.h>
25584 /* Override any gcc2 internal prototype to avoid an error. */
25589 /* We use char because int might match the return type of a gcc2
25590 builtin and then its argument prototype would still apply. */
25592 /* The GNU C library defines this for functions which it implements
25593 to always fail with ENOSYS. Some functions are actually named
25594 something starting with __ and the normal name is an alias. */
25595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25598 char (*f) () = $ac_func;
25607 return f != $ac_func;
25612 rm -f conftest.$ac_objext conftest$ac_exeext
25613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25614 (eval $ac_link) 2>conftest.er1
25616 grep -v '^ *+' conftest.er1 >conftest.err
25618 cat conftest.err >&5
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); } &&
25621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25623 (eval $ac_try) 2>&5
25625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); }; } &&
25627 { ac_try='test -s conftest$ac_exeext'
25628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25629 (eval $ac_try) 2>&5
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); }; }; then
25633 eval "$as_ac_var=yes"
25635 echo "$as_me: failed program was:" >&5
25636 sed 's/^/| /' conftest.$ac_ext >&5
25638 eval "$as_ac_var=no"
25640 rm -f conftest.err conftest.$ac_objext \
25641 conftest$ac_exeext conftest.$ac_ext
25643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25645 if test `eval echo '${'$as_ac_var'}'` = yes; then
25646 cat >>confdefs.h <<_ACEOF
25647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25650 echo "$as_me:$LINENO: checking for _doprnt" >&5
25651 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
25652 if test "${ac_cv_func__doprnt+set}" = set; then
25653 echo $ECHO_N "(cached) $ECHO_C" >&6
25655 cat >conftest.$ac_ext <<_ACEOF
25658 cat confdefs.h >>conftest.$ac_ext
25659 cat >>conftest.$ac_ext <<_ACEOF
25660 /* end confdefs.h. */
25661 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25663 #define _doprnt innocuous__doprnt
25665 /* System header to define __stub macros and hopefully few prototypes,
25666 which can conflict with char _doprnt (); below.
25667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25668 <limits.h> exists even on freestanding compilers. */
25671 # include <limits.h>
25673 # include <assert.h>
25678 /* Override any gcc2 internal prototype to avoid an error. */
25683 /* We use char because int might match the return type of a gcc2
25684 builtin and then its argument prototype would still apply. */
25686 /* The GNU C library defines this for functions which it implements
25687 to always fail with ENOSYS. Some functions are actually named
25688 something starting with __ and the normal name is an alias. */
25689 #if defined (__stub__doprnt) || defined (__stub____doprnt)
25692 char (*f) () = _doprnt;
25701 return f != _doprnt;
25706 rm -f conftest.$ac_objext conftest$ac_exeext
25707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25708 (eval $ac_link) 2>conftest.er1
25710 grep -v '^ *+' conftest.er1 >conftest.err
25712 cat conftest.err >&5
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } &&
25715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25717 (eval $ac_try) 2>&5
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); }; } &&
25721 { ac_try='test -s conftest$ac_exeext'
25722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25723 (eval $ac_try) 2>&5
25725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726 (exit $ac_status); }; }; then
25727 ac_cv_func__doprnt=yes
25729 echo "$as_me: failed program was:" >&5
25730 sed 's/^/| /' conftest.$ac_ext >&5
25732 ac_cv_func__doprnt=no
25734 rm -f conftest.err conftest.$ac_objext \
25735 conftest$ac_exeext conftest.$ac_ext
25737 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25738 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
25739 if test $ac_cv_func__doprnt = yes; then
25741 cat >>confdefs.h <<\_ACEOF
25742 #define HAVE_DOPRNT 1
25779 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
25780 gethostbyaddr gethostbyname gethostname getmntent \
25781 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
25782 realpath rmdir select socket strcasecmp strchr strdup \
25783 strerror strrchr strtol strtoul
25785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25786 echo "$as_me:$LINENO: checking for $ac_func" >&5
25787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25788 if eval "test \"\${$as_ac_var+set}\" = set"; then
25789 echo $ECHO_N "(cached) $ECHO_C" >&6
25791 cat >conftest.$ac_ext <<_ACEOF
25794 cat confdefs.h >>conftest.$ac_ext
25795 cat >>conftest.$ac_ext <<_ACEOF
25796 /* end confdefs.h. */
25797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25799 #define $ac_func innocuous_$ac_func
25801 /* System header to define __stub macros and hopefully few prototypes,
25802 which can conflict with char $ac_func (); below.
25803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25804 <limits.h> exists even on freestanding compilers. */
25807 # include <limits.h>
25809 # include <assert.h>
25814 /* Override any gcc2 internal prototype to avoid an error. */
25819 /* We use char because int might match the return type of a gcc2
25820 builtin and then its argument prototype would still apply. */
25822 /* The GNU C library defines this for functions which it implements
25823 to always fail with ENOSYS. Some functions are actually named
25824 something starting with __ and the normal name is an alias. */
25825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25828 char (*f) () = $ac_func;
25837 return f != $ac_func;
25842 rm -f conftest.$ac_objext conftest$ac_exeext
25843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25844 (eval $ac_link) 2>conftest.er1
25846 grep -v '^ *+' conftest.er1 >conftest.err
25848 cat conftest.err >&5
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); } &&
25851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25853 (eval $ac_try) 2>&5
25855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); }; } &&
25857 { ac_try='test -s conftest$ac_exeext'
25858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25859 (eval $ac_try) 2>&5
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); }; }; then
25863 eval "$as_ac_var=yes"
25865 echo "$as_me: failed program was:" >&5
25866 sed 's/^/| /' conftest.$ac_ext >&5
25868 eval "$as_ac_var=no"
25870 rm -f conftest.err conftest.$ac_objext \
25871 conftest$ac_exeext conftest.$ac_ext
25873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25874 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25875 if test `eval echo '${'$as_ac_var'}'` = yes; then
25876 cat >>confdefs.h <<_ACEOF
25877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25885 echo "$as_me:$LINENO: checking for short" >&5
25886 echo $ECHO_N "checking for short... $ECHO_C" >&6
25887 if test "${ac_cv_type_short+set}" = set; then
25888 echo $ECHO_N "(cached) $ECHO_C" >&6
25890 cat >conftest.$ac_ext <<_ACEOF
25893 cat confdefs.h >>conftest.$ac_ext
25894 cat >>conftest.$ac_ext <<_ACEOF
25895 /* end confdefs.h. */
25896 $ac_includes_default
25902 if (sizeof (short))
25908 rm -f conftest.$ac_objext
25909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25910 (eval $ac_compile) 2>conftest.er1
25912 grep -v '^ *+' conftest.er1 >conftest.err
25914 cat conftest.err >&5
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); } &&
25917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25919 (eval $ac_try) 2>&5
25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); }; } &&
25923 { ac_try='test -s conftest.$ac_objext'
25924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25925 (eval $ac_try) 2>&5
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); }; }; then
25929 ac_cv_type_short=yes
25931 echo "$as_me: failed program was:" >&5
25932 sed 's/^/| /' conftest.$ac_ext >&5
25934 ac_cv_type_short=no
25936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25938 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
25939 echo "${ECHO_T}$ac_cv_type_short" >&6
25941 echo "$as_me:$LINENO: checking size of short" >&5
25942 echo $ECHO_N "checking size of short... $ECHO_C" >&6
25943 if test "${ac_cv_sizeof_short+set}" = set; then
25944 echo $ECHO_N "(cached) $ECHO_C" >&6
25946 if test "$ac_cv_type_short" = yes; then
25947 # The cast to unsigned long works around a bug in the HP C Compiler
25948 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25949 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25950 # This bug is HP SR number 8606223364.
25951 if test "$cross_compiling" = yes; then
25952 # Depending upon the size, compute the lo and hi bounds.
25953 cat >conftest.$ac_ext <<_ACEOF
25956 cat confdefs.h >>conftest.$ac_ext
25957 cat >>conftest.$ac_ext <<_ACEOF
25958 /* end confdefs.h. */
25959 $ac_includes_default
25963 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
25970 rm -f conftest.$ac_objext
25971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25972 (eval $ac_compile) 2>conftest.er1
25974 grep -v '^ *+' conftest.er1 >conftest.err
25976 cat conftest.err >&5
25977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978 (exit $ac_status); } &&
25979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25981 (eval $ac_try) 2>&5
25983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); }; } &&
25985 { ac_try='test -s conftest.$ac_objext'
25986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25987 (eval $ac_try) 2>&5
25989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990 (exit $ac_status); }; }; then
25993 cat >conftest.$ac_ext <<_ACEOF
25996 cat confdefs.h >>conftest.$ac_ext
25997 cat >>conftest.$ac_ext <<_ACEOF
25998 /* end confdefs.h. */
25999 $ac_includes_default
26003 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
26010 rm -f conftest.$ac_objext
26011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26012 (eval $ac_compile) 2>conftest.er1
26014 grep -v '^ *+' conftest.er1 >conftest.err
26016 cat conftest.err >&5
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); } &&
26019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021 (eval $ac_try) 2>&5
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); }; } &&
26025 { ac_try='test -s conftest.$ac_objext'
26026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26027 (eval $ac_try) 2>&5
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); }; }; then
26031 ac_hi=$ac_mid; break
26033 echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26036 ac_lo=`expr $ac_mid + 1`
26037 if test $ac_lo -le $ac_mid; then
26041 ac_mid=`expr 2 '*' $ac_mid + 1`
26043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26046 echo "$as_me: failed program was:" >&5
26047 sed 's/^/| /' conftest.$ac_ext >&5
26049 cat >conftest.$ac_ext <<_ACEOF
26052 cat confdefs.h >>conftest.$ac_ext
26053 cat >>conftest.$ac_ext <<_ACEOF
26054 /* end confdefs.h. */
26055 $ac_includes_default
26059 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
26066 rm -f conftest.$ac_objext
26067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26068 (eval $ac_compile) 2>conftest.er1
26070 grep -v '^ *+' conftest.er1 >conftest.err
26072 cat conftest.err >&5
26073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074 (exit $ac_status); } &&
26075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26077 (eval $ac_try) 2>&5
26079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080 (exit $ac_status); }; } &&
26081 { ac_try='test -s conftest.$ac_objext'
26082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26083 (eval $ac_try) 2>&5
26085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086 (exit $ac_status); }; }; then
26089 cat >conftest.$ac_ext <<_ACEOF
26092 cat confdefs.h >>conftest.$ac_ext
26093 cat >>conftest.$ac_ext <<_ACEOF
26094 /* end confdefs.h. */
26095 $ac_includes_default
26099 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
26106 rm -f conftest.$ac_objext
26107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26108 (eval $ac_compile) 2>conftest.er1
26110 grep -v '^ *+' conftest.er1 >conftest.err
26112 cat conftest.err >&5
26113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114 (exit $ac_status); } &&
26115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26117 (eval $ac_try) 2>&5
26119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120 (exit $ac_status); }; } &&
26121 { ac_try='test -s conftest.$ac_objext'
26122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26123 (eval $ac_try) 2>&5
26125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126 (exit $ac_status); }; }; then
26127 ac_lo=$ac_mid; break
26129 echo "$as_me: failed program was:" >&5
26130 sed 's/^/| /' conftest.$ac_ext >&5
26132 ac_hi=`expr '(' $ac_mid ')' - 1`
26133 if test $ac_mid -le $ac_hi; then
26137 ac_mid=`expr 2 '*' $ac_mid`
26139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26142 echo "$as_me: failed program was:" >&5
26143 sed 's/^/| /' conftest.$ac_ext >&5
26147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26150 # Binary search between lo and hi bounds.
26151 while test "x$ac_lo" != "x$ac_hi"; do
26152 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26153 cat >conftest.$ac_ext <<_ACEOF
26156 cat confdefs.h >>conftest.$ac_ext
26157 cat >>conftest.$ac_ext <<_ACEOF
26158 /* end confdefs.h. */
26159 $ac_includes_default
26163 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
26170 rm -f conftest.$ac_objext
26171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26172 (eval $ac_compile) 2>conftest.er1
26174 grep -v '^ *+' conftest.er1 >conftest.err
26176 cat conftest.err >&5
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); } &&
26179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181 (eval $ac_try) 2>&5
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); }; } &&
26185 { ac_try='test -s conftest.$ac_objext'
26186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26187 (eval $ac_try) 2>&5
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); }; }; then
26193 echo "$as_me: failed program was:" >&5
26194 sed 's/^/| /' conftest.$ac_ext >&5
26196 ac_lo=`expr '(' $ac_mid ')' + 1`
26198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26201 ?*) ac_cv_sizeof_short=$ac_lo;;
26202 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
26203 See \`config.log' for more details." >&5
26204 echo "$as_me: error: cannot compute sizeof (short), 77
26205 See \`config.log' for more details." >&2;}
26206 { (exit 1); exit 1; }; } ;;
26209 if test "$cross_compiling" = yes; then
26210 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26211 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26212 { (exit 1); exit 1; }; }
26214 cat >conftest.$ac_ext <<_ACEOF
26217 cat confdefs.h >>conftest.$ac_ext
26218 cat >>conftest.$ac_ext <<_ACEOF
26219 /* end confdefs.h. */
26220 $ac_includes_default
26221 long longval () { return (long) (sizeof (short)); }
26222 unsigned long ulongval () { return (long) (sizeof (short)); }
26224 #include <stdlib.h>
26229 FILE *f = fopen ("conftest.val", "w");
26232 if (((long) (sizeof (short))) < 0)
26234 long i = longval ();
26235 if (i != ((long) (sizeof (short))))
26237 fprintf (f, "%ld\n", i);
26241 unsigned long i = ulongval ();
26242 if (i != ((long) (sizeof (short))))
26244 fprintf (f, "%lu\n", i);
26246 exit (ferror (f) || fclose (f) != 0);
26252 rm -f conftest$ac_exeext
26253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26254 (eval $ac_link) 2>&5
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26259 (eval $ac_try) 2>&5
26261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262 (exit $ac_status); }; }; then
26263 ac_cv_sizeof_short=`cat conftest.val`
26265 echo "$as_me: program exited with status $ac_status" >&5
26266 echo "$as_me: failed program was:" >&5
26267 sed 's/^/| /' conftest.$ac_ext >&5
26269 ( exit $ac_status )
26270 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
26271 See \`config.log' for more details." >&5
26272 echo "$as_me: error: cannot compute sizeof (short), 77
26273 See \`config.log' for more details." >&2;}
26274 { (exit 1); exit 1; }; }
26276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26281 ac_cv_sizeof_short=0
26284 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26285 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
26286 cat >>confdefs.h <<_ACEOF
26287 #define SIZEOF_SHORT $ac_cv_sizeof_short
26291 echo "$as_me:$LINENO: checking for int" >&5
26292 echo $ECHO_N "checking for int... $ECHO_C" >&6
26293 if test "${ac_cv_type_int+set}" = set; then
26294 echo $ECHO_N "(cached) $ECHO_C" >&6
26296 cat >conftest.$ac_ext <<_ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h. */
26302 $ac_includes_default
26314 rm -f conftest.$ac_objext
26315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26316 (eval $ac_compile) 2>conftest.er1
26318 grep -v '^ *+' conftest.er1 >conftest.err
26320 cat conftest.err >&5
26321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322 (exit $ac_status); } &&
26323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325 (eval $ac_try) 2>&5
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); }; } &&
26329 { ac_try='test -s conftest.$ac_objext'
26330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26331 (eval $ac_try) 2>&5
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); }; }; then
26337 echo "$as_me: failed program was:" >&5
26338 sed 's/^/| /' conftest.$ac_ext >&5
26342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26344 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26345 echo "${ECHO_T}$ac_cv_type_int" >&6
26347 echo "$as_me:$LINENO: checking size of int" >&5
26348 echo $ECHO_N "checking size of int... $ECHO_C" >&6
26349 if test "${ac_cv_sizeof_int+set}" = set; then
26350 echo $ECHO_N "(cached) $ECHO_C" >&6
26352 if test "$ac_cv_type_int" = yes; then
26353 # The cast to unsigned long works around a bug in the HP C Compiler
26354 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26355 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26356 # This bug is HP SR number 8606223364.
26357 if test "$cross_compiling" = yes; then
26358 # Depending upon the size, compute the lo and hi bounds.
26359 cat >conftest.$ac_ext <<_ACEOF
26362 cat confdefs.h >>conftest.$ac_ext
26363 cat >>conftest.$ac_ext <<_ACEOF
26364 /* end confdefs.h. */
26365 $ac_includes_default
26369 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
26376 rm -f conftest.$ac_objext
26377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26378 (eval $ac_compile) 2>conftest.er1
26380 grep -v '^ *+' conftest.er1 >conftest.err
26382 cat conftest.err >&5
26383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384 (exit $ac_status); } &&
26385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26387 (eval $ac_try) 2>&5
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); }; } &&
26391 { ac_try='test -s conftest.$ac_objext'
26392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26393 (eval $ac_try) 2>&5
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); }; }; then
26399 cat >conftest.$ac_ext <<_ACEOF
26402 cat confdefs.h >>conftest.$ac_ext
26403 cat >>conftest.$ac_ext <<_ACEOF
26404 /* end confdefs.h. */
26405 $ac_includes_default
26409 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26416 rm -f conftest.$ac_objext
26417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26418 (eval $ac_compile) 2>conftest.er1
26420 grep -v '^ *+' conftest.er1 >conftest.err
26422 cat conftest.err >&5
26423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424 (exit $ac_status); } &&
26425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427 (eval $ac_try) 2>&5
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); }; } &&
26431 { ac_try='test -s conftest.$ac_objext'
26432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433 (eval $ac_try) 2>&5
26435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436 (exit $ac_status); }; }; then
26437 ac_hi=$ac_mid; break
26439 echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26442 ac_lo=`expr $ac_mid + 1`
26443 if test $ac_lo -le $ac_mid; then
26447 ac_mid=`expr 2 '*' $ac_mid + 1`
26449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26452 echo "$as_me: failed program was:" >&5
26453 sed 's/^/| /' conftest.$ac_ext >&5
26455 cat >conftest.$ac_ext <<_ACEOF
26458 cat confdefs.h >>conftest.$ac_ext
26459 cat >>conftest.$ac_ext <<_ACEOF
26460 /* end confdefs.h. */
26461 $ac_includes_default
26465 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
26472 rm -f conftest.$ac_objext
26473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26474 (eval $ac_compile) 2>conftest.er1
26476 grep -v '^ *+' conftest.er1 >conftest.err
26478 cat conftest.err >&5
26479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); } &&
26481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483 (eval $ac_try) 2>&5
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); }; } &&
26487 { ac_try='test -s conftest.$ac_objext'
26488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; }; then
26495 cat >conftest.$ac_ext <<_ACEOF
26498 cat confdefs.h >>conftest.$ac_ext
26499 cat >>conftest.$ac_ext <<_ACEOF
26500 /* end confdefs.h. */
26501 $ac_includes_default
26505 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
26512 rm -f conftest.$ac_objext
26513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26514 (eval $ac_compile) 2>conftest.er1
26516 grep -v '^ *+' conftest.er1 >conftest.err
26518 cat conftest.err >&5
26519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520 (exit $ac_status); } &&
26521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26523 (eval $ac_try) 2>&5
26525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526 (exit $ac_status); }; } &&
26527 { ac_try='test -s conftest.$ac_objext'
26528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26529 (eval $ac_try) 2>&5
26531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532 (exit $ac_status); }; }; then
26533 ac_lo=$ac_mid; break
26535 echo "$as_me: failed program was:" >&5
26536 sed 's/^/| /' conftest.$ac_ext >&5
26538 ac_hi=`expr '(' $ac_mid ')' - 1`
26539 if test $ac_mid -le $ac_hi; then
26543 ac_mid=`expr 2 '*' $ac_mid`
26545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26548 echo "$as_me: failed program was:" >&5
26549 sed 's/^/| /' conftest.$ac_ext >&5
26553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26556 # Binary search between lo and hi bounds.
26557 while test "x$ac_lo" != "x$ac_hi"; do
26558 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26559 cat >conftest.$ac_ext <<_ACEOF
26562 cat confdefs.h >>conftest.$ac_ext
26563 cat >>conftest.$ac_ext <<_ACEOF
26564 /* end confdefs.h. */
26565 $ac_includes_default
26569 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26576 rm -f conftest.$ac_objext
26577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26578 (eval $ac_compile) 2>conftest.er1
26580 grep -v '^ *+' conftest.er1 >conftest.err
26582 cat conftest.err >&5
26583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584 (exit $ac_status); } &&
26585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26587 (eval $ac_try) 2>&5
26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); }; } &&
26591 { ac_try='test -s conftest.$ac_objext'
26592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26593 (eval $ac_try) 2>&5
26595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); }; }; then
26599 echo "$as_me: failed program was:" >&5
26600 sed 's/^/| /' conftest.$ac_ext >&5
26602 ac_lo=`expr '(' $ac_mid ')' + 1`
26604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26607 ?*) ac_cv_sizeof_int=$ac_lo;;
26608 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26609 See \`config.log' for more details." >&5
26610 echo "$as_me: error: cannot compute sizeof (int), 77
26611 See \`config.log' for more details." >&2;}
26612 { (exit 1); exit 1; }; } ;;
26615 if test "$cross_compiling" = yes; then
26616 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26617 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26618 { (exit 1); exit 1; }; }
26620 cat >conftest.$ac_ext <<_ACEOF
26623 cat confdefs.h >>conftest.$ac_ext
26624 cat >>conftest.$ac_ext <<_ACEOF
26625 /* end confdefs.h. */
26626 $ac_includes_default
26627 long longval () { return (long) (sizeof (int)); }
26628 unsigned long ulongval () { return (long) (sizeof (int)); }
26630 #include <stdlib.h>
26635 FILE *f = fopen ("conftest.val", "w");
26638 if (((long) (sizeof (int))) < 0)
26640 long i = longval ();
26641 if (i != ((long) (sizeof (int))))
26643 fprintf (f, "%ld\n", i);
26647 unsigned long i = ulongval ();
26648 if (i != ((long) (sizeof (int))))
26650 fprintf (f, "%lu\n", i);
26652 exit (ferror (f) || fclose (f) != 0);
26658 rm -f conftest$ac_exeext
26659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26660 (eval $ac_link) 2>&5
26662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26665 (eval $ac_try) 2>&5
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); }; }; then
26669 ac_cv_sizeof_int=`cat conftest.val`
26671 echo "$as_me: program exited with status $ac_status" >&5
26672 echo "$as_me: failed program was:" >&5
26673 sed 's/^/| /' conftest.$ac_ext >&5
26675 ( exit $ac_status )
26676 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26677 See \`config.log' for more details." >&5
26678 echo "$as_me: error: cannot compute sizeof (int), 77
26679 See \`config.log' for more details." >&2;}
26680 { (exit 1); exit 1; }; }
26682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26690 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
26691 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
26692 cat >>confdefs.h <<_ACEOF
26693 #define SIZEOF_INT $ac_cv_sizeof_int
26697 echo "$as_me:$LINENO: checking for long" >&5
26698 echo $ECHO_N "checking for long... $ECHO_C" >&6
26699 if test "${ac_cv_type_long+set}" = set; then
26700 echo $ECHO_N "(cached) $ECHO_C" >&6
26702 cat >conftest.$ac_ext <<_ACEOF
26705 cat confdefs.h >>conftest.$ac_ext
26706 cat >>conftest.$ac_ext <<_ACEOF
26707 /* end confdefs.h. */
26708 $ac_includes_default
26720 rm -f conftest.$ac_objext
26721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26722 (eval $ac_compile) 2>conftest.er1
26724 grep -v '^ *+' conftest.er1 >conftest.err
26726 cat conftest.err >&5
26727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728 (exit $ac_status); } &&
26729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26731 (eval $ac_try) 2>&5
26733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734 (exit $ac_status); }; } &&
26735 { ac_try='test -s conftest.$ac_objext'
26736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26737 (eval $ac_try) 2>&5
26739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); }; }; then
26741 ac_cv_type_long=yes
26743 echo "$as_me: failed program was:" >&5
26744 sed 's/^/| /' conftest.$ac_ext >&5
26748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26750 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
26751 echo "${ECHO_T}$ac_cv_type_long" >&6
26753 echo "$as_me:$LINENO: checking size of long" >&5
26754 echo $ECHO_N "checking size of long... $ECHO_C" >&6
26755 if test "${ac_cv_sizeof_long+set}" = set; then
26756 echo $ECHO_N "(cached) $ECHO_C" >&6
26758 if test "$ac_cv_type_long" = yes; then
26759 # The cast to unsigned long works around a bug in the HP C Compiler
26760 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26761 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26762 # This bug is HP SR number 8606223364.
26763 if test "$cross_compiling" = yes; then
26764 # Depending upon the size, compute the lo and hi bounds.
26765 cat >conftest.$ac_ext <<_ACEOF
26768 cat confdefs.h >>conftest.$ac_ext
26769 cat >>conftest.$ac_ext <<_ACEOF
26770 /* end confdefs.h. */
26771 $ac_includes_default
26775 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
26782 rm -f conftest.$ac_objext
26783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26784 (eval $ac_compile) 2>conftest.er1
26786 grep -v '^ *+' conftest.er1 >conftest.err
26788 cat conftest.err >&5
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); } &&
26791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26793 (eval $ac_try) 2>&5
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); }; } &&
26797 { ac_try='test -s conftest.$ac_objext'
26798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26799 (eval $ac_try) 2>&5
26801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802 (exit $ac_status); }; }; then
26805 cat >conftest.$ac_ext <<_ACEOF
26808 cat confdefs.h >>conftest.$ac_ext
26809 cat >>conftest.$ac_ext <<_ACEOF
26810 /* end confdefs.h. */
26811 $ac_includes_default
26815 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26822 rm -f conftest.$ac_objext
26823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26824 (eval $ac_compile) 2>conftest.er1
26826 grep -v '^ *+' conftest.er1 >conftest.err
26828 cat conftest.err >&5
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); } &&
26831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833 (eval $ac_try) 2>&5
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); }; } &&
26837 { ac_try='test -s conftest.$ac_objext'
26838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26839 (eval $ac_try) 2>&5
26841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842 (exit $ac_status); }; }; then
26843 ac_hi=$ac_mid; break
26845 echo "$as_me: failed program was:" >&5
26846 sed 's/^/| /' conftest.$ac_ext >&5
26848 ac_lo=`expr $ac_mid + 1`
26849 if test $ac_lo -le $ac_mid; then
26853 ac_mid=`expr 2 '*' $ac_mid + 1`
26855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26858 echo "$as_me: failed program was:" >&5
26859 sed 's/^/| /' conftest.$ac_ext >&5
26861 cat >conftest.$ac_ext <<_ACEOF
26864 cat confdefs.h >>conftest.$ac_ext
26865 cat >>conftest.$ac_ext <<_ACEOF
26866 /* end confdefs.h. */
26867 $ac_includes_default
26871 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
26878 rm -f conftest.$ac_objext
26879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26880 (eval $ac_compile) 2>conftest.er1
26882 grep -v '^ *+' conftest.er1 >conftest.err
26884 cat conftest.err >&5
26885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); } &&
26887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26889 (eval $ac_try) 2>&5
26891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892 (exit $ac_status); }; } &&
26893 { ac_try='test -s conftest.$ac_objext'
26894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26895 (eval $ac_try) 2>&5
26897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898 (exit $ac_status); }; }; then
26901 cat >conftest.$ac_ext <<_ACEOF
26904 cat confdefs.h >>conftest.$ac_ext
26905 cat >>conftest.$ac_ext <<_ACEOF
26906 /* end confdefs.h. */
26907 $ac_includes_default
26911 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
26918 rm -f conftest.$ac_objext
26919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26920 (eval $ac_compile) 2>conftest.er1
26922 grep -v '^ *+' conftest.er1 >conftest.err
26924 cat conftest.err >&5
26925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26926 (exit $ac_status); } &&
26927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26929 (eval $ac_try) 2>&5
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); }; } &&
26933 { ac_try='test -s conftest.$ac_objext'
26934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935 (eval $ac_try) 2>&5
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); }; }; then
26939 ac_lo=$ac_mid; break
26941 echo "$as_me: failed program was:" >&5
26942 sed 's/^/| /' conftest.$ac_ext >&5
26944 ac_hi=`expr '(' $ac_mid ')' - 1`
26945 if test $ac_mid -le $ac_hi; then
26949 ac_mid=`expr 2 '*' $ac_mid`
26951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26954 echo "$as_me: failed program was:" >&5
26955 sed 's/^/| /' conftest.$ac_ext >&5
26959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26962 # Binary search between lo and hi bounds.
26963 while test "x$ac_lo" != "x$ac_hi"; do
26964 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26965 cat >conftest.$ac_ext <<_ACEOF
26968 cat confdefs.h >>conftest.$ac_ext
26969 cat >>conftest.$ac_ext <<_ACEOF
26970 /* end confdefs.h. */
26971 $ac_includes_default
26975 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26982 rm -f conftest.$ac_objext
26983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26984 (eval $ac_compile) 2>conftest.er1
26986 grep -v '^ *+' conftest.er1 >conftest.err
26988 cat conftest.err >&5
26989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990 (exit $ac_status); } &&
26991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26993 (eval $ac_try) 2>&5
26995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26996 (exit $ac_status); }; } &&
26997 { ac_try='test -s conftest.$ac_objext'
26998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26999 (eval $ac_try) 2>&5
27001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); }; }; then
27005 echo "$as_me: failed program was:" >&5
27006 sed 's/^/| /' conftest.$ac_ext >&5
27008 ac_lo=`expr '(' $ac_mid ')' + 1`
27010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27013 ?*) ac_cv_sizeof_long=$ac_lo;;
27014 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27015 See \`config.log' for more details." >&5
27016 echo "$as_me: error: cannot compute sizeof (long), 77
27017 See \`config.log' for more details." >&2;}
27018 { (exit 1); exit 1; }; } ;;
27021 if test "$cross_compiling" = yes; then
27022 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27023 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27024 { (exit 1); exit 1; }; }
27026 cat >conftest.$ac_ext <<_ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h. */
27032 $ac_includes_default
27033 long longval () { return (long) (sizeof (long)); }
27034 unsigned long ulongval () { return (long) (sizeof (long)); }
27036 #include <stdlib.h>
27041 FILE *f = fopen ("conftest.val", "w");
27044 if (((long) (sizeof (long))) < 0)
27046 long i = longval ();
27047 if (i != ((long) (sizeof (long))))
27049 fprintf (f, "%ld\n", i);
27053 unsigned long i = ulongval ();
27054 if (i != ((long) (sizeof (long))))
27056 fprintf (f, "%lu\n", i);
27058 exit (ferror (f) || fclose (f) != 0);
27064 rm -f conftest$ac_exeext
27065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27066 (eval $ac_link) 2>&5
27068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27071 (eval $ac_try) 2>&5
27073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); }; }; then
27075 ac_cv_sizeof_long=`cat conftest.val`
27077 echo "$as_me: program exited with status $ac_status" >&5
27078 echo "$as_me: failed program was:" >&5
27079 sed 's/^/| /' conftest.$ac_ext >&5
27081 ( exit $ac_status )
27082 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27083 See \`config.log' for more details." >&5
27084 echo "$as_me: error: cannot compute sizeof (long), 77
27085 See \`config.log' for more details." >&2;}
27086 { (exit 1); exit 1; }; }
27088 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27093 ac_cv_sizeof_long=0
27096 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27097 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
27098 cat >>confdefs.h <<_ACEOF
27099 #define SIZEOF_LONG $ac_cv_sizeof_long
27103 echo "$as_me:$LINENO: checking for size_t" >&5
27104 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27105 if test "${ac_cv_type_size_t+set}" = set; then
27106 echo $ECHO_N "(cached) $ECHO_C" >&6
27108 cat >conftest.$ac_ext <<_ACEOF
27111 cat confdefs.h >>conftest.$ac_ext
27112 cat >>conftest.$ac_ext <<_ACEOF
27113 /* end confdefs.h. */
27114 $ac_includes_default
27120 if (sizeof (size_t))
27126 rm -f conftest.$ac_objext
27127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27128 (eval $ac_compile) 2>conftest.er1
27130 grep -v '^ *+' conftest.er1 >conftest.err
27132 cat conftest.err >&5
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); } &&
27135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27137 (eval $ac_try) 2>&5
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; } &&
27141 { ac_try='test -s conftest.$ac_objext'
27142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143 (eval $ac_try) 2>&5
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); }; }; then
27147 ac_cv_type_size_t=yes
27149 echo "$as_me: failed program was:" >&5
27150 sed 's/^/| /' conftest.$ac_ext >&5
27152 ac_cv_type_size_t=no
27154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27156 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27157 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27159 echo "$as_me:$LINENO: checking size of size_t" >&5
27160 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
27161 if test "${ac_cv_sizeof_size_t+set}" = set; then
27162 echo $ECHO_N "(cached) $ECHO_C" >&6
27164 if test "$ac_cv_type_size_t" = yes; then
27165 # The cast to unsigned long works around a bug in the HP C Compiler
27166 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27167 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27168 # This bug is HP SR number 8606223364.
27169 if test "$cross_compiling" = yes; then
27170 # Depending upon the size, compute the lo and hi bounds.
27171 cat >conftest.$ac_ext <<_ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h. */
27177 $ac_includes_default
27181 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
27188 rm -f conftest.$ac_objext
27189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27190 (eval $ac_compile) 2>conftest.er1
27192 grep -v '^ *+' conftest.er1 >conftest.err
27194 cat conftest.err >&5
27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); } &&
27197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199 (eval $ac_try) 2>&5
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); }; } &&
27203 { ac_try='test -s conftest.$ac_objext'
27204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27205 (eval $ac_try) 2>&5
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); }; }; then
27211 cat >conftest.$ac_ext <<_ACEOF
27214 cat confdefs.h >>conftest.$ac_ext
27215 cat >>conftest.$ac_ext <<_ACEOF
27216 /* end confdefs.h. */
27217 $ac_includes_default
27221 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27228 rm -f conftest.$ac_objext
27229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27230 (eval $ac_compile) 2>conftest.er1
27232 grep -v '^ *+' conftest.er1 >conftest.err
27234 cat conftest.err >&5
27235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236 (exit $ac_status); } &&
27237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27239 (eval $ac_try) 2>&5
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242 (exit $ac_status); }; } &&
27243 { ac_try='test -s conftest.$ac_objext'
27244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27245 (eval $ac_try) 2>&5
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 (exit $ac_status); }; }; then
27249 ac_hi=$ac_mid; break
27251 echo "$as_me: failed program was:" >&5
27252 sed 's/^/| /' conftest.$ac_ext >&5
27254 ac_lo=`expr $ac_mid + 1`
27255 if test $ac_lo -le $ac_mid; then
27259 ac_mid=`expr 2 '*' $ac_mid + 1`
27261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27264 echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.$ac_ext >&5
27267 cat >conftest.$ac_ext <<_ACEOF
27270 cat confdefs.h >>conftest.$ac_ext
27271 cat >>conftest.$ac_ext <<_ACEOF
27272 /* end confdefs.h. */
27273 $ac_includes_default
27277 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
27284 rm -f conftest.$ac_objext
27285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27286 (eval $ac_compile) 2>conftest.er1
27288 grep -v '^ *+' conftest.er1 >conftest.err
27290 cat conftest.err >&5
27291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292 (exit $ac_status); } &&
27293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27295 (eval $ac_try) 2>&5
27297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298 (exit $ac_status); }; } &&
27299 { ac_try='test -s conftest.$ac_objext'
27300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27301 (eval $ac_try) 2>&5
27303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304 (exit $ac_status); }; }; then
27307 cat >conftest.$ac_ext <<_ACEOF
27310 cat confdefs.h >>conftest.$ac_ext
27311 cat >>conftest.$ac_ext <<_ACEOF
27312 /* end confdefs.h. */
27313 $ac_includes_default
27317 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
27324 rm -f conftest.$ac_objext
27325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27326 (eval $ac_compile) 2>conftest.er1
27328 grep -v '^ *+' conftest.er1 >conftest.err
27330 cat conftest.err >&5
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); } &&
27333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27335 (eval $ac_try) 2>&5
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); }; } &&
27339 { ac_try='test -s conftest.$ac_objext'
27340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27341 (eval $ac_try) 2>&5
27343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344 (exit $ac_status); }; }; then
27345 ac_lo=$ac_mid; break
27347 echo "$as_me: failed program was:" >&5
27348 sed 's/^/| /' conftest.$ac_ext >&5
27350 ac_hi=`expr '(' $ac_mid ')' - 1`
27351 if test $ac_mid -le $ac_hi; then
27355 ac_mid=`expr 2 '*' $ac_mid`
27357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27360 echo "$as_me: failed program was:" >&5
27361 sed 's/^/| /' conftest.$ac_ext >&5
27365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27368 # Binary search between lo and hi bounds.
27369 while test "x$ac_lo" != "x$ac_hi"; do
27370 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27371 cat >conftest.$ac_ext <<_ACEOF
27374 cat confdefs.h >>conftest.$ac_ext
27375 cat >>conftest.$ac_ext <<_ACEOF
27376 /* end confdefs.h. */
27377 $ac_includes_default
27381 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27388 rm -f conftest.$ac_objext
27389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27390 (eval $ac_compile) 2>conftest.er1
27392 grep -v '^ *+' conftest.er1 >conftest.err
27394 cat conftest.err >&5
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); } &&
27397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399 (eval $ac_try) 2>&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; } &&
27403 { ac_try='test -s conftest.$ac_objext'
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; }; then
27411 echo "$as_me: failed program was:" >&5
27412 sed 's/^/| /' conftest.$ac_ext >&5
27414 ac_lo=`expr '(' $ac_mid ')' + 1`
27416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27419 ?*) ac_cv_sizeof_size_t=$ac_lo;;
27420 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27421 See \`config.log' for more details." >&5
27422 echo "$as_me: error: cannot compute sizeof (size_t), 77
27423 See \`config.log' for more details." >&2;}
27424 { (exit 1); exit 1; }; } ;;
27427 if test "$cross_compiling" = yes; then
27428 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27429 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27430 { (exit 1); exit 1; }; }
27432 cat >conftest.$ac_ext <<_ACEOF
27435 cat confdefs.h >>conftest.$ac_ext
27436 cat >>conftest.$ac_ext <<_ACEOF
27437 /* end confdefs.h. */
27438 $ac_includes_default
27439 long longval () { return (long) (sizeof (size_t)); }
27440 unsigned long ulongval () { return (long) (sizeof (size_t)); }
27442 #include <stdlib.h>
27447 FILE *f = fopen ("conftest.val", "w");
27450 if (((long) (sizeof (size_t))) < 0)
27452 long i = longval ();
27453 if (i != ((long) (sizeof (size_t))))
27455 fprintf (f, "%ld\n", i);
27459 unsigned long i = ulongval ();
27460 if (i != ((long) (sizeof (size_t))))
27462 fprintf (f, "%lu\n", i);
27464 exit (ferror (f) || fclose (f) != 0);
27470 rm -f conftest$ac_exeext
27471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27472 (eval $ac_link) 2>&5
27474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27477 (eval $ac_try) 2>&5
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; }; then
27481 ac_cv_sizeof_size_t=`cat conftest.val`
27483 echo "$as_me: program exited with status $ac_status" >&5
27484 echo "$as_me: failed program was:" >&5
27485 sed 's/^/| /' conftest.$ac_ext >&5
27487 ( exit $ac_status )
27488 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27489 See \`config.log' for more details." >&5
27490 echo "$as_me: error: cannot compute sizeof (size_t), 77
27491 See \`config.log' for more details." >&2;}
27492 { (exit 1); exit 1; }; }
27494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27499 ac_cv_sizeof_size_t=0
27502 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27503 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
27504 cat >>confdefs.h <<_ACEOF
27505 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27511 cat >>confdefs.h <<_ACEOF
27512 #define NFS_STATEDIR "$statedir"
27516 if test "x$cross_compiling" = "xno"; then
27517 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
27518 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
27519 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
27520 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
27522 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
27523 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
27524 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
27525 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
27540 ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
27545 my_am_cflags="-Wall $ARCHFLAGS -pipe"
27547 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
27549 AM_CFLAGS="$my_am_cflags"
27552 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
27553 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
27556 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"
27558 cat >confcache <<\_ACEOF
27559 # This file is a shell script that caches the results of configure
27560 # tests run on this system so they can be shared between configure
27561 # scripts and configure runs, see configure's option --config-cache.
27562 # It is not useful on other systems. If it contains results you don't
27563 # want to keep, you may remove or edit it.
27565 # config.status only pays attention to the cache file if you give it
27566 # the --recheck option to rerun configure.
27568 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27569 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27570 # following values.
27574 # The following way of writing the cache mishandles newlines in values,
27575 # but we know of no workaround that is simple, portable, and efficient.
27576 # So, don't put newlines in cache variables' values.
27577 # Ultrix sh set writes to stderr and can't be redirected directly,
27578 # and sets the high bit in the cache file unless we assign to the vars.
27581 case `(ac_space=' '; set | grep ac_space) 2>&1` in
27583 # `set' does not quote correctly, so add quotes (double-quote
27584 # substitution turns \\\\ into \\, and sed turns \\ into \).
27587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27590 # `set' quotes correctly as required by POSIX, so do not add quotes.
27592 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27601 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27603 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27604 if test -w $cache_file; then
27605 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27606 cat confcache >$cache_file
27608 echo "not updating unwritable cache $cache_file"
27613 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27614 # Let make expand exec_prefix.
27615 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27617 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27618 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27619 # trailing colons and then remove the whole line if VPATH becomes empty
27620 # (actually we leave an empty line to preserve line numbers).
27621 if test "x$srcdir" = x.; then
27622 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27623 s/:*\$(srcdir):*/:/;
27624 s/:*\${srcdir}:*/:/;
27626 s/^\([^=]*=[ ]*\):*/\1/;
27632 DEFS=-DHAVE_CONFIG_H
27636 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27637 # 1. Remove the extension, and $U if already installed.
27638 ac_i=`echo "$ac_i" |
27639 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27641 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27642 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27644 LIBOBJS=$ac_libobjs
27646 LTLIBOBJS=$ac_ltlibobjs
27649 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
27650 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
27651 Usually this means the macro was only invoked conditionally." >&5
27652 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
27653 Usually this means the macro was only invoked conditionally." >&2;}
27654 { (exit 1); exit 1; }; }
27656 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
27657 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
27658 Usually this means the macro was only invoked conditionally." >&5
27659 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
27660 Usually this means the macro was only invoked conditionally." >&2;}
27661 { (exit 1); exit 1; }; }
27663 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
27664 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
27665 Usually this means the macro was only invoked conditionally." >&5
27666 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
27667 Usually this means the macro was only invoked conditionally." >&2;}
27668 { (exit 1); exit 1; }; }
27670 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27671 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27672 Usually this means the macro was only invoked conditionally." >&5
27673 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27674 Usually this means the macro was only invoked conditionally." >&2;}
27675 { (exit 1); exit 1; }; }
27677 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27678 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27679 Usually this means the macro was only invoked conditionally." >&5
27680 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27681 Usually this means the macro was only invoked conditionally." >&2;}
27682 { (exit 1); exit 1; }; }
27684 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27685 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27686 Usually this means the macro was only invoked conditionally." >&5
27687 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27688 Usually this means the macro was only invoked conditionally." >&2;}
27689 { (exit 1); exit 1; }; }
27691 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27692 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27693 Usually this means the macro was only invoked conditionally." >&5
27694 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27695 Usually this means the macro was only invoked conditionally." >&2;}
27696 { (exit 1); exit 1; }; }
27699 : ${CONFIG_STATUS=./config.status}
27700 ac_clean_files_save=$ac_clean_files
27701 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27702 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27703 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27704 cat >$CONFIG_STATUS <<_ACEOF
27706 # Generated by $as_me.
27707 # Run this file to recreate the current configuration.
27708 # Compiler output produced by configure, useful for debugging
27709 # configure, is in config.log if it exists.
27712 ac_cs_recheck=false
27714 SHELL=\${CONFIG_SHELL-$SHELL}
27717 cat >>$CONFIG_STATUS <<\_ACEOF
27718 ## --------------------- ##
27719 ## M4sh Initialization. ##
27720 ## --------------------- ##
27722 # Be Bourne compatible
27723 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27726 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27727 # is contrary to our usage. Disable this feature.
27728 alias -g '${1+"$@"}'='"$@"'
27729 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27732 DUALCASE=1; export DUALCASE # for MKS sh
27734 # Support unset when possible.
27735 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27742 # Work around bugs in pre-3.0 UWIN ksh.
27743 $as_unset ENV MAIL MAILPATH
27750 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27751 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27752 LC_TELEPHONE LC_TIME
27754 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27755 eval $as_var=C; export $as_var
27761 # Required to use basename.
27762 if expr a : '\(a\)' >/dev/null 2>&1; then
27768 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27769 as_basename=basename
27775 # Name of the executable.
27776 as_me=`$as_basename "$0" ||
27777 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27778 X"$0" : 'X\(//\)$' \| \
27779 X"$0" : 'X\(/\)$' \| \
27780 . : '\(.\)' 2>/dev/null ||
27782 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27783 /^X\/\(\/\/\)$/{ s//\1/; q; }
27784 /^X\/\(\/\).*/{ s//\1/; q; }
27788 # PATH needs CR, and LINENO needs CR and PATH.
27789 # Avoid depending upon Character Ranges.
27790 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27791 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27792 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27793 as_cr_digits='0123456789'
27794 as_cr_alnum=$as_cr_Letters$as_cr_digits
27796 # The user is always right.
27797 if test "${PATH_SEPARATOR+set}" != set; then
27798 echo "#! /bin/sh" >conf$$.sh
27799 echo "exit 0" >>conf$$.sh
27801 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27810 as_lineno_1=$LINENO
27811 as_lineno_2=$LINENO
27812 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27813 test "x$as_lineno_1" != "x$as_lineno_2" &&
27814 test "x$as_lineno_3" = "x$as_lineno_2" || {
27815 # Find who we are. Look in the path if we contain no path at all
27818 *[\\/]* ) as_myself=$0 ;;
27819 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27820 for as_dir in $PATH
27823 test -z "$as_dir" && as_dir=.
27824 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27829 # We did not find ourselves, most probably we were run as `sh COMMAND'
27830 # in which case we are not to be found in the path.
27831 if test "x$as_myself" = x; then
27834 if test ! -f "$as_myself"; then
27835 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27836 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27837 { (exit 1); exit 1; }; }
27839 case $CONFIG_SHELL in
27841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27842 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27845 test -z "$as_dir" && as_dir=.
27846 for as_base in sh bash ksh sh5; do
27849 if ("$as_dir/$as_base" -c '
27850 as_lineno_1=$LINENO
27851 as_lineno_2=$LINENO
27852 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27853 test "x$as_lineno_1" != "x$as_lineno_2" &&
27854 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
27855 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27856 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27857 CONFIG_SHELL=$as_dir/$as_base
27858 export CONFIG_SHELL
27859 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27867 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27868 # uniformly replaced by the line number. The first 'sed' inserts a
27869 # line-number line before each line; the second 'sed' does the real
27870 # work. The second script uses 'N' to pair each line-number line
27871 # with the numbered line, and appends trailing '-' during
27872 # substitution so that $LINENO is not a special case at line end.
27873 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27874 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
27875 sed '=' <$as_myself |
27880 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27883 s,^['$as_cr_digits']*\n,,
27884 ' >$as_me.lineno &&
27885 chmod +x $as_me.lineno ||
27886 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27887 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27888 { (exit 1); exit 1; }; }
27890 # Don't try to exec as it changes $[0], causing all sort of problems
27891 # (the dirname of $[0] is not the place where we might find the
27892 # original and so on. Autoconf is especially sensible to this).
27894 # Exit status is that of the last command.
27899 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27900 *c*,-n*) ECHO_N= ECHO_C='
27902 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27903 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
27906 if expr a : '\(a\)' >/dev/null 2>&1; then
27912 rm -f conf$$ conf$$.exe conf$$.file
27914 if ln -s conf$$.file conf$$ 2>/dev/null; then
27915 # We could just check for DJGPP; but this test a) works b) is more generic
27916 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27917 if test -f conf$$.exe; then
27918 # Don't use ln at all; we don't have any links
27923 elif ln conf$$.file conf$$ 2>/dev/null; then
27928 rm -f conf$$ conf$$.exe conf$$.file
27930 if mkdir -p . 2>/dev/null; then
27933 test -d ./-p && rmdir ./-p
27937 as_executable_p="test -f"
27939 # Sed expression to map a string onto a valid CPP name.
27940 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27942 # Sed expression to map a string onto a valid variable name.
27943 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27947 # We need space, tab and new line, in precisely that order.
27957 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27958 # report actual input values of CONFIG_FILES etc. instead of their
27959 # values after options handling. Logging --version etc. is OK.
27963 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27964 ## Running $as_me. ##
27969 This file was extended by linux nfs-utils $as_me 1.0.8-rc4, which was
27970 generated by GNU Autoconf 2.59. Invocation command line was
27972 CONFIG_FILES = $CONFIG_FILES
27973 CONFIG_HEADERS = $CONFIG_HEADERS
27974 CONFIG_LINKS = $CONFIG_LINKS
27975 CONFIG_COMMANDS = $CONFIG_COMMANDS
27979 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27983 # Files that config.status was made for.
27984 if test -n "$ac_config_files"; then
27985 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27988 if test -n "$ac_config_headers"; then
27989 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27992 if test -n "$ac_config_links"; then
27993 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27996 if test -n "$ac_config_commands"; then
27997 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28000 cat >>$CONFIG_STATUS <<\_ACEOF
28003 \`$as_me' instantiates files from templates according to the
28004 current configuration.
28006 Usage: $0 [OPTIONS] [FILE]...
28008 -h, --help print this help, then exit
28009 -V, --version print version number, then exit
28010 -q, --quiet do not print progress messages
28011 -d, --debug don't remove temporary files
28012 --recheck update $as_me by reconfiguring in the same conditions
28013 --file=FILE[:TEMPLATE]
28014 instantiate the configuration file FILE
28015 --header=FILE[:TEMPLATE]
28016 instantiate the configuration header FILE
28018 Configuration files:
28021 Configuration headers:
28024 Configuration commands:
28027 Report bugs to <bug-autoconf@gnu.org>."
28030 cat >>$CONFIG_STATUS <<_ACEOF
28032 linux nfs-utils config.status 1.0.8-rc4
28033 configured by $0, generated by GNU Autoconf 2.59,
28034 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28036 Copyright (C) 2003 Free Software Foundation, Inc.
28037 This config.status script is free software; the Free Software Foundation
28038 gives unlimited permission to copy, distribute and modify it."
28043 cat >>$CONFIG_STATUS <<\_ACEOF
28044 # If no file are specified by the user, then we need to provide default
28045 # value. By we need to know if files were specified by the user.
28051 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28052 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28060 *) # This is not an option, so the user has probably given explicit
28063 ac_need_defaults=false;;
28067 # Handling of the options.
28069 cat >>$CONFIG_STATUS <<\_ACEOF
28070 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28072 --version | --vers* | -V )
28073 echo "$ac_cs_version"; exit 0 ;;
28075 # Conflict between --help and --header
28076 { { echo "$as_me:$LINENO: error: ambiguous option: $1
28077 Try \`$0 --help' for more information." >&5
28078 echo "$as_me: error: ambiguous option: $1
28079 Try \`$0 --help' for more information." >&2;}
28080 { (exit 1); exit 1; }; };;
28081 --help | --hel | -h )
28082 echo "$ac_cs_usage"; exit 0 ;;
28083 --debug | --d* | -d )
28085 --file | --fil | --fi | --f )
28087 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28088 ac_need_defaults=false;;
28089 --header | --heade | --head | --hea )
28091 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28092 ac_need_defaults=false;;
28093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28094 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28097 # This is an error.
28098 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28099 Try \`$0 --help' for more information." >&5
28100 echo "$as_me: error: unrecognized option: $1
28101 Try \`$0 --help' for more information." >&2;}
28102 { (exit 1); exit 1; }; } ;;
28104 *) ac_config_targets="$ac_config_targets $1" ;;
28110 ac_configure_extra_args=
28112 if $ac_cs_silent; then
28114 ac_configure_extra_args="$ac_configure_extra_args --silent"
28118 cat >>$CONFIG_STATUS <<_ACEOF
28119 if \$ac_cs_recheck; then
28120 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28121 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28126 cat >>$CONFIG_STATUS <<_ACEOF
28128 # INIT-COMMANDS section.
28131 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28137 cat >>$CONFIG_STATUS <<\_ACEOF
28138 for ac_config_target in $ac_config_targets
28140 case "$ac_config_target" in
28141 # Handling of arguments.
28142 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28143 "linux-nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
28144 "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
28145 "support/export/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
28146 "support/include/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
28147 "support/include/rpcsvc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
28148 "support/include/sys/fs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
28149 "support/include/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
28150 "support/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
28151 "support/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
28152 "support/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
28153 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28154 "tools/getiversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
28155 "tools/getkversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
28156 "tools/locktest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
28157 "tools/nlmtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
28158 "tools/rpcdebug/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
28159 "tools/rpcgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
28160 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
28161 "utils/exportfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
28162 "utils/gssd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
28163 "utils/idmapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
28164 "utils/lockd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
28165 "utils/mountd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
28166 "utils/nfsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
28167 "utils/nfsstat/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
28168 "utils/nhfsstone/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
28169 "utils/rquotad/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
28170 "utils/showmount/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
28171 "utils/statd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
28172 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28173 "support/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
28174 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28175 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28176 { (exit 1); exit 1; }; };;
28180 # If the user did not use the arguments to specify the items to instantiate,
28181 # then the envvar interface is used. Set only those that are not.
28182 # We use the long form for the default assignment because of an extremely
28183 # bizarre bug on SunOS 4.1.3.
28184 if $ac_need_defaults; then
28185 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28186 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28187 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28190 # Have a temporary directory for convenience. Make it in the build tree
28191 # simply because there is no reason to put it here, and in addition,
28192 # creating and moving files from /tmp can sometimes cause problems.
28193 # Create a temporary directory, and hook for its removal unless debugging.
28196 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28197 trap '{ (exit 1); exit 1; }' 1 2 13 15
28200 # Create a (secure) tmp directory for tmp files.
28203 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
28204 test -n "$tmp" && test -d "$tmp"
28207 tmp=./confstat$$-$RANDOM
28208 (umask 077 && mkdir $tmp)
28211 echo "$me: cannot create a temporary directory in ." >&2
28212 { (exit 1); exit 1; }
28217 cat >>$CONFIG_STATUS <<_ACEOF
28220 # CONFIG_FILES section.
28223 # No need to generate the scripts if there are no CONFIG_FILES.
28224 # This happens for instance when ./config.status config.h
28225 if test -n "\$CONFIG_FILES"; then
28226 # Protect against being on the right side of a sed subst in config.status.
28227 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28228 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28229 s,@SHELL@,$SHELL,;t t
28230 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28231 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28232 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28233 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28234 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28235 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28236 s,@exec_prefix@,$exec_prefix,;t t
28237 s,@prefix@,$prefix,;t t
28238 s,@program_transform_name@,$program_transform_name,;t t
28239 s,@bindir@,$bindir,;t t
28240 s,@sbindir@,$sbindir,;t t
28241 s,@libexecdir@,$libexecdir,;t t
28242 s,@datadir@,$datadir,;t t
28243 s,@sysconfdir@,$sysconfdir,;t t
28244 s,@sharedstatedir@,$sharedstatedir,;t t
28245 s,@localstatedir@,$localstatedir,;t t
28246 s,@libdir@,$libdir,;t t
28247 s,@includedir@,$includedir,;t t
28248 s,@oldincludedir@,$oldincludedir,;t t
28249 s,@infodir@,$infodir,;t t
28250 s,@mandir@,$mandir,;t t
28251 s,@build_alias@,$build_alias,;t t
28252 s,@host_alias@,$host_alias,;t t
28253 s,@target_alias@,$target_alias,;t t
28254 s,@DEFS@,$DEFS,;t t
28255 s,@ECHO_C@,$ECHO_C,;t t
28256 s,@ECHO_N@,$ECHO_N,;t t
28257 s,@ECHO_T@,$ECHO_T,;t t
28258 s,@LIBS@,$LIBS,;t t
28259 s,@build@,$build,;t t
28260 s,@build_cpu@,$build_cpu,;t t
28261 s,@build_vendor@,$build_vendor,;t t
28262 s,@build_os@,$build_os,;t t
28263 s,@host@,$host,;t t
28264 s,@host_cpu@,$host_cpu,;t t
28265 s,@host_vendor@,$host_vendor,;t t
28266 s,@host_os@,$host_os,;t t
28267 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28268 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28269 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28270 s,@CYGPATH_W@,$CYGPATH_W,;t t
28271 s,@PACKAGE@,$PACKAGE,;t t
28272 s,@VERSION@,$VERSION,;t t
28273 s,@ACLOCAL@,$ACLOCAL,;t t
28274 s,@AUTOCONF@,$AUTOCONF,;t t
28275 s,@AUTOMAKE@,$AUTOMAKE,;t t
28276 s,@AUTOHEADER@,$AUTOHEADER,;t t
28277 s,@MAKEINFO@,$MAKEINFO,;t t
28278 s,@install_sh@,$install_sh,;t t
28279 s,@STRIP@,$STRIP,;t t
28280 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28281 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28282 s,@mkdir_p@,$mkdir_p,;t t
28284 s,@SET_MAKE@,$SET_MAKE,;t t
28285 s,@am__leading_dot@,$am__leading_dot,;t t
28286 s,@AMTAR@,$AMTAR,;t t
28287 s,@am__tar@,$am__tar,;t t
28288 s,@am__untar@,$am__untar,;t t
28289 s,@RELEASE@,$RELEASE,;t t
28290 s,@statedir@,$statedir,;t t
28291 s,@statduser@,$statduser,;t t
28292 s,@enable_nfsv3@,$enable_nfsv3,;t t
28293 s,@IDMAPD@,$IDMAPD,;t t
28294 s,@enable_nfsv4@,$enable_nfsv4,;t t
28295 s,@CONFIG_NFSV4_TRUE@,$CONFIG_NFSV4_TRUE,;t t
28296 s,@CONFIG_NFSV4_FALSE@,$CONFIG_NFSV4_FALSE,;t t
28297 s,@GSSD@,$GSSD,;t t
28298 s,@SVCGSSD@,$SVCGSSD,;t t
28299 s,@enable_gss@,$enable_gss,;t t
28300 s,@CONFIG_GSS_TRUE@,$CONFIG_GSS_TRUE,;t t
28301 s,@CONFIG_GSS_FALSE@,$CONFIG_GSS_FALSE,;t t
28302 s,@kprefix@,$kprefix,;t t
28303 s,@secure_statd@,$secure_statd,;t t
28304 s,@CONFIG_RQUOTAD_TRUE@,$CONFIG_RQUOTAD_TRUE,;t t
28305 s,@CONFIG_RQUOTAD_FALSE@,$CONFIG_RQUOTAD_FALSE,;t t
28307 s,@CFLAGS@,$CFLAGS,;t t
28308 s,@LDFLAGS@,$LDFLAGS,;t t
28309 s,@CPPFLAGS@,$CPPFLAGS,;t t
28310 s,@ac_ct_CC@,$ac_ct_CC,;t t
28311 s,@EXEEXT@,$EXEEXT,;t t
28312 s,@OBJEXT@,$OBJEXT,;t t
28313 s,@DEPDIR@,$DEPDIR,;t t
28314 s,@am__include@,$am__include,;t t
28315 s,@am__quote@,$am__quote,;t t
28316 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28317 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28318 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28319 s,@CCDEPMODE@,$CCDEPMODE,;t t
28320 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28321 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28322 s,@LIBWRAP@,$LIBWRAP,;t t
28323 s,@HAVE_LIBWRAP@,$HAVE_LIBWRAP,;t t
28324 s,@HAVE_TCP_WRAPPER@,$HAVE_TCP_WRAPPER,;t t
28326 s,@CXXFLAGS@,$CXXFLAGS,;t t
28327 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28328 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28329 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28330 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28332 s,@LN_S@,$LN_S,;t t
28333 s,@EGREP@,$EGREP,;t t
28334 s,@ECHO@,$ECHO,;t t
28336 s,@ac_ct_AR@,$ac_ct_AR,;t t
28337 s,@RANLIB@,$RANLIB,;t t
28338 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28339 s,@CXXCPP@,$CXXCPP,;t t
28341 s,@FFLAGS@,$FFLAGS,;t t
28342 s,@ac_ct_F77@,$ac_ct_F77,;t t
28343 s,@LIBTOOL@,$LIBTOOL,;t t
28344 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
28346 s,@ac_ct_LD@,$ac_ct_LD,;t t
28347 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
28348 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
28349 s,@RPCSECGSS_CFLAGS@,$RPCSECGSS_CFLAGS,;t t
28350 s,@RPCSECGSS_LIBS@,$RPCSECGSS_LIBS,;t t
28351 s,@LIBSOCKET@,$LIBSOCKET,;t t
28352 s,@LIBNSL@,$LIBNSL,;t t
28353 s,@LIBCRYPT@,$LIBCRYPT,;t t
28354 s,@LIBBSD@,$LIBBSD,;t t
28355 s,@KRBDIR@,$KRBDIR,;t t
28356 s,@KRBLIBS@,$KRBLIBS,;t t
28357 s,@KRBCFLAGS@,$KRBCFLAGS,;t t
28358 s,@K5VERS@,$K5VERS,;t t
28359 s,@ALLOCA@,$ALLOCA,;t t
28360 s,@LIBOBJS@,$LIBOBJS,;t t
28361 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
28362 s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
28363 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
28364 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
28365 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
28366 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
28367 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
28368 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28373 cat >>$CONFIG_STATUS <<\_ACEOF
28374 # Split the substitutions into bite-sized pieces for seds with
28375 # small command number limits, like on Digital OSF/1 and HP-UX.
28376 ac_max_sed_lines=48
28377 ac_sed_frag=1 # Number of current file.
28378 ac_beg=1 # First line for current file.
28379 ac_end=$ac_max_sed_lines # Line after last line for current file.
28382 while $ac_more_lines; do
28383 if test $ac_beg -gt 1; then
28384 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28386 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28388 if test ! -s $tmp/subs.frag; then
28389 ac_more_lines=false
28391 # The purpose of the label and of the branching condition is to
28392 # speed up the sed processing (if there are no `@' at all, there
28393 # is no need to browse any of the substitutions).
28394 # These are the two extra sed commands mentioned above.
28396 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28397 if test -z "$ac_sed_cmds"; then
28398 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28400 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28402 ac_sed_frag=`expr $ac_sed_frag + 1`
28404 ac_end=`expr $ac_end + $ac_max_sed_lines`
28407 if test -z "$ac_sed_cmds"; then
28410 fi # test -n "$CONFIG_FILES"
28413 cat >>$CONFIG_STATUS <<\_ACEOF
28414 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28415 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28417 - | *:- | *:-:* ) # input from stdin
28419 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28420 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28421 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28422 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28423 * ) ac_file_in=$ac_file.in ;;
28426 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28427 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28428 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28429 X"$ac_file" : 'X\(//\)[^/]' \| \
28430 X"$ac_file" : 'X\(//\)$' \| \
28431 X"$ac_file" : 'X\(/\)' \| \
28432 . : '\(.\)' 2>/dev/null ||
28434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28436 /^X\(\/\/\)$/{ s//\1/; q; }
28437 /^X\(\/\).*/{ s//\1/; q; }
28439 { if $as_mkdir_p; then
28444 while test ! -d "$as_dir"; do
28445 as_dirs="$as_dir $as_dirs"
28446 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28447 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28448 X"$as_dir" : 'X\(//\)[^/]' \| \
28449 X"$as_dir" : 'X\(//\)$' \| \
28450 X"$as_dir" : 'X\(/\)' \| \
28451 . : '\(.\)' 2>/dev/null ||
28453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28454 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28455 /^X\(\/\/\)$/{ s//\1/; q; }
28456 /^X\(\/\).*/{ s//\1/; q; }
28459 test ! -n "$as_dirs" || mkdir $as_dirs
28460 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28461 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28462 { (exit 1); exit 1; }; }; }
28466 if test "$ac_dir" != .; then
28467 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28468 # A "../" for each directory in $ac_dir_suffix.
28469 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28471 ac_dir_suffix= ac_top_builddir=
28475 .) # No --srcdir option. We are building in place.
28477 if test -z "$ac_top_builddir"; then
28480 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28482 [\\/]* | ?:[\\/]* ) # Absolute path.
28483 ac_srcdir=$srcdir$ac_dir_suffix;
28484 ac_top_srcdir=$srcdir ;;
28485 *) # Relative path.
28486 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28487 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28490 # Do not use `cd foo && pwd` to compute absolute paths, because
28491 # the directories may not exist.
28493 .) ac_abs_builddir="$ac_dir";;
28496 .) ac_abs_builddir=`pwd`;;
28497 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28498 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28501 case $ac_abs_builddir in
28502 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28504 case ${ac_top_builddir}. in
28505 .) ac_abs_top_builddir=$ac_abs_builddir;;
28506 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28507 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28510 case $ac_abs_builddir in
28511 .) ac_abs_srcdir=$ac_srcdir;;
28514 .) ac_abs_srcdir=$ac_abs_builddir;;
28515 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28516 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28519 case $ac_abs_builddir in
28520 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28522 case $ac_top_srcdir in
28523 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28524 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28525 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28531 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28532 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28535 # Let's still pretend it is `configure' which instantiates (i.e., don't
28536 # use $as_me), people would be surprised to read:
28537 # /* config.h. Generated by config.status. */
28538 if test x"$ac_file" = x-; then
28541 configure_input="$ac_file. "
28543 configure_input=$configure_input"Generated from `echo $ac_file_in |
28544 sed 's,.*/,,'` by configure."
28546 # First look for the input files in the build tree, otherwise in the
28548 ac_file_inputs=`IFS=:
28549 for f in $ac_file_in; do
28551 -) echo $tmp/stdin ;;
28553 # Absolute (can't be DOS-style, as IFS=:)
28554 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28555 echo "$as_me: error: cannot find input file: $f" >&2;}
28556 { (exit 1); exit 1; }; }
28559 if test -f "$f"; then
28562 elif test -f "$srcdir/$f"; then
28567 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28568 echo "$as_me: error: cannot find input file: $f" >&2;}
28569 { (exit 1); exit 1; }; }
28572 done` || { (exit 1); exit 1; }
28574 if test x"$ac_file" != x-; then
28575 { echo "$as_me:$LINENO: creating $ac_file" >&5
28576 echo "$as_me: creating $ac_file" >&6;}
28580 cat >>$CONFIG_STATUS <<_ACEOF
28584 cat >>$CONFIG_STATUS <<\_ACEOF
28586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28587 s,@configure_input@,$configure_input,;t t
28588 s,@srcdir@,$ac_srcdir,;t t
28589 s,@abs_srcdir@,$ac_abs_srcdir,;t t
28590 s,@top_srcdir@,$ac_top_srcdir,;t t
28591 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28592 s,@builddir@,$ac_builddir,;t t
28593 s,@abs_builddir@,$ac_abs_builddir,;t t
28594 s,@top_builddir@,$ac_top_builddir,;t t
28595 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28596 s,@INSTALL@,$ac_INSTALL,;t t
28597 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28599 if test x"$ac_file" != x-; then
28600 mv $tmp/out $ac_file
28608 cat >>$CONFIG_STATUS <<\_ACEOF
28611 # CONFIG_HEADER section.
28614 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28615 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28617 # ac_d sets the value in "#define NAME VALUE" lines.
28618 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
28619 ac_dB='[ ].*$,\1#\2'
28622 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28623 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
28624 ac_uB='$,\1#\2define\3'
28628 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28629 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28631 - | *:- | *:-:* ) # input from stdin
28633 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28634 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28635 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28636 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28637 * ) ac_file_in=$ac_file.in ;;
28640 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28641 echo "$as_me: creating $ac_file" >&6;}
28643 # First look for the input files in the build tree, otherwise in the
28645 ac_file_inputs=`IFS=:
28646 for f in $ac_file_in; do
28648 -) echo $tmp/stdin ;;
28650 # Absolute (can't be DOS-style, as IFS=:)
28651 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28652 echo "$as_me: error: cannot find input file: $f" >&2;}
28653 { (exit 1); exit 1; }; }
28654 # Do quote $f, to prevent DOS paths from being IFS'd.
28657 if test -f "$f"; then
28660 elif test -f "$srcdir/$f"; then
28665 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28666 echo "$as_me: error: cannot find input file: $f" >&2;}
28667 { (exit 1); exit 1; }; }
28670 done` || { (exit 1); exit 1; }
28671 # Remove the trailing spaces.
28672 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
28676 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28677 # `conftest.undefs', that substitutes the proper values into
28678 # config.h.in to produce config.h. The first handles `#define'
28679 # templates, and the second `#undef' templates.
28680 # And first: Protect against being on the right side of a sed subst in
28681 # config.status. Protect against being in an unquoted here document
28682 # in config.status.
28683 rm -f conftest.defines conftest.undefs
28684 # Using a here document instead of a string reduces the quoting nightmare.
28685 # Putting comments in sed scripts is not portable.
28687 # `end' is used to avoid that the second main sed command (meant for
28688 # 0-ary CPP macros) applies to n-ary macro definitions.
28689 # See the Autoconf documentation for `clear'.
28690 cat >confdef2sed.sed <<\_ACEOF
28695 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28697 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28700 # If some macros were called several times there might be several times
28701 # the same #defines, which is useless. Nevertheless, we may not want to
28702 # sort them, since we want the *last* AC-DEFINE to be honored.
28703 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28704 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28705 rm -f confdef2sed.sed
28707 # This sed command replaces #undef with comments. This is necessary, for
28708 # example, in the case of _POSIX_SOURCE, which is predefined and required
28709 # on some systems where configure will not decide to define it.
28710 cat >>conftest.undefs <<\_ACEOF
28711 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28714 # Break up conftest.defines because some shells have a limit on the size
28715 # of here documents, and old seds have small limits too (100 cmds).
28716 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28717 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28718 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28719 echo ' :' >>$CONFIG_STATUS
28720 rm -f conftest.tail
28721 while grep . conftest.defines >/dev/null
28723 # Write a limited-size here document to $tmp/defines.sed.
28724 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28725 # Speed up: don't consider the non `#define' lines.
28726 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
28727 # Work around the forget-to-reset-the-flag bug.
28728 echo 't clr' >>$CONFIG_STATUS
28729 echo ': clr' >>$CONFIG_STATUS
28730 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28732 sed -f $tmp/defines.sed $tmp/in >$tmp/out
28734 mv $tmp/out $tmp/in
28736 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28737 rm -f conftest.defines
28738 mv conftest.tail conftest.defines
28740 rm -f conftest.defines
28741 echo ' fi # grep' >>$CONFIG_STATUS
28742 echo >>$CONFIG_STATUS
28744 # Break up conftest.undefs because some shells have a limit on the size
28745 # of here documents, and old seds have small limits too (100 cmds).
28746 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
28747 rm -f conftest.tail
28748 while grep . conftest.undefs >/dev/null
28750 # Write a limited-size here document to $tmp/undefs.sed.
28751 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28752 # Speed up: don't consider the non `#undef'
28753 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
28754 # Work around the forget-to-reset-the-flag bug.
28755 echo 't clr' >>$CONFIG_STATUS
28756 echo ': clr' >>$CONFIG_STATUS
28757 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28759 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28761 mv $tmp/out $tmp/in
28763 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28764 rm -f conftest.undefs
28765 mv conftest.tail conftest.undefs
28767 rm -f conftest.undefs
28769 cat >>$CONFIG_STATUS <<\_ACEOF
28770 # Let's still pretend it is `configure' which instantiates (i.e., don't
28771 # use $as_me), people would be surprised to read:
28772 # /* config.h. Generated by config.status. */
28773 if test x"$ac_file" = x-; then
28774 echo "/* Generated by configure. */" >$tmp/config.h
28776 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
28778 cat $tmp/in >>$tmp/config.h
28780 if test x"$ac_file" != x-; then
28781 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28782 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28783 echo "$as_me: $ac_file is unchanged" >&6;}
28785 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28786 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28787 X"$ac_file" : 'X\(//\)[^/]' \| \
28788 X"$ac_file" : 'X\(//\)$' \| \
28789 X"$ac_file" : 'X\(/\)' \| \
28790 . : '\(.\)' 2>/dev/null ||
28792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28793 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28794 /^X\(\/\/\)$/{ s//\1/; q; }
28795 /^X\(\/\).*/{ s//\1/; q; }
28797 { if $as_mkdir_p; then
28802 while test ! -d "$as_dir"; do
28803 as_dirs="$as_dir $as_dirs"
28804 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28805 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28806 X"$as_dir" : 'X\(//\)[^/]' \| \
28807 X"$as_dir" : 'X\(//\)$' \| \
28808 X"$as_dir" : 'X\(/\)' \| \
28809 . : '\(.\)' 2>/dev/null ||
28811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28812 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28813 /^X\(\/\/\)$/{ s//\1/; q; }
28814 /^X\(\/\).*/{ s//\1/; q; }
28817 test ! -n "$as_dirs" || mkdir $as_dirs
28818 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28819 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28820 { (exit 1); exit 1; }; }; }
28823 mv $tmp/config.h $ac_file
28827 rm -f $tmp/config.h
28829 # Compute $ac_file's index in $config_headers.
28831 for _am_header in $config_headers :; do
28832 case $_am_header in
28833 $ac_file | $ac_file:* )
28836 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28839 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28840 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28841 X$ac_file : 'X\(//\)[^/]' \| \
28842 X$ac_file : 'X\(//\)$' \| \
28843 X$ac_file : 'X\(/\)' \| \
28844 . : '\(.\)' 2>/dev/null ||
28846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28847 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28848 /^X\(\/\/\)$/{ s//\1/; q; }
28849 /^X\(\/\).*/{ s//\1/; q; }
28850 s/.*/./; q'`/stamp-h$_am_stamp_count
28853 cat >>$CONFIG_STATUS <<\_ACEOF
28856 # CONFIG_COMMANDS section.
28858 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28859 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28860 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28861 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28862 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28863 X"$ac_dest" : 'X\(//\)[^/]' \| \
28864 X"$ac_dest" : 'X\(//\)$' \| \
28865 X"$ac_dest" : 'X\(/\)' \| \
28866 . : '\(.\)' 2>/dev/null ||
28868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28870 /^X\(\/\/\)$/{ s//\1/; q; }
28871 /^X\(\/\).*/{ s//\1/; q; }
28873 { if $as_mkdir_p; then
28878 while test ! -d "$as_dir"; do
28879 as_dirs="$as_dir $as_dirs"
28880 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28882 X"$as_dir" : 'X\(//\)[^/]' \| \
28883 X"$as_dir" : 'X\(//\)$' \| \
28884 X"$as_dir" : 'X\(/\)' \| \
28885 . : '\(.\)' 2>/dev/null ||
28887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28889 /^X\(\/\/\)$/{ s//\1/; q; }
28890 /^X\(\/\).*/{ s//\1/; q; }
28893 test ! -n "$as_dirs" || mkdir $as_dirs
28894 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28895 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28896 { (exit 1); exit 1; }; }; }
28900 if test "$ac_dir" != .; then
28901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28902 # A "../" for each directory in $ac_dir_suffix.
28903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28905 ac_dir_suffix= ac_top_builddir=
28909 .) # No --srcdir option. We are building in place.
28911 if test -z "$ac_top_builddir"; then
28914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28916 [\\/]* | ?:[\\/]* ) # Absolute path.
28917 ac_srcdir=$srcdir$ac_dir_suffix;
28918 ac_top_srcdir=$srcdir ;;
28919 *) # Relative path.
28920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28924 # Do not use `cd foo && pwd` to compute absolute paths, because
28925 # the directories may not exist.
28927 .) ac_abs_builddir="$ac_dir";;
28930 .) ac_abs_builddir=`pwd`;;
28931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28935 case $ac_abs_builddir in
28936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28938 case ${ac_top_builddir}. in
28939 .) ac_abs_top_builddir=$ac_abs_builddir;;
28940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28944 case $ac_abs_builddir in
28945 .) ac_abs_srcdir=$ac_srcdir;;
28948 .) ac_abs_srcdir=$ac_abs_builddir;;
28949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28953 case $ac_abs_builddir in
28954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28956 case $ac_top_srcdir in
28957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28964 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28965 echo "$as_me: executing $ac_dest commands" >&6;}
28967 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28968 # Strip MF so we end up with the name of the file.
28969 mf=`echo "$mf" | sed -e 's/:.*$//'`
28970 # Check whether this is an Automake generated Makefile or not.
28971 # We used to match only the files named `Makefile.in', but
28972 # some people rename them; so instead we look at the file content.
28973 # Grep'ing the first line is not enough: some people post-process
28974 # each Makefile.in and add a new line on top of each file to say so.
28975 # So let's grep whole file.
28976 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28977 dirpart=`(dirname "$mf") 2>/dev/null ||
28978 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28979 X"$mf" : 'X\(//\)[^/]' \| \
28980 X"$mf" : 'X\(//\)$' \| \
28981 X"$mf" : 'X\(/\)' \| \
28982 . : '\(.\)' 2>/dev/null ||
28984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28986 /^X\(\/\/\)$/{ s//\1/; q; }
28987 /^X\(\/\).*/{ s//\1/; q; }
28992 # Extract the definition of DEPDIR, am__include, and am__quote
28993 # from the Makefile without running `make'.
28994 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28995 test -z "$DEPDIR" && continue
28996 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28997 test -z "am__include" && continue
28998 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28999 # When using ansi2knr, U may be empty or an underscore; expand it
29000 U=`sed -n 's/^U = //p' < "$mf"`
29001 # Find all dependency output files, they are included files with
29002 # $(DEPDIR) in their names. We invoke sed twice because it is the
29003 # simplest approach to changing $(DEPDIR) to its actual value in the
29005 for file in `sed -n "
29006 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29007 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29008 # Make sure the directory exists.
29009 test -f "$dirpart/$file" && continue
29010 fdir=`(dirname "$file") 2>/dev/null ||
29011 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29012 X"$file" : 'X\(//\)[^/]' \| \
29013 X"$file" : 'X\(//\)$' \| \
29014 X"$file" : 'X\(/\)' \| \
29015 . : '\(.\)' 2>/dev/null ||
29017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29019 /^X\(\/\/\)$/{ s//\1/; q; }
29020 /^X\(\/\).*/{ s//\1/; q; }
29022 { if $as_mkdir_p; then
29023 mkdir -p $dirpart/$fdir
29025 as_dir=$dirpart/$fdir
29027 while test ! -d "$as_dir"; do
29028 as_dirs="$as_dir $as_dirs"
29029 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29030 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29031 X"$as_dir" : 'X\(//\)[^/]' \| \
29032 X"$as_dir" : 'X\(//\)$' \| \
29033 X"$as_dir" : 'X\(/\)' \| \
29034 . : '\(.\)' 2>/dev/null ||
29036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29037 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29038 /^X\(\/\/\)$/{ s//\1/; q; }
29039 /^X\(\/\).*/{ s//\1/; q; }
29042 test ! -n "$as_dirs" || mkdir $as_dirs
29043 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29044 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
29045 { (exit 1); exit 1; }; }; }
29047 # echo "creating $dirpart/$file"
29048 echo '# dummy' > "$dirpart/$file"
29056 cat >>$CONFIG_STATUS <<\_ACEOF
29058 { (exit 0); exit 0; }
29060 chmod +x $CONFIG_STATUS
29061 ac_clean_files=$ac_clean_files_save
29064 # configure is writing to config.log, and then calls config.status.
29065 # config.status does its own redirection, appending to config.log.
29066 # Unfortunately, on DOS this fails, as config.log is still kept open
29067 # by configure, so config.status won't be able to write to it; its
29068 # output is simply discarded. So we exec the FD to /dev/null,
29069 # effectively closing config.log, so it can be properly (re)opened and
29070 # appended to by config.status. When coming back to configure, we
29071 # need to make the FD available again.
29072 if test "$no_create" != yes; then
29074 ac_config_status_args=
29075 test "$silent" = yes &&
29076 ac_config_status_args="$ac_config_status_args --quiet"
29078 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29080 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29081 # would make configure fail if this is the last instruction.
29082 $ac_cs_success || { (exit 1); exit 1; }