2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for linux nfs-utils 1.0.8-rc2.
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-rc2'
427 PACKAGE_STRING='linux nfs-utils 1.0.8-rc2'
428 PACKAGE_BUGREPORT='nfs@lists.sf.net'
430 ac_unique_file="tools/getiversion/getiversion.c"
431 ac_default_prefix=/usr
432 ac_unique_file="support/include/config.h.in"
433 # Factoring default headers for most tests.
434 ac_includes_default="\
437 # include <sys/types.h>
440 # include <sys/stat.h>
451 # if !STDC_HEADERS && HAVE_MEMORY_H
457 # include <strings.h>
460 # include <inttypes.h>
470 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar RELEASE statedir statduser enable_nfsv3 IDMAPD enable_nfsv4 CONFIG_NFSV4_TRUE CONFIG_NFSV4_FALSE GSSD SVCGSSD enable_gss CONFIG_GSS_TRUE CONFIG_GSS_FALSE kprefix secure_statd CONFIG_RQUOTAD_TRUE CONFIG_RQUOTAD_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBWRAP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CC_FOR_BUILD LD ac_ct_LD 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
953 # Report the --help message.
955 if test "$ac_init_help" = "long"; then
956 # Omit some internal or obsolete options to make the list less imposing.
957 # This message is too long to be a string in the A/UX 3.1 sh.
959 \`configure' configures linux nfs-utils 1.0.8-rc2 to adapt to many kinds of systems.
961 Usage: $0 [OPTION]... [VAR=VALUE]...
963 To assign environment variables (e.g., CC, CFLAGS...), specify them as
964 VAR=VALUE. See below for descriptions of some of the useful variables.
966 Defaults for the options are specified in brackets.
969 -h, --help display this help and exit
970 --help=short display options specific to this package
971 --help=recursive display the short help of all the included packages
972 -V, --version display version information and exit
973 -q, --quiet, --silent do not print \`checking...' messages
974 --cache-file=FILE cache test results in FILE [disabled]
975 -C, --config-cache alias for \`--cache-file=config.cache'
976 -n, --no-create do not create output files
977 --srcdir=DIR find the sources in DIR [configure dir or \`..']
982 Installation directories:
983 --prefix=PREFIX install architecture-independent files in PREFIX
985 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
988 By default, \`make install' will install all the files in
989 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
990 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991 for instance \`--prefix=\$HOME'.
993 For better control, use the options below.
995 Fine tuning of the installation directories:
996 --bindir=DIR user executables [EPREFIX/bin]
997 --sbindir=DIR system admin executables [EPREFIX/sbin]
998 --libexecdir=DIR program executables [EPREFIX/libexec]
999 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1000 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1001 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1002 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1003 --libdir=DIR object code libraries [EPREFIX/lib]
1004 --includedir=DIR C header files [PREFIX/include]
1005 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1006 --infodir=DIR info documentation [PREFIX/info]
1007 --mandir=DIR man documentation [PREFIX/man]
1013 --program-prefix=PREFIX prepend PREFIX to installed program names
1014 --program-suffix=SUFFIX append SUFFIX to installed program names
1015 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1018 --build=BUILD configure for building on BUILD [guessed]
1019 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1023 if test -n "$ac_init_help"; then
1024 case $ac_init_help in
1025 short | recursive ) echo "Configuration of linux nfs-utils 1.0.8-rc2:";;
1030 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1031 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1032 --enable-nfsv3 enable support for NFSv3 [default=yes]
1033 --enable-nfsv4 enable support for NFSv4 [default=yes]
1034 --enable-gss enable support for rpcsec_gss [default=yes]
1035 --enable-kprefix install progs as rpc.knfsd etc
1036 --enable-secure-statd Only lockd can use statd (security)
1037 --enable-rquotad enable rquotad [default=yes]
1038 --disable-dependency-tracking speeds up one-time build
1039 --enable-dependency-tracking do not reject slow dependency extractors
1040 --enable-shared[=PKGS]
1041 build shared libraries [default=yes]
1042 --enable-static[=PKGS]
1043 build static libraries [default=yes]
1044 --enable-fast-install[=PKGS]
1045 optimize for fast installation [default=yes]
1046 --disable-libtool-lock avoid locking (might break parallel builds)
1049 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1050 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1051 --with-release=XXX set release to XXX [1]
1052 --with-statedir=/foo use state dir /foo /var/lib/nfs
1053 --with-statduser=rpcuser
1054 statd to run under [rpcuser or nobody]
1055 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1056 (optionally in PATH)
1057 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1058 --with-pic try to use only PIC/non-PIC objects [default=use
1061 include additional configurations [automatic]
1062 --with-krb5=DIR use Kerberos v5 installation in DIR
1064 Some influential environment variables:
1065 CC C compiler command
1066 CFLAGS C compiler flags
1067 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1068 nonstandard directory <lib dir>
1069 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1070 headers in a nonstandard directory <include dir>
1071 CXX C++ compiler command
1072 CXXFLAGS C++ compiler flags
1074 CXXCPP C++ preprocessor
1075 F77 Fortran 77 compiler command
1076 FFLAGS Fortran 77 compiler flags
1078 Use these variables to override the choices made by `configure' or to help
1079 it to find libraries and programs with nonstandard names/locations.
1081 Report bugs to <nfs@lists.sf.net>.
1085 if test "$ac_init_help" = "recursive"; then
1086 # If there are subdirs, report their specific --help.
1088 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1089 test -d $ac_dir || continue
1092 if test "$ac_dir" != .; then
1093 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1094 # A "../" for each directory in $ac_dir_suffix.
1095 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1097 ac_dir_suffix= ac_top_builddir=
1101 .) # No --srcdir option. We are building in place.
1103 if test -z "$ac_top_builddir"; then
1106 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1108 [\\/]* | ?:[\\/]* ) # Absolute path.
1109 ac_srcdir=$srcdir$ac_dir_suffix;
1110 ac_top_srcdir=$srcdir ;;
1112 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1113 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116 # Do not use `cd foo && pwd` to compute absolute paths, because
1117 # the directories may not exist.
1119 .) ac_abs_builddir="$ac_dir";;
1122 .) ac_abs_builddir=`pwd`;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1124 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127 case $ac_abs_builddir in
1128 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 case ${ac_top_builddir}. in
1131 .) ac_abs_top_builddir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1133 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1136 case $ac_abs_builddir in
1137 .) ac_abs_srcdir=$ac_srcdir;;
1140 .) ac_abs_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1142 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145 case $ac_abs_builddir in
1146 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 case $ac_top_srcdir in
1149 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1150 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1151 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156 # Check for guested configure; otherwise get Cygnus style configure.
1157 if test -f $ac_srcdir/configure.gnu; then
1159 $SHELL $ac_srcdir/configure.gnu --help=recursive
1160 elif test -f $ac_srcdir/configure; then
1162 $SHELL $ac_srcdir/configure --help=recursive
1163 elif test -f $ac_srcdir/configure.ac ||
1164 test -f $ac_srcdir/configure.in; then
1166 $ac_configure --help
1168 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1174 test -n "$ac_init_help" && exit 0
1175 if $ac_init_version; then
1177 linux nfs-utils configure 1.0.8-rc2
1178 generated by GNU Autoconf 2.59
1180 Copyright (C) 2003 Free Software Foundation, Inc.
1181 This configure script is free software; the Free Software Foundation
1182 gives unlimited permission to copy, distribute and modify it.
1188 This file contains any messages produced by compilers while
1189 running configure, to aid debugging if configure makes a mistake.
1191 It was created by linux nfs-utils $as_me 1.0.8-rc2, which was
1192 generated by GNU Autoconf 2.59. Invocation command line was
1203 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1204 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1205 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1206 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1207 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1209 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1210 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1212 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1213 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1214 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1215 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1216 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1217 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1218 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1226 test -z "$as_dir" && as_dir=.
1227 echo "PATH: $as_dir"
1242 # Keep a trace of the command line.
1243 # Strip out --no-create and --no-recursion so they do not pile up.
1244 # Strip out --silent because we don't want to record it for future runs.
1245 # Also quote any args containing shell meta-characters.
1246 # Make two passes to allow for proper duplicate-argument suppression.
1251 ac_must_keep_next=false
1257 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259 | -silent | --silent | --silen | --sile | --sil)
1261 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1267 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1268 if test $ac_must_keep_next = true; then
1269 ac_must_keep_next=false # Got value, back to normal.
1272 *=* | --config-cache | -C | -disable-* | --disable-* \
1273 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1274 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1275 | -with-* | --with-* | -without-* | --without-* | --x)
1276 case "$ac_configure_args0 " in
1277 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1280 -* ) ac_must_keep_next=true ;;
1283 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1284 # Get rid of the leading space.
1290 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1291 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1293 # When interrupted or exit'd, cleanup temporary files, and complete
1294 # config.log. We remove comments because anyway the quotes in there
1295 # would cause problems or look ugly.
1296 # WARNING: Be sure not to use single quotes in there, as some shells,
1297 # such as our DU 5.0 friend, will then `close' the trap.
1298 trap 'exit_status=$?
1299 # Save into config.log some information that might help in debugging.
1304 ## ---------------- ##
1305 ## Cache variables. ##
1306 ## ---------------- ##
1309 # The following way of writing the cache mishandles newlines in values,
1312 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1315 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1320 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1327 ## ----------------- ##
1328 ## Output variables. ##
1329 ## ----------------- ##
1332 for ac_var in $ac_subst_vars
1334 eval ac_val=$`echo $ac_var`
1335 echo "$ac_var='"'"'$ac_val'"'"'"
1339 if test -n "$ac_subst_files"; then
1346 for ac_var in $ac_subst_files
1348 eval ac_val=$`echo $ac_var`
1349 echo "$ac_var='"'"'$ac_val'"'"'"
1354 if test -s confdefs.h; then
1361 sed "/^$/d" confdefs.h | sort
1364 test "$ac_signal" != 0 &&
1365 echo "$as_me: caught signal $ac_signal"
1366 echo "$as_me: exit $exit_status"
1368 rm -f core *.core &&
1369 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1372 for ac_signal in 1 2 13 15; do
1373 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1378 rm -rf conftest* confdefs.h
1379 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1382 # Predefined preprocessor variables.
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_NAME "$PACKAGE_NAME"
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_STRING "$PACKAGE_STRING"
1404 cat >>confdefs.h <<_ACEOF
1405 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1409 # Let the site file select an alternate cache file if it wants to.
1410 # Prefer explicitly selected file to automatically selected ones.
1411 if test -z "$CONFIG_SITE"; then
1412 if test "x$prefix" != xNONE; then
1413 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1415 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1418 for ac_site_file in $CONFIG_SITE; do
1419 if test -r "$ac_site_file"; then
1420 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1421 echo "$as_me: loading site script $ac_site_file" >&6;}
1422 sed 's/^/| /' "$ac_site_file" >&5
1427 if test -r "$cache_file"; then
1428 # Some versions of bash will fail to source /dev/null (special
1429 # files actually), so we avoid doing that.
1430 if test -f "$cache_file"; then
1431 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1432 echo "$as_me: loading cache $cache_file" >&6;}
1434 [\\/]* | ?:[\\/]* ) . $cache_file;;
1435 *) . ./$cache_file;;
1439 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1440 echo "$as_me: creating cache $cache_file" >&6;}
1444 # Check that the precious variables saved in the cache have kept the same
1446 ac_cache_corrupted=false
1447 for ac_var in `(set) 2>&1 |
1448 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1449 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1450 eval ac_new_set=\$ac_env_${ac_var}_set
1451 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1452 eval ac_new_val="\$ac_env_${ac_var}_value"
1453 case $ac_old_set,$ac_new_set in
1455 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1456 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1457 ac_cache_corrupted=: ;;
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1464 if test "x$ac_old_val" != "x$ac_new_val"; then
1465 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1466 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1467 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1468 echo "$as_me: former value: $ac_old_val" >&2;}
1469 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1470 echo "$as_me: current value: $ac_new_val" >&2;}
1471 ac_cache_corrupted=:
1474 # Pass precious variables to config.status.
1475 if test "$ac_new_set" = set; then
1477 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1478 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1479 *) ac_arg=$ac_var=$ac_new_val ;;
1481 case " $ac_configure_args " in
1482 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1483 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1487 if $ac_cache_corrupted; then
1488 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1489 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1490 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1491 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1492 { (exit 1); exit 1; }; }
1496 ac_cpp='$CPP $CPPFLAGS'
1497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1529 if test -f $ac_dir/install-sh; then
1531 ac_install_sh="$ac_aux_dir/install-sh -c"
1533 elif test -f $ac_dir/install.sh; then
1535 ac_install_sh="$ac_aux_dir/install.sh -c"
1537 elif test -f $ac_dir/shtool; then
1539 ac_install_sh="$ac_aux_dir/shtool install -c"
1543 if test -z "$ac_aux_dir"; then
1544 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1545 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1546 { (exit 1); exit 1; }; }
1548 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1549 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1550 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1552 # Make sure we can run config.sub.
1553 $ac_config_sub sun4 >/dev/null 2>&1 ||
1554 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1555 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1556 { (exit 1); exit 1; }; }
1558 echo "$as_me:$LINENO: checking build system type" >&5
1559 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1560 if test "${ac_cv_build+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 ac_cv_build_alias=$build_alias
1564 test -z "$ac_cv_build_alias" &&
1565 ac_cv_build_alias=`$ac_config_guess`
1566 test -z "$ac_cv_build_alias" &&
1567 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1568 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1569 { (exit 1); exit 1; }; }
1570 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1571 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1572 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1573 { (exit 1); exit 1; }; }
1576 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1577 echo "${ECHO_T}$ac_cv_build" >&6
1579 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584 echo "$as_me:$LINENO: checking host system type" >&5
1585 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1586 if test "${ac_cv_host+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 ac_cv_host_alias=$host_alias
1590 test -z "$ac_cv_host_alias" &&
1591 ac_cv_host_alias=$ac_cv_build_alias
1592 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1593 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1594 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1595 { (exit 1); exit 1; }; }
1598 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1599 echo "${ECHO_T}$ac_cv_host" >&6
1601 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608 [\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal ;;
1609 *) ac_macro_dir=$srcdir/aclocal ;;
1611 if test -d "$ac_macro_dir"; then :
1613 { { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
1614 echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
1615 { (exit 1); exit 1; }; }
1618 am__api_version="1.9"
1619 # Find a good install program. We prefer a C program (faster),
1620 # so one script is as good as another. But avoid the broken or
1621 # incompatible versions:
1622 # SysV /etc/install, /usr/sbin/install
1623 # SunOS /usr/etc/install
1624 # IRIX /sbin/install
1626 # AmigaOS /C/install, which installs bootblocks on floppy discs
1627 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1628 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1629 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1630 # OS/2's system install, which has a completely different semantic
1631 # ./install, which can be erroneously created by make from ./install.sh.
1632 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1633 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1634 if test -z "$INSTALL"; then
1635 if test "${ac_cv_path_install+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 test -z "$as_dir" && as_dir=.
1643 # Account for people who put trailing slashes in PATH elements.
1645 ./ | .// | /cC/* | \
1646 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1647 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1650 # OSF1 and SCO ODT 3.0 have their own names for install.
1651 # Don't use installbsd from OSF since it installs stuff as root
1653 for ac_prog in ginstall scoinst install; do
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1656 if test $ac_prog = install &&
1657 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1658 # AIX install. It has an incompatible calling convention.
1660 elif test $ac_prog = install &&
1661 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1662 # program-specific install script used by HP pwplus--don't use.
1665 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1677 if test "${ac_cv_path_install+set}" = set; then
1678 INSTALL=$ac_cv_path_install
1680 # As a last resort, use the slow shell script. We don't cache a
1681 # path for INSTALL within a source directory, because that will
1682 # break other packages using the cache if that directory is
1683 # removed, or if the path is relative.
1684 INSTALL=$ac_install_sh
1687 echo "$as_me:$LINENO: result: $INSTALL" >&5
1688 echo "${ECHO_T}$INSTALL" >&6
1690 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1691 # It thinks the first close brace ends the variable substitution.
1692 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1694 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1696 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1698 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1699 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1702 echo timestamp > conftest.file
1703 # Do `set' in a subshell so we don't clobber the current shell's
1704 # arguments. Must try -L first in case configure is actually a
1705 # symlink; some systems play weird games with the mod time of symlinks
1706 # (eg FreeBSD returns the mod time of the symlink's containing
1709 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1710 if test "$*" = "X"; then
1712 set X `ls -t $srcdir/configure conftest.file`
1715 if test "$*" != "X $srcdir/configure conftest.file" \
1716 && test "$*" != "X conftest.file $srcdir/configure"; then
1718 # If neither matched, then we have a broken ls. This can happen
1719 # if, for instance, CONFIG_SHELL is bash and it inherits a
1720 # broken ls alias from the environment. This has actually
1721 # happened. Such a system could not be considered "sane".
1722 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1723 alias in your environment" >&5
1724 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1725 alias in your environment" >&2;}
1726 { (exit 1); exit 1; }; }
1729 test "$2" = conftest.file
1735 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1736 Check your system clock" >&5
1737 echo "$as_me: error: newly created file is older than distributed files!
1738 Check your system clock" >&2;}
1739 { (exit 1); exit 1; }; }
1741 echo "$as_me:$LINENO: result: yes" >&5
1742 echo "${ECHO_T}yes" >&6
1743 test "$program_prefix" != NONE &&
1744 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1745 # Use a double $ so make ignores it.
1746 test "$program_suffix" != NONE &&
1747 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1748 # Double any \ or $. echo might interpret backslashes.
1749 # By default was `s,x,x', remove it if useless.
1750 cat <<\_ACEOF >conftest.sed
1751 s/[\\$]/&&/g;s/;s,x,x,$//
1753 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1756 # expand $ac_aux_dir to an absolute path
1757 am_aux_dir=`cd $ac_aux_dir && pwd`
1759 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1760 # Use eval to expand $SHELL
1761 if eval "$MISSING --run true"; then
1762 am_missing_run="$MISSING --run "
1765 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1766 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1769 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1770 # We used to keeping the `.' as first argument, in order to
1771 # allow $(mkdir_p) to be used without argument. As in
1772 # $(mkdir_p) $(somedir)
1773 # where $(somedir) is conditionally defined. However this is wrong
1775 # 1. if the package is installed by a user who cannot write `.'
1776 # make install will fail,
1777 # 2. the above comment should most certainly read
1778 # $(mkdir_p) $(DESTDIR)$(somedir)
1779 # so it does not work when $(somedir) is undefined and
1780 # $(DESTDIR) is not.
1781 # To support the latter case, we have to write
1782 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1783 # so the `.' trick is pointless.
1784 mkdir_p='mkdir -p --'
1786 # On NextStep and OpenStep, the `mkdir' command does not
1787 # recognize any option. It will interpret all options as
1788 # directories to create, and then abort because `.' already
1790 for d in ./-p ./--version;
1792 test -d $d && rmdir $d
1794 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1795 if test -f "$ac_aux_dir/mkinstalldirs"; then
1796 mkdir_p='$(mkinstalldirs)'
1798 mkdir_p='$(install_sh) -d'
1802 for ac_prog in gawk mawk nawk awk
1804 # Extract the first word of "$ac_prog", so it can be a program name with args.
1805 set dummy $ac_prog; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_AWK+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 if test -n "$AWK"; then
1812 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 test -z "$as_dir" && as_dir=.
1819 for ac_exec_ext in '' $ac_executable_extensions; do
1820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821 ac_cv_prog_AWK="$ac_prog"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831 if test -n "$AWK"; then
1832 echo "$as_me:$LINENO: result: $AWK" >&5
1833 echo "${ECHO_T}$AWK" >&6
1835 echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1839 test -n "$AWK" && break
1842 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1843 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1844 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1845 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 cat >conftest.make <<\_ACEOF
1850 @echo 'ac_maketemp="$(MAKE)"'
1852 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1853 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1854 if test -n "$ac_maketemp"; then
1855 eval ac_cv_prog_make_${ac_make}_set=yes
1857 eval ac_cv_prog_make_${ac_make}_set=no
1861 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1862 echo "$as_me:$LINENO: result: yes" >&5
1863 echo "${ECHO_T}yes" >&6
1866 echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1868 SET_MAKE="MAKE=${MAKE-make}"
1871 rm -rf .tst 2>/dev/null
1872 mkdir .tst 2>/dev/null
1873 if test -d .tst; then
1878 rmdir .tst 2>/dev/null
1880 # test to see if srcdir already configured
1881 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1882 test -f $srcdir/config.status; then
1883 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1884 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1885 { (exit 1); exit 1; }; }
1888 # test whether we have cygpath
1889 if test -z "$CYGPATH_W"; then
1890 if (cygpath --version) >/dev/null 2>/dev/null; then
1891 CYGPATH_W='cygpath -w'
1898 # Define the identity of the package.
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE "$PACKAGE"
1908 cat >>confdefs.h <<_ACEOF
1909 #define VERSION "$VERSION"
1912 # Some tools Automake needs.
1914 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1917 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1920 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1923 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1926 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1928 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1930 # Installed binaries are usually stripped using `strip' when the user
1931 # run `make install-strip'. However `strip' might not be the right
1932 # tool to use in cross-compilation environments, therefore Automake
1933 # will honor the `STRIP' environment variable to overrule this program.
1934 if test "$cross_compiling" != no; then
1935 if test -n "$ac_tool_prefix"; then
1936 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1937 set dummy ${ac_tool_prefix}strip; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_STRIP+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 if test -n "$STRIP"; then
1944 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950 test -z "$as_dir" && as_dir=.
1951 for ac_exec_ext in '' $ac_executable_extensions; do
1952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 STRIP=$ac_cv_prog_STRIP
1963 if test -n "$STRIP"; then
1964 echo "$as_me:$LINENO: result: $STRIP" >&5
1965 echo "${ECHO_T}$STRIP" >&6
1967 echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1972 if test -z "$ac_cv_prog_STRIP"; then
1974 # Extract the first word of "strip", so it can be a program name with args.
1975 set dummy strip; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 if test -n "$ac_ct_STRIP"; then
1982 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991 ac_cv_prog_ac_ct_STRIP="strip"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2001 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2002 if test -n "$ac_ct_STRIP"; then
2003 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2004 echo "${ECHO_T}$ac_ct_STRIP" >&6
2006 echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2012 STRIP="$ac_cv_prog_STRIP"
2016 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2018 # We need awk for the "check" target. The system "awk" is bad on
2020 # Always define AMTAR for backward compatibility.
2022 AMTAR=${AMTAR-"${am_missing_run}tar"}
2024 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2034 # Check whether --with-release or --without-release was given.
2035 if test "${with_release+set}" = set; then
2036 withval="$with_release"
2043 # Check whether --with-statedir or --without-statedir was given.
2044 if test "${with_statedir+set}" = set; then
2045 withval="$with_statedir"
2048 statedir=/var/lib/nfs
2052 # Check whether --with-statduser or --without-statduser was given.
2053 if test "${with_statduser+set}" = set; then
2054 withval="$with_statduser"
2057 if test "x$cross_compiling" = "xno"; then
2058 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2068 # Check whether --enable-nfsv3 or --disable-nfsv3 was given.
2069 if test "${enable_nfsv3+set}" = set; then
2070 enableval="$enable_nfsv3"
2071 enable_nfsv3=$enableval
2075 if test "$enable_nfsv3" = yes; then
2077 cat >>confdefs.h <<\_ACEOF
2078 #define NFS3_SUPPORTED 1
2085 # Check whether --enable-nfsv4 or --disable-nfsv4 was given.
2086 if test "${enable_nfsv4+set}" = set; then
2087 enableval="$enable_nfsv4"
2088 enable_nfsv4=$enableval
2092 if test "$enable_nfsv4" = yes; then
2094 cat >>confdefs.h <<\_ACEOF
2095 #define NFS4_SUPPORTED 1
2107 if test "$enable_nfsv4" = "yes"; then
2109 CONFIG_NFSV4_FALSE='#'
2111 CONFIG_NFSV4_TRUE='#'
2115 # Check whether --enable-gss or --disable-gss was given.
2116 if test "${enable_gss+set}" = set; then
2117 enableval="$enable_gss"
2118 enable_gss=$enableval
2122 if test "$enable_gss" = yes; then
2124 cat >>confdefs.h <<\_ACEOF
2125 #define GSS_SUPPORTED 1
2140 if test "$enable_gss" = "yes"; then
2142 CONFIG_GSS_FALSE='#'
2148 # Check whether --enable-kprefix or --disable-kprefix was given.
2149 if test "${enable_kprefix+set}" = set; then
2150 enableval="$enable_kprefix"
2151 test "$enableval" = "yes" && kprefix=k
2156 # Check whether --enable-secure-statd or --disable-secure-statd was given.
2157 if test "${enable_secure_statd+set}" = set; then
2158 enableval="$enable_secure_statd"
2159 test "$enableval" = "yes" && secure_statd=yes
2163 if test "$secure_statd" = yes; then
2165 cat >>confdefs.h <<\_ACEOF
2166 #define RESTRICTED_STATD 1
2171 # Check whether --enable-rquotad or --disable-rquotad was given.
2172 if test "${enable_rquotad+set}" = set; then
2173 enableval="$enable_rquotad"
2174 enable_rquotad=$enableval
2178 if test "$enable_rquotad" = yes; then
2185 if test "$enable_rquotad" = "yes"; then
2186 CONFIG_RQUOTAD_TRUE=
2187 CONFIG_RQUOTAD_FALSE='#'
2189 CONFIG_RQUOTAD_TRUE='#'
2190 CONFIG_RQUOTAD_FALSE=
2194 # Check whether user wants TCP wrappers support
2195 DEPDIR="${am__leading_dot}deps"
2197 ac_config_commands="$ac_config_commands depfiles"
2200 am_make=${MAKE-make}
2201 cat > confinc << 'END'
2206 # If we don't find an include directive, just comment out the code.
2207 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2208 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2212 # First try GNU make style include.
2213 echo "include confinc" > confmf
2214 # We grep out `Entering directory' and `Leaving directory'
2215 # messages which can occur if `w' ends up in MAKEFLAGS.
2216 # In particular we don't look at `^make:' because GNU make might
2217 # be invoked under some other name (usually "gmake"), in which
2218 # case it prints its new name instead of `make'.
2219 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2224 # Now try BSD make style include.
2225 if test "$am__include" = "#"; then
2226 echo '.include "confinc"' > confmf
2227 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2228 am__include=.include
2235 echo "$as_me:$LINENO: result: $_am_result" >&5
2236 echo "${ECHO_T}$_am_result" >&6
2237 rm -f confinc confmf
2239 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2240 if test "${enable_dependency_tracking+set}" = set; then
2241 enableval="$enable_dependency_tracking"
2244 if test "x$enable_dependency_tracking" != xno; then
2245 am_depcomp="$ac_aux_dir/depcomp"
2250 if test "x$enable_dependency_tracking" != xno; then
2261 ac_cpp='$CPP $CPPFLAGS'
2262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2265 if test -n "$ac_tool_prefix"; then
2266 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2267 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC="$CC" # Let the user override the test.
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 if test -n "$CC"; then
2294 echo "$as_me:$LINENO: result: $CC" >&5
2295 echo "${ECHO_T}$CC" >&6
2297 echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6
2302 if test -z "$ac_cv_prog_CC"; then
2304 # Extract the first word of "gcc", so it can be a program name with args.
2305 set dummy gcc; ac_word=$2
2306 echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 if test -n "$ac_ct_CC"; then
2312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 test -z "$as_dir" && as_dir=.
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2321 ac_cv_prog_ac_ct_CC="gcc"
2322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2331 if test -n "$ac_ct_CC"; then
2332 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2333 echo "${ECHO_T}$ac_ct_CC" >&6
2335 echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6
2344 if test -z "$CC"; then
2345 if test -n "$ac_tool_prefix"; then
2346 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2347 set dummy ${ac_tool_prefix}cc; ac_word=$2
2348 echo "$as_me:$LINENO: checking for $ac_word" >&5
2349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2350 if test "${ac_cv_prog_CC+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 if test -n "$CC"; then
2354 ac_cv_prog_CC="$CC" # Let the user override the test.
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 test -z "$as_dir" && as_dir=.
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2363 ac_cv_prog_CC="${ac_tool_prefix}cc"
2364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 if test -n "$CC"; then
2374 echo "$as_me:$LINENO: result: $CC" >&5
2375 echo "${ECHO_T}$CC" >&6
2377 echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6
2382 if test -z "$ac_cv_prog_CC"; then
2384 # Extract the first word of "cc", so it can be a program name with args.
2385 set dummy cc; ac_word=$2
2386 echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 if test -n "$ac_ct_CC"; then
2392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2401 ac_cv_prog_ac_ct_CC="cc"
2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2411 if test -n "$ac_ct_CC"; then
2412 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2413 echo "${ECHO_T}$ac_ct_CC" >&6
2415 echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6
2425 if test -z "$CC"; then
2426 # Extract the first word of "cc", so it can be a program name with args.
2427 set dummy cc; ac_word=$2
2428 echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC="$CC" # Let the user override the test.
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2445 ac_prog_rejected=yes
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 if test $ac_prog_rejected = yes; then
2456 # We found a bogon in the path, so make sure we never use it.
2457 set dummy $ac_cv_prog_CC
2459 if test $# != 0; then
2460 # We chose a different compiler from the bogus one.
2461 # However, it has the same basename, so the bogon will be chosen
2462 # first if we set CC to just the basename; use the full file name.
2464 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2470 if test -n "$CC"; then
2471 echo "$as_me:$LINENO: result: $CC" >&5
2472 echo "${ECHO_T}$CC" >&6
2474 echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6
2479 if test -z "$CC"; then
2480 if test -n "$ac_tool_prefix"; then
2483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2485 echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2487 if test "${ac_cv_prog_CC+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 if test -n "$CC"; then
2491 ac_cv_prog_CC="$CC" # Let the user override the test.
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 if test -n "$CC"; then
2511 echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6
2514 echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6
2518 test -n "$CC" && break
2521 if test -z "$CC"; then
2525 # Extract the first word of "$ac_prog", so it can be a program name with args.
2526 set dummy $ac_prog; ac_word=$2
2527 echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2529 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 if test -n "$ac_ct_CC"; then
2533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542 ac_cv_prog_ac_ct_CC="$ac_prog"
2543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2552 if test -n "$ac_ct_CC"; then
2553 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2554 echo "${ECHO_T}$ac_ct_CC" >&6
2556 echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6
2560 test -n "$ac_ct_CC" && break
2569 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2570 See \`config.log' for more details." >&5
2571 echo "$as_me: error: no acceptable C compiler found in \$PATH
2572 See \`config.log' for more details." >&2;}
2573 { (exit 1); exit 1; }; }
2575 # Provide some information about the compiler.
2576 echo "$as_me:$LINENO:" \
2577 "checking for C compiler version" >&5
2578 ac_compiler=`set X $ac_compile; echo $2`
2579 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2580 (eval $ac_compiler --version </dev/null >&5) 2>&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }
2584 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2585 (eval $ac_compiler -v </dev/null >&5) 2>&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }
2589 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2590 (eval $ac_compiler -V </dev/null >&5) 2>&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }
2595 cat >conftest.$ac_ext <<_ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h. */
2610 ac_clean_files_save=$ac_clean_files
2611 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2612 # Try to create an executable without -o first, disregard a.out.
2613 # It will help us diagnose broken compilers, and finding out an intuition
2615 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2616 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2617 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2618 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2619 (eval $ac_link_default) 2>&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; then
2623 # Find the output, starting from the most likely. This scheme is
2624 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2627 # Be careful to initialize this variable, since it used to be cached.
2628 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2630 # b.out is created by i960 compilers.
2631 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2633 test -f "$ac_file" || continue
2635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2638 # This is the source file.
2641 # We found the default executable, but exeext='' is most
2645 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2646 # FIXME: I believe we export ac_cv_exeext for Libtool,
2647 # but it would be cool to find out if it's true. Does anybody
2648 # maintain Libtool? --akim.
2656 echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2659 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: C compiler cannot create executables
2662 See \`config.log' for more details." >&2;}
2663 { (exit 77); exit 77; }; }
2666 ac_exeext=$ac_cv_exeext
2667 echo "$as_me:$LINENO: result: $ac_file" >&5
2668 echo "${ECHO_T}$ac_file" >&6
2670 # Check the compiler produces executables we can run. If not, either
2671 # the compiler is broken, or we cross compile.
2672 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2673 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2674 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2675 # If not cross compiling, check that we can run a simple program.
2676 if test "$cross_compiling" != yes; then
2677 if { ac_try='./$ac_file'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2685 if test "$cross_compiling" = maybe; then
2688 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2689 If you meant to cross compile, use \`--host'.
2690 See \`config.log' for more details." >&5
2691 echo "$as_me: error: cannot run C compiled programs.
2692 If you meant to cross compile, use \`--host'.
2693 See \`config.log' for more details." >&2;}
2694 { (exit 1); exit 1; }; }
2698 echo "$as_me:$LINENO: result: yes" >&5
2699 echo "${ECHO_T}yes" >&6
2701 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2702 ac_clean_files=$ac_clean_files_save
2703 # Check the compiler produces executables we can run. If not, either
2704 # the compiler is broken, or we cross compile.
2705 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2706 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2707 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2708 echo "${ECHO_T}$cross_compiling" >&6
2710 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2711 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2713 (eval $ac_link) 2>&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; then
2717 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2718 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2719 # work properly (i.e., refer to `conftest.exe'), while it won't with
2721 for ac_file in conftest.exe conftest conftest.*; do
2722 test -f "$ac_file" || continue
2724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2725 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2732 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2733 See \`config.log' for more details." >&5
2734 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2735 See \`config.log' for more details." >&2;}
2736 { (exit 1); exit 1; }; }
2739 rm -f conftest$ac_cv_exeext
2740 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2741 echo "${ECHO_T}$ac_cv_exeext" >&6
2743 rm -f conftest.$ac_ext
2744 EXEEXT=$ac_cv_exeext
2746 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2747 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2748 if test "${ac_cv_objext+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 cat >conftest.$ac_ext <<_ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2766 rm -f conftest.o conftest.obj
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; then
2772 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2775 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2783 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2784 See \`config.log' for more details." >&5
2785 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2786 See \`config.log' for more details." >&2;}
2787 { (exit 1); exit 1; }; }
2790 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2792 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2793 echo "${ECHO_T}$ac_cv_objext" >&6
2794 OBJEXT=$ac_cv_objext
2796 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2797 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2798 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 cat >conftest.$ac_ext <<_ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h. */
2819 rm -f conftest.$ac_objext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821 (eval $ac_compile) 2>conftest.er1
2823 grep -v '^ *+' conftest.er1 >conftest.err
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2848 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2851 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2852 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2853 GCC=`test $ac_compiler_gnu = yes && echo yes`
2854 ac_test_CFLAGS=${CFLAGS+set}
2855 ac_save_CFLAGS=$CFLAGS
2857 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2858 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2859 if test "${ac_cv_prog_cc_g+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 cat >conftest.$ac_ext <<_ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2877 rm -f conftest.$ac_objext
2878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2879 (eval $ac_compile) 2>conftest.er1
2881 grep -v '^ *+' conftest.er1 >conftest.err
2883 cat conftest.err >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } &&
2886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; } &&
2892 { ac_try='test -s conftest.$ac_objext'
2893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2908 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2909 if test "$ac_test_CFLAGS" = set; then
2910 CFLAGS=$ac_save_CFLAGS
2911 elif test $ac_cv_prog_cc_g = yes; then
2912 if test "$GCC" = yes; then
2918 if test "$GCC" = yes; then
2924 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2925 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2926 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 ac_cv_prog_cc_stdc=no
2931 cat >conftest.$ac_ext <<_ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2939 #include <sys/types.h>
2940 #include <sys/stat.h>
2941 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2942 struct buf { int x; };
2943 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2944 static char *e (p, i)
2950 static char *f (char * (*g) (char **, int), char **p, ...)
2955 s = g (p, va_arg (v,int));
2960 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2961 function prototypes and stuff, but not '\xHH' hex character constants.
2962 These don't provoke an error unfortunately, instead are silently treated
2963 as 'x'. The following induces an error, until -std1 is added to get
2964 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2965 array size at least. It's necessary to write '\x00'==0 to get something
2966 that's true only with -std1. */
2967 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2969 int test (int i, double x);
2970 struct s1 {int (*f) (int a);};
2971 struct s2 {int (*f) (double a);};
2972 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2978 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2983 # Don't try gcc -ansi; that turns off useful extensions and
2984 # breaks some systems' header files.
2985 # AIX -qlanglvl=ansi
2986 # Ultrix and OSF/1 -std1
2987 # HP-UX 10.20 and later -Ae
2988 # HP-UX older versions -Aa -D_HPUX_SOURCE
2989 # SVR4 -Xc -D__EXTENSIONS__
2990 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2992 CC="$ac_save_CC $ac_arg"
2993 rm -f conftest.$ac_objext
2994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2995 (eval $ac_compile) 2>conftest.er1
2997 grep -v '^ *+' conftest.er1 >conftest.err
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; } &&
3008 { ac_try='test -s conftest.$ac_objext'
3009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; }; then
3014 ac_cv_prog_cc_stdc=$ac_arg
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3021 rm -f conftest.err conftest.$ac_objext
3023 rm -f conftest.$ac_ext conftest.$ac_objext
3028 case "x$ac_cv_prog_cc_stdc" in
3030 echo "$as_me:$LINENO: result: none needed" >&5
3031 echo "${ECHO_T}none needed" >&6 ;;
3033 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3034 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3035 CC="$CC $ac_cv_prog_cc_stdc" ;;
3038 # Some people use a C++ compiler to compile C. Since we use `exit',
3039 # in C++ we need to declare it. In case someone uses the same compiler
3040 # for both compiling C and C++ we need to have the C++ compiler decide
3041 # the declaration of exit, since it's the most demanding environment.
3042 cat >conftest.$ac_ext <<_ACEOF
3047 rm -f conftest.$ac_objext
3048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3049 (eval $ac_compile) 2>conftest.er1
3051 grep -v '^ *+' conftest.er1 >conftest.err
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
3056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; }; then
3068 for ac_declaration in \
3070 'extern "C" void std::exit (int) throw (); using std::exit;' \
3071 'extern "C" void std::exit (int); using std::exit;' \
3072 'extern "C" void exit (int) throw ();' \
3073 'extern "C" void exit (int);' \
3076 cat >conftest.$ac_ext <<_ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3092 rm -f conftest.$ac_objext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094 (eval $ac_compile) 2>conftest.er1
3096 grep -v '^ *+' conftest.er1 >conftest.err
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } &&
3101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; } &&
3107 { ac_try='test -s conftest.$ac_objext'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3136 rm -f conftest.$ac_objext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3138 (eval $ac_compile) 2>conftest.er1
3140 grep -v '^ *+' conftest.er1 >conftest.err
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; } &&
3151 { ac_try='test -s conftest.$ac_objext'
3152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3166 if test -n "$ac_declaration"; then
3167 echo '#ifdef __cplusplus' >>confdefs.h
3168 echo $ac_declaration >>confdefs.h
3169 echo '#endif' >>confdefs.h
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3179 ac_cpp='$CPP $CPPFLAGS'
3180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184 depcc="$CC" am_compiler_list=
3186 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3187 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3188 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3192 # We make a subdir and do the tests there. Otherwise we can end up
3193 # making bogus files that we don't know about and never remove. For
3194 # instance it was reported that on HP-UX the gcc test will end up
3195 # making a dummy file named `D' -- because `-MD' means `put the output
3198 # Copy depcomp to subdir because otherwise we won't find it if we're
3199 # using a relative directory.
3200 cp "$am_depcomp" conftest.dir
3202 # We will build objects and dependencies in a subdirectory because
3203 # it helps to detect inapplicable dependency modes. For instance
3204 # both Tru64's cc and ICC support -MD to output dependencies as a
3205 # side effect of compilation, but ICC will put the dependencies in
3206 # the current directory while Tru64 will put them in the object
3210 am_cv_CC_dependencies_compiler_type=none
3211 if test "$am_compiler_list" = ""; then
3212 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3214 for depmode in $am_compiler_list; do
3215 # Setup a source with many dependencies, because some compilers
3216 # like to wrap large dependency lists on column 80 (with \), and
3217 # we should not choose a depcomp mode which is confused by this.
3219 # We need to recreate these files for each test, as the compiler may
3220 # overwrite some of them when testing with obscure command lines.
3221 # This happens at least with the AIX C compiler.
3223 for i in 1 2 3 4 5 6; do
3224 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3225 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3226 # Solaris 8's {/usr,}/bin/sh.
3227 touch sub/conftst$i.h
3229 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3233 # after this tag, mechanisms are not by side-effect, so they'll
3234 # only be used when explicitly requested
3235 if test "x$enable_dependency_tracking" = xyes; then
3243 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3244 # mode. It turns out that the SunPro C++ compiler does not properly
3245 # handle `-M -o', and we need to detect this.
3246 if depmode=$depmode \
3247 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3248 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3249 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3250 >/dev/null 2>conftest.err &&
3251 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3252 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3253 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3254 # icc doesn't choke on unknown options, it will just issue warnings
3255 # or remarks (even with -Werror). So we grep stderr for any message
3256 # that says an option was ignored or not supported.
3257 # When given -MP, icc 7.0 and 7.1 complain thusly:
3258 # icc: Command line warning: ignoring option '-M'; no argument required
3259 # The diagnosis changed in icc 8.0:
3260 # icc: Command line remark: option '-MP' not supported
3261 if (grep 'ignoring option' conftest.err ||
3262 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3263 am_cv_CC_dependencies_compiler_type=$depmode
3272 am_cv_CC_dependencies_compiler_type=none
3276 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3277 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3278 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3283 test "x$enable_dependency_tracking" != xno \
3284 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3286 am__fastdepCC_FALSE='#'
3288 am__fastdepCC_TRUE='#'
3289 am__fastdepCC_FALSE=
3297 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3298 if test "${with_tcp_wrappers+set}" = set; then
3299 withval="$with_tcp_wrappers"
3301 if test "x$withval" != "xno" ; then
3303 saved_LDFLAGS="$LDFLAGS"
3304 saved_CPPFLAGS="$CPPFLAGS"
3305 if test -n "${withval}" -a "${withval}" != "yes"; then
3306 if test -d "${withval}/lib"; then
3307 if test -n "${need_dash_r}"; then
3308 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3310 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3313 if test -n "${need_dash_r}"; then
3314 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3316 LDFLAGS="-L${withval} ${LDFLAGS}"
3319 if test -d "${withval}/include"; then
3320 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3322 CPPFLAGS="-I${withval} ${CPPFLAGS}"
3326 LIBS="$LIBWRAP $LIBS"
3327 echo "$as_me:$LINENO: checking for libwrap" >&5
3328 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
3329 cat >conftest.$ac_ext <<_ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3337 int deny_severity = 0, allow_severity = 0;
3347 rm -f conftest.$ac_objext conftest$ac_exeext
3348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3349 (eval $ac_link) 2>conftest.er1
3351 grep -v '^ *+' conftest.er1 >conftest.err
3353 cat conftest.err >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } &&
3356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; } &&
3362 { ac_try='test -s conftest$ac_exeext'
3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; }; then
3369 echo "$as_me:$LINENO: result: yes" >&5
3370 echo "${ECHO_T}yes" >&6
3373 cat >>confdefs.h <<\_ACEOF
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3384 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3385 echo "$as_me: error: *** libwrap missing" >&2;}
3386 { (exit 1); exit 1; }; }
3390 rm -f conftest.err conftest.$ac_objext \
3391 conftest$ac_exeext conftest.$ac_ext
3401 ac_config_headers="$ac_config_headers support/include/config.h"
3404 # Checks for programs.
3406 ac_cpp='$CXXCPP $CPPFLAGS'
3407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3410 if test -n "$ac_tool_prefix"; then
3411 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3413 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3414 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3415 echo "$as_me:$LINENO: checking for $ac_word" >&5
3416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3417 if test "${ac_cv_prog_CXX+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 if test -n "$CXX"; then
3421 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 test -z "$as_dir" && as_dir=.
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 if test -n "$CXX"; then
3441 echo "$as_me:$LINENO: result: $CXX" >&5
3442 echo "${ECHO_T}$CXX" >&6
3444 echo "$as_me:$LINENO: result: no" >&5
3445 echo "${ECHO_T}no" >&6
3448 test -n "$CXX" && break
3451 if test -z "$CXX"; then
3453 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3455 # Extract the first word of "$ac_prog", so it can be a program name with args.
3456 set dummy $ac_prog; ac_word=$2
3457 echo "$as_me:$LINENO: checking for $ac_word" >&5
3458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3459 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 if test -n "$ac_ct_CXX"; then
3463 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_ac_ct_CXX="$ac_prog"
3473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3482 if test -n "$ac_ct_CXX"; then
3483 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3484 echo "${ECHO_T}$ac_ct_CXX" >&6
3486 echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6
3490 test -n "$ac_ct_CXX" && break
3492 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3498 # Provide some information about the compiler.
3499 echo "$as_me:$LINENO:" \
3500 "checking for C++ compiler version" >&5
3501 ac_compiler=`set X $ac_compile; echo $2`
3502 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3503 (eval $ac_compiler --version </dev/null >&5) 2>&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }
3507 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3508 (eval $ac_compiler -v </dev/null >&5) 2>&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }
3512 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3513 (eval $ac_compiler -V </dev/null >&5) 2>&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }
3518 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3519 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3520 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 cat >conftest.$ac_ext <<_ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3541 rm -f conftest.$ac_objext
3542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3543 (eval $ac_compile) 2>conftest.er1
3545 grep -v '^ *+' conftest.er1 >conftest.err
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } &&
3550 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; } &&
3556 { ac_try='test -s conftest.$ac_objext'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; }; then
3564 echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3570 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3573 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3574 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3575 GXX=`test $ac_compiler_gnu = yes && echo yes`
3576 ac_test_CXXFLAGS=${CXXFLAGS+set}
3577 ac_save_CXXFLAGS=$CXXFLAGS
3579 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3580 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3581 if test "${ac_cv_prog_cxx_g+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 cat >conftest.$ac_ext <<_ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3599 rm -f conftest.$ac_objext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601 (eval $ac_compile) 2>conftest.er1
3603 grep -v '^ *+' conftest.er1 >conftest.err
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; } &&
3614 { ac_try='test -s conftest.$ac_objext'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3620 ac_cv_prog_cxx_g=yes
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3629 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3630 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3631 if test "$ac_test_CXXFLAGS" = set; then
3632 CXXFLAGS=$ac_save_CXXFLAGS
3633 elif test $ac_cv_prog_cxx_g = yes; then
3634 if test "$GXX" = yes; then
3640 if test "$GXX" = yes; then
3646 for ac_declaration in \
3648 'extern "C" void std::exit (int) throw (); using std::exit;' \
3649 'extern "C" void std::exit (int); using std::exit;' \
3650 'extern "C" void exit (int) throw ();' \
3651 'extern "C" void exit (int);' \
3654 cat >conftest.$ac_ext <<_ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h. */
3670 rm -f conftest.$ac_objext
3671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3672 (eval $ac_compile) 2>conftest.er1
3674 grep -v '^ *+' conftest.er1 >conftest.err
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } &&
3679 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; } &&
3685 { ac_try='test -s conftest.$ac_objext'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3699 cat >conftest.$ac_ext <<_ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3714 rm -f conftest.$ac_objext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716 (eval $ac_compile) 2>conftest.er1
3718 grep -v '^ *+' conftest.er1 >conftest.err
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } &&
3723 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; } &&
3729 { ac_try='test -s conftest.$ac_objext'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3744 if test -n "$ac_declaration"; then
3745 echo '#ifdef __cplusplus' >>confdefs.h
3746 echo $ac_declaration >>confdefs.h
3747 echo '#endif' >>confdefs.h
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756 depcc="$CXX" am_compiler_list=
3758 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3759 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3760 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3764 # We make a subdir and do the tests there. Otherwise we can end up
3765 # making bogus files that we don't know about and never remove. For
3766 # instance it was reported that on HP-UX the gcc test will end up
3767 # making a dummy file named `D' -- because `-MD' means `put the output
3770 # Copy depcomp to subdir because otherwise we won't find it if we're
3771 # using a relative directory.
3772 cp "$am_depcomp" conftest.dir
3774 # We will build objects and dependencies in a subdirectory because
3775 # it helps to detect inapplicable dependency modes. For instance
3776 # both Tru64's cc and ICC support -MD to output dependencies as a
3777 # side effect of compilation, but ICC will put the dependencies in
3778 # the current directory while Tru64 will put them in the object
3782 am_cv_CXX_dependencies_compiler_type=none
3783 if test "$am_compiler_list" = ""; then
3784 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3786 for depmode in $am_compiler_list; do
3787 # Setup a source with many dependencies, because some compilers
3788 # like to wrap large dependency lists on column 80 (with \), and
3789 # we should not choose a depcomp mode which is confused by this.
3791 # We need to recreate these files for each test, as the compiler may
3792 # overwrite some of them when testing with obscure command lines.
3793 # This happens at least with the AIX C compiler.
3795 for i in 1 2 3 4 5 6; do
3796 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3797 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3798 # Solaris 8's {/usr,}/bin/sh.
3799 touch sub/conftst$i.h
3801 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3805 # after this tag, mechanisms are not by side-effect, so they'll
3806 # only be used when explicitly requested
3807 if test "x$enable_dependency_tracking" = xyes; then
3815 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3816 # mode. It turns out that the SunPro C++ compiler does not properly
3817 # handle `-M -o', and we need to detect this.
3818 if depmode=$depmode \
3819 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3820 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3821 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3822 >/dev/null 2>conftest.err &&
3823 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3824 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3825 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3826 # icc doesn't choke on unknown options, it will just issue warnings
3827 # or remarks (even with -Werror). So we grep stderr for any message
3828 # that says an option was ignored or not supported.
3829 # When given -MP, icc 7.0 and 7.1 complain thusly:
3830 # icc: Command line warning: ignoring option '-M'; no argument required
3831 # The diagnosis changed in icc 8.0:
3832 # icc: Command line remark: option '-MP' not supported
3833 if (grep 'ignoring option' conftest.err ||
3834 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3835 am_cv_CXX_dependencies_compiler_type=$depmode
3844 am_cv_CXX_dependencies_compiler_type=none
3848 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3849 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3850 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3855 test "x$enable_dependency_tracking" != xno \
3856 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3857 am__fastdepCXX_TRUE=
3858 am__fastdepCXX_FALSE='#'
3860 am__fastdepCXX_TRUE='#'
3861 am__fastdepCXX_FALSE=
3866 ac_cpp='$CPP $CPPFLAGS'
3867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870 if test -n "$ac_tool_prefix"; then
3871 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3872 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3873 echo "$as_me:$LINENO: checking for $ac_word" >&5
3874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3875 if test "${ac_cv_prog_CC+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 if test -n "$CC"; then
3879 ac_cv_prog_CC="$CC" # Let the user override the test.
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 test -z "$as_dir" && as_dir=.
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3888 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 if test -n "$CC"; then
3899 echo "$as_me:$LINENO: result: $CC" >&5
3900 echo "${ECHO_T}$CC" >&6
3902 echo "$as_me:$LINENO: result: no" >&5
3903 echo "${ECHO_T}no" >&6
3907 if test -z "$ac_cv_prog_CC"; then
3909 # Extract the first word of "gcc", so it can be a program name with args.
3910 set dummy gcc; ac_word=$2
3911 echo "$as_me:$LINENO: checking for $ac_word" >&5
3912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 if test -n "$ac_ct_CC"; then
3917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 test -z "$as_dir" && as_dir=.
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3926 ac_cv_prog_ac_ct_CC="gcc"
3927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3936 if test -n "$ac_ct_CC"; then
3937 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3938 echo "${ECHO_T}$ac_ct_CC" >&6
3940 echo "$as_me:$LINENO: result: no" >&5
3941 echo "${ECHO_T}no" >&6
3949 if test -z "$CC"; then
3950 if test -n "$ac_tool_prefix"; then
3951 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3952 set dummy ${ac_tool_prefix}cc; ac_word=$2
3953 echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3955 if test "${ac_cv_prog_CC+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 if test -n "$CC"; then
3959 ac_cv_prog_CC="$CC" # Let the user override the test.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968 ac_cv_prog_CC="${ac_tool_prefix}cc"
3969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3978 if test -n "$CC"; then
3979 echo "$as_me:$LINENO: result: $CC" >&5
3980 echo "${ECHO_T}$CC" >&6
3982 echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3987 if test -z "$ac_cv_prog_CC"; then
3989 # Extract the first word of "cc", so it can be a program name with args.
3990 set dummy cc; ac_word=$2
3991 echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 if test -n "$ac_ct_CC"; then
3997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006 ac_cv_prog_ac_ct_CC="cc"
4007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4016 if test -n "$ac_ct_CC"; then
4017 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4018 echo "${ECHO_T}$ac_ct_CC" >&6
4020 echo "$as_me:$LINENO: result: no" >&5
4021 echo "${ECHO_T}no" >&6
4030 if test -z "$CC"; then
4031 # Extract the first word of "cc", so it can be a program name with args.
4032 set dummy cc; ac_word=$2
4033 echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4035 if test "${ac_cv_prog_CC+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 if test -n "$CC"; then
4039 ac_cv_prog_CC="$CC" # Let the user override the test.
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4050 ac_prog_rejected=yes
4054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060 if test $ac_prog_rejected = yes; then
4061 # We found a bogon in the path, so make sure we never use it.
4062 set dummy $ac_cv_prog_CC
4064 if test $# != 0; then
4065 # We chose a different compiler from the bogus one.
4066 # However, it has the same basename, so the bogon will be chosen
4067 # first if we set CC to just the basename; use the full file name.
4069 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4075 if test -n "$CC"; then
4076 echo "$as_me:$LINENO: result: $CC" >&5
4077 echo "${ECHO_T}$CC" >&6
4079 echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4084 if test -z "$CC"; then
4085 if test -n "$ac_tool_prefix"; then
4088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4090 echo "$as_me:$LINENO: checking for $ac_word" >&5
4091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4092 if test "${ac_cv_prog_CC+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 if test -n "$CC"; then
4096 ac_cv_prog_CC="$CC" # Let the user override the test.
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 if test -n "$CC"; then
4116 echo "$as_me:$LINENO: result: $CC" >&5
4117 echo "${ECHO_T}$CC" >&6
4119 echo "$as_me:$LINENO: result: no" >&5
4120 echo "${ECHO_T}no" >&6
4123 test -n "$CC" && break
4126 if test -z "$CC"; then
4130 # Extract the first word of "$ac_prog", so it can be a program name with args.
4131 set dummy $ac_prog; ac_word=$2
4132 echo "$as_me:$LINENO: checking for $ac_word" >&5
4133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 if test -n "$ac_ct_CC"; then
4138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147 ac_cv_prog_ac_ct_CC="$ac_prog"
4148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4157 if test -n "$ac_ct_CC"; then
4158 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4159 echo "${ECHO_T}$ac_ct_CC" >&6
4161 echo "$as_me:$LINENO: result: no" >&5
4162 echo "${ECHO_T}no" >&6
4165 test -n "$ac_ct_CC" && break
4174 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4175 See \`config.log' for more details." >&5
4176 echo "$as_me: error: no acceptable C compiler found in \$PATH
4177 See \`config.log' for more details." >&2;}
4178 { (exit 1); exit 1; }; }
4180 # Provide some information about the compiler.
4181 echo "$as_me:$LINENO:" \
4182 "checking for C compiler version" >&5
4183 ac_compiler=`set X $ac_compile; echo $2`
4184 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4185 (eval $ac_compiler --version </dev/null >&5) 2>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }
4189 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4190 (eval $ac_compiler -v </dev/null >&5) 2>&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }
4194 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4195 (eval $ac_compiler -V </dev/null >&5) 2>&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }
4200 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4201 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4202 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 cat >conftest.$ac_ext <<_ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4223 rm -f conftest.$ac_objext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225 (eval $ac_compile) 2>conftest.er1
4227 grep -v '^ *+' conftest.er1 >conftest.err
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4255 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4256 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4257 GCC=`test $ac_compiler_gnu = yes && echo yes`
4258 ac_test_CFLAGS=${CFLAGS+set}
4259 ac_save_CFLAGS=$CFLAGS
4261 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4262 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4263 if test "${ac_cv_prog_cc_g+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 cat >conftest.$ac_ext <<_ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4281 rm -f conftest.$ac_objext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283 (eval $ac_compile) 2>conftest.er1
4285 grep -v '^ *+' conftest.er1 >conftest.err
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } &&
4290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; } &&
4296 { ac_try='test -s conftest.$ac_objext'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4311 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4312 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4313 if test "$ac_test_CFLAGS" = set; then
4314 CFLAGS=$ac_save_CFLAGS
4315 elif test $ac_cv_prog_cc_g = yes; then
4316 if test "$GCC" = yes; then
4322 if test "$GCC" = yes; then
4328 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4329 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4330 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 ac_cv_prog_cc_stdc=no
4335 cat >conftest.$ac_ext <<_ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4343 #include <sys/types.h>
4344 #include <sys/stat.h>
4345 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4346 struct buf { int x; };
4347 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4348 static char *e (p, i)
4354 static char *f (char * (*g) (char **, int), char **p, ...)
4359 s = g (p, va_arg (v,int));
4364 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4365 function prototypes and stuff, but not '\xHH' hex character constants.
4366 These don't provoke an error unfortunately, instead are silently treated
4367 as 'x'. The following induces an error, until -std1 is added to get
4368 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4369 array size at least. It's necessary to write '\x00'==0 to get something
4370 that's true only with -std1. */
4371 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4373 int test (int i, double x);
4374 struct s1 {int (*f) (int a);};
4375 struct s2 {int (*f) (double a);};
4376 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4382 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4387 # Don't try gcc -ansi; that turns off useful extensions and
4388 # breaks some systems' header files.
4389 # AIX -qlanglvl=ansi
4390 # Ultrix and OSF/1 -std1
4391 # HP-UX 10.20 and later -Ae
4392 # HP-UX older versions -Aa -D_HPUX_SOURCE
4393 # SVR4 -Xc -D__EXTENSIONS__
4394 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4396 CC="$ac_save_CC $ac_arg"
4397 rm -f conftest.$ac_objext
4398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399 (eval $ac_compile) 2>conftest.er1
4401 grep -v '^ *+' conftest.er1 >conftest.err
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
4406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; } &&
4412 { ac_try='test -s conftest.$ac_objext'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; }; then
4418 ac_cv_prog_cc_stdc=$ac_arg
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4425 rm -f conftest.err conftest.$ac_objext
4427 rm -f conftest.$ac_ext conftest.$ac_objext
4432 case "x$ac_cv_prog_cc_stdc" in
4434 echo "$as_me:$LINENO: result: none needed" >&5
4435 echo "${ECHO_T}none needed" >&6 ;;
4437 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4438 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4439 CC="$CC $ac_cv_prog_cc_stdc" ;;
4442 # Some people use a C++ compiler to compile C. Since we use `exit',
4443 # in C++ we need to declare it. In case someone uses the same compiler
4444 # for both compiling C and C++ we need to have the C++ compiler decide
4445 # the declaration of exit, since it's the most demanding environment.
4446 cat >conftest.$ac_ext <<_ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>conftest.er1
4455 grep -v '^ *+' conftest.er1 >conftest.err
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } &&
4460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; } &&
4466 { ac_try='test -s conftest.$ac_objext'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 for ac_declaration in \
4474 'extern "C" void std::exit (int) throw (); using std::exit;' \
4475 'extern "C" void std::exit (int); using std::exit;' \
4476 'extern "C" void exit (int) throw ();' \
4477 'extern "C" void exit (int);' \
4480 cat >conftest.$ac_ext <<_ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4496 rm -f conftest.$ac_objext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4498 (eval $ac_compile) 2>conftest.er1
4500 grep -v '^ *+' conftest.er1 >conftest.err
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } &&
4505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; } &&
4511 { ac_try='test -s conftest.$ac_objext'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4525 cat >conftest.$ac_ext <<_ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4540 rm -f conftest.$ac_objext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4542 (eval $ac_compile) 2>conftest.er1
4544 grep -v '^ *+' conftest.er1 >conftest.err
4546 cat conftest.err >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } &&
4549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try='test -s conftest.$ac_objext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4563 echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4570 if test -n "$ac_declaration"; then
4571 echo '#ifdef __cplusplus' >>confdefs.h
4572 echo $ac_declaration >>confdefs.h
4573 echo '#endif' >>confdefs.h
4577 echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4588 depcc="$CC" am_compiler_list=
4590 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4591 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4592 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4596 # We make a subdir and do the tests there. Otherwise we can end up
4597 # making bogus files that we don't know about and never remove. For
4598 # instance it was reported that on HP-UX the gcc test will end up
4599 # making a dummy file named `D' -- because `-MD' means `put the output
4602 # Copy depcomp to subdir because otherwise we won't find it if we're
4603 # using a relative directory.
4604 cp "$am_depcomp" conftest.dir
4606 # We will build objects and dependencies in a subdirectory because
4607 # it helps to detect inapplicable dependency modes. For instance
4608 # both Tru64's cc and ICC support -MD to output dependencies as a
4609 # side effect of compilation, but ICC will put the dependencies in
4610 # the current directory while Tru64 will put them in the object
4614 am_cv_CC_dependencies_compiler_type=none
4615 if test "$am_compiler_list" = ""; then
4616 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4618 for depmode in $am_compiler_list; do
4619 # Setup a source with many dependencies, because some compilers
4620 # like to wrap large dependency lists on column 80 (with \), and
4621 # we should not choose a depcomp mode which is confused by this.
4623 # We need to recreate these files for each test, as the compiler may
4624 # overwrite some of them when testing with obscure command lines.
4625 # This happens at least with the AIX C compiler.
4627 for i in 1 2 3 4 5 6; do
4628 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4629 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4630 # Solaris 8's {/usr,}/bin/sh.
4631 touch sub/conftst$i.h
4633 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4637 # after this tag, mechanisms are not by side-effect, so they'll
4638 # only be used when explicitly requested
4639 if test "x$enable_dependency_tracking" = xyes; then
4647 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4648 # mode. It turns out that the SunPro C++ compiler does not properly
4649 # handle `-M -o', and we need to detect this.
4650 if depmode=$depmode \
4651 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4652 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4653 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4654 >/dev/null 2>conftest.err &&
4655 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4656 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4657 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4658 # icc doesn't choke on unknown options, it will just issue warnings
4659 # or remarks (even with -Werror). So we grep stderr for any message
4660 # that says an option was ignored or not supported.
4661 # When given -MP, icc 7.0 and 7.1 complain thusly:
4662 # icc: Command line warning: ignoring option '-M'; no argument required
4663 # The diagnosis changed in icc 8.0:
4664 # icc: Command line remark: option '-MP' not supported
4665 if (grep 'ignoring option' conftest.err ||
4666 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4667 am_cv_CC_dependencies_compiler_type=$depmode
4676 am_cv_CC_dependencies_compiler_type=none
4680 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4681 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4682 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4687 test "x$enable_dependency_tracking" != xno \
4688 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4690 am__fastdepCC_FALSE='#'
4692 am__fastdepCC_TRUE='#'
4693 am__fastdepCC_FALSE=
4698 ac_cpp='$CPP $CPPFLAGS'
4699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4702 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4703 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4704 # On Suns, sometimes $CPP names a directory.
4705 if test -n "$CPP" && test -d "$CPP"; then
4708 if test -z "$CPP"; then
4709 if test "${ac_cv_prog_CPP+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 # Double quotes because CPP needs to be expanded
4713 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4716 for ac_c_preproc_warn_flag in '' yes
4718 # Use a header file that comes with gcc, so configuring glibc
4719 # with a fresh cross-compiler works.
4720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4721 # <limits.h> exists even on freestanding compilers.
4722 # On the NeXT, cc -E runs the code through the compiler's parser,
4723 # not just through cpp. "Syntax error" is here to catch this case.
4724 cat >conftest.$ac_ext <<_ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4731 # include <limits.h>
4733 # include <assert.h>
4737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4740 grep -v '^ *+' conftest.er1 >conftest.err
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } >/dev/null; then
4745 if test -s conftest.err; then
4746 ac_cpp_err=$ac_c_preproc_warn_flag
4747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4754 if test -z "$ac_cpp_err"; then
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4760 # Broken: fails on valid input.
4763 rm -f conftest.err conftest.$ac_ext
4765 # OK, works on sane cases. Now check whether non-existent headers
4766 # can be detected and how.
4767 cat >conftest.$ac_ext <<_ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h. */
4773 #include <ac_nonexistent.h>
4775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4778 grep -v '^ *+' conftest.er1 >conftest.err
4780 cat conftest.err >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } >/dev/null; then
4783 if test -s conftest.err; then
4784 ac_cpp_err=$ac_c_preproc_warn_flag
4785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4792 if test -z "$ac_cpp_err"; then
4793 # Broken: success on invalid input.
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4799 # Passes both tests.
4803 rm -f conftest.err conftest.$ac_ext
4806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4807 rm -f conftest.err conftest.$ac_ext
4808 if $ac_preproc_ok; then
4820 echo "$as_me:$LINENO: result: $CPP" >&5
4821 echo "${ECHO_T}$CPP" >&6
4823 for ac_c_preproc_warn_flag in '' yes
4825 # Use a header file that comes with gcc, so configuring glibc
4826 # with a fresh cross-compiler works.
4827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4828 # <limits.h> exists even on freestanding compilers.
4829 # On the NeXT, cc -E runs the code through the compiler's parser,
4830 # not just through cpp. "Syntax error" is here to catch this case.
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4838 # include <limits.h>
4840 # include <assert.h>
4844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4847 grep -v '^ *+' conftest.er1 >conftest.err
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } >/dev/null; then
4852 if test -s conftest.err; then
4853 ac_cpp_err=$ac_c_preproc_warn_flag
4854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4861 if test -z "$ac_cpp_err"; then
4864 echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4867 # Broken: fails on valid input.
4870 rm -f conftest.err conftest.$ac_ext
4872 # OK, works on sane cases. Now check whether non-existent headers
4873 # can be detected and how.
4874 cat >conftest.$ac_ext <<_ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4880 #include <ac_nonexistent.h>
4882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4885 grep -v '^ *+' conftest.er1 >conftest.err
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } >/dev/null; then
4890 if test -s conftest.err; then
4891 ac_cpp_err=$ac_c_preproc_warn_flag
4892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4899 if test -z "$ac_cpp_err"; then
4900 # Broken: success on invalid input.
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4906 # Passes both tests.
4910 rm -f conftest.err conftest.$ac_ext
4913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4914 rm -f conftest.err conftest.$ac_ext
4915 if $ac_preproc_ok; then
4918 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4919 See \`config.log' for more details." >&5
4920 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4921 See \`config.log' for more details." >&2;}
4922 { (exit 1); exit 1; }; }
4926 ac_cpp='$CPP $CPPFLAGS'
4927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4931 # Find a good install program. We prefer a C program (faster),
4932 # so one script is as good as another. But avoid the broken or
4933 # incompatible versions:
4934 # SysV /etc/install, /usr/sbin/install
4935 # SunOS /usr/etc/install
4936 # IRIX /sbin/install
4938 # AmigaOS /C/install, which installs bootblocks on floppy discs
4939 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4940 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4941 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4942 # OS/2's system install, which has a completely different semantic
4943 # ./install, which can be erroneously created by make from ./install.sh.
4944 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4945 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4946 if test -z "$INSTALL"; then
4947 if test "${ac_cv_path_install+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 test -z "$as_dir" && as_dir=.
4955 # Account for people who put trailing slashes in PATH elements.
4957 ./ | .// | /cC/* | \
4958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4959 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4962 # OSF1 and SCO ODT 3.0 have their own names for install.
4963 # Don't use installbsd from OSF since it installs stuff as root
4965 for ac_prog in ginstall scoinst install; do
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4968 if test $ac_prog = install &&
4969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4970 # AIX install. It has an incompatible calling convention.
4972 elif test $ac_prog = install &&
4973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4974 # program-specific install script used by HP pwplus--don't use.
4977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4989 if test "${ac_cv_path_install+set}" = set; then
4990 INSTALL=$ac_cv_path_install
4992 # As a last resort, use the slow shell script. We don't cache a
4993 # path for INSTALL within a source directory, because that will
4994 # break other packages using the cache if that directory is
4995 # removed, or if the path is relative.
4996 INSTALL=$ac_install_sh
4999 echo "$as_me:$LINENO: result: $INSTALL" >&5
5000 echo "${ECHO_T}$INSTALL" >&6
5002 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5003 # It thinks the first close brace ends the variable substitution.
5004 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5006 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5008 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5010 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5011 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5013 if test "$LN_S" = "ln -s"; then
5014 echo "$as_me:$LINENO: result: yes" >&5
5015 echo "${ECHO_T}yes" >&6
5017 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5018 echo "${ECHO_T}no, using $LN_S" >&6
5021 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5022 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5023 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5024 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 cat >conftest.make <<\_ACEOF
5029 @echo 'ac_maketemp="$(MAKE)"'
5031 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5032 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5033 if test -n "$ac_maketemp"; then
5034 eval ac_cv_prog_make_${ac_make}_set=yes
5036 eval ac_cv_prog_make_${ac_make}_set=no
5040 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5041 echo "$as_me:$LINENO: result: yes" >&5
5042 echo "${ECHO_T}yes" >&6
5045 echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5047 SET_MAKE="MAKE=${MAKE-make}"
5050 # Check whether --enable-shared or --disable-shared was given.
5051 if test "${enable_shared+set}" = set; then
5052 enableval="$enable_shared"
5053 p=${PACKAGE-default}
5055 yes) enable_shared=yes ;;
5056 no) enable_shared=no ;;
5059 # Look at the argument we got. We use all the common list separators.
5060 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5061 for pkg in $enableval; do
5063 if test "X$pkg" = "X$p"; then
5074 # Check whether --enable-static or --disable-static was given.
5075 if test "${enable_static+set}" = set; then
5076 enableval="$enable_static"
5077 p=${PACKAGE-default}
5079 yes) enable_static=yes ;;
5080 no) enable_static=no ;;
5083 # Look at the argument we got. We use all the common list separators.
5084 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5085 for pkg in $enableval; do
5087 if test "X$pkg" = "X$p"; then
5098 # Check whether --enable-fast-install or --disable-fast-install was given.
5099 if test "${enable_fast_install+set}" = set; then
5100 enableval="$enable_fast_install"
5101 p=${PACKAGE-default}
5103 yes) enable_fast_install=yes ;;
5104 no) enable_fast_install=no ;;
5106 enable_fast_install=no
5107 # Look at the argument we got. We use all the common list separators.
5108 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5109 for pkg in $enableval; do
5111 if test "X$pkg" = "X$p"; then
5112 enable_fast_install=yes
5119 enable_fast_install=yes
5122 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5123 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5124 if test "${lt_cv_path_SED+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 # Loop through the user's path and test for sed and gsed.
5128 # Then use that list of sed's as ones to test for truncation.
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 test -z "$as_dir" && as_dir=.
5134 for lt_ac_prog in sed gsed; do
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5137 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5144 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5145 # along with /bin/sed that truncates output.
5146 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5147 test ! -f $lt_ac_sed && continue
5148 cat /dev/null > conftest.in
5150 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5151 # Check for GNU sed and select it if it is found.
5152 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5153 lt_cv_path_SED=$lt_ac_sed
5157 cat conftest.in conftest.in >conftest.tmp
5158 mv conftest.tmp conftest.in
5159 cp conftest.in conftest.nl
5161 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5162 cmp -s conftest.out conftest.nl || break
5163 # 10000 chars as input seems more than enough
5164 test $lt_ac_count -gt 10 && break
5165 lt_ac_count=`expr $lt_ac_count + 1`
5166 if test $lt_ac_count -gt $lt_ac_max; then
5167 lt_ac_max=$lt_ac_count
5168 lt_cv_path_SED=$lt_ac_sed
5176 echo "$as_me:$LINENO: result: $SED" >&5
5177 echo "${ECHO_T}$SED" >&6
5179 echo "$as_me:$LINENO: checking for egrep" >&5
5180 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5181 if test "${ac_cv_prog_egrep+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5185 then ac_cv_prog_egrep='grep -E'
5186 else ac_cv_prog_egrep='egrep'
5189 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5190 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5191 EGREP=$ac_cv_prog_egrep
5195 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5196 if test "${with_gnu_ld+set}" = set; then
5197 withval="$with_gnu_ld"
5198 test "$withval" = no || with_gnu_ld=yes
5203 if test "$GCC" = yes; then
5204 # Check if gcc -print-prog-name=ld gives a path.
5205 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5206 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5209 # gcc leaves a trailing carriage return which upsets mingw
5210 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5212 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5215 # Accept absolute paths.
5217 re_direlt='/[^/][^/]*/\.\./'
5218 # Canonicalize the pathname of ld
5219 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5220 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5221 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5223 test -z "$LD" && LD="$ac_prog"
5226 # If it fails, then pretend we aren't using GCC.
5230 # If it is relative, then search for the first ld in PATH.
5234 elif test "$with_gnu_ld" = yes; then
5235 echo "$as_me:$LINENO: checking for GNU ld" >&5
5236 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5238 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5239 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5241 if test "${lt_cv_path_LD+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 if test -z "$LD"; then
5245 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5246 for ac_dir in $PATH; do
5248 test -z "$ac_dir" && ac_dir=.
5249 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5250 lt_cv_path_LD="$ac_dir/$ac_prog"
5251 # Check to see if the program is GNU ld. I'd rather use --version,
5252 # but apparently some variants of GNU ld only accept -v.
5253 # Break only if it was the GNU/non-GNU ld that we prefer.
5254 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5255 *GNU* | *'with BFD'*)
5256 test "$with_gnu_ld" != no && break
5259 test "$with_gnu_ld" != yes && break
5266 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5271 if test -n "$LD"; then
5272 echo "$as_me:$LINENO: result: $LD" >&5
5273 echo "${ECHO_T}$LD" >&6
5275 echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6
5278 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5279 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5280 { (exit 1); exit 1; }; }
5281 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5282 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5283 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5287 case `$LD -v 2>&1 </dev/null` in
5288 *GNU* | *'with BFD'*)
5289 lt_cv_prog_gnu_ld=yes
5292 lt_cv_prog_gnu_ld=no
5296 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5297 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5298 with_gnu_ld=$lt_cv_prog_gnu_ld
5301 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5302 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5303 if test "${lt_cv_ld_reload_flag+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 lt_cv_ld_reload_flag='-r'
5308 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5309 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5310 reload_flag=$lt_cv_ld_reload_flag
5311 case $reload_flag in
5313 *) reload_flag=" $reload_flag" ;;
5315 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5318 if test "$GCC" = yes; then
5319 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5321 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5326 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5327 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5328 if test "${lt_cv_path_NM+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 if test -n "$NM"; then
5332 # Let the user override the test.
5335 lt_nm_to_check="${ac_tool_prefix}nm"
5336 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5337 lt_nm_to_check="$lt_nm_to_check nm"
5339 for lt_tmp_nm in $lt_nm_to_check; do
5340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5341 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5343 test -z "$ac_dir" && ac_dir=.
5344 tmp_nm="$ac_dir/$lt_tmp_nm"
5345 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5346 # Check to see if the nm accepts a BSD-compat flag.
5347 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5348 # nm: unknown option "B" ignored
5349 # Tru64's nm complains that /dev/null is an invalid object file
5350 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5351 */dev/null* | *'Invalid file or object type'*)
5352 lt_cv_path_NM="$tmp_nm -B"
5356 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5358 lt_cv_path_NM="$tmp_nm -p"
5362 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5363 continue # so that we can try to find one that supports BSD flags
5372 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5375 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5376 echo "${ECHO_T}$lt_cv_path_NM" >&6
5379 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5380 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5381 if test "${lt_cv_deplibs_check_method+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 lt_cv_file_magic_cmd='$MAGIC_CMD'
5385 lt_cv_file_magic_test_file=
5386 lt_cv_deplibs_check_method='unknown'
5387 # Need to set the preceding variable on all platforms that support
5388 # interlibrary dependencies.
5389 # 'none' -- dependencies not supported.
5390 # `unknown' -- same as none, but documents that we really don't know.
5391 # 'pass_all' -- all dependencies passed with no checks.
5392 # 'test_compile' -- check by making test program.
5393 # 'file_magic [[regex]]' -- check by looking for files in library path
5394 # which responds to the $file_magic_cmd with a given extended regex.
5395 # If you have `file' or equivalent on your system and you're not sure
5396 # whether `pass_all' will *always* work, you probably want this one.
5400 lt_cv_deplibs_check_method=pass_all
5404 lt_cv_deplibs_check_method=pass_all
5408 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5409 lt_cv_file_magic_cmd='/usr/bin/file -L'
5410 lt_cv_file_magic_test_file=/shlib/libc.so
5414 # func_win32_libid is a shell function defined in ltmain.sh
5415 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5416 lt_cv_file_magic_cmd='func_win32_libid'
5420 # Base MSYS/MinGW do not provide the 'file' command needed by
5421 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5422 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5423 lt_cv_file_magic_cmd='$OBJDUMP -f'
5426 darwin* | rhapsody*)
5427 lt_cv_deplibs_check_method=pass_all
5430 freebsd* | dragonfly*)
5431 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5434 # Not sure whether the presence of OpenBSD here was a mistake.
5435 # Let's accept both of them until this is cleared up.
5436 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5437 lt_cv_file_magic_cmd=/usr/bin/file
5438 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5442 lt_cv_deplibs_check_method=pass_all
5447 lt_cv_deplibs_check_method=pass_all
5450 hpux10.20* | hpux11*)
5451 lt_cv_file_magic_cmd=/usr/bin/file
5454 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5455 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5458 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]'
5459 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5462 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5463 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5469 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5470 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5473 irix5* | irix6* | nonstopux*)
5475 *-32|*"-32 ") libmagic=32-bit;;
5476 *-n32|*"-n32 ") libmagic=N32;;
5477 *-64|*"-64 ") libmagic=64-bit;;
5478 *) libmagic=never-match;;
5480 lt_cv_deplibs_check_method=pass_all
5483 # This must be Linux ELF.
5484 linux* | k*bsd*-gnu)
5485 lt_cv_deplibs_check_method=pass_all
5488 netbsd* | netbsdelf*-gnu)
5489 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5498 lt_cv_file_magic_cmd=/usr/bin/file
5499 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5503 lt_cv_deplibs_check_method=unknown
5507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5514 osf3* | osf4* | osf5*)
5515 lt_cv_deplibs_check_method=pass_all
5519 lt_cv_deplibs_check_method=pass_all
5523 case $host_vendor in
5525 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]'
5526 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5529 lt_cv_deplibs_check_method=pass_all
5532 lt_cv_file_magic_cmd='/bin/file'
5533 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5536 lt_cv_file_magic_cmd='/bin/file'
5537 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5538 lt_cv_file_magic_test_file=/lib/libc.so
5541 lt_cv_deplibs_check_method=pass_all
5544 lt_cv_deplibs_check_method=pass_all
5549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5550 lt_cv_deplibs_check_method=pass_all
5555 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5556 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5557 file_magic_cmd=$lt_cv_file_magic_cmd
5558 deplibs_check_method=$lt_cv_deplibs_check_method
5559 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5564 # If no C compiler was specified, use CC.
5567 # If no C compiler flags were specified, use CFLAGS.
5568 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5570 # Allow CC to be a program name with arguments.
5573 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5574 if test "${enable_libtool_lock+set}" = set; then
5575 enableval="$enable_libtool_lock"
5578 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5580 # Some flags need to be propagated to the compiler or linker for good
5584 # Find out which ABI we are using.
5585 echo 'int i;' > conftest.$ac_ext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5587 (eval $ac_compile) 2>&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; then
5591 case `/usr/bin/file conftest.$ac_objext` in
5603 # Find out which ABI we are using.
5604 echo '#line 5604 "configure"' > conftest.$ac_ext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5606 (eval $ac_compile) 2>&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; then
5610 if test "$lt_cv_prog_gnu_ld" = yes; then
5611 case `/usr/bin/file conftest.$ac_objext` in
5613 LD="${LD-ld} -melf32bsmip"
5616 LD="${LD-ld} -melf32bmipn32"
5619 LD="${LD-ld} -melf64bmip"
5623 case `/usr/bin/file conftest.$ac_objext` in
5639 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5640 # Find out which ABI we are using.
5641 echo 'int i;' > conftest.$ac_ext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643 (eval $ac_compile) 2>&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; then
5647 case `/usr/bin/file conftest.o` in
5651 LD="${LD-ld} -m elf_i386"
5653 ppc64-*linux*|powerpc64-*linux*)
5654 LD="${LD-ld} -m elf32ppclinux"
5657 LD="${LD-ld} -m elf_s390"
5660 LD="${LD-ld} -m elf32_sparc"
5667 LD="${LD-ld} -m elf_x86_64"
5669 ppc*-*linux*|powerpc*-*linux*)
5670 LD="${LD-ld} -m elf64ppc"
5673 LD="${LD-ld} -m elf64_s390"
5676 LD="${LD-ld} -m elf64_sparc"
5686 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5687 SAVE_CFLAGS="$CFLAGS"
5688 CFLAGS="$CFLAGS -belf"
5689 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5690 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5691 if test "${lt_cv_cc_needs_belf+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 ac_cpp='$CPP $CPPFLAGS'
5696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5700 cat >conftest.$ac_ext <<_ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5715 rm -f conftest.$ac_objext conftest$ac_exeext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717 (eval $ac_link) 2>conftest.er1
5719 grep -v '^ *+' conftest.er1 >conftest.err
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; } &&
5730 { ac_try='test -s conftest$ac_exeext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5736 lt_cv_cc_needs_belf=yes
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 lt_cv_cc_needs_belf=no
5743 rm -f conftest.err conftest.$ac_objext \
5744 conftest$ac_exeext conftest.$ac_ext
5746 ac_cpp='$CPP $CPPFLAGS'
5747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5752 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5753 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5754 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5755 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5756 CFLAGS="$SAVE_CFLAGS"
5760 # Find out which ABI we are using.
5761 echo 'int i;' > conftest.$ac_ext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763 (eval $ac_compile) 2>&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; then
5767 case `/usr/bin/file conftest.o` in
5769 case $lt_cv_prog_gnu_ld in
5770 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5771 *) LD="${LD-ld} -64" ;;
5782 need_locks="$enable_libtool_lock"
5786 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5787 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5788 if test "${ac_cv_header_stdc+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 cat >conftest.$ac_ext <<_ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5810 rm -f conftest.$ac_objext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5812 (eval $ac_compile) 2>conftest.er1
5814 grep -v '^ *+' conftest.er1 >conftest.err
5816 cat conftest.err >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } &&
5819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; } &&
5825 { ac_try='test -s conftest.$ac_objext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 ac_cv_header_stdc=yes
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5836 ac_cv_header_stdc=no
5838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5840 if test $ac_cv_header_stdc = yes; then
5841 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5842 cat >conftest.$ac_ext <<_ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5852 $EGREP "memchr" >/dev/null 2>&1; then
5855 ac_cv_header_stdc=no
5861 if test $ac_cv_header_stdc = yes; then
5862 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5863 cat >conftest.$ac_ext <<_ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5873 $EGREP "free" >/dev/null 2>&1; then
5876 ac_cv_header_stdc=no
5882 if test $ac_cv_header_stdc = yes; then
5883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5884 if test "$cross_compiling" = yes; then
5887 cat >conftest.$ac_ext <<_ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5894 #if ((' ' & 0x0FF) == 0x020)
5895 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5896 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5898 # define ISLOWER(c) \
5899 (('a' <= (c) && (c) <= 'i') \
5900 || ('j' <= (c) && (c) <= 'r') \
5901 || ('s' <= (c) && (c) <= 'z'))
5902 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5905 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5910 for (i = 0; i < 256; i++)
5911 if (XOR (islower (i), ISLOWER (i))
5912 || toupper (i) != TOUPPER (i))
5917 rm -f conftest$ac_exeext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5919 (eval $ac_link) 2>&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; }; then
5930 echo "$as_me: program exited with status $ac_status" >&5
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5935 ac_cv_header_stdc=no
5937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5941 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5942 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5943 if test $ac_cv_header_stdc = yes; then
5945 cat >>confdefs.h <<\_ACEOF
5946 #define STDC_HEADERS 1
5951 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5961 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5962 inttypes.h stdint.h unistd.h
5964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5965 echo "$as_me:$LINENO: checking for $ac_header" >&5
5966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 cat >conftest.$ac_ext <<_ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5976 $ac_includes_default
5978 #include <$ac_header>
5980 rm -f conftest.$ac_objext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>conftest.er1
5984 grep -v '^ *+' conftest.er1 >conftest.err
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; } &&
5995 { ac_try='test -s conftest.$ac_objext'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 eval "$as_ac_Header=yes"
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6006 eval "$as_ac_Header=no"
6008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6013 cat >>confdefs.h <<_ACEOF
6014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6023 for ac_header in dlfcn.h
6025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6027 echo "$as_me:$LINENO: checking for $ac_header" >&5
6028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6035 # Is the header compilable?
6036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6038 cat >conftest.$ac_ext <<_ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 $ac_includes_default
6045 #include <$ac_header>
6047 rm -f conftest.$ac_objext
6048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6049 (eval $ac_compile) 2>conftest.er1
6051 grep -v '^ *+' conftest.er1 >conftest.err
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
6056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; } &&
6062 { ac_try='test -s conftest.$ac_objext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 ac_header_compiler=yes
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 ac_header_compiler=no
6075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6077 echo "${ECHO_T}$ac_header_compiler" >&6
6079 # Is the header present?
6080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6082 cat >conftest.$ac_ext <<_ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6088 #include <$ac_header>
6090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6093 grep -v '^ *+' conftest.er1 >conftest.err
6095 cat conftest.err >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } >/dev/null; then
6098 if test -s conftest.err; then
6099 ac_cpp_err=$ac_c_preproc_warn_flag
6100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6107 if test -z "$ac_cpp_err"; then
6108 ac_header_preproc=yes
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6113 ac_header_preproc=no
6115 rm -f conftest.err conftest.$ac_ext
6116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6117 echo "${ECHO_T}$ac_header_preproc" >&6
6119 # So? What about this header?
6120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6126 ac_header_preproc=yes
6129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6136 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6143 ## ------------------------------- ##
6144 ## Report this to nfs@lists.sf.net ##
6145 ## ------------------------------- ##
6148 sed "s/^/$as_me: WARNING: /" >&2
6151 echo "$as_me:$LINENO: checking for $ac_header" >&5
6152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 eval "$as_ac_Header=\$ac_header_preproc"
6158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6163 cat >>confdefs.h <<_ACEOF
6164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6173 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6174 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6175 (test "X$CXX" != "Xg++"))) ; then
6177 ac_cpp='$CXXCPP $CPPFLAGS'
6178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6181 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6182 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6183 if test -z "$CXXCPP"; then
6184 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 # Double quotes because CXXCPP needs to be expanded
6188 for CXXCPP in "$CXX -E" "/lib/cpp"
6191 for ac_cxx_preproc_warn_flag in '' yes
6193 # Use a header file that comes with gcc, so configuring glibc
6194 # with a fresh cross-compiler works.
6195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6196 # <limits.h> exists even on freestanding compilers.
6197 # On the NeXT, cc -E runs the code through the compiler's parser,
6198 # not just through cpp. "Syntax error" is here to catch this case.
6199 cat >conftest.$ac_ext <<_ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6206 # include <limits.h>
6208 # include <assert.h>
6212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6215 grep -v '^ *+' conftest.er1 >conftest.err
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } >/dev/null; then
6220 if test -s conftest.err; then
6221 ac_cpp_err=$ac_cxx_preproc_warn_flag
6222 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6229 if test -z "$ac_cpp_err"; then
6232 echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6235 # Broken: fails on valid input.
6238 rm -f conftest.err conftest.$ac_ext
6240 # OK, works on sane cases. Now check whether non-existent headers
6241 # can be detected and how.
6242 cat >conftest.$ac_ext <<_ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6248 #include <ac_nonexistent.h>
6250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6253 grep -v '^ *+' conftest.er1 >conftest.err
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } >/dev/null; then
6258 if test -s conftest.err; then
6259 ac_cpp_err=$ac_cxx_preproc_warn_flag
6260 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6267 if test -z "$ac_cpp_err"; then
6268 # Broken: success on invalid input.
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6274 # Passes both tests.
6278 rm -f conftest.err conftest.$ac_ext
6281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6282 rm -f conftest.err conftest.$ac_ext
6283 if $ac_preproc_ok; then
6288 ac_cv_prog_CXXCPP=$CXXCPP
6291 CXXCPP=$ac_cv_prog_CXXCPP
6293 ac_cv_prog_CXXCPP=$CXXCPP
6295 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6296 echo "${ECHO_T}$CXXCPP" >&6
6298 for ac_cxx_preproc_warn_flag in '' yes
6300 # Use a header file that comes with gcc, so configuring glibc
6301 # with a fresh cross-compiler works.
6302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6303 # <limits.h> exists even on freestanding compilers.
6304 # On the NeXT, cc -E runs the code through the compiler's parser,
6305 # not just through cpp. "Syntax error" is here to catch this case.
6306 cat >conftest.$ac_ext <<_ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6313 # include <limits.h>
6315 # include <assert.h>
6319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6322 grep -v '^ *+' conftest.er1 >conftest.err
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } >/dev/null; then
6327 if test -s conftest.err; then
6328 ac_cpp_err=$ac_cxx_preproc_warn_flag
6329 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6336 if test -z "$ac_cpp_err"; then
6339 echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6342 # Broken: fails on valid input.
6345 rm -f conftest.err conftest.$ac_ext
6347 # OK, works on sane cases. Now check whether non-existent headers
6348 # can be detected and how.
6349 cat >conftest.$ac_ext <<_ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 #include <ac_nonexistent.h>
6357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6360 grep -v '^ *+' conftest.er1 >conftest.err
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } >/dev/null; then
6365 if test -s conftest.err; then
6366 ac_cpp_err=$ac_cxx_preproc_warn_flag
6367 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6374 if test -z "$ac_cpp_err"; then
6375 # Broken: success on invalid input.
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6381 # Passes both tests.
6385 rm -f conftest.err conftest.$ac_ext
6388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6389 rm -f conftest.err conftest.$ac_ext
6390 if $ac_preproc_ok; then
6393 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6394 See \`config.log' for more details." >&5
6395 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6396 See \`config.log' for more details." >&2;}
6397 { (exit 1); exit 1; }; }
6401 ac_cpp='$CXXCPP $CPPFLAGS'
6402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6410 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6411 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6412 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6413 if test -n "$ac_tool_prefix"; then
6414 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6418 echo "$as_me:$LINENO: checking for $ac_word" >&5
6419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6420 if test "${ac_cv_prog_F77+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 if test -n "$F77"; then
6424 ac_cv_prog_F77="$F77" # Let the user override the test.
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 if test -n "$F77"; then
6444 echo "$as_me:$LINENO: result: $F77" >&5
6445 echo "${ECHO_T}$F77" >&6
6447 echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6
6451 test -n "$F77" && break
6454 if test -z "$F77"; then
6456 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6458 # Extract the first word of "$ac_prog", so it can be a program name with args.
6459 set dummy $ac_prog; ac_word=$2
6460 echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6462 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 if test -n "$ac_ct_F77"; then
6466 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475 ac_cv_prog_ac_ct_F77="$ac_prog"
6476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6485 if test -n "$ac_ct_F77"; then
6486 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6487 echo "${ECHO_T}$ac_ct_F77" >&6
6489 echo "$as_me:$LINENO: result: no" >&5
6490 echo "${ECHO_T}no" >&6
6493 test -n "$ac_ct_F77" && break
6500 # Provide some information about the compiler.
6501 echo "$as_me:6501:" \
6502 "checking for Fortran 77 compiler version" >&5
6503 ac_compiler=`set X $ac_compile; echo $2`
6504 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6505 (eval $ac_compiler --version </dev/null >&5) 2>&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }
6509 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6510 (eval $ac_compiler -v </dev/null >&5) 2>&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }
6514 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6515 (eval $ac_compiler -V </dev/null >&5) 2>&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }
6521 # If we don't use `.F' as extension, the preprocessor is not run on the
6522 # input file. (Note that this only needs to work for GNU compilers.)
6525 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6526 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6527 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 cat >conftest.$ac_ext <<_ACEOF
6538 rm -f conftest.$ac_objext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6540 (eval $ac_compile) 2>conftest.er1
6542 grep -v '^ *+' conftest.er1 >conftest.err
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } &&
6547 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }; } &&
6553 { ac_try='test -s conftest.$ac_objext'
6554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6567 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6570 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6571 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6573 ac_test_FFLAGS=${FFLAGS+set}
6574 ac_save_FFLAGS=$FFLAGS
6576 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6577 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6578 if test "${ac_cv_prog_f77_g+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 cat >conftest.$ac_ext <<_ACEOF
6587 rm -f conftest.$ac_objext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6589 (eval $ac_compile) 2>conftest.er1
6591 grep -v '^ *+' conftest.er1 >conftest.err
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } &&
6596 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try='test -s conftest.$ac_objext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_cv_prog_f77_g=yes
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6618 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6619 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6620 if test "$ac_test_FFLAGS" = set; then
6621 FFLAGS=$ac_save_FFLAGS
6622 elif test $ac_cv_prog_f77_g = yes; then
6623 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6629 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6636 G77=`test $ac_compiler_gnu = yes && echo yes`
6638 ac_cpp='$CPP $CPPFLAGS'
6639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6645 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6647 # find the maximum length of command line arguments
6648 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6649 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6650 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 # On DJGPP, this test can blow up pretty badly due to problems in libc
6659 # (any single argument exceeding 2000 bytes causes a buffer overrun
6660 # during glob expansion). Even if it were fixed, the result of this
6661 # check would be larger than it should be.
6662 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6666 # Under GNU Hurd, this test is not required because there is
6667 # no limit to the length of command line arguments.
6668 # Libtool will interpret -1 as no limit whatsoever
6669 lt_cv_sys_max_cmd_len=-1;
6673 # On Win9x/ME, this test blows up -- it succeeds, but takes
6674 # about 5 minutes as the teststring grows exponentially.
6675 # Worse, since 9x/ME are not pre-emptively multitasking,
6676 # you end up with a "frozen" computer, even though with patience
6677 # the test eventually succeeds (with a max line length of 256k).
6678 # Instead, let's just punt: use the minimum linelength reported by
6679 # all of the supported platforms: 8192 (on NT/2K/XP).
6680 lt_cv_sys_max_cmd_len=8192;
6684 # On AmigaOS with pdksh, this test takes hours, literally.
6685 # So we just punt and use a minimum line length of 8192.
6686 lt_cv_sys_max_cmd_len=8192;
6689 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6690 # This has been around since 386BSD, at least. Likely further.
6691 if test -x /sbin/sysctl; then
6692 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6693 elif test -x /usr/sbin/sysctl; then
6694 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6696 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6698 # And add a safety zone
6699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6704 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6705 lt_cv_sys_max_cmd_len=196608
6709 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6710 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6711 # nice to cause kernel panics so lets avoid the loop below.
6712 # First set a reasonable default.
6713 lt_cv_sys_max_cmd_len=16384
6715 if test -x /sbin/sysconfig; then
6716 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6717 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6722 lt_cv_sys_max_cmd_len=102400
6724 sysv5* | sco5v6* | sysv4.2uw2*)
6725 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6726 if test -n "$kargmax"; then
6727 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6729 lt_cv_sys_max_cmd_len=32768
6733 # If test is not a shell built-in, we'll probably end up computing a
6734 # maximum length that is only half of the actual maximum length, but
6736 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6737 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6738 = "XX$teststring") >/dev/null 2>&1 &&
6739 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6740 lt_cv_sys_max_cmd_len=$new_result &&
6741 test $i != 17 # 1/2 MB should be enough
6744 teststring=$teststring$teststring
6747 # Add a significant safety factor because C++ compilers can tack on massive
6748 # amounts of additional arguments before passing them to the linker.
6749 # It appears as though 1/2 is a usable value.
6750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6756 if test -n $lt_cv_sys_max_cmd_len ; then
6757 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6758 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6760 echo "$as_me:$LINENO: result: none" >&5
6761 echo "${ECHO_T}none" >&6
6767 # Check for command to grab the raw symbol name followed by C symbol from nm.
6768 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6769 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6770 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 # These are sane defaults that work on at least a few old systems.
6775 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6777 # Character class describing NM global symbol codes.
6778 symcode='[BCDEGRST]'
6780 # Regexp to match symbols that can be accessed directly from C.
6781 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6783 # Transform an extracted symbol line into a proper C declaration
6784 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6786 # Transform an extracted symbol line into symbol name and symbol address
6787 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'"
6789 # Define system-specific variables.
6794 cygwin* | mingw* | pw32*)
6795 symcode='[ABCDGISTW]'
6797 hpux*) # Its linker distinguishes data from code symbols
6798 if test "$host_cpu" = ia64; then
6799 symcode='[ABCDEGRST]'
6801 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6802 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'"
6804 linux* | k*bsd*-gnu)
6805 if test "$host_cpu" = ia64; then
6806 symcode='[ABCDGIRSTW]'
6807 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6808 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'"
6812 symcode='[BCDEGRST]'
6815 symcode='[BCDEGQRST]'
6826 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6834 # Handle CRLF in mingw tool chain
6838 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6842 # If we're using GNU nm, then use its standard symbol codes.
6843 case `$NM -V 2>&1` in
6844 *GNU* | *'with BFD'*)
6845 symcode='[ABCDGIRSTW]' ;;
6848 # Try without a prefix undercore, then with it.
6849 for ac_symprfx in "" "_"; do
6851 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6852 symxfrm="\\1 $ac_symprfx\\2 \\2"
6854 # Write the raw and C identifiers.
6855 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6857 # Check to see that the pipe works correctly.
6861 cat > conftest.$ac_ext <<EOF
6866 void nm_test_func(){}
6870 int main(){nm_test_var='a';nm_test_func();return(0);}
6873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874 (eval $ac_compile) 2>&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; then
6878 # Now try to grab the symbols.
6880 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6881 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } && test -s "$nlist"; then
6885 # Try sorting and uniquifying the output.
6886 if sort "$nlist" | uniq > "$nlist"T; then
6887 mv -f "$nlist"T "$nlist"
6892 # Make sure that we snagged all the symbols we need.
6893 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6894 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6895 cat <<EOF > conftest.$ac_ext
6901 # Now generate the symbol file.
6902 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6904 cat <<EOF >> conftest.$ac_ext
6905 #if defined (__STDC__) && __STDC__
6906 # define lt_ptr_t void *
6908 # define lt_ptr_t char *
6912 /* The mapping between symbol names and symbols. */
6917 lt_preloaded_symbols[] =
6920 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6921 cat <<\EOF >> conftest.$ac_ext
6929 # Now try linking the two files.
6930 mv conftest.$ac_objext conftstm.$ac_objext
6931 lt_save_LIBS="$LIBS"
6932 lt_save_CFLAGS="$CFLAGS"
6933 LIBS="conftstm.$ac_objext"
6934 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936 (eval $ac_link) 2>&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6942 LIBS="$lt_save_LIBS"
6943 CFLAGS="$lt_save_CFLAGS"
6945 echo "cannot find nm_test_func in $nlist" >&5
6948 echo "cannot find nm_test_var in $nlist" >&5
6951 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6954 echo "$progname: failed program was:" >&5
6955 cat conftest.$ac_ext >&5
6957 rm -f conftest* conftst*
6959 # Do not use the global_symbol_pipe unless it works.
6960 if test "$pipe_works" = yes; then
6963 lt_cv_sys_global_symbol_pipe=
6969 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6970 lt_cv_sys_global_symbol_to_cdecl=
6972 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6973 echo "$as_me:$LINENO: result: failed" >&5
6974 echo "${ECHO_T}failed" >&6
6976 echo "$as_me:$LINENO: result: ok" >&5
6977 echo "${ECHO_T}ok" >&6
6980 echo "$as_me:$LINENO: checking for objdir" >&5
6981 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6982 if test "${lt_cv_objdir+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 rm -f .libs 2>/dev/null
6986 mkdir .libs 2>/dev/null
6987 if test -d .libs; then
6990 # MS-DOS does not allow filenames that begin with a dot.
6993 rmdir .libs 2>/dev/null
6995 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6996 echo "${ECHO_T}$lt_cv_objdir" >&6
6997 objdir=$lt_cv_objdir
7005 # AIX sometimes has problems with the GCC collect2 program. For some
7006 # reason, if we set the COLLECT_NAMES environment variable, the problems
7007 # vanish in a puff of smoke.
7008 if test "X${COLLECT_NAMES+set}" != Xset; then
7010 export COLLECT_NAMES
7015 # Sed substitution that helps us do robust quoting. It backslashifies
7016 # metacharacters that are still active within double-quoted strings.
7017 Xsed='sed -e 1s/^X//'
7018 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7020 # Same as above, but do not quote variable references.
7021 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7023 # Sed substitution to delay expansion of an escaped shell variable in a
7024 # double_quote_subst'ed string.
7025 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7027 # Sed substitution to avoid accidental globbing in evaled expressions
7028 no_glob_subst='s/\*/\\\*/g'
7034 default_ofile=libtool
7035 can_build_shared=yes
7037 # All known linkers require a `.a' archive for static linking (except MSVC,
7038 # which needs '.lib').
7040 ltmain="$ac_aux_dir/ltmain.sh"
7041 ofile="$default_ofile"
7042 with_gnu_ld="$lt_cv_prog_gnu_ld"
7044 if test -n "$ac_tool_prefix"; then
7045 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7046 set dummy ${ac_tool_prefix}ar; ac_word=$2
7047 echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7049 if test "${ac_cv_prog_AR+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 if test -n "$AR"; then
7053 ac_cv_prog_AR="$AR" # Let the user override the test.
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_AR="${ac_tool_prefix}ar"
7063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 if test -n "$AR"; then
7073 echo "$as_me:$LINENO: result: $AR" >&5
7074 echo "${ECHO_T}$AR" >&6
7076 echo "$as_me:$LINENO: result: no" >&5
7077 echo "${ECHO_T}no" >&6
7081 if test -z "$ac_cv_prog_AR"; then
7083 # Extract the first word of "ar", so it can be a program name with args.
7084 set dummy ar; ac_word=$2
7085 echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7087 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 if test -n "$ac_ct_AR"; then
7091 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7100 ac_cv_prog_ac_ct_AR="ar"
7101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7110 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7111 if test -n "$ac_ct_AR"; then
7112 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7113 echo "${ECHO_T}$ac_ct_AR" >&6
7115 echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6
7124 if test -n "$ac_tool_prefix"; then
7125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7127 echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7129 if test "${ac_cv_prog_RANLIB+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 if test -n "$RANLIB"; then
7133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 RANLIB=$ac_cv_prog_RANLIB
7152 if test -n "$RANLIB"; then
7153 echo "$as_me:$LINENO: result: $RANLIB" >&5
7154 echo "${ECHO_T}$RANLIB" >&6
7156 echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6
7161 if test -z "$ac_cv_prog_RANLIB"; then
7162 ac_ct_RANLIB=$RANLIB
7163 # Extract the first word of "ranlib", so it can be a program name with args.
7164 set dummy ranlib; ac_word=$2
7165 echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7167 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 if test -n "$ac_ct_RANLIB"; then
7171 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180 ac_cv_prog_ac_ct_RANLIB="ranlib"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7190 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7191 if test -n "$ac_ct_RANLIB"; then
7192 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7193 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7195 echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6
7199 RANLIB=$ac_ct_RANLIB
7201 RANLIB="$ac_cv_prog_RANLIB"
7204 if test -n "$ac_tool_prefix"; then
7205 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7206 set dummy ${ac_tool_prefix}strip; ac_word=$2
7207 echo "$as_me:$LINENO: checking for $ac_word" >&5
7208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7209 if test "${ac_cv_prog_STRIP+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 if test -n "$STRIP"; then
7213 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7222 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 STRIP=$ac_cv_prog_STRIP
7232 if test -n "$STRIP"; then
7233 echo "$as_me:$LINENO: result: $STRIP" >&5
7234 echo "${ECHO_T}$STRIP" >&6
7236 echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6
7241 if test -z "$ac_cv_prog_STRIP"; then
7243 # Extract the first word of "strip", so it can be a program name with args.
7244 set dummy strip; ac_word=$2
7245 echo "$as_me:$LINENO: checking for $ac_word" >&5
7246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7247 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 if test -n "$ac_ct_STRIP"; then
7251 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7260 ac_cv_prog_ac_ct_STRIP="strip"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7270 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7271 if test -n "$ac_ct_STRIP"; then
7272 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7273 echo "${ECHO_T}$ac_ct_STRIP" >&6
7275 echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6
7281 STRIP="$ac_cv_prog_STRIP"
7286 old_CFLAGS="$CFLAGS"
7288 # Set sane defaults for various variables
7289 test -z "$AR" && AR=ar
7290 test -z "$AR_FLAGS" && AR_FLAGS=cru
7291 test -z "$AS" && AS=as
7292 test -z "$CC" && CC=cc
7293 test -z "$LTCC" && LTCC=$CC
7294 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7295 test -z "$DLLTOOL" && DLLTOOL=dlltool
7296 test -z "$LD" && LD=ld
7297 test -z "$LN_S" && LN_S="ln -s"
7298 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7299 test -z "$NM" && NM=nm
7300 test -z "$SED" && SED=sed
7301 test -z "$OBJDUMP" && OBJDUMP=objdump
7302 test -z "$RANLIB" && RANLIB=:
7303 test -z "$STRIP" && STRIP=:
7304 test -z "$ac_objext" && ac_objext=o
7306 # Determine commands to create old-style static archives.
7307 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7308 old_postinstall_cmds='chmod 644 $oldlib'
7309 old_postuninstall_cmds=
7311 if test -n "$RANLIB"; then
7314 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7317 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7320 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7323 for cc_temp in $compiler""; do
7325 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7326 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7331 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7334 # Only perform the check for file, if the check method requires it
7335 case $deplibs_check_method in
7337 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7338 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7339 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7340 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7348 lt_save_MAGIC_CMD="$MAGIC_CMD"
7349 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7350 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7351 for ac_dir in $ac_dummy; do
7353 test -z "$ac_dir" && ac_dir=.
7354 if test -f $ac_dir/${ac_tool_prefix}file; then
7355 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7356 if test -n "$file_magic_test_file"; then
7357 case $deplibs_check_method in
7359 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7360 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7361 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7362 $EGREP "$file_magic_regex" > /dev/null; then
7367 *** Warning: the command libtool uses to detect shared libraries,
7368 *** $file_magic_cmd, produces output that libtool cannot recognize.
7369 *** The result is that libtool may fail to recognize shared libraries
7370 *** as such. This will affect the creation of libtool libraries that
7371 *** depend on shared libraries, but programs linked with such libtool
7372 *** libraries will work regardless of this problem. Nevertheless, you
7373 *** may want to report the problem to your system manager and/or to
7374 *** bug-libtool@gnu.org
7384 MAGIC_CMD="$lt_save_MAGIC_CMD"
7389 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7390 if test -n "$MAGIC_CMD"; then
7391 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7392 echo "${ECHO_T}$MAGIC_CMD" >&6
7394 echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6
7398 if test -z "$lt_cv_path_MAGIC_CMD"; then
7399 if test -n "$ac_tool_prefix"; then
7400 echo "$as_me:$LINENO: checking for file" >&5
7401 echo $ECHO_N "checking for file... $ECHO_C" >&6
7402 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7410 lt_save_MAGIC_CMD="$MAGIC_CMD"
7411 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7412 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7413 for ac_dir in $ac_dummy; do
7415 test -z "$ac_dir" && ac_dir=.
7416 if test -f $ac_dir/file; then
7417 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7418 if test -n "$file_magic_test_file"; then
7419 case $deplibs_check_method in
7421 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7422 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7423 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7424 $EGREP "$file_magic_regex" > /dev/null; then
7429 *** Warning: the command libtool uses to detect shared libraries,
7430 *** $file_magic_cmd, produces output that libtool cannot recognize.
7431 *** The result is that libtool may fail to recognize shared libraries
7432 *** as such. This will affect the creation of libtool libraries that
7433 *** depend on shared libraries, but programs linked with such libtool
7434 *** libraries will work regardless of this problem. Nevertheless, you
7435 *** may want to report the problem to your system manager and/or to
7436 *** bug-libtool@gnu.org
7446 MAGIC_CMD="$lt_save_MAGIC_CMD"
7451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7452 if test -n "$MAGIC_CMD"; then
7453 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7454 echo "${ECHO_T}$MAGIC_CMD" >&6
7456 echo "$as_me:$LINENO: result: no" >&5
7457 echo "${ECHO_T}no" >&6
7472 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7473 if test "${enable_libtool_lock+set}" = set; then
7474 enableval="$enable_libtool_lock"
7477 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7480 # Check whether --with-pic or --without-pic was given.
7481 if test "${with_pic+set}" = set; then
7487 test -z "$pic_mode" && pic_mode=default
7489 # Use C for the default configuration in the libtool script
7493 ac_cpp='$CPP $CPPFLAGS'
7494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7499 # Source file extension for C test sources.
7502 # Object file extension for compiled C test sources.
7506 # Code to be used in simple compile tests
7507 lt_simple_compile_test_code="int some_variable = 0;\n"
7509 # Code to be used in simple link tests
7510 lt_simple_link_test_code='int main(){return(0);}\n'
7513 # If no C compiler was specified, use CC.
7516 # If no C compiler flags were specified, use CFLAGS.
7517 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7519 # Allow CC to be a program name with arguments.
7523 # save warnings/boilerplate of simple test code
7524 ac_outfile=conftest.$ac_objext
7525 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7526 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7527 _lt_compiler_boilerplate=`cat conftest.err`
7530 ac_outfile=conftest.$ac_objext
7531 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7532 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7533 _lt_linker_boilerplate=`cat conftest.err`
7538 lt_prog_compiler_no_builtin_flag=
7540 if test "$GCC" = yes; then
7541 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7544 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7545 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7546 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 lt_cv_prog_compiler_rtti_exceptions=no
7550 ac_outfile=conftest.$ac_objext
7551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7552 lt_compiler_flag="-fno-rtti -fno-exceptions"
7553 # Insert the option either (1) after the last *FLAGS variable, or
7554 # (2) before a word containing "conftest.", or (3) at the end.
7555 # Note that $ac_compile itself does not contain backslashes and begins
7556 # with a dollar sign (not a hyphen), so the echo should work correctly.
7557 # The option is referenced via a variable to avoid confusing sed.
7558 lt_compile=`echo "$ac_compile" | $SED \
7559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7561 -e 's:$: $lt_compiler_flag:'`
7562 (eval echo "\"\$as_me:7562: $lt_compile\"" >&5)
7563 (eval "$lt_compile" 2>conftest.err)
7565 cat conftest.err >&5
7566 echo "$as_me:7566: \$? = $ac_status" >&5
7567 if (exit $ac_status) && test -s "$ac_outfile"; then
7568 # The compiler can only warn and ignore the option if not recognized
7569 # So say no if there are warnings other than the usual output.
7570 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7572 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7573 lt_cv_prog_compiler_rtti_exceptions=yes
7579 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7580 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7582 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7583 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7590 lt_prog_compiler_wl=
7591 lt_prog_compiler_pic=
7592 lt_prog_compiler_static=
7594 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7595 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7597 if test "$GCC" = yes; then
7598 lt_prog_compiler_wl='-Wl,'
7599 lt_prog_compiler_static='-static'
7603 # All AIX code is PIC.
7604 if test "$host_cpu" = ia64; then
7605 # AIX 5 now supports IA64 processor
7606 lt_prog_compiler_static='-Bstatic'
7611 # FIXME: we need at least 68020 code to build shared libraries, but
7612 # adding the `-m68020' flag to GCC prevents building anything better,
7614 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7617 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7618 # PIC is the default for these OSes.
7621 mingw* | pw32* | os2*)
7622 # This hack is so that the source file can tell whether it is being
7623 # built for inclusion in a dll (and should export symbols for example).
7624 lt_prog_compiler_pic='-DDLL_EXPORT'
7627 darwin* | rhapsody*)
7628 # PIC is the default on this platform
7629 # Common symbols not allowed in MH_DYLIB files
7630 lt_prog_compiler_pic='-fno-common'
7634 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7635 # Instead, we relocate shared libraries at runtime.
7639 # Just because we use GCC doesn't mean we suddenly get shared libraries
7640 # on systems that don't support them.
7641 lt_prog_compiler_can_build_shared=no
7646 if test -d /usr/nec; then
7647 lt_prog_compiler_pic=-Kconform_pic
7652 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7659 lt_prog_compiler_pic='-fPIC'
7665 lt_prog_compiler_pic='-fPIC'
7669 # PORTME Check for flag to pass linker flags through the system compiler.
7672 lt_prog_compiler_wl='-Wl,'
7673 if test "$host_cpu" = ia64; then
7674 # AIX 5 now supports IA64 processor
7675 lt_prog_compiler_static='-Bstatic'
7677 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7681 # PIC is the default on this platform
7682 # Common symbols not allowed in MH_DYLIB files
7683 case $cc_basename in
7685 lt_prog_compiler_pic='-qnocommon'
7686 lt_prog_compiler_wl='-Wl,'
7691 mingw* | pw32* | os2*)
7692 # This hack is so that the source file can tell whether it is being
7693 # built for inclusion in a dll (and should export symbols for example).
7694 lt_prog_compiler_pic='-DDLL_EXPORT'
7697 hpux9* | hpux10* | hpux11*)
7698 lt_prog_compiler_wl='-Wl,'
7699 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7706 lt_prog_compiler_pic='+Z'
7709 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7710 lt_prog_compiler_static='${wl}-a ${wl}archive'
7713 irix5* | irix6* | nonstopux*)
7714 lt_prog_compiler_wl='-Wl,'
7715 # PIC (with -KPIC) is the default.
7716 lt_prog_compiler_static='-non_shared'
7720 lt_prog_compiler_pic='-KPIC'
7721 lt_prog_compiler_static='-Bstatic'
7724 linux* | k*bsd*-gnu)
7725 case $cc_basename in
7727 lt_prog_compiler_wl='-Wl,'
7728 lt_prog_compiler_pic='-KPIC'
7729 lt_prog_compiler_static='-static'
7731 pgcc* | pgf77* | pgf90* | pgf95*)
7732 # Portland Group compilers (*not* the Pentium gcc compiler,
7733 # which looks to be a dead project)
7734 lt_prog_compiler_wl='-Wl,'
7735 lt_prog_compiler_pic='-fpic'
7736 lt_prog_compiler_static='-Bstatic'
7739 lt_prog_compiler_wl='-Wl,'
7740 # All Alpha code is PIC.
7741 lt_prog_compiler_static='-non_shared'
7746 osf3* | osf4* | osf5*)
7747 lt_prog_compiler_wl='-Wl,'
7748 # All OSF/1 code is PIC.
7749 lt_prog_compiler_static='-non_shared'
7753 lt_prog_compiler_pic='-KPIC'
7754 lt_prog_compiler_static='-Bstatic'
7755 case $cc_basename in
7757 lt_prog_compiler_wl='-Qoption ld ';;
7759 lt_prog_compiler_wl='-Wl,';;
7764 lt_prog_compiler_wl='-Qoption ld '
7765 lt_prog_compiler_pic='-PIC'
7766 lt_prog_compiler_static='-Bstatic'
7769 sysv4 | sysv4.2uw2* | sysv4.3*)
7770 lt_prog_compiler_wl='-Wl,'
7771 lt_prog_compiler_pic='-KPIC'
7772 lt_prog_compiler_static='-Bstatic'
7776 if test -d /usr/nec ;then
7777 lt_prog_compiler_pic='-Kconform_pic'
7778 lt_prog_compiler_static='-Bstatic'
7782 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7783 lt_prog_compiler_wl='-Wl,'
7784 lt_prog_compiler_pic='-KPIC'
7785 lt_prog_compiler_static='-Bstatic'
7789 lt_prog_compiler_wl='-Wl,'
7790 lt_prog_compiler_can_build_shared=no
7794 lt_prog_compiler_pic='-pic'
7795 lt_prog_compiler_static='-Bstatic'
7799 lt_prog_compiler_can_build_shared=no
7804 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7805 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7808 # Check to make sure the PIC flag actually works.
7810 if test -n "$lt_prog_compiler_pic"; then
7812 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7813 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7814 if test "${lt_prog_compiler_pic_works+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 lt_prog_compiler_pic_works=no
7818 ac_outfile=conftest.$ac_objext
7819 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7820 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7821 # Insert the option either (1) after the last *FLAGS variable, or
7822 # (2) before a word containing "conftest.", or (3) at the end.
7823 # Note that $ac_compile itself does not contain backslashes and begins
7824 # with a dollar sign (not a hyphen), so the echo should work correctly.
7825 # The option is referenced via a variable to avoid confusing sed.
7826 lt_compile=`echo "$ac_compile" | $SED \
7827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7829 -e 's:$: $lt_compiler_flag:'`
7830 (eval echo "\"\$as_me:7830: $lt_compile\"" >&5)
7831 (eval "$lt_compile" 2>conftest.err)
7833 cat conftest.err >&5
7834 echo "$as_me:7834: \$? = $ac_status" >&5
7835 if (exit $ac_status) && test -s "$ac_outfile"; then
7836 # The compiler can only warn and ignore the option if not recognized
7837 # So say no if there are warnings other than the usual output.
7838 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7840 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7841 lt_prog_compiler_pic_works=yes
7847 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7848 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7850 if test x"$lt_prog_compiler_pic_works" = xyes; then
7851 case $lt_prog_compiler_pic in
7853 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7856 lt_prog_compiler_pic=
7857 lt_prog_compiler_can_build_shared=no
7862 # For platforms which do not support PIC, -DPIC is meaningless:
7864 lt_prog_compiler_pic=
7867 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7872 # Check to make sure the static flag actually works.
7874 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7875 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7876 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7877 if test "${lt_prog_compiler_static_works+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 lt_prog_compiler_static_works=no
7881 save_LDFLAGS="$LDFLAGS"
7882 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7883 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7884 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7885 # The linker can only warn and ignore the option if not recognized
7886 # So say no if there are warnings
7887 if test -s conftest.err; then
7888 # Append any errors to the config.log.
7889 cat conftest.err 1>&5
7890 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7892 if diff conftest.exp conftest.er2 >/dev/null; then
7893 lt_prog_compiler_static_works=yes
7896 lt_prog_compiler_static_works=yes
7900 LDFLAGS="$save_LDFLAGS"
7903 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7904 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7906 if test x"$lt_prog_compiler_static_works" = xyes; then
7909 lt_prog_compiler_static=
7913 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7914 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7915 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 lt_cv_prog_compiler_c_o=no
7919 $rm -r conftest 2>/dev/null
7923 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7925 lt_compiler_flag="-o out/conftest2.$ac_objext"
7926 # Insert the option either (1) after the last *FLAGS variable, or
7927 # (2) before a word containing "conftest.", or (3) at the end.
7928 # Note that $ac_compile itself does not contain backslashes and begins
7929 # with a dollar sign (not a hyphen), so the echo should work correctly.
7930 lt_compile=`echo "$ac_compile" | $SED \
7931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7933 -e 's:$: $lt_compiler_flag:'`
7934 (eval echo "\"\$as_me:7934: $lt_compile\"" >&5)
7935 (eval "$lt_compile" 2>out/conftest.err)
7937 cat out/conftest.err >&5
7938 echo "$as_me:7938: \$? = $ac_status" >&5
7939 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7941 # The compiler can only warn and ignore the option if not recognized
7942 # So say no if there are warnings
7943 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7944 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7945 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7946 lt_cv_prog_compiler_c_o=yes
7951 # SGI C++ compiler will create directory out/ii_files/ for
7952 # template instantiation
7953 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7954 $rm out/* && rmdir out
7960 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7961 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7964 hard_links="nottested"
7965 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7966 # do not overwrite the value of need_locks provided by the user
7967 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7968 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7971 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7973 ln conftest.a conftest.b 2>&5 || hard_links=no
7974 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7975 echo "$as_me:$LINENO: result: $hard_links" >&5
7976 echo "${ECHO_T}$hard_links" >&6
7977 if test "$hard_links" = no; then
7978 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7979 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7986 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7987 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7990 allow_undefined_flag=
7991 enable_shared_with_static_runtimes=no
7993 archive_expsym_cmds=
7994 old_archive_From_new_cmds=
7995 old_archive_from_expsyms_cmds=
7996 export_dynamic_flag_spec=
7997 whole_archive_flag_spec=
7998 thread_safe_flag_spec=
7999 hardcode_libdir_flag_spec=
8000 hardcode_libdir_flag_spec_ld=
8001 hardcode_libdir_separator=
8004 hardcode_shlibpath_var=unsupported
8005 link_all_deplibs=unknown
8006 hardcode_automatic=no
8009 always_export_symbols=no
8010 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8011 # include_expsyms should be a list of space-separated symbols to be *always*
8012 # included in the symbol list
8014 # exclude_expsyms can be an extended regexp of symbols to exclude
8015 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8016 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8017 # as well as any symbol that contains `d'.
8018 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8019 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8020 # platforms (ab)use it in PIC code, but their linkers get confused if
8021 # the symbol is explicitly referenced. Since portable code cannot
8022 # rely on this symbol name, it's probably fine to never include it in
8023 # preloaded symbol tables.
8024 extract_expsyms_cmds=
8025 # Just being paranoid about ensuring that cc_basename is set.
8026 for cc_temp in $compiler""; do
8028 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8029 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8034 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8037 cygwin* | mingw* | pw32*)
8038 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8039 # When not using gcc, we currently assume that we are using
8040 # Microsoft Visual C++.
8041 if test "$GCC" != yes; then
8046 # we just hope/assume this is gcc and not c89 (= MSVC++)
8055 if test "$with_gnu_ld" = yes; then
8056 # If archive_cmds runs LD, not CC, wlarc should be empty
8059 # Set some defaults for GNU ld with shared library support. These
8060 # are reset later if shared libraries are not supported. Putting them
8061 # here allows them to be overridden if necessary.
8062 runpath_var=LD_RUN_PATH
8063 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8064 export_dynamic_flag_spec='${wl}--export-dynamic'
8065 # ancient GNU ld didn't support --whole-archive et. al.
8066 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8067 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8069 whole_archive_flag_spec=
8071 supports_anon_versioning=no
8072 case `$LD -v 2>/dev/null` in
8073 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8074 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8075 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8076 *\ 2.11.*) ;; # other 2.11 versions
8077 *) supports_anon_versioning=yes ;;
8080 # See if GNU ld supports shared libraries.
8082 aix3* | aix4* | aix5*)
8083 # On AIX/PPC, the GNU linker is very broken
8084 if test "$host_cpu" != ia64; then
8088 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8089 *** to be unable to reliably create shared libraries on AIX.
8090 *** Therefore, libtool is disabling shared libraries support. If you
8091 *** really care for shared libraries, you may want to modify your PATH
8092 *** so that a non-GNU linker is found, and then restart.
8099 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)'
8100 hardcode_libdir_flag_spec='-L$libdir'
8101 hardcode_minus_L=yes
8103 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8104 # that the semantics of dynamic libraries on AmigaOS, at least up
8105 # to version 4, is to share data among multiple programs linked
8106 # with the same dynamic library. Since this doesn't match the
8107 # behavior of shared libraries on other platforms, we can't use
8113 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8114 allow_undefined_flag=unsupported
8115 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8116 # support --undefined. This deserves some investigation. FIXME
8117 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8123 cygwin* | mingw* | pw32*)
8124 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8125 # as there is no search path for DLLs.
8126 hardcode_libdir_flag_spec='-L$libdir'
8127 allow_undefined_flag=unsupported
8128 always_export_symbols=no
8129 enable_shared_with_static_runtimes=yes
8130 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8132 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8134 # If the export-symbols file already is a .def file (1st line
8135 # is EXPORTS), use it as is; otherwise, prepend...
8136 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8137 cp $export_symbols $output_objdir/$soname.def;
8139 echo EXPORTS > $output_objdir/$soname.def;
8140 cat $export_symbols >> $output_objdir/$soname.def;
8142 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8150 hardcode_shlibpath_var=no
8151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8152 export_dynamic_flag_spec='${wl}-E'
8153 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8154 # Instead, shared libraries are loaded at an image base (0x10000000 by
8155 # default) and relocated if they conflict, which is a slow very memory
8156 # consuming and fragmenting process. To avoid this, we pick a random,
8157 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8158 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8159 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8160 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'
8163 linux* | k*bsd*-gnu)
8164 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8166 case $cc_basename,$host_cpu in
8167 pgcc*) # Portland Group C compiler
8168 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'
8169 tmp_addflag=' $pic_flag'
8171 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8172 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'
8173 tmp_addflag=' $pic_flag -Mnomain' ;;
8174 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8175 tmp_addflag=' -i_dynamic' ;;
8176 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8177 tmp_addflag=' -i_dynamic -nofor_main' ;;
8178 ifc* | ifort*) # Intel Fortran compiler
8179 tmp_addflag=' -nofor_main' ;;
8181 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8183 if test $supports_anon_versioning = yes; then
8184 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8185 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8186 $echo "local: *; };" >> $output_objdir/$libname.ver~
8187 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8195 netbsd* | netbsdelf*-gnu)
8196 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8197 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8201 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8206 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8210 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8211 *** create shared libraries on Solaris systems. Therefore, libtool
8212 *** is disabling shared libraries support. We urge you to upgrade GNU
8213 *** binutils to release 2.9.1 or newer. Another option is to modify
8214 *** your PATH or compiler configuration so that the native linker is
8215 *** used, and then restart.
8218 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8220 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8226 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8227 case `$LD -v 2>&1` in
8228 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8232 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8233 *** reliably create shared libraries on SCO systems. Therefore, libtool
8234 *** is disabling shared libraries support. We urge you to upgrade GNU
8235 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8236 *** your PATH or compiler configuration so that the native linker is
8237 *** used, and then restart.
8242 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8243 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8245 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8254 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8257 hardcode_shlibpath_var=no
8261 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8263 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8270 if test "$ld_shlibs" = no; then
8272 hardcode_libdir_flag_spec=
8273 export_dynamic_flag_spec=
8274 whole_archive_flag_spec=
8277 # PORTME fill in a description of your system's linker (not GNU ld)
8280 allow_undefined_flag=unsupported
8281 always_export_symbols=yes
8282 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'
8283 # Note: this linker hardcodes the directories in LIBPATH if there
8284 # are no directories specified by -L.
8285 hardcode_minus_L=yes
8286 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8287 # Neither direct hardcoding nor static linking is supported with a
8289 hardcode_direct=unsupported
8294 if test "$host_cpu" = ia64; then
8295 # On IA64, the linker does run time linking by default, so we don't
8296 # have to do anything special.
8297 aix_use_runtimelinking=no
8298 exp_sym_flag='-Bexport'
8301 # If we're using GNU nm, then we don't want the "-C" option.
8302 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8303 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8304 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'
8306 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'
8308 aix_use_runtimelinking=no
8310 # Test if we are trying to use run time linking or normal
8311 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8312 # need to do runtime linking.
8313 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8314 for ld_flag in $LDFLAGS; do
8315 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8316 aix_use_runtimelinking=yes
8323 exp_sym_flag='-bexport'
8324 no_entry_flag='-bnoentry'
8327 # When large executables or shared objects are built, AIX ld can
8328 # have problems creating the table of contents. If linking a library
8329 # or program results in "error TOC overflow" add -mminimal-toc to
8330 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8331 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8335 hardcode_libdir_separator=':'
8336 link_all_deplibs=yes
8338 if test "$GCC" = yes; then
8339 case $host_os in aix4.[012]|aix4.[012].*)
8340 # We only want to do this on AIX 4.2 and lower, the check
8341 # below for broken collect2 doesn't work under 4.3+
8342 collect2name=`${CC} -print-prog-name=collect2`
8343 if test -f "$collect2name" && \
8344 strings "$collect2name" | grep resolve_lib_name >/dev/null
8346 # We have reworked collect2
8349 # We have old collect2
8350 hardcode_direct=unsupported
8351 # It fails to find uninstalled libraries when the uninstalled
8352 # path is not listed in the libpath. Setting hardcode_minus_L
8353 # to unsupported forces relinking
8354 hardcode_minus_L=yes
8355 hardcode_libdir_flag_spec='-L$libdir'
8356 hardcode_libdir_separator=
8360 shared_flag='-shared'
8361 if test "$aix_use_runtimelinking" = yes; then
8362 shared_flag="$shared_flag "'${wl}-G'
8366 if test "$host_cpu" = ia64; then
8367 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8368 # chokes on -Wl,-G. The following line is correct:
8371 if test "$aix_use_runtimelinking" = yes; then
8372 shared_flag='${wl}-G'
8374 shared_flag='${wl}-bM:SRE'
8379 # It seems that -bexpall does not export symbols beginning with
8380 # underscore (_), so it is better to generate a list of symbols to export.
8381 always_export_symbols=yes
8382 if test "$aix_use_runtimelinking" = yes; then
8383 # Warning - without using the other runtime loading flags (-brtl),
8384 # -berok will link without error, but may produce a broken library.
8385 allow_undefined_flag='-berok'
8386 # Determine the default libpath from the value encoded in an empty executable.
8387 cat >conftest.$ac_ext <<_ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8402 rm -f conftest.$ac_objext conftest$ac_exeext
8403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8404 (eval $ac_link) 2>conftest.er1
8406 grep -v '^ *+' conftest.er1 >conftest.err
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } &&
8411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; } &&
8417 { ac_try='test -s conftest$ac_exeext'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8426 # Check for a 64-bit object if we didn't find anything.
8427 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; }
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8434 rm -f conftest.err conftest.$ac_objext \
8435 conftest$ac_exeext conftest.$ac_ext
8436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8438 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8439 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"
8441 if test "$host_cpu" = ia64; then
8442 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8443 allow_undefined_flag="-z nodefs"
8444 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"
8446 # Determine the default libpath from the value encoded in an empty executable.
8447 cat >conftest.$ac_ext <<_ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464 (eval $ac_link) 2>conftest.er1
8466 grep -v '^ *+' conftest.er1 >conftest.err
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
8471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; } &&
8477 { ac_try='test -s conftest$ac_exeext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8486 # Check for a 64-bit object if we didn't find anything.
8487 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; }
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8494 rm -f conftest.err conftest.$ac_objext \
8495 conftest$ac_exeext conftest.$ac_ext
8496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8498 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8499 # Warning - without using the other run time loading flags,
8500 # -berok will link without error, but may produce a broken library.
8501 no_undefined_flag=' ${wl}-bernotok'
8502 allow_undefined_flag=' ${wl}-berok'
8503 # Exported symbols can be pulled into shared objects from archives
8504 whole_archive_flag_spec='$convenience'
8505 archive_cmds_need_lc=yes
8506 # This is similar to how AIX traditionally builds its shared libraries.
8507 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'
8513 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)'
8514 hardcode_libdir_flag_spec='-L$libdir'
8515 hardcode_minus_L=yes
8516 # see comment about different semantics on the GNU ld section
8521 export_dynamic_flag_spec=-rdynamic
8524 cygwin* | mingw* | pw32*)
8525 # When not using gcc, we currently assume that we are using
8526 # Microsoft Visual C++.
8527 # hardcode_libdir_flag_spec is actually meaningless, as there is
8528 # no search path for DLLs.
8529 hardcode_libdir_flag_spec=' '
8530 allow_undefined_flag=unsupported
8531 # Tell ltmain to make .lib files, not .a files.
8533 # Tell ltmain to make .dll files, not .so files.
8535 # FIXME: Setting linknames here is a bad hack.
8536 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8537 # The linker will automatically build a .lib file if we build a DLL.
8538 old_archive_From_new_cmds='true'
8539 # FIXME: Should let the user specify the lib program.
8540 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8541 fix_srcfile_path='`cygpath -w "$srcfile"`'
8542 enable_shared_with_static_runtimes=yes
8545 darwin* | rhapsody*)
8547 rhapsody* | darwin1.[012])
8548 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8551 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8552 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8554 case ${MACOSX_DEPLOYMENT_TARGET} in
8556 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8559 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8565 archive_cmds_need_lc=no
8567 hardcode_automatic=yes
8568 hardcode_shlibpath_var=unsupported
8569 whole_archive_flag_spec=''
8570 link_all_deplibs=yes
8571 if test "$GCC" = yes ; then
8572 output_verbose_link_cmd='echo'
8573 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8574 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8575 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8576 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}'
8577 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}'
8579 case $cc_basename in
8581 output_verbose_link_cmd='echo'
8582 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8583 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8584 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8585 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}'
8586 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8597 hardcode_libdir_flag_spec='-L$libdir'
8598 hardcode_shlibpath_var=no
8605 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8606 # support. Future versions do this automatically, but an explicit c++rt0.o
8607 # does not break anything, and helps significantly (at the cost of a little
8610 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8611 hardcode_libdir_flag_spec='-R$libdir'
8613 hardcode_shlibpath_var=no
8616 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8618 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8620 hardcode_minus_L=yes
8621 hardcode_shlibpath_var=no
8624 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8625 freebsd* | dragonfly*)
8626 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8627 hardcode_libdir_flag_spec='-R$libdir'
8629 hardcode_shlibpath_var=no
8633 if test "$GCC" = yes; then
8634 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'
8636 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'
8638 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8639 hardcode_libdir_separator=:
8642 # hardcode_minus_L: Not really in the search PATH,
8643 # but as the default location of the library.
8644 hardcode_minus_L=yes
8645 export_dynamic_flag_spec='${wl}-E'
8649 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8650 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8652 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8654 if test "$with_gnu_ld" = no; then
8655 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8656 hardcode_libdir_separator=:
8659 export_dynamic_flag_spec='${wl}-E'
8661 # hardcode_minus_L: Not really in the search PATH,
8662 # but as the default location of the library.
8663 hardcode_minus_L=yes
8668 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8671 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8674 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8677 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8683 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8686 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8689 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8693 if test "$with_gnu_ld" = no; then
8694 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8695 hardcode_libdir_separator=:
8699 hardcode_libdir_flag_spec_ld='+b $libdir'
8701 hardcode_shlibpath_var=no
8705 export_dynamic_flag_spec='${wl}-E'
8707 # hardcode_minus_L: Not really in the search PATH,
8708 # but as the default location of the library.
8709 hardcode_minus_L=yes
8715 irix5* | irix6* | nonstopux*)
8716 if test "$GCC" = yes; then
8717 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'
8719 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'
8720 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8723 hardcode_libdir_separator=:
8724 link_all_deplibs=yes
8727 netbsd* | netbsdelf*-gnu)
8728 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8729 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8731 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8733 hardcode_libdir_flag_spec='-R$libdir'
8735 hardcode_shlibpath_var=no
8739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8741 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8742 hardcode_libdir_separator=:
8743 hardcode_shlibpath_var=no
8748 hardcode_shlibpath_var=no
8749 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8751 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8752 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8753 export_dynamic_flag_spec='${wl}-E'
8756 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8758 hardcode_libdir_flag_spec='-R$libdir'
8761 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8762 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8769 hardcode_libdir_flag_spec='-L$libdir'
8770 hardcode_minus_L=yes
8771 allow_undefined_flag=unsupported
8772 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'
8773 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8777 if test "$GCC" = yes; then
8778 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8779 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'
8781 allow_undefined_flag=' -expect_unresolved \*'
8782 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'
8784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8785 hardcode_libdir_separator=:
8788 osf4* | osf5*) # as osf3* with the addition of -msym flag
8789 if test "$GCC" = yes; then
8790 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8791 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'
8792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8794 allow_undefined_flag=' -expect_unresolved \*'
8795 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'
8796 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8797 $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'
8799 # Both c and cxx compiler support -rpath directly
8800 hardcode_libdir_flag_spec='-rpath $libdir'
8802 hardcode_libdir_separator=:
8806 no_undefined_flag=' -z text'
8807 if test "$GCC" = yes; then
8809 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8810 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8811 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8814 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8815 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8816 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8818 hardcode_libdir_flag_spec='-R$libdir'
8819 hardcode_shlibpath_var=no
8821 solaris2.[0-5] | solaris2.[0-5].*) ;;
8823 # The compiler driver will combine linker options so we
8824 # cannot just pass the convience library names through
8825 # without $wl, iff we do not link with $LD.
8826 # Luckily, gcc supports the same syntax we need for Sun Studio.
8827 # Supported since Solaris 2.6 (maybe 2.5.1?)
8830 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8832 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' ;;
8835 link_all_deplibs=yes
8839 if test "x$host_vendor" = xsequent; then
8840 # Use $CC to link under sequent, because it throws in some extra .o
8841 # files that make .init and .fini sections work.
8842 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8844 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8846 hardcode_libdir_flag_spec='-L$libdir'
8848 hardcode_minus_L=yes
8849 hardcode_shlibpath_var=no
8853 case $host_vendor in
8855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8856 hardcode_direct=yes # is this really true???
8859 ## LD is ld it makes a PLAMLIB
8860 ## CC just makes a GrossModule.
8861 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8862 reload_cmds='$CC -r -o $output$reload_objs'
8866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8867 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8870 runpath_var='LD_RUN_PATH'
8871 hardcode_shlibpath_var=no
8875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8876 hardcode_shlibpath_var=no
8877 export_dynamic_flag_spec='-Bexport'
8881 if test -d /usr/nec; then
8882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883 hardcode_shlibpath_var=no
8884 runpath_var=LD_RUN_PATH
8885 hardcode_runpath_var=yes
8890 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8891 no_undefined_flag='${wl}-z,text'
8892 archive_cmds_need_lc=no
8893 hardcode_shlibpath_var=no
8894 runpath_var='LD_RUN_PATH'
8896 if test "$GCC" = yes; then
8897 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8898 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8900 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8901 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8905 sysv5* | sco3.2v5* | sco5v6*)
8906 # Note: We can NOT use -z defs as we might desire, because we do not
8907 # link with -lc, and that would cause any symbols used from libc to
8908 # always be unresolved, which means just about no library would
8909 # ever link correctly. If we're not using GNU ld we use -z text
8910 # though, which does catch some bad symbols but isn't as heavy-handed
8912 no_undefined_flag='${wl}-z,text'
8913 allow_undefined_flag='${wl}-z,nodefs'
8914 archive_cmds_need_lc=no
8915 hardcode_shlibpath_var=no
8916 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8917 hardcode_libdir_separator=':'
8918 link_all_deplibs=yes
8919 export_dynamic_flag_spec='${wl}-Bexport'
8920 runpath_var='LD_RUN_PATH'
8922 if test "$GCC" = yes; then
8923 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8924 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8926 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8927 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933 hardcode_libdir_flag_spec='-L$libdir'
8934 hardcode_shlibpath_var=no
8943 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8944 echo "${ECHO_T}$ld_shlibs" >&6
8945 test "$ld_shlibs" = no && can_build_shared=no
8948 # Do we need to explicitly link libc?
8950 case "x$archive_cmds_need_lc" in
8952 # Assume -lc should be added
8953 archive_cmds_need_lc=yes
8955 if test "$enable_shared" = yes && test "$GCC" = yes; then
8956 case $archive_cmds in
8958 # FIXME: we may have to deal with multi-command sequences.
8961 # Test whether the compiler implicitly links with -lc since on some
8962 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8963 # to ld, don't add -lc before -lgcc.
8964 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8965 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8967 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8970 (eval $ac_compile) 2>&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } 2>conftest.err; then
8976 libobjs=conftest.$ac_objext
8978 wl=$lt_prog_compiler_wl
8979 pic_flag=$lt_prog_compiler_pic
8985 lt_save_allow_undefined_flag=$allow_undefined_flag
8986 allow_undefined_flag=
8987 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8988 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }
8993 archive_cmds_need_lc=no
8995 archive_cmds_need_lc=yes
8997 allow_undefined_flag=$lt_save_allow_undefined_flag
8999 cat conftest.err 1>&5
9002 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9003 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9010 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9011 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9013 libname_spec='lib$name'
9021 shlibpath_overrides_runpath=unknown
9023 dynamic_linker="$host_os ld.so"
9024 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9025 if test "$GCC" = yes; then
9026 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9027 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9028 # if the path contains ";" then we assume it to be the separator
9029 # otherwise default to the standard path separator (i.e. ":") - it is
9030 # assumed that no part of a normal pathname contains ";" but that should
9031 # okay in the real world where ";" in dirpaths is itself problematic.
9032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9037 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9039 need_lib_prefix=unknown
9040 hardcode_into_libs=no
9042 # when you set need_version to no, make sure it does not cause -set_version
9043 # flags to be left without arguments
9044 need_version=unknown
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9050 shlibpath_var=LIBPATH
9052 # AIX 3 has no versioning support, so we append a major version to the name.
9053 soname_spec='${libname}${release}${shared_ext}$major'
9060 hardcode_into_libs=yes
9061 if test "$host_cpu" = ia64; then
9062 # AIX 5 supports IA64
9063 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9064 shlibpath_var=LD_LIBRARY_PATH
9066 # With GCC up to 2.95.x, collect2 would create an import file
9067 # for dependence libraries. The import file would start with
9068 # the line `#! .'. This would cause the generated library to
9069 # depend on `.', always an invalid library. This was fixed in
9070 # development snapshots of GCC prior to 3.0.
9072 aix4 | aix4.[01] | aix4.[01].*)
9073 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9075 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9082 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9083 # soname into executable. Probably we can add versioning support to
9084 # collect2, so additional links can be useful in future.
9085 if test "$aix_use_runtimelinking" = yes; then
9086 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9087 # instead of lib<name>.a to let people know that these are not
9088 # typical AIX shared libraries.
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091 # We preserve .a as extension for shared libraries through AIX4.2
9092 # and later when we are not doing run time linking.
9093 library_names_spec='${libname}${release}.a $libname.a'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9096 shlibpath_var=LIBPATH
9101 library_names_spec='$libname.ixlibrary $libname.a'
9102 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9103 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'
9107 library_names_spec='${libname}${shared_ext}'
9108 dynamic_linker="$host_os ld.so"
9109 shlibpath_var=LIBRARY_PATH
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9120 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9121 # the default ld.so.conf also contains /usr/contrib/lib and
9122 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9123 # libtool to hard-code these into programs
9126 cygwin* | mingw* | pw32*)
9127 version_type=windows
9132 case $GCC,$host_os in
9133 yes,cygwin* | yes,mingw* | yes,pw32*)
9134 library_names_spec='$libname.dll.a'
9135 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9136 postinstall_cmds='base_file=`basename \${file}`~
9137 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9138 dldir=$destdir/`dirname \$dlpath`~
9139 test -d \$dldir || mkdir -p \$dldir~
9140 $install_prog $dir/$dlname \$dldir/$dlname~
9141 chmod a+x \$dldir/$dlname'
9142 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9143 dlpath=$dir/\$dldll~
9145 shlibpath_overrides_runpath=yes
9149 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9150 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9151 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9154 # MinGW DLLs use traditional 'lib' prefix
9155 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9156 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9157 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9158 # It is most probably a Windows format PATH printed by
9159 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9160 # path with ; separators, and with drive letters. We can handle the
9161 # drive letters (cygwin fileutils understands them), so leave them,
9162 # especially as we might pass files found there to a mingw objdump,
9163 # which wouldn't understand a cygwinified path. Ahh.
9164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9170 # pw32 DLLs use 'pw' prefix rather than 'lib'
9171 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9177 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9180 dynamic_linker='Win32 ld.exe'
9181 # FIXME: first we should search . and the directory the executable is in
9185 darwin* | rhapsody*)
9186 dynamic_linker="$host_os dyld"
9190 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9191 soname_spec='${libname}${release}${major}$shared_ext'
9192 shlibpath_overrides_runpath=yes
9193 shlibpath_var=DYLD_LIBRARY_PATH
9194 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9195 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9196 if test "$GCC" = yes; then
9197 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"`
9199 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9201 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 shlibpath_var=LD_LIBRARY_PATH
9217 freebsd* | dragonfly*)
9218 # DragonFly does not have aout. When/if they implement a new
9219 # versioning mechanism, adjust this.
9220 if test -x /usr/bin/objformat; then
9221 objformat=`/usr/bin/objformat`
9224 freebsd[123]*) objformat=aout ;;
9228 version_type=freebsd-$objformat
9229 case $version_type in
9231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9240 shlibpath_var=LD_LIBRARY_PATH
9243 shlibpath_overrides_runpath=yes
9245 freebsd3.[01]* | freebsdelf3.[01]*)
9246 shlibpath_overrides_runpath=yes
9247 hardcode_into_libs=yes
9249 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9250 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9251 shlibpath_overrides_runpath=no
9252 hardcode_into_libs=yes
9254 freebsd*) # from 4.6 on
9255 shlibpath_overrides_runpath=yes
9256 hardcode_into_libs=yes
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9266 soname_spec='${libname}${release}${shared_ext}$major'
9267 shlibpath_var=LD_LIBRARY_PATH
9268 hardcode_into_libs=yes
9271 hpux9* | hpux10* | hpux11*)
9272 # Give a soname corresponding to the major version so that dld.sl refuses to
9273 # link against other versions.
9280 hardcode_into_libs=yes
9281 dynamic_linker="$host_os dld.so"
9282 shlibpath_var=LD_LIBRARY_PATH
9283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285 soname_spec='${libname}${release}${shared_ext}$major'
9286 if test "X$HPUX_IA64_MODE" = X32; then
9287 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9289 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9295 hardcode_into_libs=yes
9296 dynamic_linker="$host_os dld.sl"
9297 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9298 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9300 soname_spec='${libname}${release}${shared_ext}$major'
9301 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9302 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9306 dynamic_linker="$host_os dld.sl"
9307 shlibpath_var=SHLIB_PATH
9308 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310 soname_spec='${libname}${release}${shared_ext}$major'
9313 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9314 postinstall_cmds='chmod 555 $lib'
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9322 soname_spec='${libname}${release}${shared_ext}$major'
9323 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9324 shlibpath_var=LD_LIBRARY_PATH
9325 shlibpath_overrides_runpath=no
9326 hardcode_into_libs=yes
9329 irix5* | irix6* | nonstopux*)
9331 nonstopux*) version_type=nonstopux ;;
9333 if test "$lt_cv_prog_gnu_ld" = yes; then
9341 soname_spec='${libname}${release}${shared_ext}$major'
9342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9344 irix5* | nonstopux*)
9348 case $LD in # libtool.m4 will add one of these switches to LD
9349 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9350 libsuff= shlibsuff= libmagic=32-bit;;
9351 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9352 libsuff=32 shlibsuff=N32 libmagic=N32;;
9353 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9354 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9355 *) libsuff= shlibsuff= libmagic=never-match;;
9359 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9360 shlibpath_overrides_runpath=no
9361 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9362 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9363 hardcode_into_libs=yes
9366 # No shared lib support for Linux oldld, aout, or coff.
9367 linux*oldld* | linux*aout* | linux*coff*)
9371 # This must be Linux ELF.
9372 linux* | k*bsd*-gnu)
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377 soname_spec='${libname}${release}${shared_ext}$major'
9378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9379 shlibpath_var=LD_LIBRARY_PATH
9380 shlibpath_overrides_runpath=no
9381 # This implies no fast_install, which is unacceptable.
9382 # Some rework will be needed to allow for fast_install
9383 # before this can be enabled.
9384 hardcode_into_libs=yes
9386 # Append ld.so.conf contents to the search path
9387 if test -f /etc/ld.so.conf; then
9388 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' ' '`
9389 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9392 # We used to test for /lib/ld.so.1 and disable shared libraries on
9393 # powerpc, because MkLinux only supported shared libraries with the
9394 # GNU dynamic linker. Since this was broken with cross compilers,
9395 # most powerpc-linux boxes support dynamic linking these days and
9396 # people can always --disable-shared, the test was removed, and we
9397 # assume the GNU/Linux dynamic linker is in use.
9398 dynamic_linker='GNU/Linux ld.so'
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 shlibpath_var=LD_LIBRARY_PATH
9408 shlibpath_overrides_runpath=no
9409 hardcode_into_libs=yes
9410 dynamic_linker='NetBSD ld.elf_so'
9417 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9420 dynamic_linker='NetBSD (a.out) ld.so'
9422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9423 soname_spec='${libname}${release}${shared_ext}$major'
9424 dynamic_linker='NetBSD ld.elf_so'
9426 shlibpath_var=LD_LIBRARY_PATH
9427 shlibpath_overrides_runpath=yes
9428 hardcode_into_libs=yes
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434 shlibpath_var=LD_LIBRARY_PATH
9435 shlibpath_overrides_runpath=yes
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9443 soname_spec='${libname}${release}${shared_ext}$major'
9444 shlibpath_var=LD_LIBRARY_PATH
9445 shlibpath_overrides_runpath=yes
9450 sys_lib_dlsearch_path_spec="/usr/lib"
9452 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9454 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9455 *) need_version=no ;;
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9459 shlibpath_var=LD_LIBRARY_PATH
9460 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9462 openbsd2.[89] | openbsd2.[89].*)
9463 shlibpath_overrides_runpath=no
9466 shlibpath_overrides_runpath=yes
9470 shlibpath_overrides_runpath=yes
9475 libname_spec='$name'
9478 library_names_spec='$libname${shared_ext} $libname.a'
9479 dynamic_linker='OS/2 ld.exe'
9480 shlibpath_var=LIBPATH
9483 osf3* | osf4* | osf5*)
9487 soname_spec='${libname}${release}${shared_ext}$major'
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9489 shlibpath_var=LD_LIBRARY_PATH
9490 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9491 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9499 soname_spec='${libname}${release}${shared_ext}$major'
9500 shlibpath_var=LD_LIBRARY_PATH
9501 shlibpath_overrides_runpath=yes
9502 hardcode_into_libs=yes
9503 # ldd complains unless libraries are executable
9504 postinstall_cmds='chmod +x $lib'
9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9510 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9511 shlibpath_var=LD_LIBRARY_PATH
9512 shlibpath_overrides_runpath=yes
9513 if test "$with_gnu_ld" = yes; then
9521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9522 soname_spec='${libname}${release}${shared_ext}$major'
9523 shlibpath_var=LD_LIBRARY_PATH
9524 case $host_vendor in
9526 shlibpath_overrides_runpath=no
9528 export_dynamic_flag_spec='${wl}-Blargedynsym'
9529 runpath_var=LD_RUN_PATH
9537 shlibpath_overrides_runpath=no
9538 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9544 if test -d /usr/nec ;then
9546 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9547 soname_spec='$libname${shared_ext}.$major'
9548 shlibpath_var=LD_LIBRARY_PATH
9552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9553 version_type=freebsd-elf
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9557 soname_spec='${libname}${release}${shared_ext}$major'
9558 shlibpath_var=LD_LIBRARY_PATH
9559 hardcode_into_libs=yes
9560 if test "$with_gnu_ld" = yes; then
9561 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9562 shlibpath_overrides_runpath=no
9564 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9565 shlibpath_overrides_runpath=yes
9568 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9572 sys_lib_dlsearch_path_spec='/usr/lib'
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578 soname_spec='${libname}${release}${shared_ext}$major'
9579 shlibpath_var=LD_LIBRARY_PATH
9586 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9587 echo "${ECHO_T}$dynamic_linker" >&6
9588 test "$dynamic_linker" = no && can_build_shared=no
9590 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9591 if test "$GCC" = yes; then
9592 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9595 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9596 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9598 if test -n "$hardcode_libdir_flag_spec" || \
9599 test -n "$runpath_var" || \
9600 test "X$hardcode_automatic" = "Xyes" ; then
9602 # We can hardcode non-existant directories.
9603 if test "$hardcode_direct" != no &&
9604 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9605 # have to relink, otherwise we might link with an installed library
9606 # when we should be linking with a yet-to-be-installed one
9607 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9608 test "$hardcode_minus_L" != no; then
9609 # Linking always hardcodes the temporary library directory.
9610 hardcode_action=relink
9612 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9613 hardcode_action=immediate
9616 # We cannot hardcode anything, or else we can only hardcode existing
9618 hardcode_action=unsupported
9620 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9621 echo "${ECHO_T}$hardcode_action" >&6
9623 if test "$hardcode_action" = relink; then
9624 # Fast installation is not supported
9625 enable_fast_install=no
9626 elif test "$shlibpath_overrides_runpath" = yes ||
9627 test "$enable_shared" = no; then
9628 # Fast installation is not necessary
9629 enable_fast_install=needless
9634 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9635 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9636 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9637 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9638 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9639 echo "$as_me:$LINENO: result: yes" >&5
9640 echo "${ECHO_T}yes" >&6
9642 # FIXME - insert some real tests, host_os isn't really good enough
9645 if test -n "$STRIP" ; then
9646 striplib="$STRIP -x"
9647 echo "$as_me:$LINENO: result: yes" >&5
9648 echo "${ECHO_T}yes" >&6
9650 echo "$as_me:$LINENO: result: no" >&5
9651 echo "${ECHO_T}no" >&6
9655 echo "$as_me:$LINENO: result: no" >&5
9656 echo "${ECHO_T}no" >&6
9661 if test "x$enable_dlopen" != xyes; then
9662 enable_dlopen=unknown
9663 enable_dlopen_self=unknown
9664 enable_dlopen_self_static=unknown
9671 lt_cv_dlopen="load_add_on"
9673 lt_cv_dlopen_self=yes
9677 lt_cv_dlopen="LoadLibrary"
9682 lt_cv_dlopen="dlopen"
9687 # if libdl is installed we need to link against it
9688 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9689 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9690 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 ac_check_lib_save_LIBS=$LIBS
9695 cat >conftest.$ac_ext <<_ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9702 /* Override any gcc2 internal prototype to avoid an error. */
9706 /* We use char because int might match the return type of a gcc2
9707 builtin and then its argument prototype would still apply. */
9717 rm -f conftest.$ac_objext conftest$ac_exeext
9718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9719 (eval $ac_link) 2>conftest.er1
9721 grep -v '^ *+' conftest.er1 >conftest.err
9723 cat conftest.err >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); } &&
9726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; } &&
9732 { ac_try='test -s conftest$ac_exeext'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9738 ac_cv_lib_dl_dlopen=yes
9740 echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9743 ac_cv_lib_dl_dlopen=no
9745 rm -f conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
9747 LIBS=$ac_check_lib_save_LIBS
9749 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9750 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9751 if test $ac_cv_lib_dl_dlopen = yes; then
9752 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9757 lt_cv_dlopen_self=yes
9764 echo "$as_me:$LINENO: checking for shl_load" >&5
9765 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9766 if test "${ac_cv_func_shl_load+set}" = set; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9769 cat >conftest.$ac_ext <<_ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9775 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9777 #define shl_load innocuous_shl_load
9779 /* System header to define __stub macros and hopefully few prototypes,
9780 which can conflict with char shl_load (); below.
9781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9782 <limits.h> exists even on freestanding compilers. */
9785 # include <limits.h>
9787 # include <assert.h>
9792 /* Override any gcc2 internal prototype to avoid an error. */
9797 /* We use char because int might match the return type of a gcc2
9798 builtin and then its argument prototype would still apply. */
9800 /* The GNU C library defines this for functions which it implements
9801 to always fail with ENOSYS. Some functions are actually named
9802 something starting with __ and the normal name is an alias. */
9803 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9806 char (*f) () = shl_load;
9815 return f != shl_load;
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822 (eval $ac_link) 2>conftest.er1
9824 grep -v '^ *+' conftest.er1 >conftest.err
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest$ac_exeext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_cv_func_shl_load=yes
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9846 ac_cv_func_shl_load=no
9848 rm -f conftest.err conftest.$ac_objext \
9849 conftest$ac_exeext conftest.$ac_ext
9851 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9852 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9853 if test $ac_cv_func_shl_load = yes; then
9854 lt_cv_dlopen="shl_load"
9856 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9857 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9858 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 ac_check_lib_save_LIBS=$LIBS
9863 cat >conftest.$ac_ext <<_ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h. */
9870 /* Override any gcc2 internal prototype to avoid an error. */
9874 /* We use char because int might match the return type of a gcc2
9875 builtin and then its argument prototype would still apply. */
9885 rm -f conftest.$ac_objext conftest$ac_exeext
9886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9887 (eval $ac_link) 2>conftest.er1
9889 grep -v '^ *+' conftest.er1 >conftest.err
9891 cat conftest.err >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } &&
9894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; } &&
9900 { ac_try='test -s conftest$ac_exeext'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
9906 ac_cv_lib_dld_shl_load=yes
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9911 ac_cv_lib_dld_shl_load=no
9913 rm -f conftest.err conftest.$ac_objext \
9914 conftest$ac_exeext conftest.$ac_ext
9915 LIBS=$ac_check_lib_save_LIBS
9917 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9918 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9919 if test $ac_cv_lib_dld_shl_load = yes; then
9920 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9922 echo "$as_me:$LINENO: checking for dlopen" >&5
9923 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9924 if test "${ac_cv_func_dlopen+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 cat >conftest.$ac_ext <<_ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h. */
9933 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9935 #define dlopen innocuous_dlopen
9937 /* System header to define __stub macros and hopefully few prototypes,
9938 which can conflict with char dlopen (); below.
9939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9940 <limits.h> exists even on freestanding compilers. */
9943 # include <limits.h>
9945 # include <assert.h>
9950 /* Override any gcc2 internal prototype to avoid an error. */
9955 /* We use char because int might match the return type of a gcc2
9956 builtin and then its argument prototype would still apply. */
9958 /* The GNU C library defines this for functions which it implements
9959 to always fail with ENOSYS. Some functions are actually named
9960 something starting with __ and the normal name is an alias. */
9961 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9964 char (*f) () = dlopen;
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980 (eval $ac_link) 2>conftest.er1
9982 grep -v '^ *+' conftest.er1 >conftest.err
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } &&
9987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; } &&
9993 { ac_try='test -s conftest$ac_exeext'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; }; then
9999 ac_cv_func_dlopen=yes
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10004 ac_cv_func_dlopen=no
10006 rm -f conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10009 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10010 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10011 if test $ac_cv_func_dlopen = yes; then
10012 lt_cv_dlopen="dlopen"
10014 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10015 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10016 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 ac_check_lib_save_LIBS=$LIBS
10021 cat >conftest.$ac_ext <<_ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10028 /* Override any gcc2 internal prototype to avoid an error. */
10032 /* We use char because int might match the return type of a gcc2
10033 builtin and then its argument prototype would still apply. */
10043 rm -f conftest.$ac_objext conftest$ac_exeext
10044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10045 (eval $ac_link) 2>conftest.er1
10047 grep -v '^ *+' conftest.er1 >conftest.err
10049 cat conftest.err >&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; } &&
10058 { ac_try='test -s conftest$ac_exeext'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10064 ac_cv_lib_dl_dlopen=yes
10066 echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10069 ac_cv_lib_dl_dlopen=no
10071 rm -f conftest.err conftest.$ac_objext \
10072 conftest$ac_exeext conftest.$ac_ext
10073 LIBS=$ac_check_lib_save_LIBS
10075 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10076 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10077 if test $ac_cv_lib_dl_dlopen = yes; then
10078 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10080 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10081 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10082 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10085 ac_check_lib_save_LIBS=$LIBS
10086 LIBS="-lsvld $LIBS"
10087 cat >conftest.$ac_ext <<_ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10094 /* Override any gcc2 internal prototype to avoid an error. */
10098 /* We use char because int might match the return type of a gcc2
10099 builtin and then its argument prototype would still apply. */
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10111 (eval $ac_link) 2>conftest.er1
10113 grep -v '^ *+' conftest.er1 >conftest.err
10115 cat conftest.err >&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } &&
10118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; } &&
10124 { ac_try='test -s conftest$ac_exeext'
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; }; then
10130 ac_cv_lib_svld_dlopen=yes
10132 echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10135 ac_cv_lib_svld_dlopen=no
10137 rm -f conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10139 LIBS=$ac_check_lib_save_LIBS
10141 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10142 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10143 if test $ac_cv_lib_svld_dlopen = yes; then
10144 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10146 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10147 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10148 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 ac_check_lib_save_LIBS=$LIBS
10153 cat >conftest.$ac_ext <<_ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h. */
10160 /* Override any gcc2 internal prototype to avoid an error. */
10164 /* We use char because int might match the return type of a gcc2
10165 builtin and then its argument prototype would still apply. */
10175 rm -f conftest.$ac_objext conftest$ac_exeext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177 (eval $ac_link) 2>conftest.er1
10179 grep -v '^ *+' conftest.er1 >conftest.err
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186 (eval $ac_try) 2>&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; } &&
10190 { ac_try='test -s conftest$ac_exeext'
10191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; }; then
10196 ac_cv_lib_dld_dld_link=yes
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10201 ac_cv_lib_dld_dld_link=no
10203 rm -f conftest.err conftest.$ac_objext \
10204 conftest$ac_exeext conftest.$ac_ext
10205 LIBS=$ac_check_lib_save_LIBS
10207 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10208 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10209 if test $ac_cv_lib_dld_dld_link = yes; then
10210 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10231 if test "x$lt_cv_dlopen" != xno; then
10237 case $lt_cv_dlopen in
10239 save_CPPFLAGS="$CPPFLAGS"
10240 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10242 save_LDFLAGS="$LDFLAGS"
10243 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10246 LIBS="$lt_cv_dlopen_libs $LIBS"
10248 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10249 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10250 if test "${lt_cv_dlopen_self+set}" = set; then
10251 echo $ECHO_N "(cached) $ECHO_C" >&6
10253 if test "$cross_compiling" = yes; then :
10254 lt_cv_dlopen_self=cross
10256 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10257 lt_status=$lt_dlunknown
10258 cat > conftest.$ac_ext <<EOF
10259 #line 10259 "configure"
10260 #include "confdefs.h"
10269 # define LT_DLGLOBAL RTLD_GLOBAL
10272 # define LT_DLGLOBAL DL_GLOBAL
10274 # define LT_DLGLOBAL 0
10278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10279 find out it does not work in some platform. */
10280 #ifndef LT_DLLAZY_OR_NOW
10282 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10285 # define LT_DLLAZY_OR_NOW DL_LAZY
10288 # define LT_DLLAZY_OR_NOW RTLD_NOW
10291 # define LT_DLLAZY_OR_NOW DL_NOW
10293 # define LT_DLLAZY_OR_NOW 0
10301 extern "C" void exit (int);
10304 void fnord() { int i=42;}
10307 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10308 int status = $lt_dlunknown;
10312 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10313 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10314 /* dlclose (self); */
10322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10323 (eval $ac_link) 2>&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10327 (./conftest; exit; ) >&5 2>/dev/null
10329 case x$lt_status in
10330 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10331 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10332 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10335 # compilation failed
10336 lt_cv_dlopen_self=no
10343 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10344 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10346 if test "x$lt_cv_dlopen_self" = xyes; then
10347 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10348 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10349 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10350 if test "${lt_cv_dlopen_self_static+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 if test "$cross_compiling" = yes; then :
10354 lt_cv_dlopen_self_static=cross
10356 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10357 lt_status=$lt_dlunknown
10358 cat > conftest.$ac_ext <<EOF
10359 #line 10359 "configure"
10360 #include "confdefs.h"
10369 # define LT_DLGLOBAL RTLD_GLOBAL
10372 # define LT_DLGLOBAL DL_GLOBAL
10374 # define LT_DLGLOBAL 0
10378 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10379 find out it does not work in some platform. */
10380 #ifndef LT_DLLAZY_OR_NOW
10382 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10385 # define LT_DLLAZY_OR_NOW DL_LAZY
10388 # define LT_DLLAZY_OR_NOW RTLD_NOW
10391 # define LT_DLLAZY_OR_NOW DL_NOW
10393 # define LT_DLLAZY_OR_NOW 0
10401 extern "C" void exit (int);
10404 void fnord() { int i=42;}
10407 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10408 int status = $lt_dlunknown;
10412 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10413 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10414 /* dlclose (self); */
10422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10423 (eval $ac_link) 2>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10427 (./conftest; exit; ) >&5 2>/dev/null
10429 case x$lt_status in
10430 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10431 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10432 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10435 # compilation failed
10436 lt_cv_dlopen_self_static=no
10443 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10444 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10447 CPPFLAGS="$save_CPPFLAGS"
10448 LDFLAGS="$save_LDFLAGS"
10453 case $lt_cv_dlopen_self in
10454 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10455 *) enable_dlopen_self=unknown ;;
10458 case $lt_cv_dlopen_self_static in
10459 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10460 *) enable_dlopen_self_static=unknown ;;
10465 # Report which library types will actually be built
10466 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10467 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10468 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10469 echo "${ECHO_T}$can_build_shared" >&6
10471 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10472 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10473 test "$can_build_shared" = "no" && enable_shared=no
10475 # On AIX, shared libraries and static libraries use the same namespace, and
10476 # are all built from PIC.
10479 test "$enable_shared" = yes && enable_static=no
10480 if test -n "$RANLIB"; then
10481 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10482 postinstall_cmds='$RANLIB $lib'
10487 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10488 test "$enable_shared" = yes && enable_static=no
10492 echo "$as_me:$LINENO: result: $enable_shared" >&5
10493 echo "${ECHO_T}$enable_shared" >&6
10495 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10496 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10497 # Make sure either enable_shared or enable_static is yes.
10498 test "$enable_shared" = yes || enable_static=yes
10499 echo "$as_me:$LINENO: result: $enable_static" >&5
10500 echo "${ECHO_T}$enable_static" >&6
10502 # The else clause should only fire when bootstrapping the
10503 # libtool distribution, otherwise you forgot to ship ltmain.sh
10504 # with your package, and you will get complaints that there are
10505 # no rules to generate ltmain.sh.
10506 if test -f "$ltmain"; then
10507 # See if we are running on zsh, and set the options which allow our commands through
10508 # without removal of \ escapes.
10509 if test -n "${ZSH_VERSION+set}" ; then
10510 setopt NO_GLOB_SUBST
10512 # Now quote all the things that may contain metacharacters while being
10513 # careful not to overquote the AC_SUBSTed values. We take copies of the
10514 # variables and quote the copies for generation of the libtool script.
10515 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10517 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10518 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10519 deplibs_check_method reload_flag reload_cmds need_locks \
10520 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10521 lt_cv_sys_global_symbol_to_c_name_address \
10522 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10523 old_postinstall_cmds old_postuninstall_cmds \
10527 lt_prog_compiler_wl \
10528 lt_prog_compiler_pic \
10529 lt_prog_compiler_static \
10530 lt_prog_compiler_no_builtin_flag \
10531 export_dynamic_flag_spec \
10532 thread_safe_flag_spec \
10533 whole_archive_flag_spec \
10534 enable_shared_with_static_runtimes \
10536 old_archive_from_new_cmds \
10541 compiler_lib_search_path \
10543 archive_expsym_cmds \
10545 postuninstall_cmds \
10546 old_archive_from_expsyms_cmds \
10547 allow_undefined_flag \
10548 no_undefined_flag \
10549 export_symbols_cmds \
10550 hardcode_libdir_flag_spec \
10551 hardcode_libdir_flag_spec_ld \
10552 hardcode_libdir_separator \
10553 hardcode_automatic \
10555 module_expsym_cmds \
10556 lt_cv_prog_compiler_c_o \
10558 include_expsyms; do
10561 old_archive_cmds | \
10562 old_archive_from_new_cmds | \
10564 archive_expsym_cmds | \
10566 module_expsym_cmds | \
10567 old_archive_from_expsyms_cmds | \
10568 export_symbols_cmds | \
10569 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10570 postinstall_cmds | postuninstall_cmds | \
10571 old_postinstall_cmds | old_postuninstall_cmds | \
10572 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10573 # Double-quote double-evaled strings.
10574 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10577 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10583 *'\$0 --fallback-echo"')
10584 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10588 cfgfile="${ofile}T"
10589 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10591 { echo "$as_me:$LINENO: creating $ofile" >&5
10592 echo "$as_me: creating $ofile" >&6;}
10594 cat <<__EOF__ >> "$cfgfile"
10597 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10598 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10599 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10601 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10602 # Free Software Foundation, Inc.
10604 # This file is part of GNU Libtool:
10605 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10607 # This program is free software; you can redistribute it and/or modify
10608 # it under the terms of the GNU General Public License as published by
10609 # the Free Software Foundation; either version 2 of the License, or
10610 # (at your option) any later version.
10612 # This program is distributed in the hope that it will be useful, but
10613 # WITHOUT ANY WARRANTY; without even the implied warranty of
10614 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10615 # General Public License for more details.
10617 # You should have received a copy of the GNU General Public License
10618 # along with this program; if not, write to the Free Software
10619 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10621 # As a special exception to the GNU General Public License, if you
10622 # distribute this file as part of a program that contains a
10623 # configuration script generated by Autoconf, you may include it under
10624 # the same distribution terms that you use for the rest of that program.
10626 # A sed program that does not truncate output.
10629 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10630 Xsed="$SED -e 1s/^X//"
10632 # The HP-UX ksh and POSIX shell print the target directory to stdout
10633 # if CDPATH is set.
10634 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10636 # The names of the tagged configurations supported by this script.
10639 # ### BEGIN LIBTOOL CONFIG
10641 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10643 # Shell to use when invoking shell scripts.
10646 # Whether or not to build shared libraries.
10647 build_libtool_libs=$enable_shared
10649 # Whether or not to build static libraries.
10650 build_old_libs=$enable_static
10652 # Whether or not to add -lc for building shared libraries.
10653 build_libtool_need_lc=$archive_cmds_need_lc
10655 # Whether or not to disallow shared libs when runtime libs are static
10656 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10658 # Whether or not to optimize for fast installation.
10659 fast_install=$enable_fast_install
10662 host_alias=$host_alias
10666 # The build system.
10667 build_alias=$build_alias
10671 # An echo program that does not interpret backslashes.
10676 AR_FLAGS=$lt_AR_FLAGS
10681 # LTCC compiler flags.
10682 LTCFLAGS=$lt_LTCFLAGS
10684 # A language-specific compiler.
10687 # Is the compiler the GNU C compiler?
10693 # The linker used to build libraries.
10696 # Whether we need hard or soft links.
10699 # A BSD-compatible nm program.
10702 # A symbol stripping program
10705 # Used to examine libraries when file_magic_cmd begins "file"
10706 MAGIC_CMD=$MAGIC_CMD
10708 # Used on cygwin: DLL creation program.
10711 # Used on cygwin: object dumper.
10714 # Used on cygwin: assembler.
10717 # The name of the directory that contains temporary libtool files.
10720 # How to create reloadable object files.
10721 reload_flag=$lt_reload_flag
10722 reload_cmds=$lt_reload_cmds
10724 # How to pass a linker flag through the compiler.
10725 wl=$lt_lt_prog_compiler_wl
10727 # Object file suffix (normally "o").
10728 objext="$ac_objext"
10730 # Old archive suffix (normally "a").
10733 # Shared library suffix (normally ".so").
10734 shrext_cmds='$shrext_cmds'
10736 # Executable file suffix (normally "").
10739 # Additional compiler flags for building library objects.
10740 pic_flag=$lt_lt_prog_compiler_pic
10743 # What is the maximum length of a command?
10744 max_cmd_len=$lt_cv_sys_max_cmd_len
10746 # Does compiler simultaneously support -c and -o options?
10747 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10749 # Must we lock files when doing compilation?
10750 need_locks=$lt_need_locks
10752 # Do we need the lib prefix for modules?
10753 need_lib_prefix=$need_lib_prefix
10755 # Do we need a version for libraries?
10756 need_version=$need_version
10758 # Whether dlopen is supported.
10759 dlopen_support=$enable_dlopen
10761 # Whether dlopen of programs is supported.
10762 dlopen_self=$enable_dlopen_self
10764 # Whether dlopen of statically linked programs is supported.
10765 dlopen_self_static=$enable_dlopen_self_static
10767 # Compiler flag to prevent dynamic linking.
10768 link_static_flag=$lt_lt_prog_compiler_static
10770 # Compiler flag to turn off builtin functions.
10771 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10773 # Compiler flag to allow reflexive dlopens.
10774 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10776 # Compiler flag to generate shared objects directly from archives.
10777 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10779 # Compiler flag to generate thread-safe objects.
10780 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10782 # Library versioning type.
10783 version_type=$version_type
10785 # Format of library name prefix.
10786 libname_spec=$lt_libname_spec
10788 # List of archive names. First name is the real one, the rest are links.
10789 # The last name is the one that the linker finds with -lNAME.
10790 library_names_spec=$lt_library_names_spec
10792 # The coded name of the library, if different from the real name.
10793 soname_spec=$lt_soname_spec
10795 # Commands used to build and install an old-style archive.
10797 old_archive_cmds=$lt_old_archive_cmds
10798 old_postinstall_cmds=$lt_old_postinstall_cmds
10799 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10801 # Create an old-style archive from a shared archive.
10802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10804 # Create a temporary old-style archive to link instead of a shared archive.
10805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10807 # Commands used to build and install a shared archive.
10808 archive_cmds=$lt_archive_cmds
10809 archive_expsym_cmds=$lt_archive_expsym_cmds
10810 postinstall_cmds=$lt_postinstall_cmds
10811 postuninstall_cmds=$lt_postuninstall_cmds
10813 # Commands used to build a loadable module (assumed same as above if empty)
10814 module_cmds=$lt_module_cmds
10815 module_expsym_cmds=$lt_module_expsym_cmds
10817 # Commands to strip libraries.
10818 old_striplib=$lt_old_striplib
10819 striplib=$lt_striplib
10821 # Dependencies to place before the objects being linked to create a
10823 predep_objects=$lt_predep_objects
10825 # Dependencies to place after the objects being linked to create a
10827 postdep_objects=$lt_postdep_objects
10829 # Dependencies to place before the objects being linked to create a
10831 predeps=$lt_predeps
10833 # Dependencies to place after the objects being linked to create a
10835 postdeps=$lt_postdeps
10837 # The library search path used internally by the compiler when linking
10838 # a shared library.
10839 compiler_lib_search_path=$lt_compiler_lib_search_path
10841 # Method to check whether dependent libraries are shared objects.
10842 deplibs_check_method=$lt_deplibs_check_method
10844 # Command to use when deplibs_check_method == file_magic.
10845 file_magic_cmd=$lt_file_magic_cmd
10847 # Flag that allows shared libraries with undefined symbols to be built.
10848 allow_undefined_flag=$lt_allow_undefined_flag
10850 # Flag that forces no undefined symbols.
10851 no_undefined_flag=$lt_no_undefined_flag
10853 # Commands used to finish a libtool library installation in a directory.
10854 finish_cmds=$lt_finish_cmds
10856 # Same as above, but a single script fragment to be evaled but not shown.
10857 finish_eval=$lt_finish_eval
10859 # Take the output of nm and produce a listing of raw symbols and C names.
10860 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10862 # Transform the output of nm in a proper C declaration
10863 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10865 # Transform the output of nm in a C name address pair
10866 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10868 # This is the shared library runtime path variable.
10869 runpath_var=$runpath_var
10871 # This is the shared library path variable.
10872 shlibpath_var=$shlibpath_var
10874 # Is shlibpath searched before the hard-coded library search path?
10875 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10877 # How to hardcode a shared library path into an executable.
10878 hardcode_action=$hardcode_action
10880 # Whether we should hardcode library paths into libraries.
10881 hardcode_into_libs=$hardcode_into_libs
10883 # Flag to hardcode \$libdir into a binary during linking.
10884 # This must work even if \$libdir does not exist.
10885 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10887 # If ld is used when linking, flag to hardcode \$libdir into
10888 # a binary during linking. This must work even if \$libdir does
10890 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10892 # Whether we need a single -rpath flag with a separated argument.
10893 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10895 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10896 # resulting binary.
10897 hardcode_direct=$hardcode_direct
10899 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10900 # resulting binary.
10901 hardcode_minus_L=$hardcode_minus_L
10903 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10904 # the resulting binary.
10905 hardcode_shlibpath_var=$hardcode_shlibpath_var
10907 # Set to yes if building a shared library automatically hardcodes DIR into the library
10908 # and all subsequent libraries and executables linked against it.
10909 hardcode_automatic=$hardcode_automatic
10911 # Variables whose values should be saved in libtool wrapper scripts and
10912 # restored at relink time.
10913 variables_saved_for_relink="$variables_saved_for_relink"
10915 # Whether libtool must link a program against all its dependency libraries.
10916 link_all_deplibs=$link_all_deplibs
10918 # Compile-time system search path for libraries
10919 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10921 # Run-time system search path for libraries
10922 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10924 # Fix the shell variable \$srcfile for the compiler.
10925 fix_srcfile_path="$fix_srcfile_path"
10927 # Set to yes if exported symbols are required.
10928 always_export_symbols=$always_export_symbols
10930 # The commands to list exported symbols.
10931 export_symbols_cmds=$lt_export_symbols_cmds
10933 # The commands to extract the exported symbol list from a shared archive.
10934 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10936 # Symbols that should not be listed in the preloaded symbols.
10937 exclude_expsyms=$lt_exclude_expsyms
10939 # Symbols that must always be exported.
10940 include_expsyms=$lt_include_expsyms
10942 # ### END LIBTOOL CONFIG
10949 cat <<\EOF >> "$cfgfile"
10951 # AIX sometimes has problems with the GCC collect2 program. For some
10952 # reason, if we set the COLLECT_NAMES environment variable, the problems
10953 # vanish in a puff of smoke.
10954 if test "X${COLLECT_NAMES+set}" != Xset; then
10956 export COLLECT_NAMES
10962 # We use sed instead of cat because bash on DJGPP gets confused if
10963 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10964 # text mode, it properly converts lines to CR/LF. This bash problem
10965 # is reportedly fixed, but why not run on old versions too?
10966 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10968 mv -f "$cfgfile" "$ofile" || \
10969 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10973 # If there is no Makefile yet, we rely on a make rule to execute
10974 # `config.status --recheck' to rerun these tests and create the
10975 # libtool script then.
10976 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10977 if test -f "$ltmain_in"; then
10978 test -f Makefile && make "$ltmain"
10984 ac_cpp='$CPP $CPPFLAGS'
10985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10992 # Check whether --with-tags or --without-tags was given.
10993 if test "${with_tags+set}" = set; then
10994 withval="$with_tags"
10995 tagnames="$withval"
10998 if test -f "$ltmain" && test -n "$tagnames"; then
10999 if test ! -f "${ofile}"; then
11000 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11001 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11004 if test -z "$LTCC"; then
11005 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11006 if test -z "$LTCC"; then
11007 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11008 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11010 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11011 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11014 if test -z "$LTCFLAGS"; then
11015 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11018 # Extract list of available tagged configurations in $ofile.
11019 # Note that this assumes the entire list is on one line.
11020 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11023 for tagname in $tagnames; do
11025 # Check whether tagname contains only valid characters
11026 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11028 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11029 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11030 { (exit 1); exit 1; }; }
11034 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11036 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11037 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11038 { (exit 1); exit 1; }; }
11041 # Update the list of available tags.
11042 if test -n "$tagname"; then
11043 echo appending configuration tag \"$tagname\" to $ofile
11047 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11048 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11049 (test "X$CXX" != "Xg++"))) ; then
11051 ac_cpp='$CXXCPP $CPPFLAGS'
11052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11059 archive_cmds_need_lc_CXX=no
11060 allow_undefined_flag_CXX=
11061 always_export_symbols_CXX=no
11062 archive_expsym_cmds_CXX=
11063 export_dynamic_flag_spec_CXX=
11064 hardcode_direct_CXX=no
11065 hardcode_libdir_flag_spec_CXX=
11066 hardcode_libdir_flag_spec_ld_CXX=
11067 hardcode_libdir_separator_CXX=
11068 hardcode_minus_L_CXX=no
11069 hardcode_shlibpath_var_CXX=unsupported
11070 hardcode_automatic_CXX=no
11072 module_expsym_cmds_CXX=
11073 link_all_deplibs_CXX=unknown
11074 old_archive_cmds_CXX=$old_archive_cmds
11075 no_undefined_flag_CXX=
11076 whole_archive_flag_spec_CXX=
11077 enable_shared_with_static_runtimes_CXX=no
11079 # Dependencies to place before and after the object being linked:
11080 predep_objects_CXX=
11081 postdep_objects_CXX=
11084 compiler_lib_search_path_CXX=
11086 # Source file extension for C++ test sources.
11089 # Object file extension for compiled C++ test sources.
11093 # Code to be used in simple compile tests
11094 lt_simple_compile_test_code="int some_variable = 0;\n"
11096 # Code to be used in simple link tests
11097 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11099 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11101 # If no C compiler was specified, use CC.
11104 # If no C compiler flags were specified, use CFLAGS.
11105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11107 # Allow CC to be a program name with arguments.
11111 # save warnings/boilerplate of simple test code
11112 ac_outfile=conftest.$ac_objext
11113 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11115 _lt_compiler_boilerplate=`cat conftest.err`
11118 ac_outfile=conftest.$ac_objext
11119 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11121 _lt_linker_boilerplate=`cat conftest.err`
11125 # Allow CC to be a program name with arguments.
11130 lt_save_with_gnu_ld=$with_gnu_ld
11131 lt_save_path_LD=$lt_cv_path_LD
11132 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11133 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11135 $as_unset lt_cv_prog_gnu_ld
11137 if test -n "${lt_cv_path_LDCXX+set}"; then
11138 lt_cv_path_LD=$lt_cv_path_LDCXX
11140 $as_unset lt_cv_path_LD
11142 test -z "${LDCXX+set}" || LD=$LDCXX
11146 for cc_temp in $compiler""; do
11148 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11149 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11154 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11157 # We don't want -fno-exception wen compiling C++ code, so set the
11158 # no_builtin_flag separately
11159 if test "$GXX" = yes; then
11160 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11162 lt_prog_compiler_no_builtin_flag_CXX=
11165 if test "$GXX" = yes; then
11166 # Set up default GNU C++ configuration
11169 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11170 if test "${with_gnu_ld+set}" = set; then
11171 withval="$with_gnu_ld"
11172 test "$withval" = no || with_gnu_ld=yes
11177 if test "$GCC" = yes; then
11178 # Check if gcc -print-prog-name=ld gives a path.
11179 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11180 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11183 # gcc leaves a trailing carriage return which upsets mingw
11184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11189 # Accept absolute paths.
11191 re_direlt='/[^/][^/]*/\.\./'
11192 # Canonicalize the pathname of ld
11193 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11194 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11195 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11197 test -z "$LD" && LD="$ac_prog"
11200 # If it fails, then pretend we aren't using GCC.
11204 # If it is relative, then search for the first ld in PATH.
11205 with_gnu_ld=unknown
11208 elif test "$with_gnu_ld" = yes; then
11209 echo "$as_me:$LINENO: checking for GNU ld" >&5
11210 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11212 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11213 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11215 if test "${lt_cv_path_LD+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 if test -z "$LD"; then
11219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11220 for ac_dir in $PATH; do
11222 test -z "$ac_dir" && ac_dir=.
11223 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11224 lt_cv_path_LD="$ac_dir/$ac_prog"
11225 # Check to see if the program is GNU ld. I'd rather use --version,
11226 # but apparently some variants of GNU ld only accept -v.
11227 # Break only if it was the GNU/non-GNU ld that we prefer.
11228 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11229 *GNU* | *'with BFD'*)
11230 test "$with_gnu_ld" != no && break
11233 test "$with_gnu_ld" != yes && break
11240 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11244 LD="$lt_cv_path_LD"
11245 if test -n "$LD"; then
11246 echo "$as_me:$LINENO: result: $LD" >&5
11247 echo "${ECHO_T}$LD" >&6
11249 echo "$as_me:$LINENO: result: no" >&5
11250 echo "${ECHO_T}no" >&6
11252 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11253 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11254 { (exit 1); exit 1; }; }
11255 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11256 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11257 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11261 case `$LD -v 2>&1 </dev/null` in
11262 *GNU* | *'with BFD'*)
11263 lt_cv_prog_gnu_ld=yes
11266 lt_cv_prog_gnu_ld=no
11270 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11271 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11272 with_gnu_ld=$lt_cv_prog_gnu_ld
11276 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11277 # archiving commands below assume that GNU ld is being used.
11278 if test "$with_gnu_ld" = yes; then
11279 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11280 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'
11282 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11283 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11285 # If archive_cmds runs LD, not CC, wlarc should be empty
11286 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11287 # investigate it a little bit more. (MM)
11290 # ancient GNU ld didn't support --whole-archive et. al.
11291 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11292 grep 'no-whole-archive' > /dev/null; then
11293 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11295 whole_archive_flag_spec_CXX=
11301 # A generic and very simple default shared library creation
11302 # command for GNU C++ for the case where it uses the native
11303 # linker, instead of GNU ld. If possible, this setting should
11304 # overridden to take advantage of the native linker features on
11305 # the platform it is being used on.
11306 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11309 # Commands to make compiler produce verbose output that lists
11310 # what "hidden" libraries, object files and flags are used when
11311 # linking a shared library.
11312 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11320 # PORTME: fill in a description of your system's C++ link characteristics
11321 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11322 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11326 # FIXME: insert proper C++ library support
11330 if test "$host_cpu" = ia64; then
11331 # On IA64, the linker does run time linking by default, so we don't
11332 # have to do anything special.
11333 aix_use_runtimelinking=no
11334 exp_sym_flag='-Bexport'
11337 aix_use_runtimelinking=no
11339 # Test if we are trying to use run time linking or normal
11340 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11341 # need to do runtime linking.
11342 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11343 for ld_flag in $LDFLAGS; do
11346 aix_use_runtimelinking=yes
11354 exp_sym_flag='-bexport'
11355 no_entry_flag='-bnoentry'
11358 # When large executables or shared objects are built, AIX ld can
11359 # have problems creating the table of contents. If linking a library
11360 # or program results in "error TOC overflow" add -mminimal-toc to
11361 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11362 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11364 archive_cmds_CXX=''
11365 hardcode_direct_CXX=yes
11366 hardcode_libdir_separator_CXX=':'
11367 link_all_deplibs_CXX=yes
11369 if test "$GXX" = yes; then
11370 case $host_os in aix4.[012]|aix4.[012].*)
11371 # We only want to do this on AIX 4.2 and lower, the check
11372 # below for broken collect2 doesn't work under 4.3+
11373 collect2name=`${CC} -print-prog-name=collect2`
11374 if test -f "$collect2name" && \
11375 strings "$collect2name" | grep resolve_lib_name >/dev/null
11377 # We have reworked collect2
11378 hardcode_direct_CXX=yes
11380 # We have old collect2
11381 hardcode_direct_CXX=unsupported
11382 # It fails to find uninstalled libraries when the uninstalled
11383 # path is not listed in the libpath. Setting hardcode_minus_L
11384 # to unsupported forces relinking
11385 hardcode_minus_L_CXX=yes
11386 hardcode_libdir_flag_spec_CXX='-L$libdir'
11387 hardcode_libdir_separator_CXX=
11391 shared_flag='-shared'
11392 if test "$aix_use_runtimelinking" = yes; then
11393 shared_flag="$shared_flag "'${wl}-G'
11397 if test "$host_cpu" = ia64; then
11398 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11399 # chokes on -Wl,-G. The following line is correct:
11402 if test "$aix_use_runtimelinking" = yes; then
11403 shared_flag='${wl}-G'
11405 shared_flag='${wl}-bM:SRE'
11410 # It seems that -bexpall does not export symbols beginning with
11411 # underscore (_), so it is better to generate a list of symbols to export.
11412 always_export_symbols_CXX=yes
11413 if test "$aix_use_runtimelinking" = yes; then
11414 # Warning - without using the other runtime loading flags (-brtl),
11415 # -berok will link without error, but may produce a broken library.
11416 allow_undefined_flag_CXX='-berok'
11417 # Determine the default libpath from the value encoded in an empty executable.
11418 cat >conftest.$ac_ext <<_ACEOF
11421 cat confdefs.h >>conftest.$ac_ext
11422 cat >>conftest.$ac_ext <<_ACEOF
11423 /* end confdefs.h. */
11433 rm -f conftest.$ac_objext conftest$ac_exeext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11435 (eval $ac_link) 2>conftest.er1
11437 grep -v '^ *+' conftest.er1 >conftest.err
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
11442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; } &&
11448 { ac_try='test -s conftest$ac_exeext'
11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450 (eval $ac_try) 2>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; }; then
11455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11457 # Check for a 64-bit object if we didn't find anything.
11458 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; }
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11465 rm -f conftest.err conftest.$ac_objext \
11466 conftest$ac_exeext conftest.$ac_ext
11467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11469 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11471 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"
11473 if test "$host_cpu" = ia64; then
11474 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11475 allow_undefined_flag_CXX="-z nodefs"
11476 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"
11478 # Determine the default libpath from the value encoded in an empty executable.
11479 cat >conftest.$ac_ext <<_ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496 (eval $ac_link) 2>conftest.er1
11498 grep -v '^ *+' conftest.er1 >conftest.err
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
11503 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; } &&
11509 { ac_try='test -s conftest$ac_exeext'
11510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511 (eval $ac_try) 2>&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; }; then
11516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11518 # Check for a 64-bit object if we didn't find anything.
11519 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; }
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11526 rm -f conftest.err conftest.$ac_objext \
11527 conftest$ac_exeext conftest.$ac_ext
11528 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11530 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11531 # Warning - without using the other run time loading flags,
11532 # -berok will link without error, but may produce a broken library.
11533 no_undefined_flag_CXX=' ${wl}-bernotok'
11534 allow_undefined_flag_CXX=' ${wl}-berok'
11535 # Exported symbols can be pulled into shared objects from archives
11536 whole_archive_flag_spec_CXX='$convenience'
11537 archive_cmds_need_lc_CXX=yes
11538 # This is similar to how AIX traditionally builds its shared libraries.
11539 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'
11545 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11546 allow_undefined_flag_CXX=unsupported
11547 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11548 # support --undefined. This deserves some investigation. FIXME
11549 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11556 case $cc_basename in
11558 # FIXME: insert proper C++ library support
11564 cygwin* | mingw* | pw32*)
11565 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11566 # as there is no search path for DLLs.
11567 hardcode_libdir_flag_spec_CXX='-L$libdir'
11568 allow_undefined_flag_CXX=unsupported
11569 always_export_symbols_CXX=no
11570 enable_shared_with_static_runtimes_CXX=yes
11572 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11573 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'
11574 # If the export-symbols file already is a .def file (1st line
11575 # is EXPORTS), use it as is; otherwise, prepend...
11576 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11577 cp $export_symbols $output_objdir/$soname.def;
11579 echo EXPORTS > $output_objdir/$soname.def;
11580 cat $export_symbols >> $output_objdir/$soname.def;
11582 $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'
11587 darwin* | rhapsody*)
11589 rhapsody* | darwin1.[012])
11590 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11593 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11594 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11596 case ${MACOSX_DEPLOYMENT_TARGET} in
11598 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11601 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11607 archive_cmds_need_lc_CXX=no
11608 hardcode_direct_CXX=no
11609 hardcode_automatic_CXX=yes
11610 hardcode_shlibpath_var_CXX=unsupported
11611 whole_archive_flag_spec_CXX=''
11612 link_all_deplibs_CXX=yes
11614 if test "$GXX" = yes ; then
11615 lt_int_apple_cc_single_mod=no
11616 output_verbose_link_cmd='echo'
11617 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11618 lt_int_apple_cc_single_mod=yes
11620 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11621 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11623 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'
11625 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11626 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11627 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11628 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}'
11630 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}'
11632 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}'
11634 case $cc_basename in
11636 output_verbose_link_cmd='echo'
11637 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'
11638 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11639 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11640 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}'
11641 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11651 case $cc_basename in
11653 # FIXME: insert proper C++ library support
11657 # Green Hills C++ Compiler
11658 # FIXME: insert proper C++ library support
11662 # FIXME: insert proper C++ library support
11668 # C++ shared libraries reported to be fairly broken before switch to ELF
11672 archive_cmds_need_lc_CXX=no
11674 freebsd* | dragonfly*)
11675 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11682 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11683 hardcode_libdir_separator_CXX=:
11684 export_dynamic_flag_spec_CXX='${wl}-E'
11685 hardcode_direct_CXX=yes
11686 hardcode_minus_L_CXX=yes # Not in the search PATH,
11687 # but as the default
11688 # location of the library.
11690 case $cc_basename in
11692 # FIXME: insert proper C++ library support
11696 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'
11697 # Commands to make compiler produce verbose output that lists
11698 # what "hidden" libraries, object files and flags are used when
11699 # linking a shared library.
11701 # There doesn't appear to be a way to prevent this compiler from
11702 # explicitly linking system object files so we need to strip them
11703 # from the output so that they don't get included in the library
11705 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'
11708 if test "$GXX" = yes; then
11709 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'
11711 # FIXME: insert proper C++ library support
11718 if test $with_gnu_ld = no; then
11719 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11720 hardcode_libdir_separator_CXX=:
11724 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11727 export_dynamic_flag_spec_CXX='${wl}-E'
11733 hardcode_direct_CXX=no
11734 hardcode_shlibpath_var_CXX=no
11737 hardcode_direct_CXX=yes
11738 hardcode_minus_L_CXX=yes # Not in the search PATH,
11739 # but as the default
11740 # location of the library.
11744 case $cc_basename in
11746 # FIXME: insert proper C++ library support
11752 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11755 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11758 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11761 # Commands to make compiler produce verbose output that lists
11762 # what "hidden" libraries, object files and flags are used when
11763 # linking a shared library.
11765 # There doesn't appear to be a way to prevent this compiler from
11766 # explicitly linking system object files so we need to strip them
11767 # from the output so that they don't get included in the library
11769 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'
11772 if test "$GXX" = yes; then
11773 if test $with_gnu_ld = no; then
11776 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11779 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11782 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'
11787 # FIXME: insert proper C++ library support
11794 hardcode_direct_CXX=no
11795 hardcode_shlibpath_var_CXX=no
11796 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11797 export_dynamic_flag_spec_CXX='${wl}-E'
11798 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11799 # Instead, shared libraries are loaded at an image base (0x10000000 by
11800 # default) and relocated if they conflict, which is a slow very memory
11801 # consuming and fragmenting process. To avoid this, we pick a random,
11802 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11803 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11804 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'
11805 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'
11808 case $cc_basename in
11811 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'
11813 # Archives containing C++ object files must be created using
11814 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11815 # necessary to make sure instantiated templates are included
11817 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11820 if test "$GXX" = yes; then
11821 if test "$with_gnu_ld" = no; then
11822 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'
11824 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'
11827 link_all_deplibs_CXX=yes
11830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11831 hardcode_libdir_separator_CXX=:
11833 linux* | k*bsd*-gnu)
11834 case $cc_basename in
11836 # Kuck and Associates, Inc. (KAI) C++ Compiler
11838 # KCC will only create a shared library if the output file
11839 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11840 # to its proper name (with version) after linking.
11841 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'
11842 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'
11843 # Commands to make compiler produce verbose output that lists
11844 # what "hidden" libraries, object files and flags are used when
11845 # linking a shared library.
11847 # There doesn't appear to be a way to prevent this compiler from
11848 # explicitly linking system object files so we need to strip them
11849 # from the output so that they don't get included in the library
11851 output_verbose_link_cmd='templist=`$CC $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'
11853 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11854 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11856 # Archives containing C++ object files must be created using
11857 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11858 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11863 # version 8.0 and above of icpc choke on multiply defined symbols
11864 # if we add $predep_objects and $postdep_objects, however 7.1 and
11865 # earlier do not add the objects themselves.
11866 case `$CC -V 2>&1` in
11868 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11869 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'
11871 *) # Version 8.0 or newer
11874 ia64*) tmp_idyn=' -i_dynamic';;
11876 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11877 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'
11880 archive_cmds_need_lc_CXX=no
11881 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11882 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11883 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11886 # Portland Group C++ compiler
11887 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11888 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'
11890 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11891 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11892 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'
11896 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11897 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'
11899 runpath_var=LD_RUN_PATH
11900 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11901 hardcode_libdir_separator_CXX=:
11903 # Commands to make compiler produce verbose output that lists
11904 # what "hidden" libraries, object files and flags are used when
11905 # linking a shared library.
11907 # There doesn't appear to be a way to prevent this compiler from
11908 # explicitly linking system object files so we need to strip them
11909 # from the output so that they don't get included in the library
11911 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'
11916 # FIXME: insert proper C++ library support
11920 # FIXME: insert proper C++ library support
11924 case $cc_basename in
11926 # FIXME: insert proper C++ library support
11930 # FIXME: insert proper C++ library support
11935 netbsd* | netbsdelf*-gnu)
11936 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11937 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11939 hardcode_libdir_flag_spec_CXX='-R$libdir'
11940 hardcode_direct_CXX=yes
11941 hardcode_shlibpath_var_CXX=no
11943 # Workaround some broken pre-1.5 toolchains
11944 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11947 # C++ shared libraries are fairly broken
11951 hardcode_direct_CXX=yes
11952 hardcode_shlibpath_var_CXX=no
11953 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11954 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11955 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11956 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11957 export_dynamic_flag_spec_CXX='${wl}-E'
11958 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11960 output_verbose_link_cmd='echo'
11963 case $cc_basename in
11965 # Kuck and Associates, Inc. (KAI) C++ Compiler
11967 # KCC will only create a shared library if the output file
11968 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11969 # to its proper name (with version) after linking.
11970 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'
11972 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11973 hardcode_libdir_separator_CXX=:
11975 # Archives containing C++ object files must be created using
11976 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11977 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11981 # Rational C++ 2.4.1
11982 # FIXME: insert proper C++ library support
11986 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11987 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'
11989 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11990 hardcode_libdir_separator_CXX=:
11992 # Commands to make compiler produce verbose output that lists
11993 # what "hidden" libraries, object files and flags are used when
11994 # linking a shared library.
11996 # There doesn't appear to be a way to prevent this compiler from
11997 # explicitly linking system object files so we need to strip them
11998 # from the output so that they don't get included in the library
12000 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'
12003 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12004 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12005 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'
12007 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12008 hardcode_libdir_separator_CXX=:
12010 # Commands to make compiler produce verbose output that lists
12011 # what "hidden" libraries, object files and flags are used when
12012 # linking a shared library.
12013 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12016 # FIXME: insert proper C++ library support
12023 case $cc_basename in
12025 # Kuck and Associates, Inc. (KAI) C++ Compiler
12027 # KCC will only create a shared library if the output file
12028 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12029 # to its proper name (with version) after linking.
12030 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'
12032 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12033 hardcode_libdir_separator_CXX=:
12035 # Archives containing C++ object files must be created using
12036 # the KAI C++ compiler.
12037 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12040 # Rational C++ 2.4.1
12041 # FIXME: insert proper C++ library support
12045 allow_undefined_flag_CXX=' -expect_unresolved \*'
12046 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'
12047 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12048 echo "-hidden">> $lib.exp~
12049 $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~
12052 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12053 hardcode_libdir_separator_CXX=:
12055 # Commands to make compiler produce verbose output that lists
12056 # what "hidden" libraries, object files and flags are used when
12057 # linking a shared library.
12059 # There doesn't appear to be a way to prevent this compiler from
12060 # explicitly linking system object files so we need to strip them
12061 # from the output so that they don't get included in the library
12063 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'
12066 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12067 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12068 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'
12070 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12071 hardcode_libdir_separator_CXX=:
12073 # Commands to make compiler produce verbose output that lists
12074 # what "hidden" libraries, object files and flags are used when
12075 # linking a shared library.
12076 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12079 # FIXME: insert proper C++ library support
12086 # FIXME: insert proper C++ library support
12090 case $cc_basename in
12093 # FIXME: insert proper C++ library support
12098 # FIXME: insert proper C++ library support
12102 # FIXME: insert proper C++ library support
12108 case $cc_basename in
12110 # Sun C++ 4.2, 5.x and Centerline C++
12111 archive_cmds_need_lc_CXX=yes
12112 no_undefined_flag_CXX=' -zdefs'
12113 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12114 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12115 $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'
12117 hardcode_libdir_flag_spec_CXX='-R$libdir'
12118 hardcode_shlibpath_var_CXX=no
12120 solaris2.[0-5] | solaris2.[0-5].*) ;;
12122 # The C++ compiler is used as linker so we must use $wl
12123 # flag to pass the commands to the underlying system
12124 # linker. We must also pass each convience library through
12125 # to the system linker between allextract/defaultextract.
12126 # The C++ compiler will combine linker options so we
12127 # cannot just pass the convience library names through
12129 # Supported since Solaris 2.6 (maybe 2.5.1?)
12130 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'
12133 link_all_deplibs_CXX=yes
12135 output_verbose_link_cmd='echo'
12137 # Archives containing C++ object files must be created using
12138 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12139 # necessary to make sure instantiated templates are included
12141 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12144 # Green Hills C++ Compiler
12145 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12147 # The C++ compiler must be used to create the archive.
12148 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12151 # GNU C++ compiler with Solaris linker
12152 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12153 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12154 if $CC --version | grep -v '^2\.7' > /dev/null; then
12155 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12156 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12157 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12159 # Commands to make compiler produce verbose output that lists
12160 # what "hidden" libraries, object files and flags are used when
12161 # linking a shared library.
12162 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12164 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12166 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12167 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12168 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12170 # Commands to make compiler produce verbose output that lists
12171 # what "hidden" libraries, object files and flags are used when
12172 # linking a shared library.
12173 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12176 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12181 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12182 no_undefined_flag_CXX='${wl}-z,text'
12183 archive_cmds_need_lc_CXX=no
12184 hardcode_shlibpath_var_CXX=no
12185 runpath_var='LD_RUN_PATH'
12187 case $cc_basename in
12189 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12190 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12193 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12194 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12198 sysv5* | sco3.2v5* | sco5v6*)
12199 # Note: We can NOT use -z defs as we might desire, because we do not
12200 # link with -lc, and that would cause any symbols used from libc to
12201 # always be unresolved, which means just about no library would
12202 # ever link correctly. If we're not using GNU ld we use -z text
12203 # though, which does catch some bad symbols but isn't as heavy-handed
12205 # For security reasons, it is highly recommended that you always
12206 # use absolute paths for naming shared libraries, and exclude the
12207 # DT_RUNPATH tag from executables and libraries. But doing so
12208 # requires that you compile everything twice, which is a pain.
12209 # So that behaviour is only enabled if SCOABSPATH is set to a
12210 # non-empty value in the environment. Most likely only useful for
12211 # creating official distributions of packages.
12212 # This is a hack until libtool officially supports absolute path
12213 # names for shared libraries.
12214 no_undefined_flag_CXX='${wl}-z,text'
12215 allow_undefined_flag_CXX='${wl}-z,nodefs'
12216 archive_cmds_need_lc_CXX=no
12217 hardcode_shlibpath_var_CXX=no
12218 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12219 hardcode_libdir_separator_CXX=':'
12220 link_all_deplibs_CXX=yes
12221 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12222 runpath_var='LD_RUN_PATH'
12224 case $cc_basename in
12226 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12227 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12230 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12231 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12236 case $cc_basename in
12238 # NonStop-UX NCC 3.20
12239 # FIXME: insert proper C++ library support
12243 # FIXME: insert proper C++ library support
12249 # FIXME: insert proper C++ library support
12253 # FIXME: insert proper C++ library support
12257 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12258 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12259 test "$ld_shlibs_CXX" = no && can_build_shared=no
12265 cat > conftest.$ac_ext <<EOF
12269 Foo (void) { a = 0; }
12275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276 (eval $ac_compile) 2>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; then
12280 # Parse the compiler output and extract the necessary
12281 # objects, libraries and library flags.
12283 # Sentinel used to keep track of whether or not we are before
12284 # the conftest object file.
12285 pre_test_object_deps_done=no
12287 # The `*' in the case matches for architectures that use `case' in
12288 # $output_verbose_cmd can trigger glob expansion during the loop
12289 # eval without this substitution.
12290 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12292 for p in `eval $output_verbose_link_cmd`; do
12296 # Some compilers place space between "-{L,R}" and the path.
12297 # Remove the space.
12298 if test $p = "-L" \
12299 || test $p = "-R"; then
12306 if test "$pre_test_object_deps_done" = no; then
12309 # Internal compiler library paths should come after those
12310 # provided the user. The postdeps already come after the
12311 # user supplied libs so there is no need to process them.
12312 if test -z "$compiler_lib_search_path_CXX"; then
12313 compiler_lib_search_path_CXX="${prev}${p}"
12315 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12318 # The "-l" case would never come before the object being
12319 # linked, so don't bother handling this case.
12322 if test -z "$postdeps_CXX"; then
12323 postdeps_CXX="${prev}${p}"
12325 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12331 # This assumes that the test object file only shows up
12332 # once in the compiler output.
12333 if test "$p" = "conftest.$objext"; then
12334 pre_test_object_deps_done=yes
12338 if test "$pre_test_object_deps_done" = no; then
12339 if test -z "$predep_objects_CXX"; then
12340 predep_objects_CXX="$p"
12342 predep_objects_CXX="$predep_objects_CXX $p"
12345 if test -z "$postdep_objects_CXX"; then
12346 postdep_objects_CXX="$p"
12348 postdep_objects_CXX="$postdep_objects_CXX $p"
12353 *) ;; # Ignore the rest.
12361 echo "libtool.m4: error: problem compiling CXX test program"
12364 $rm -f confest.$objext
12366 # PORTME: override above test on systems where it is broken
12369 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12370 # hack all around it, let's just trust "g++" to DTRT.
12371 predep_objects_CXX=
12372 postdep_objects_CXX=
12377 case $cc_basename in
12379 # Adding this requires a known-good setup of shared libraries for
12380 # Sun compiler versions before 5.6, else PIC objects from an old
12381 # archive will be linked into the output, leading to subtle bugs.
12382 postdeps_CXX='-lCstd -lCrun'
12389 case " $postdeps_CXX " in
12390 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12393 lt_prog_compiler_wl_CXX=
12394 lt_prog_compiler_pic_CXX=
12395 lt_prog_compiler_static_CXX=
12397 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12400 # C++ specific cases for pic, static, wl, etc.
12401 if test "$GXX" = yes; then
12402 lt_prog_compiler_wl_CXX='-Wl,'
12403 lt_prog_compiler_static_CXX='-static'
12407 # All AIX code is PIC.
12408 if test "$host_cpu" = ia64; then
12409 # AIX 5 now supports IA64 processor
12410 lt_prog_compiler_static_CXX='-Bstatic'
12414 # FIXME: we need at least 68020 code to build shared libraries, but
12415 # adding the `-m68020' flag to GCC prevents building anything better,
12417 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12419 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12420 # PIC is the default for these OSes.
12422 mingw* | os2* | pw32*)
12423 # This hack is so that the source file can tell whether it is being
12424 # built for inclusion in a dll (and should export symbols for example).
12425 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12427 darwin* | rhapsody*)
12428 # PIC is the default on this platform
12429 # Common symbols not allowed in MH_DYLIB files
12430 lt_prog_compiler_pic_CXX='-fno-common'
12433 # DJGPP does not support shared libraries at all
12434 lt_prog_compiler_pic_CXX=
12437 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12438 # Instead, we relocate shared libraries at runtime.
12441 if test -d /usr/nec; then
12442 lt_prog_compiler_pic_CXX=-Kconform_pic
12446 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12447 # not for PA HP-UX.
12452 lt_prog_compiler_pic_CXX='-fPIC'
12457 lt_prog_compiler_pic_CXX='-fPIC'
12463 # All AIX code is PIC.
12464 if test "$host_cpu" = ia64; then
12465 # AIX 5 now supports IA64 processor
12466 lt_prog_compiler_static_CXX='-Bstatic'
12468 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12472 case $cc_basename in
12474 # Green Hills C++ Compiler
12475 # _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"
12480 # PIC is the default on this platform
12481 # Common symbols not allowed in MH_DYLIB files
12482 case $cc_basename in
12484 lt_prog_compiler_pic_CXX='-qnocommon'
12485 lt_prog_compiler_wl_CXX='-Wl,'
12490 case $cc_basename in
12492 lt_prog_compiler_pic_CXX='-KPIC'
12495 # Green Hills C++ Compiler
12496 lt_prog_compiler_pic_CXX='-pic'
12502 freebsd* | dragonfly*)
12503 # FreeBSD uses GNU C++
12505 hpux9* | hpux10* | hpux11*)
12506 case $cc_basename in
12508 lt_prog_compiler_wl_CXX='-Wl,'
12509 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12510 if test "$host_cpu" != ia64; then
12511 lt_prog_compiler_pic_CXX='+Z'
12515 lt_prog_compiler_wl_CXX='-Wl,'
12516 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12522 lt_prog_compiler_pic_CXX='+Z'
12531 # This is c89, which is MS Visual C++ (no shared libs)
12532 # Anyone wants to do a port?
12534 irix5* | irix6* | nonstopux*)
12535 case $cc_basename in
12537 lt_prog_compiler_wl_CXX='-Wl,'
12538 lt_prog_compiler_static_CXX='-non_shared'
12539 # CC pic flag -KPIC is the default.
12545 linux* | k*bsd*-gnu)
12546 case $cc_basename in
12549 lt_prog_compiler_wl_CXX='--backend -Wl,'
12550 lt_prog_compiler_pic_CXX='-fPIC'
12554 lt_prog_compiler_wl_CXX='-Wl,'
12555 lt_prog_compiler_pic_CXX='-KPIC'
12556 lt_prog_compiler_static_CXX='-static'
12559 # Portland Group C++ compiler.
12560 lt_prog_compiler_wl_CXX='-Wl,'
12561 lt_prog_compiler_pic_CXX='-fpic'
12562 lt_prog_compiler_static_CXX='-Bstatic'
12566 # Make sure the PIC flag is empty. It appears that all Alpha
12567 # Linux and Compaq Tru64 Unix objects are PIC.
12568 lt_prog_compiler_pic_CXX=
12569 lt_prog_compiler_static_CXX='-non_shared'
12580 case $cc_basename in
12582 lt_prog_compiler_pic_CXX='-W c,exportall'
12588 netbsd* | netbsdelf*-gnu)
12590 osf3* | osf4* | osf5*)
12591 case $cc_basename in
12593 lt_prog_compiler_wl_CXX='--backend -Wl,'
12596 # Rational C++ 2.4.1
12597 lt_prog_compiler_pic_CXX='-pic'
12600 # Digital/Compaq C++
12601 lt_prog_compiler_wl_CXX='-Wl,'
12602 # Make sure the PIC flag is empty. It appears that all Alpha
12603 # Linux and Compaq Tru64 Unix objects are PIC.
12604 lt_prog_compiler_pic_CXX=
12605 lt_prog_compiler_static_CXX='-non_shared'
12614 case $cc_basename in
12616 # Sun C++ 4.2, 5.x and Centerline C++
12617 lt_prog_compiler_pic_CXX='-KPIC'
12618 lt_prog_compiler_static_CXX='-Bstatic'
12619 lt_prog_compiler_wl_CXX='-Qoption ld '
12622 # Green Hills C++ Compiler
12623 lt_prog_compiler_pic_CXX='-PIC'
12630 case $cc_basename in
12633 lt_prog_compiler_pic_CXX='-pic'
12634 lt_prog_compiler_static_CXX='-Bstatic'
12638 lt_prog_compiler_pic_CXX='-pic'
12645 case $cc_basename in
12647 # NonStop-UX NCC 3.20
12648 lt_prog_compiler_pic_CXX='-KPIC'
12654 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12655 case $cc_basename in
12657 lt_prog_compiler_wl_CXX='-Wl,'
12658 lt_prog_compiler_pic_CXX='-KPIC'
12659 lt_prog_compiler_static_CXX='-Bstatic'
12666 lt_prog_compiler_can_build_shared_CXX=no
12671 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12672 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12675 # Check to make sure the PIC flag actually works.
12677 if test -n "$lt_prog_compiler_pic_CXX"; then
12679 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12680 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12681 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 lt_prog_compiler_pic_works_CXX=no
12685 ac_outfile=conftest.$ac_objext
12686 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12687 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12688 # Insert the option either (1) after the last *FLAGS variable, or
12689 # (2) before a word containing "conftest.", or (3) at the end.
12690 # Note that $ac_compile itself does not contain backslashes and begins
12691 # with a dollar sign (not a hyphen), so the echo should work correctly.
12692 # The option is referenced via a variable to avoid confusing sed.
12693 lt_compile=`echo "$ac_compile" | $SED \
12694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12696 -e 's:$: $lt_compiler_flag:'`
12697 (eval echo "\"\$as_me:12697: $lt_compile\"" >&5)
12698 (eval "$lt_compile" 2>conftest.err)
12700 cat conftest.err >&5
12701 echo "$as_me:12701: \$? = $ac_status" >&5
12702 if (exit $ac_status) && test -s "$ac_outfile"; then
12703 # The compiler can only warn and ignore the option if not recognized
12704 # So say no if there are warnings other than the usual output.
12705 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12707 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12708 lt_prog_compiler_pic_works_CXX=yes
12714 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12715 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12717 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12718 case $lt_prog_compiler_pic_CXX in
12720 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12723 lt_prog_compiler_pic_CXX=
12724 lt_prog_compiler_can_build_shared_CXX=no
12729 # For platforms which do not support PIC, -DPIC is meaningless:
12731 lt_prog_compiler_pic_CXX=
12734 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12739 # Check to make sure the static flag actually works.
12741 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12742 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12743 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12744 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12747 lt_prog_compiler_static_works_CXX=no
12748 save_LDFLAGS="$LDFLAGS"
12749 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12750 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12751 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12752 # The linker can only warn and ignore the option if not recognized
12753 # So say no if there are warnings
12754 if test -s conftest.err; then
12755 # Append any errors to the config.log.
12756 cat conftest.err 1>&5
12757 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12759 if diff conftest.exp conftest.er2 >/dev/null; then
12760 lt_prog_compiler_static_works_CXX=yes
12763 lt_prog_compiler_static_works_CXX=yes
12767 LDFLAGS="$save_LDFLAGS"
12770 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12771 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12773 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12776 lt_prog_compiler_static_CXX=
12780 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12781 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12782 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12785 lt_cv_prog_compiler_c_o_CXX=no
12786 $rm -r conftest 2>/dev/null
12790 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12792 lt_compiler_flag="-o out/conftest2.$ac_objext"
12793 # Insert the option either (1) after the last *FLAGS variable, or
12794 # (2) before a word containing "conftest.", or (3) at the end.
12795 # Note that $ac_compile itself does not contain backslashes and begins
12796 # with a dollar sign (not a hyphen), so the echo should work correctly.
12797 lt_compile=`echo "$ac_compile" | $SED \
12798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12800 -e 's:$: $lt_compiler_flag:'`
12801 (eval echo "\"\$as_me:12801: $lt_compile\"" >&5)
12802 (eval "$lt_compile" 2>out/conftest.err)
12804 cat out/conftest.err >&5
12805 echo "$as_me:12805: \$? = $ac_status" >&5
12806 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12808 # The compiler can only warn and ignore the option if not recognized
12809 # So say no if there are warnings
12810 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12811 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12812 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12813 lt_cv_prog_compiler_c_o_CXX=yes
12818 # SGI C++ compiler will create directory out/ii_files/ for
12819 # template instantiation
12820 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12821 $rm out/* && rmdir out
12827 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12828 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12831 hard_links="nottested"
12832 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12833 # do not overwrite the value of need_locks provided by the user
12834 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12835 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12838 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12840 ln conftest.a conftest.b 2>&5 || hard_links=no
12841 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12842 echo "$as_me:$LINENO: result: $hard_links" >&5
12843 echo "${ECHO_T}$hard_links" >&6
12844 if test "$hard_links" = no; then
12845 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12846 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12853 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12854 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12856 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12859 # If we're using GNU nm, then we don't want the "-C" option.
12860 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12861 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12862 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'
12864 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'
12868 export_symbols_cmds_CXX="$ltdll_cmds"
12871 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'
12873 linux* | k*bsd*-gnu)
12874 link_all_deplibs_CXX=no
12877 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12881 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12882 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12883 test "$ld_shlibs_CXX" = no && can_build_shared=no
12886 # Do we need to explicitly link libc?
12888 case "x$archive_cmds_need_lc_CXX" in
12890 # Assume -lc should be added
12891 archive_cmds_need_lc_CXX=yes
12893 if test "$enable_shared" = yes && test "$GCC" = yes; then
12894 case $archive_cmds_CXX in
12896 # FIXME: we may have to deal with multi-command sequences.
12899 # Test whether the compiler implicitly links with -lc since on some
12900 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12901 # to ld, don't add -lc before -lgcc.
12902 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12903 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12905 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12908 (eval $ac_compile) 2>&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } 2>conftest.err; then
12914 libobjs=conftest.$ac_objext
12916 wl=$lt_prog_compiler_wl_CXX
12917 pic_flag=$lt_prog_compiler_pic_CXX
12923 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12924 allow_undefined_flag_CXX=
12925 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12926 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }
12931 archive_cmds_need_lc_CXX=no
12933 archive_cmds_need_lc_CXX=yes
12935 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12937 cat conftest.err 1>&5
12940 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12941 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12948 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12949 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12950 library_names_spec=
12951 libname_spec='lib$name'
12955 postuninstall_cmds=
12959 shlibpath_overrides_runpath=unknown
12961 dynamic_linker="$host_os ld.so"
12962 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12963 if test "$GCC" = yes; then
12964 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12965 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12966 # if the path contains ";" then we assume it to be the separator
12967 # otherwise default to the standard path separator (i.e. ":") - it is
12968 # assumed that no part of a normal pathname contains ";" but that should
12969 # okay in the real world where ";" in dirpaths is itself problematic.
12970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12975 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12977 need_lib_prefix=unknown
12978 hardcode_into_libs=no
12980 # when you set need_version to no, make sure it does not cause -set_version
12981 # flags to be left without arguments
12982 need_version=unknown
12987 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12988 shlibpath_var=LIBPATH
12990 # AIX 3 has no versioning support, so we append a major version to the name.
12991 soname_spec='${libname}${release}${shared_ext}$major'
12998 hardcode_into_libs=yes
12999 if test "$host_cpu" = ia64; then
13000 # AIX 5 supports IA64
13001 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13002 shlibpath_var=LD_LIBRARY_PATH
13004 # With GCC up to 2.95.x, collect2 would create an import file
13005 # for dependence libraries. The import file would start with
13006 # the line `#! .'. This would cause the generated library to
13007 # depend on `.', always an invalid library. This was fixed in
13008 # development snapshots of GCC prior to 3.0.
13010 aix4 | aix4.[01] | aix4.[01].*)
13011 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13013 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13016 can_build_shared=no
13020 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13021 # soname into executable. Probably we can add versioning support to
13022 # collect2, so additional links can be useful in future.
13023 if test "$aix_use_runtimelinking" = yes; then
13024 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13025 # instead of lib<name>.a to let people know that these are not
13026 # typical AIX shared libraries.
13027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13029 # We preserve .a as extension for shared libraries through AIX4.2
13030 # and later when we are not doing run time linking.
13031 library_names_spec='${libname}${release}.a $libname.a'
13032 soname_spec='${libname}${release}${shared_ext}$major'
13034 shlibpath_var=LIBPATH
13039 library_names_spec='$libname.ixlibrary $libname.a'
13040 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13041 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'
13045 library_names_spec='${libname}${shared_ext}'
13046 dynamic_linker="$host_os ld.so"
13047 shlibpath_var=LIBRARY_PATH
13053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13054 soname_spec='${libname}${release}${shared_ext}$major'
13055 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13056 shlibpath_var=LD_LIBRARY_PATH
13057 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13058 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13059 # the default ld.so.conf also contains /usr/contrib/lib and
13060 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13061 # libtool to hard-code these into programs
13064 cygwin* | mingw* | pw32*)
13065 version_type=windows
13070 case $GCC,$host_os in
13071 yes,cygwin* | yes,mingw* | yes,pw32*)
13072 library_names_spec='$libname.dll.a'
13073 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13074 postinstall_cmds='base_file=`basename \${file}`~
13075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13076 dldir=$destdir/`dirname \$dlpath`~
13077 test -d \$dldir || mkdir -p \$dldir~
13078 $install_prog $dir/$dlname \$dldir/$dlname~
13079 chmod a+x \$dldir/$dlname'
13080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13081 dlpath=$dir/\$dldll~
13083 shlibpath_overrides_runpath=yes
13087 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13088 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13089 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13092 # MinGW DLLs use traditional 'lib' prefix
13093 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13094 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13095 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13096 # It is most probably a Windows format PATH printed by
13097 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13098 # path with ; separators, and with drive letters. We can handle the
13099 # drive letters (cygwin fileutils understands them), so leave them,
13100 # especially as we might pass files found there to a mingw objdump,
13101 # which wouldn't understand a cygwinified path. Ahh.
13102 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13108 # pw32 DLLs use 'pw' prefix rather than 'lib'
13109 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13115 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13118 dynamic_linker='Win32 ld.exe'
13119 # FIXME: first we should search . and the directory the executable is in
13123 darwin* | rhapsody*)
13124 dynamic_linker="$host_os dyld"
13125 version_type=darwin
13128 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13129 soname_spec='${libname}${release}${major}$shared_ext'
13130 shlibpath_overrides_runpath=yes
13131 shlibpath_var=DYLD_LIBRARY_PATH
13132 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13133 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13134 if test "$GCC" = yes; then
13135 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"`
13137 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13139 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13147 soname_spec='${libname}${release}${shared_ext}$major'
13148 shlibpath_var=LD_LIBRARY_PATH
13155 freebsd* | dragonfly*)
13156 # DragonFly does not have aout. When/if they implement a new
13157 # versioning mechanism, adjust this.
13158 if test -x /usr/bin/objformat; then
13159 objformat=`/usr/bin/objformat`
13162 freebsd[123]*) objformat=aout ;;
13163 *) objformat=elf ;;
13166 version_type=freebsd-$objformat
13167 case $version_type in
13169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13174 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13178 shlibpath_var=LD_LIBRARY_PATH
13181 shlibpath_overrides_runpath=yes
13183 freebsd3.[01]* | freebsdelf3.[01]*)
13184 shlibpath_overrides_runpath=yes
13185 hardcode_into_libs=yes
13187 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13188 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13189 shlibpath_overrides_runpath=no
13190 hardcode_into_libs=yes
13192 freebsd*) # from 4.6 on
13193 shlibpath_overrides_runpath=yes
13194 hardcode_into_libs=yes
13203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13204 soname_spec='${libname}${release}${shared_ext}$major'
13205 shlibpath_var=LD_LIBRARY_PATH
13206 hardcode_into_libs=yes
13209 hpux9* | hpux10* | hpux11*)
13210 # Give a soname corresponding to the major version so that dld.sl refuses to
13211 # link against other versions.
13218 hardcode_into_libs=yes
13219 dynamic_linker="$host_os dld.so"
13220 shlibpath_var=LD_LIBRARY_PATH
13221 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223 soname_spec='${libname}${release}${shared_ext}$major'
13224 if test "X$HPUX_IA64_MODE" = X32; then
13225 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13227 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13233 hardcode_into_libs=yes
13234 dynamic_linker="$host_os dld.sl"
13235 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13236 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13238 soname_spec='${libname}${release}${shared_ext}$major'
13239 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13244 dynamic_linker="$host_os dld.sl"
13245 shlibpath_var=SHLIB_PATH
13246 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13248 soname_spec='${libname}${release}${shared_ext}$major'
13251 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13252 postinstall_cmds='chmod 555 $lib'
13259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13260 soname_spec='${libname}${release}${shared_ext}$major'
13261 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13262 shlibpath_var=LD_LIBRARY_PATH
13263 shlibpath_overrides_runpath=no
13264 hardcode_into_libs=yes
13267 irix5* | irix6* | nonstopux*)
13269 nonstopux*) version_type=nonstopux ;;
13271 if test "$lt_cv_prog_gnu_ld" = yes; then
13279 soname_spec='${libname}${release}${shared_ext}$major'
13280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13282 irix5* | nonstopux*)
13283 libsuff= shlibsuff=
13286 case $LD in # libtool.m4 will add one of these switches to LD
13287 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13288 libsuff= shlibsuff= libmagic=32-bit;;
13289 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13290 libsuff=32 shlibsuff=N32 libmagic=N32;;
13291 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13292 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13293 *) libsuff= shlibsuff= libmagic=never-match;;
13297 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13298 shlibpath_overrides_runpath=no
13299 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13300 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13301 hardcode_into_libs=yes
13304 # No shared lib support for Linux oldld, aout, or coff.
13305 linux*oldld* | linux*aout* | linux*coff*)
13309 # This must be Linux ELF.
13310 linux* | k*bsd*-gnu)
13314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13315 soname_spec='${libname}${release}${shared_ext}$major'
13316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13317 shlibpath_var=LD_LIBRARY_PATH
13318 shlibpath_overrides_runpath=no
13319 # This implies no fast_install, which is unacceptable.
13320 # Some rework will be needed to allow for fast_install
13321 # before this can be enabled.
13322 hardcode_into_libs=yes
13324 # Append ld.so.conf contents to the search path
13325 if test -f /etc/ld.so.conf; then
13326 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' ' '`
13327 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13330 # We used to test for /lib/ld.so.1 and disable shared libraries on
13331 # powerpc, because MkLinux only supported shared libraries with the
13332 # GNU dynamic linker. Since this was broken with cross compilers,
13333 # most powerpc-linux boxes support dynamic linking these days and
13334 # people can always --disable-shared, the test was removed, and we
13335 # assume the GNU/Linux dynamic linker is in use.
13336 dynamic_linker='GNU/Linux ld.so'
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 shlibpath_var=LD_LIBRARY_PATH
13346 shlibpath_overrides_runpath=no
13347 hardcode_into_libs=yes
13348 dynamic_linker='NetBSD ld.elf_so'
13355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13358 dynamic_linker='NetBSD (a.out) ld.so'
13360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13361 soname_spec='${libname}${release}${shared_ext}$major'
13362 dynamic_linker='NetBSD ld.elf_so'
13364 shlibpath_var=LD_LIBRARY_PATH
13365 shlibpath_overrides_runpath=yes
13366 hardcode_into_libs=yes
13371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13372 shlibpath_var=LD_LIBRARY_PATH
13373 shlibpath_overrides_runpath=yes
13380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13381 soname_spec='${libname}${release}${shared_ext}$major'
13382 shlibpath_var=LD_LIBRARY_PATH
13383 shlibpath_overrides_runpath=yes
13388 sys_lib_dlsearch_path_spec="/usr/lib"
13390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13393 *) need_version=no ;;
13395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13397 shlibpath_var=LD_LIBRARY_PATH
13398 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13400 openbsd2.[89] | openbsd2.[89].*)
13401 shlibpath_overrides_runpath=no
13404 shlibpath_overrides_runpath=yes
13408 shlibpath_overrides_runpath=yes
13413 libname_spec='$name'
13416 library_names_spec='$libname${shared_ext} $libname.a'
13417 dynamic_linker='OS/2 ld.exe'
13418 shlibpath_var=LIBPATH
13421 osf3* | osf4* | osf5*)
13425 soname_spec='${libname}${release}${shared_ext}$major'
13426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13427 shlibpath_var=LD_LIBRARY_PATH
13428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13437 soname_spec='${libname}${release}${shared_ext}$major'
13438 shlibpath_var=LD_LIBRARY_PATH
13439 shlibpath_overrides_runpath=yes
13440 hardcode_into_libs=yes
13441 # ldd complains unless libraries are executable
13442 postinstall_cmds='chmod +x $lib'
13447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13448 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13449 shlibpath_var=LD_LIBRARY_PATH
13450 shlibpath_overrides_runpath=yes
13451 if test "$with_gnu_ld" = yes; then
13459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13460 soname_spec='${libname}${release}${shared_ext}$major'
13461 shlibpath_var=LD_LIBRARY_PATH
13462 case $host_vendor in
13464 shlibpath_overrides_runpath=no
13466 export_dynamic_flag_spec='${wl}-Blargedynsym'
13467 runpath_var=LD_RUN_PATH
13475 shlibpath_overrides_runpath=no
13476 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13482 if test -d /usr/nec ;then
13484 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13485 soname_spec='$libname${shared_ext}.$major'
13486 shlibpath_var=LD_LIBRARY_PATH
13490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13491 version_type=freebsd-elf
13494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13495 soname_spec='${libname}${release}${shared_ext}$major'
13496 shlibpath_var=LD_LIBRARY_PATH
13497 hardcode_into_libs=yes
13498 if test "$with_gnu_ld" = yes; then
13499 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13500 shlibpath_overrides_runpath=no
13502 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13503 shlibpath_overrides_runpath=yes
13506 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13510 sys_lib_dlsearch_path_spec='/usr/lib'
13515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13516 soname_spec='${libname}${release}${shared_ext}$major'
13517 shlibpath_var=LD_LIBRARY_PATH
13524 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13525 echo "${ECHO_T}$dynamic_linker" >&6
13526 test "$dynamic_linker" = no && can_build_shared=no
13528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13529 if test "$GCC" = yes; then
13530 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13533 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13534 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13535 hardcode_action_CXX=
13536 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13537 test -n "$runpath_var_CXX" || \
13538 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13540 # We can hardcode non-existant directories.
13541 if test "$hardcode_direct_CXX" != no &&
13542 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13543 # have to relink, otherwise we might link with an installed library
13544 # when we should be linking with a yet-to-be-installed one
13545 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13546 test "$hardcode_minus_L_CXX" != no; then
13547 # Linking always hardcodes the temporary library directory.
13548 hardcode_action_CXX=relink
13550 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13551 hardcode_action_CXX=immediate
13554 # We cannot hardcode anything, or else we can only hardcode existing
13556 hardcode_action_CXX=unsupported
13558 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13559 echo "${ECHO_T}$hardcode_action_CXX" >&6
13561 if test "$hardcode_action_CXX" = relink; then
13562 # Fast installation is not supported
13563 enable_fast_install=no
13564 elif test "$shlibpath_overrides_runpath" = yes ||
13565 test "$enable_shared" = no; then
13566 # Fast installation is not necessary
13567 enable_fast_install=needless
13571 # The else clause should only fire when bootstrapping the
13572 # libtool distribution, otherwise you forgot to ship ltmain.sh
13573 # with your package, and you will get complaints that there are
13574 # no rules to generate ltmain.sh.
13575 if test -f "$ltmain"; then
13576 # See if we are running on zsh, and set the options which allow our commands through
13577 # without removal of \ escapes.
13578 if test -n "${ZSH_VERSION+set}" ; then
13579 setopt NO_GLOB_SUBST
13581 # Now quote all the things that may contain metacharacters while being
13582 # careful not to overquote the AC_SUBSTed values. We take copies of the
13583 # variables and quote the copies for generation of the libtool script.
13584 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13586 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13587 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13588 deplibs_check_method reload_flag reload_cmds need_locks \
13589 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13590 lt_cv_sys_global_symbol_to_c_name_address \
13591 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13592 old_postinstall_cmds old_postuninstall_cmds \
13596 lt_prog_compiler_wl_CXX \
13597 lt_prog_compiler_pic_CXX \
13598 lt_prog_compiler_static_CXX \
13599 lt_prog_compiler_no_builtin_flag_CXX \
13600 export_dynamic_flag_spec_CXX \
13601 thread_safe_flag_spec_CXX \
13602 whole_archive_flag_spec_CXX \
13603 enable_shared_with_static_runtimes_CXX \
13604 old_archive_cmds_CXX \
13605 old_archive_from_new_cmds_CXX \
13606 predep_objects_CXX \
13607 postdep_objects_CXX \
13610 compiler_lib_search_path_CXX \
13612 archive_expsym_cmds_CXX \
13613 postinstall_cmds_CXX \
13614 postuninstall_cmds_CXX \
13615 old_archive_from_expsyms_cmds_CXX \
13616 allow_undefined_flag_CXX \
13617 no_undefined_flag_CXX \
13618 export_symbols_cmds_CXX \
13619 hardcode_libdir_flag_spec_CXX \
13620 hardcode_libdir_flag_spec_ld_CXX \
13621 hardcode_libdir_separator_CXX \
13622 hardcode_automatic_CXX \
13624 module_expsym_cmds_CXX \
13625 lt_cv_prog_compiler_c_o_CXX \
13626 exclude_expsyms_CXX \
13627 include_expsyms_CXX; do
13630 old_archive_cmds_CXX | \
13631 old_archive_from_new_cmds_CXX | \
13632 archive_cmds_CXX | \
13633 archive_expsym_cmds_CXX | \
13634 module_cmds_CXX | \
13635 module_expsym_cmds_CXX | \
13636 old_archive_from_expsyms_cmds_CXX | \
13637 export_symbols_cmds_CXX | \
13638 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13639 postinstall_cmds | postuninstall_cmds | \
13640 old_postinstall_cmds | old_postuninstall_cmds | \
13641 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13642 # Double-quote double-evaled strings.
13643 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13646 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13652 *'\$0 --fallback-echo"')
13653 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13659 cat <<__EOF__ >> "$cfgfile"
13660 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13664 # Shell to use when invoking shell scripts.
13667 # Whether or not to build shared libraries.
13668 build_libtool_libs=$enable_shared
13670 # Whether or not to build static libraries.
13671 build_old_libs=$enable_static
13673 # Whether or not to add -lc for building shared libraries.
13674 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13676 # Whether or not to disallow shared libs when runtime libs are static
13677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13679 # Whether or not to optimize for fast installation.
13680 fast_install=$enable_fast_install
13683 host_alias=$host_alias
13687 # The build system.
13688 build_alias=$build_alias
13692 # An echo program that does not interpret backslashes.
13697 AR_FLAGS=$lt_AR_FLAGS
13702 # LTCC compiler flags.
13703 LTCFLAGS=$lt_LTCFLAGS
13705 # A language-specific compiler.
13706 CC=$lt_compiler_CXX
13708 # Is the compiler the GNU C compiler?
13714 # The linker used to build libraries.
13717 # Whether we need hard or soft links.
13720 # A BSD-compatible nm program.
13723 # A symbol stripping program
13726 # Used to examine libraries when file_magic_cmd begins "file"
13727 MAGIC_CMD=$MAGIC_CMD
13729 # Used on cygwin: DLL creation program.
13732 # Used on cygwin: object dumper.
13735 # Used on cygwin: assembler.
13738 # The name of the directory that contains temporary libtool files.
13741 # How to create reloadable object files.
13742 reload_flag=$lt_reload_flag
13743 reload_cmds=$lt_reload_cmds
13745 # How to pass a linker flag through the compiler.
13746 wl=$lt_lt_prog_compiler_wl_CXX
13748 # Object file suffix (normally "o").
13749 objext="$ac_objext"
13751 # Old archive suffix (normally "a").
13754 # Shared library suffix (normally ".so").
13755 shrext_cmds='$shrext_cmds'
13757 # Executable file suffix (normally "").
13760 # Additional compiler flags for building library objects.
13761 pic_flag=$lt_lt_prog_compiler_pic_CXX
13764 # What is the maximum length of a command?
13765 max_cmd_len=$lt_cv_sys_max_cmd_len
13767 # Does compiler simultaneously support -c and -o options?
13768 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13770 # Must we lock files when doing compilation?
13771 need_locks=$lt_need_locks
13773 # Do we need the lib prefix for modules?
13774 need_lib_prefix=$need_lib_prefix
13776 # Do we need a version for libraries?
13777 need_version=$need_version
13779 # Whether dlopen is supported.
13780 dlopen_support=$enable_dlopen
13782 # Whether dlopen of programs is supported.
13783 dlopen_self=$enable_dlopen_self
13785 # Whether dlopen of statically linked programs is supported.
13786 dlopen_self_static=$enable_dlopen_self_static
13788 # Compiler flag to prevent dynamic linking.
13789 link_static_flag=$lt_lt_prog_compiler_static_CXX
13791 # Compiler flag to turn off builtin functions.
13792 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13794 # Compiler flag to allow reflexive dlopens.
13795 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13797 # Compiler flag to generate shared objects directly from archives.
13798 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13800 # Compiler flag to generate thread-safe objects.
13801 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13803 # Library versioning type.
13804 version_type=$version_type
13806 # Format of library name prefix.
13807 libname_spec=$lt_libname_spec
13809 # List of archive names. First name is the real one, the rest are links.
13810 # The last name is the one that the linker finds with -lNAME.
13811 library_names_spec=$lt_library_names_spec
13813 # The coded name of the library, if different from the real name.
13814 soname_spec=$lt_soname_spec
13816 # Commands used to build and install an old-style archive.
13818 old_archive_cmds=$lt_old_archive_cmds_CXX
13819 old_postinstall_cmds=$lt_old_postinstall_cmds
13820 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13822 # Create an old-style archive from a shared archive.
13823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13825 # Create a temporary old-style archive to link instead of a shared archive.
13826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13828 # Commands used to build and install a shared archive.
13829 archive_cmds=$lt_archive_cmds_CXX
13830 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13831 postinstall_cmds=$lt_postinstall_cmds
13832 postuninstall_cmds=$lt_postuninstall_cmds
13834 # Commands used to build a loadable module (assumed same as above if empty)
13835 module_cmds=$lt_module_cmds_CXX
13836 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13838 # Commands to strip libraries.
13839 old_striplib=$lt_old_striplib
13840 striplib=$lt_striplib
13842 # Dependencies to place before the objects being linked to create a
13844 predep_objects=$lt_predep_objects_CXX
13846 # Dependencies to place after the objects being linked to create a
13848 postdep_objects=$lt_postdep_objects_CXX
13850 # Dependencies to place before the objects being linked to create a
13852 predeps=$lt_predeps_CXX
13854 # Dependencies to place after the objects being linked to create a
13856 postdeps=$lt_postdeps_CXX
13858 # The library search path used internally by the compiler when linking
13859 # a shared library.
13860 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13862 # Method to check whether dependent libraries are shared objects.
13863 deplibs_check_method=$lt_deplibs_check_method
13865 # Command to use when deplibs_check_method == file_magic.
13866 file_magic_cmd=$lt_file_magic_cmd
13868 # Flag that allows shared libraries with undefined symbols to be built.
13869 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13871 # Flag that forces no undefined symbols.
13872 no_undefined_flag=$lt_no_undefined_flag_CXX
13874 # Commands used to finish a libtool library installation in a directory.
13875 finish_cmds=$lt_finish_cmds
13877 # Same as above, but a single script fragment to be evaled but not shown.
13878 finish_eval=$lt_finish_eval
13880 # Take the output of nm and produce a listing of raw symbols and C names.
13881 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13883 # Transform the output of nm in a proper C declaration
13884 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13886 # Transform the output of nm in a C name address pair
13887 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13889 # This is the shared library runtime path variable.
13890 runpath_var=$runpath_var
13892 # This is the shared library path variable.
13893 shlibpath_var=$shlibpath_var
13895 # Is shlibpath searched before the hard-coded library search path?
13896 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13898 # How to hardcode a shared library path into an executable.
13899 hardcode_action=$hardcode_action_CXX
13901 # Whether we should hardcode library paths into libraries.
13902 hardcode_into_libs=$hardcode_into_libs
13904 # Flag to hardcode \$libdir into a binary during linking.
13905 # This must work even if \$libdir does not exist.
13906 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13908 # If ld is used when linking, flag to hardcode \$libdir into
13909 # a binary during linking. This must work even if \$libdir does
13911 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13913 # Whether we need a single -rpath flag with a separated argument.
13914 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13916 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13917 # resulting binary.
13918 hardcode_direct=$hardcode_direct_CXX
13920 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13921 # resulting binary.
13922 hardcode_minus_L=$hardcode_minus_L_CXX
13924 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13925 # the resulting binary.
13926 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13928 # Set to yes if building a shared library automatically hardcodes DIR into the library
13929 # and all subsequent libraries and executables linked against it.
13930 hardcode_automatic=$hardcode_automatic_CXX
13932 # Variables whose values should be saved in libtool wrapper scripts and
13933 # restored at relink time.
13934 variables_saved_for_relink="$variables_saved_for_relink"
13936 # Whether libtool must link a program against all its dependency libraries.
13937 link_all_deplibs=$link_all_deplibs_CXX
13939 # Compile-time system search path for libraries
13940 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13942 # Run-time system search path for libraries
13943 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13945 # Fix the shell variable \$srcfile for the compiler.
13946 fix_srcfile_path="$fix_srcfile_path_CXX"
13948 # Set to yes if exported symbols are required.
13949 always_export_symbols=$always_export_symbols_CXX
13951 # The commands to list exported symbols.
13952 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13954 # The commands to extract the exported symbol list from a shared archive.
13955 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13957 # Symbols that should not be listed in the preloaded symbols.
13958 exclude_expsyms=$lt_exclude_expsyms_CXX
13960 # Symbols that must always be exported.
13961 include_expsyms=$lt_include_expsyms_CXX
13963 # ### END LIBTOOL TAG CONFIG: $tagname
13969 # If there is no Makefile yet, we rely on a make rule to execute
13970 # `config.status --recheck' to rerun these tests and create the
13971 # libtool script then.
13972 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13973 if test -f "$ltmain_in"; then
13974 test -f Makefile && make "$ltmain"
13980 ac_cpp='$CPP $CPPFLAGS'
13981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13989 with_gnu_ldcxx=$with_gnu_ld
13990 with_gnu_ld=$lt_save_with_gnu_ld
13991 lt_cv_path_LDCXX=$lt_cv_path_LD
13992 lt_cv_path_LD=$lt_save_path_LD
13993 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13994 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14002 if test -n "$F77" && test "X$F77" != "Xno"; then
14005 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14006 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14007 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14010 archive_cmds_need_lc_F77=no
14011 allow_undefined_flag_F77=
14012 always_export_symbols_F77=no
14013 archive_expsym_cmds_F77=
14014 export_dynamic_flag_spec_F77=
14015 hardcode_direct_F77=no
14016 hardcode_libdir_flag_spec_F77=
14017 hardcode_libdir_flag_spec_ld_F77=
14018 hardcode_libdir_separator_F77=
14019 hardcode_minus_L_F77=no
14020 hardcode_automatic_F77=no
14022 module_expsym_cmds_F77=
14023 link_all_deplibs_F77=unknown
14024 old_archive_cmds_F77=$old_archive_cmds
14025 no_undefined_flag_F77=
14026 whole_archive_flag_spec_F77=
14027 enable_shared_with_static_runtimes_F77=no
14029 # Source file extension for f77 test sources.
14032 # Object file extension for compiled f77 test sources.
14036 # Code to be used in simple compile tests
14037 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14039 # Code to be used in simple link tests
14040 lt_simple_link_test_code=" program t\n end\n"
14042 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14044 # If no C compiler was specified, use CC.
14047 # If no C compiler flags were specified, use CFLAGS.
14048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14050 # Allow CC to be a program name with arguments.
14054 # save warnings/boilerplate of simple test code
14055 ac_outfile=conftest.$ac_objext
14056 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14057 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14058 _lt_compiler_boilerplate=`cat conftest.err`
14061 ac_outfile=conftest.$ac_objext
14062 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14063 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14064 _lt_linker_boilerplate=`cat conftest.err`
14068 # Allow CC to be a program name with arguments.
14073 for cc_temp in $compiler""; do
14075 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14076 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14081 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14084 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14085 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14086 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14087 echo "${ECHO_T}$can_build_shared" >&6
14089 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14090 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14091 test "$can_build_shared" = "no" && enable_shared=no
14093 # On AIX, shared libraries and static libraries use the same namespace, and
14094 # are all built from PIC.
14097 test "$enable_shared" = yes && enable_static=no
14098 if test -n "$RANLIB"; then
14099 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14100 postinstall_cmds='$RANLIB $lib'
14104 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14105 test "$enable_shared" = yes && enable_static=no
14109 echo "$as_me:$LINENO: result: $enable_shared" >&5
14110 echo "${ECHO_T}$enable_shared" >&6
14112 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14113 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14114 # Make sure either enable_shared or enable_static is yes.
14115 test "$enable_shared" = yes || enable_static=yes
14116 echo "$as_me:$LINENO: result: $enable_static" >&5
14117 echo "${ECHO_T}$enable_static" >&6
14122 lt_prog_compiler_wl_F77=
14123 lt_prog_compiler_pic_F77=
14124 lt_prog_compiler_static_F77=
14126 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14127 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14129 if test "$GCC" = yes; then
14130 lt_prog_compiler_wl_F77='-Wl,'
14131 lt_prog_compiler_static_F77='-static'
14135 # All AIX code is PIC.
14136 if test "$host_cpu" = ia64; then
14137 # AIX 5 now supports IA64 processor
14138 lt_prog_compiler_static_F77='-Bstatic'
14143 # FIXME: we need at least 68020 code to build shared libraries, but
14144 # adding the `-m68020' flag to GCC prevents building anything better,
14146 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14149 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14150 # PIC is the default for these OSes.
14153 mingw* | pw32* | os2*)
14154 # This hack is so that the source file can tell whether it is being
14155 # built for inclusion in a dll (and should export symbols for example).
14156 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14159 darwin* | rhapsody*)
14160 # PIC is the default on this platform
14161 # Common symbols not allowed in MH_DYLIB files
14162 lt_prog_compiler_pic_F77='-fno-common'
14166 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14167 # Instead, we relocate shared libraries at runtime.
14171 # Just because we use GCC doesn't mean we suddenly get shared libraries
14172 # on systems that don't support them.
14173 lt_prog_compiler_can_build_shared_F77=no
14178 if test -d /usr/nec; then
14179 lt_prog_compiler_pic_F77=-Kconform_pic
14184 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14185 # not for PA HP-UX.
14191 lt_prog_compiler_pic_F77='-fPIC'
14197 lt_prog_compiler_pic_F77='-fPIC'
14201 # PORTME Check for flag to pass linker flags through the system compiler.
14204 lt_prog_compiler_wl_F77='-Wl,'
14205 if test "$host_cpu" = ia64; then
14206 # AIX 5 now supports IA64 processor
14207 lt_prog_compiler_static_F77='-Bstatic'
14209 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14213 # PIC is the default on this platform
14214 # Common symbols not allowed in MH_DYLIB files
14215 case $cc_basename in
14217 lt_prog_compiler_pic_F77='-qnocommon'
14218 lt_prog_compiler_wl_F77='-Wl,'
14223 mingw* | pw32* | os2*)
14224 # This hack is so that the source file can tell whether it is being
14225 # built for inclusion in a dll (and should export symbols for example).
14226 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14229 hpux9* | hpux10* | hpux11*)
14230 lt_prog_compiler_wl_F77='-Wl,'
14231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14232 # not for PA HP-UX.
14238 lt_prog_compiler_pic_F77='+Z'
14241 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14242 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14245 irix5* | irix6* | nonstopux*)
14246 lt_prog_compiler_wl_F77='-Wl,'
14247 # PIC (with -KPIC) is the default.
14248 lt_prog_compiler_static_F77='-non_shared'
14252 lt_prog_compiler_pic_F77='-KPIC'
14253 lt_prog_compiler_static_F77='-Bstatic'
14256 linux* | k*bsd*-gnu)
14257 case $cc_basename in
14259 lt_prog_compiler_wl_F77='-Wl,'
14260 lt_prog_compiler_pic_F77='-KPIC'
14261 lt_prog_compiler_static_F77='-static'
14263 pgcc* | pgf77* | pgf90* | pgf95*)
14264 # Portland Group compilers (*not* the Pentium gcc compiler,
14265 # which looks to be a dead project)
14266 lt_prog_compiler_wl_F77='-Wl,'
14267 lt_prog_compiler_pic_F77='-fpic'
14268 lt_prog_compiler_static_F77='-Bstatic'
14271 lt_prog_compiler_wl_F77='-Wl,'
14272 # All Alpha code is PIC.
14273 lt_prog_compiler_static_F77='-non_shared'
14278 osf3* | osf4* | osf5*)
14279 lt_prog_compiler_wl_F77='-Wl,'
14280 # All OSF/1 code is PIC.
14281 lt_prog_compiler_static_F77='-non_shared'
14285 lt_prog_compiler_pic_F77='-KPIC'
14286 lt_prog_compiler_static_F77='-Bstatic'
14287 case $cc_basename in
14288 f77* | f90* | f95*)
14289 lt_prog_compiler_wl_F77='-Qoption ld ';;
14291 lt_prog_compiler_wl_F77='-Wl,';;
14296 lt_prog_compiler_wl_F77='-Qoption ld '
14297 lt_prog_compiler_pic_F77='-PIC'
14298 lt_prog_compiler_static_F77='-Bstatic'
14301 sysv4 | sysv4.2uw2* | sysv4.3*)
14302 lt_prog_compiler_wl_F77='-Wl,'
14303 lt_prog_compiler_pic_F77='-KPIC'
14304 lt_prog_compiler_static_F77='-Bstatic'
14308 if test -d /usr/nec ;then
14309 lt_prog_compiler_pic_F77='-Kconform_pic'
14310 lt_prog_compiler_static_F77='-Bstatic'
14314 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14315 lt_prog_compiler_wl_F77='-Wl,'
14316 lt_prog_compiler_pic_F77='-KPIC'
14317 lt_prog_compiler_static_F77='-Bstatic'
14321 lt_prog_compiler_wl_F77='-Wl,'
14322 lt_prog_compiler_can_build_shared_F77=no
14326 lt_prog_compiler_pic_F77='-pic'
14327 lt_prog_compiler_static_F77='-Bstatic'
14331 lt_prog_compiler_can_build_shared_F77=no
14336 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14337 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14340 # Check to make sure the PIC flag actually works.
14342 if test -n "$lt_prog_compiler_pic_F77"; then
14344 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14345 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14346 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 lt_prog_compiler_pic_works_F77=no
14350 ac_outfile=conftest.$ac_objext
14351 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14352 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14353 # Insert the option either (1) after the last *FLAGS variable, or
14354 # (2) before a word containing "conftest.", or (3) at the end.
14355 # Note that $ac_compile itself does not contain backslashes and begins
14356 # with a dollar sign (not a hyphen), so the echo should work correctly.
14357 # The option is referenced via a variable to avoid confusing sed.
14358 lt_compile=`echo "$ac_compile" | $SED \
14359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14361 -e 's:$: $lt_compiler_flag:'`
14362 (eval echo "\"\$as_me:14362: $lt_compile\"" >&5)
14363 (eval "$lt_compile" 2>conftest.err)
14365 cat conftest.err >&5
14366 echo "$as_me:14366: \$? = $ac_status" >&5
14367 if (exit $ac_status) && test -s "$ac_outfile"; then
14368 # The compiler can only warn and ignore the option if not recognized
14369 # So say no if there are warnings other than the usual output.
14370 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14372 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14373 lt_prog_compiler_pic_works_F77=yes
14379 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14380 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14382 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14383 case $lt_prog_compiler_pic_F77 in
14385 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14388 lt_prog_compiler_pic_F77=
14389 lt_prog_compiler_can_build_shared_F77=no
14394 # For platforms which do not support PIC, -DPIC is meaningless:
14396 lt_prog_compiler_pic_F77=
14399 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14404 # Check to make sure the static flag actually works.
14406 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14407 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14408 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14409 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 lt_prog_compiler_static_works_F77=no
14413 save_LDFLAGS="$LDFLAGS"
14414 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14415 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14416 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14417 # The linker can only warn and ignore the option if not recognized
14418 # So say no if there are warnings
14419 if test -s conftest.err; then
14420 # Append any errors to the config.log.
14421 cat conftest.err 1>&5
14422 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14424 if diff conftest.exp conftest.er2 >/dev/null; then
14425 lt_prog_compiler_static_works_F77=yes
14428 lt_prog_compiler_static_works_F77=yes
14432 LDFLAGS="$save_LDFLAGS"
14435 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14436 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14438 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14441 lt_prog_compiler_static_F77=
14445 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14446 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14447 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 lt_cv_prog_compiler_c_o_F77=no
14451 $rm -r conftest 2>/dev/null
14455 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14457 lt_compiler_flag="-o out/conftest2.$ac_objext"
14458 # Insert the option either (1) after the last *FLAGS variable, or
14459 # (2) before a word containing "conftest.", or (3) at the end.
14460 # Note that $ac_compile itself does not contain backslashes and begins
14461 # with a dollar sign (not a hyphen), so the echo should work correctly.
14462 lt_compile=`echo "$ac_compile" | $SED \
14463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14465 -e 's:$: $lt_compiler_flag:'`
14466 (eval echo "\"\$as_me:14466: $lt_compile\"" >&5)
14467 (eval "$lt_compile" 2>out/conftest.err)
14469 cat out/conftest.err >&5
14470 echo "$as_me:14470: \$? = $ac_status" >&5
14471 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14473 # The compiler can only warn and ignore the option if not recognized
14474 # So say no if there are warnings
14475 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14476 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14477 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14478 lt_cv_prog_compiler_c_o_F77=yes
14483 # SGI C++ compiler will create directory out/ii_files/ for
14484 # template instantiation
14485 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14486 $rm out/* && rmdir out
14492 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14493 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14496 hard_links="nottested"
14497 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14498 # do not overwrite the value of need_locks provided by the user
14499 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14500 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14503 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14505 ln conftest.a conftest.b 2>&5 || hard_links=no
14506 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14507 echo "$as_me:$LINENO: result: $hard_links" >&5
14508 echo "${ECHO_T}$hard_links" >&6
14509 if test "$hard_links" = no; then
14510 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14511 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14518 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14519 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14522 allow_undefined_flag_F77=
14523 enable_shared_with_static_runtimes_F77=no
14525 archive_expsym_cmds_F77=
14526 old_archive_From_new_cmds_F77=
14527 old_archive_from_expsyms_cmds_F77=
14528 export_dynamic_flag_spec_F77=
14529 whole_archive_flag_spec_F77=
14530 thread_safe_flag_spec_F77=
14531 hardcode_libdir_flag_spec_F77=
14532 hardcode_libdir_flag_spec_ld_F77=
14533 hardcode_libdir_separator_F77=
14534 hardcode_direct_F77=no
14535 hardcode_minus_L_F77=no
14536 hardcode_shlibpath_var_F77=unsupported
14537 link_all_deplibs_F77=unknown
14538 hardcode_automatic_F77=no
14540 module_expsym_cmds_F77=
14541 always_export_symbols_F77=no
14542 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14543 # include_expsyms should be a list of space-separated symbols to be *always*
14544 # included in the symbol list
14545 include_expsyms_F77=
14546 # exclude_expsyms can be an extended regexp of symbols to exclude
14547 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14548 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14549 # as well as any symbol that contains `d'.
14550 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14551 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14552 # platforms (ab)use it in PIC code, but their linkers get confused if
14553 # the symbol is explicitly referenced. Since portable code cannot
14554 # rely on this symbol name, it's probably fine to never include it in
14555 # preloaded symbol tables.
14556 extract_expsyms_cmds=
14557 # Just being paranoid about ensuring that cc_basename is set.
14558 for cc_temp in $compiler""; do
14560 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14561 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14566 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14569 cygwin* | mingw* | pw32*)
14570 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14571 # When not using gcc, we currently assume that we are using
14572 # Microsoft Visual C++.
14573 if test "$GCC" != yes; then
14578 # we just hope/assume this is gcc and not c89 (= MSVC++)
14587 if test "$with_gnu_ld" = yes; then
14588 # If archive_cmds runs LD, not CC, wlarc should be empty
14591 # Set some defaults for GNU ld with shared library support. These
14592 # are reset later if shared libraries are not supported. Putting them
14593 # here allows them to be overridden if necessary.
14594 runpath_var=LD_RUN_PATH
14595 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14596 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14597 # ancient GNU ld didn't support --whole-archive et. al.
14598 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14599 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14601 whole_archive_flag_spec_F77=
14603 supports_anon_versioning=no
14604 case `$LD -v 2>/dev/null` in
14605 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14606 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14607 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14608 *\ 2.11.*) ;; # other 2.11 versions
14609 *) supports_anon_versioning=yes ;;
14612 # See if GNU ld supports shared libraries.
14614 aix3* | aix4* | aix5*)
14615 # On AIX/PPC, the GNU linker is very broken
14616 if test "$host_cpu" != ia64; then
14620 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14621 *** to be unable to reliably create shared libraries on AIX.
14622 *** Therefore, libtool is disabling shared libraries support. If you
14623 *** really care for shared libraries, you may want to modify your PATH
14624 *** so that a non-GNU linker is found, and then restart.
14631 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)'
14632 hardcode_libdir_flag_spec_F77='-L$libdir'
14633 hardcode_minus_L_F77=yes
14635 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14636 # that the semantics of dynamic libraries on AmigaOS, at least up
14637 # to version 4, is to share data among multiple programs linked
14638 # with the same dynamic library. Since this doesn't match the
14639 # behavior of shared libraries on other platforms, we can't use
14645 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14646 allow_undefined_flag_F77=unsupported
14647 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14648 # support --undefined. This deserves some investigation. FIXME
14649 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14655 cygwin* | mingw* | pw32*)
14656 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14657 # as there is no search path for DLLs.
14658 hardcode_libdir_flag_spec_F77='-L$libdir'
14659 allow_undefined_flag_F77=unsupported
14660 always_export_symbols_F77=no
14661 enable_shared_with_static_runtimes_F77=yes
14662 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14664 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14665 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14666 # If the export-symbols file already is a .def file (1st line
14667 # is EXPORTS), use it as is; otherwise, prepend...
14668 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14669 cp $export_symbols $output_objdir/$soname.def;
14671 echo EXPORTS > $output_objdir/$soname.def;
14672 cat $export_symbols >> $output_objdir/$soname.def;
14674 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14681 hardcode_direct_F77=no
14682 hardcode_shlibpath_var_F77=no
14683 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14684 export_dynamic_flag_spec_F77='${wl}-E'
14685 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14686 # Instead, shared libraries are loaded at an image base (0x10000000 by
14687 # default) and relocated if they conflict, which is a slow very memory
14688 # consuming and fragmenting process. To avoid this, we pick a random,
14689 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14690 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14691 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'
14692 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'
14695 linux* | k*bsd*-gnu)
14696 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14698 case $cc_basename,$host_cpu in
14699 pgcc*) # Portland Group C compiler
14700 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'
14701 tmp_addflag=' $pic_flag'
14703 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14704 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'
14705 tmp_addflag=' $pic_flag -Mnomain' ;;
14706 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14707 tmp_addflag=' -i_dynamic' ;;
14708 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14709 tmp_addflag=' -i_dynamic -nofor_main' ;;
14710 ifc* | ifort*) # Intel Fortran compiler
14711 tmp_addflag=' -nofor_main' ;;
14713 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14715 if test $supports_anon_versioning = yes; then
14716 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14717 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14718 $echo "local: *; };" >> $output_objdir/$libname.ver~
14719 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14721 link_all_deplibs_F77=no
14727 netbsd* | netbsdelf*-gnu)
14728 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14729 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14732 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14733 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14738 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14742 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14743 *** create shared libraries on Solaris systems. Therefore, libtool
14744 *** is disabling shared libraries support. We urge you to upgrade GNU
14745 *** binutils to release 2.9.1 or newer. Another option is to modify
14746 *** your PATH or compiler configuration so that the native linker is
14747 *** used, and then restart.
14750 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14751 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14752 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14758 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14759 case `$LD -v 2>&1` in
14760 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14764 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14765 *** reliably create shared libraries on SCO systems. Therefore, libtool
14766 *** is disabling shared libraries support. We urge you to upgrade GNU
14767 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14768 *** your PATH or compiler configuration so that the native linker is
14769 *** used, and then restart.
14774 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14775 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14776 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14777 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14786 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14788 hardcode_direct_F77=yes
14789 hardcode_shlibpath_var_F77=no
14793 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14794 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14795 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14802 if test "$ld_shlibs_F77" = no; then
14804 hardcode_libdir_flag_spec_F77=
14805 export_dynamic_flag_spec_F77=
14806 whole_archive_flag_spec_F77=
14809 # PORTME fill in a description of your system's linker (not GNU ld)
14812 allow_undefined_flag_F77=unsupported
14813 always_export_symbols_F77=yes
14814 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'
14815 # Note: this linker hardcodes the directories in LIBPATH if there
14816 # are no directories specified by -L.
14817 hardcode_minus_L_F77=yes
14818 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14819 # Neither direct hardcoding nor static linking is supported with a
14821 hardcode_direct_F77=unsupported
14826 if test "$host_cpu" = ia64; then
14827 # On IA64, the linker does run time linking by default, so we don't
14828 # have to do anything special.
14829 aix_use_runtimelinking=no
14830 exp_sym_flag='-Bexport'
14833 # If we're using GNU nm, then we don't want the "-C" option.
14834 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14835 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14836 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'
14838 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'
14840 aix_use_runtimelinking=no
14842 # Test if we are trying to use run time linking or normal
14843 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14844 # need to do runtime linking.
14845 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14846 for ld_flag in $LDFLAGS; do
14847 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14848 aix_use_runtimelinking=yes
14855 exp_sym_flag='-bexport'
14856 no_entry_flag='-bnoentry'
14859 # When large executables or shared objects are built, AIX ld can
14860 # have problems creating the table of contents. If linking a library
14861 # or program results in "error TOC overflow" add -mminimal-toc to
14862 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14863 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14865 archive_cmds_F77=''
14866 hardcode_direct_F77=yes
14867 hardcode_libdir_separator_F77=':'
14868 link_all_deplibs_F77=yes
14870 if test "$GCC" = yes; then
14871 case $host_os in aix4.[012]|aix4.[012].*)
14872 # We only want to do this on AIX 4.2 and lower, the check
14873 # below for broken collect2 doesn't work under 4.3+
14874 collect2name=`${CC} -print-prog-name=collect2`
14875 if test -f "$collect2name" && \
14876 strings "$collect2name" | grep resolve_lib_name >/dev/null
14878 # We have reworked collect2
14879 hardcode_direct_F77=yes
14881 # We have old collect2
14882 hardcode_direct_F77=unsupported
14883 # It fails to find uninstalled libraries when the uninstalled
14884 # path is not listed in the libpath. Setting hardcode_minus_L
14885 # to unsupported forces relinking
14886 hardcode_minus_L_F77=yes
14887 hardcode_libdir_flag_spec_F77='-L$libdir'
14888 hardcode_libdir_separator_F77=
14892 shared_flag='-shared'
14893 if test "$aix_use_runtimelinking" = yes; then
14894 shared_flag="$shared_flag "'${wl}-G'
14898 if test "$host_cpu" = ia64; then
14899 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14900 # chokes on -Wl,-G. The following line is correct:
14903 if test "$aix_use_runtimelinking" = yes; then
14904 shared_flag='${wl}-G'
14906 shared_flag='${wl}-bM:SRE'
14911 # It seems that -bexpall does not export symbols beginning with
14912 # underscore (_), so it is better to generate a list of symbols to export.
14913 always_export_symbols_F77=yes
14914 if test "$aix_use_runtimelinking" = yes; then
14915 # Warning - without using the other runtime loading flags (-brtl),
14916 # -berok will link without error, but may produce a broken library.
14917 allow_undefined_flag_F77='-berok'
14918 # Determine the default libpath from the value encoded in an empty executable.
14919 cat >conftest.$ac_ext <<_ACEOF
14924 rm -f conftest.$ac_objext conftest$ac_exeext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14926 (eval $ac_link) 2>conftest.er1
14928 grep -v '^ *+' conftest.er1 >conftest.err
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } &&
14933 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; } &&
14939 { ac_try='test -s conftest$ac_exeext'
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; }; then
14946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14948 # Check for a 64-bit object if we didn't find anything.
14949 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; }
14952 echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.$ac_ext >&5
14956 rm -f conftest.err conftest.$ac_objext \
14957 conftest$ac_exeext conftest.$ac_ext
14958 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14960 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14961 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"
14963 if test "$host_cpu" = ia64; then
14964 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14965 allow_undefined_flag_F77="-z nodefs"
14966 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"
14968 # Determine the default libpath from the value encoded in an empty executable.
14969 cat >conftest.$ac_ext <<_ACEOF
14974 rm -f conftest.$ac_objext conftest$ac_exeext
14975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14976 (eval $ac_link) 2>conftest.er1
14978 grep -v '^ *+' conftest.er1 >conftest.err
14980 cat conftest.err >&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); } &&
14983 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14985 (eval $ac_try) 2>&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); }; } &&
14989 { ac_try='test -s conftest$ac_exeext'
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14996 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14998 # Check for a 64-bit object if we didn't find anything.
14999 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; }
15002 echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15006 rm -f conftest.err conftest.$ac_objext \
15007 conftest$ac_exeext conftest.$ac_ext
15008 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15010 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15011 # Warning - without using the other run time loading flags,
15012 # -berok will link without error, but may produce a broken library.
15013 no_undefined_flag_F77=' ${wl}-bernotok'
15014 allow_undefined_flag_F77=' ${wl}-berok'
15015 # Exported symbols can be pulled into shared objects from archives
15016 whole_archive_flag_spec_F77='$convenience'
15017 archive_cmds_need_lc_F77=yes
15018 # This is similar to how AIX traditionally builds its shared libraries.
15019 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'
15025 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)'
15026 hardcode_libdir_flag_spec_F77='-L$libdir'
15027 hardcode_minus_L_F77=yes
15028 # see comment about different semantics on the GNU ld section
15033 export_dynamic_flag_spec_F77=-rdynamic
15036 cygwin* | mingw* | pw32*)
15037 # When not using gcc, we currently assume that we are using
15038 # Microsoft Visual C++.
15039 # hardcode_libdir_flag_spec is actually meaningless, as there is
15040 # no search path for DLLs.
15041 hardcode_libdir_flag_spec_F77=' '
15042 allow_undefined_flag_F77=unsupported
15043 # Tell ltmain to make .lib files, not .a files.
15045 # Tell ltmain to make .dll files, not .so files.
15047 # FIXME: Setting linknames here is a bad hack.
15048 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15049 # The linker will automatically build a .lib file if we build a DLL.
15050 old_archive_From_new_cmds_F77='true'
15051 # FIXME: Should let the user specify the lib program.
15052 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15053 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15054 enable_shared_with_static_runtimes_F77=yes
15057 darwin* | rhapsody*)
15059 rhapsody* | darwin1.[012])
15060 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15063 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15064 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15066 case ${MACOSX_DEPLOYMENT_TARGET} in
15068 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15071 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15077 archive_cmds_need_lc_F77=no
15078 hardcode_direct_F77=no
15079 hardcode_automatic_F77=yes
15080 hardcode_shlibpath_var_F77=unsupported
15081 whole_archive_flag_spec_F77=''
15082 link_all_deplibs_F77=yes
15083 if test "$GCC" = yes ; then
15084 output_verbose_link_cmd='echo'
15085 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15086 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15087 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15088 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}'
15089 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}'
15091 case $cc_basename in
15093 output_verbose_link_cmd='echo'
15094 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15095 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15096 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15097 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}'
15098 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15108 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15109 hardcode_libdir_flag_spec_F77='-L$libdir'
15110 hardcode_shlibpath_var_F77=no
15117 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15118 # support. Future versions do this automatically, but an explicit c++rt0.o
15119 # does not break anything, and helps significantly (at the cost of a little
15122 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15123 hardcode_libdir_flag_spec_F77='-R$libdir'
15124 hardcode_direct_F77=yes
15125 hardcode_shlibpath_var_F77=no
15128 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15130 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15131 hardcode_direct_F77=yes
15132 hardcode_minus_L_F77=yes
15133 hardcode_shlibpath_var_F77=no
15136 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15137 freebsd* | dragonfly*)
15138 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15139 hardcode_libdir_flag_spec_F77='-R$libdir'
15140 hardcode_direct_F77=yes
15141 hardcode_shlibpath_var_F77=no
15145 if test "$GCC" = yes; then
15146 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'
15148 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'
15150 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15151 hardcode_libdir_separator_F77=:
15152 hardcode_direct_F77=yes
15154 # hardcode_minus_L: Not really in the search PATH,
15155 # but as the default location of the library.
15156 hardcode_minus_L_F77=yes
15157 export_dynamic_flag_spec_F77='${wl}-E'
15161 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15162 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15164 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15166 if test "$with_gnu_ld" = no; then
15167 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15168 hardcode_libdir_separator_F77=:
15170 hardcode_direct_F77=yes
15171 export_dynamic_flag_spec_F77='${wl}-E'
15173 # hardcode_minus_L: Not really in the search PATH,
15174 # but as the default location of the library.
15175 hardcode_minus_L_F77=yes
15180 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15183 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15186 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15189 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15195 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15198 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15201 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15205 if test "$with_gnu_ld" = no; then
15206 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15207 hardcode_libdir_separator_F77=:
15211 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15212 hardcode_direct_F77=no
15213 hardcode_shlibpath_var_F77=no
15216 hardcode_direct_F77=yes
15217 export_dynamic_flag_spec_F77='${wl}-E'
15219 # hardcode_minus_L: Not really in the search PATH,
15220 # but as the default location of the library.
15221 hardcode_minus_L_F77=yes
15227 irix5* | irix6* | nonstopux*)
15228 if test "$GCC" = yes; then
15229 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'
15231 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'
15232 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15234 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15235 hardcode_libdir_separator_F77=:
15236 link_all_deplibs_F77=yes
15239 netbsd* | netbsdelf*-gnu)
15240 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15241 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15243 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15245 hardcode_libdir_flag_spec_F77='-R$libdir'
15246 hardcode_direct_F77=yes
15247 hardcode_shlibpath_var_F77=no
15251 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15252 hardcode_direct_F77=yes
15253 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15254 hardcode_libdir_separator_F77=:
15255 hardcode_shlibpath_var_F77=no
15259 hardcode_direct_F77=yes
15260 hardcode_shlibpath_var_F77=no
15261 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15262 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15263 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15264 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15265 export_dynamic_flag_spec_F77='${wl}-E'
15268 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15269 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15270 hardcode_libdir_flag_spec_F77='-R$libdir'
15273 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15274 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15281 hardcode_libdir_flag_spec_F77='-L$libdir'
15282 hardcode_minus_L_F77=yes
15283 allow_undefined_flag_F77=unsupported
15284 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'
15285 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15289 if test "$GCC" = yes; then
15290 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15291 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'
15293 allow_undefined_flag_F77=' -expect_unresolved \*'
15294 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'
15296 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15297 hardcode_libdir_separator_F77=:
15300 osf4* | osf5*) # as osf3* with the addition of -msym flag
15301 if test "$GCC" = yes; then
15302 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15303 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'
15304 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15306 allow_undefined_flag_F77=' -expect_unresolved \*'
15307 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'
15308 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~
15309 $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'
15311 # Both c and cxx compiler support -rpath directly
15312 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15314 hardcode_libdir_separator_F77=:
15318 no_undefined_flag_F77=' -z text'
15319 if test "$GCC" = yes; then
15321 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15322 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15323 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15326 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15327 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15328 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15330 hardcode_libdir_flag_spec_F77='-R$libdir'
15331 hardcode_shlibpath_var_F77=no
15333 solaris2.[0-5] | solaris2.[0-5].*) ;;
15335 # The compiler driver will combine linker options so we
15336 # cannot just pass the convience library names through
15337 # without $wl, iff we do not link with $LD.
15338 # Luckily, gcc supports the same syntax we need for Sun Studio.
15339 # Supported since Solaris 2.6 (maybe 2.5.1?)
15342 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15344 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' ;;
15347 link_all_deplibs_F77=yes
15351 if test "x$host_vendor" = xsequent; then
15352 # Use $CC to link under sequent, because it throws in some extra .o
15353 # files that make .init and .fini sections work.
15354 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15356 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15358 hardcode_libdir_flag_spec_F77='-L$libdir'
15359 hardcode_direct_F77=yes
15360 hardcode_minus_L_F77=yes
15361 hardcode_shlibpath_var_F77=no
15365 case $host_vendor in
15367 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15368 hardcode_direct_F77=yes # is this really true???
15371 ## LD is ld it makes a PLAMLIB
15372 ## CC just makes a GrossModule.
15373 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15374 reload_cmds_F77='$CC -r -o $output$reload_objs'
15375 hardcode_direct_F77=no
15378 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15379 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15382 runpath_var='LD_RUN_PATH'
15383 hardcode_shlibpath_var_F77=no
15387 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15388 hardcode_shlibpath_var_F77=no
15389 export_dynamic_flag_spec_F77='-Bexport'
15393 if test -d /usr/nec; then
15394 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15395 hardcode_shlibpath_var_F77=no
15396 runpath_var=LD_RUN_PATH
15397 hardcode_runpath_var=yes
15402 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15403 no_undefined_flag_F77='${wl}-z,text'
15404 archive_cmds_need_lc_F77=no
15405 hardcode_shlibpath_var_F77=no
15406 runpath_var='LD_RUN_PATH'
15408 if test "$GCC" = yes; then
15409 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15410 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15412 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15413 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15417 sysv5* | sco3.2v5* | sco5v6*)
15418 # Note: We can NOT use -z defs as we might desire, because we do not
15419 # link with -lc, and that would cause any symbols used from libc to
15420 # always be unresolved, which means just about no library would
15421 # ever link correctly. If we're not using GNU ld we use -z text
15422 # though, which does catch some bad symbols but isn't as heavy-handed
15424 no_undefined_flag_F77='${wl}-z,text'
15425 allow_undefined_flag_F77='${wl}-z,nodefs'
15426 archive_cmds_need_lc_F77=no
15427 hardcode_shlibpath_var_F77=no
15428 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15429 hardcode_libdir_separator_F77=':'
15430 link_all_deplibs_F77=yes
15431 export_dynamic_flag_spec_F77='${wl}-Bexport'
15432 runpath_var='LD_RUN_PATH'
15434 if test "$GCC" = yes; then
15435 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15436 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15438 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15439 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15444 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15445 hardcode_libdir_flag_spec_F77='-L$libdir'
15446 hardcode_shlibpath_var_F77=no
15455 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15456 echo "${ECHO_T}$ld_shlibs_F77" >&6
15457 test "$ld_shlibs_F77" = no && can_build_shared=no
15460 # Do we need to explicitly link libc?
15462 case "x$archive_cmds_need_lc_F77" in
15464 # Assume -lc should be added
15465 archive_cmds_need_lc_F77=yes
15467 if test "$enable_shared" = yes && test "$GCC" = yes; then
15468 case $archive_cmds_F77 in
15470 # FIXME: we may have to deal with multi-command sequences.
15473 # Test whether the compiler implicitly links with -lc since on some
15474 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15475 # to ld, don't add -lc before -lgcc.
15476 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15477 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15482 (eval $ac_compile) 2>&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } 2>conftest.err; then
15488 libobjs=conftest.$ac_objext
15490 wl=$lt_prog_compiler_wl_F77
15491 pic_flag=$lt_prog_compiler_pic_F77
15497 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15498 allow_undefined_flag_F77=
15499 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15500 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }
15505 archive_cmds_need_lc_F77=no
15507 archive_cmds_need_lc_F77=yes
15509 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15511 cat conftest.err 1>&5
15514 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15515 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15522 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15523 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15524 library_names_spec=
15525 libname_spec='lib$name'
15529 postuninstall_cmds=
15533 shlibpath_overrides_runpath=unknown
15535 dynamic_linker="$host_os ld.so"
15536 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15537 if test "$GCC" = yes; then
15538 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15539 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15540 # if the path contains ";" then we assume it to be the separator
15541 # otherwise default to the standard path separator (i.e. ":") - it is
15542 # assumed that no part of a normal pathname contains ";" but that should
15543 # okay in the real world where ";" in dirpaths is itself problematic.
15544 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15546 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15549 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15551 need_lib_prefix=unknown
15552 hardcode_into_libs=no
15554 # when you set need_version to no, make sure it does not cause -set_version
15555 # flags to be left without arguments
15556 need_version=unknown
15561 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15562 shlibpath_var=LIBPATH
15564 # AIX 3 has no versioning support, so we append a major version to the name.
15565 soname_spec='${libname}${release}${shared_ext}$major'
15572 hardcode_into_libs=yes
15573 if test "$host_cpu" = ia64; then
15574 # AIX 5 supports IA64
15575 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15576 shlibpath_var=LD_LIBRARY_PATH
15578 # With GCC up to 2.95.x, collect2 would create an import file
15579 # for dependence libraries. The import file would start with
15580 # the line `#! .'. This would cause the generated library to
15581 # depend on `.', always an invalid library. This was fixed in
15582 # development snapshots of GCC prior to 3.0.
15584 aix4 | aix4.[01] | aix4.[01].*)
15585 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15587 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15590 can_build_shared=no
15594 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15595 # soname into executable. Probably we can add versioning support to
15596 # collect2, so additional links can be useful in future.
15597 if test "$aix_use_runtimelinking" = yes; then
15598 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15599 # instead of lib<name>.a to let people know that these are not
15600 # typical AIX shared libraries.
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15603 # We preserve .a as extension for shared libraries through AIX4.2
15604 # and later when we are not doing run time linking.
15605 library_names_spec='${libname}${release}.a $libname.a'
15606 soname_spec='${libname}${release}${shared_ext}$major'
15608 shlibpath_var=LIBPATH
15613 library_names_spec='$libname.ixlibrary $libname.a'
15614 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15615 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'
15619 library_names_spec='${libname}${shared_ext}'
15620 dynamic_linker="$host_os ld.so"
15621 shlibpath_var=LIBRARY_PATH
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628 soname_spec='${libname}${release}${shared_ext}$major'
15629 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15630 shlibpath_var=LD_LIBRARY_PATH
15631 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15632 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15633 # the default ld.so.conf also contains /usr/contrib/lib and
15634 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15635 # libtool to hard-code these into programs
15638 cygwin* | mingw* | pw32*)
15639 version_type=windows
15644 case $GCC,$host_os in
15645 yes,cygwin* | yes,mingw* | yes,pw32*)
15646 library_names_spec='$libname.dll.a'
15647 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15648 postinstall_cmds='base_file=`basename \${file}`~
15649 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15650 dldir=$destdir/`dirname \$dlpath`~
15651 test -d \$dldir || mkdir -p \$dldir~
15652 $install_prog $dir/$dlname \$dldir/$dlname~
15653 chmod a+x \$dldir/$dlname'
15654 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15655 dlpath=$dir/\$dldll~
15657 shlibpath_overrides_runpath=yes
15661 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15662 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15663 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15666 # MinGW DLLs use traditional 'lib' prefix
15667 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15668 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15669 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15670 # It is most probably a Windows format PATH printed by
15671 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15672 # path with ; separators, and with drive letters. We can handle the
15673 # drive letters (cygwin fileutils understands them), so leave them,
15674 # especially as we might pass files found there to a mingw objdump,
15675 # which wouldn't understand a cygwinified path. Ahh.
15676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15678 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15682 # pw32 DLLs use 'pw' prefix rather than 'lib'
15683 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15689 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15692 dynamic_linker='Win32 ld.exe'
15693 # FIXME: first we should search . and the directory the executable is in
15697 darwin* | rhapsody*)
15698 dynamic_linker="$host_os dyld"
15699 version_type=darwin
15702 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15703 soname_spec='${libname}${release}${major}$shared_ext'
15704 shlibpath_overrides_runpath=yes
15705 shlibpath_var=DYLD_LIBRARY_PATH
15706 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15707 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15708 if test "$GCC" = yes; then
15709 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"`
15711 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15713 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15721 soname_spec='${libname}${release}${shared_ext}$major'
15722 shlibpath_var=LD_LIBRARY_PATH
15729 freebsd* | dragonfly*)
15730 # DragonFly does not have aout. When/if they implement a new
15731 # versioning mechanism, adjust this.
15732 if test -x /usr/bin/objformat; then
15733 objformat=`/usr/bin/objformat`
15736 freebsd[123]*) objformat=aout ;;
15737 *) objformat=elf ;;
15740 version_type=freebsd-$objformat
15741 case $version_type in
15743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15752 shlibpath_var=LD_LIBRARY_PATH
15755 shlibpath_overrides_runpath=yes
15757 freebsd3.[01]* | freebsdelf3.[01]*)
15758 shlibpath_overrides_runpath=yes
15759 hardcode_into_libs=yes
15761 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15762 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15763 shlibpath_overrides_runpath=no
15764 hardcode_into_libs=yes
15766 freebsd*) # from 4.6 on
15767 shlibpath_overrides_runpath=yes
15768 hardcode_into_libs=yes
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15778 soname_spec='${libname}${release}${shared_ext}$major'
15779 shlibpath_var=LD_LIBRARY_PATH
15780 hardcode_into_libs=yes
15783 hpux9* | hpux10* | hpux11*)
15784 # Give a soname corresponding to the major version so that dld.sl refuses to
15785 # link against other versions.
15792 hardcode_into_libs=yes
15793 dynamic_linker="$host_os dld.so"
15794 shlibpath_var=LD_LIBRARY_PATH
15795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15797 soname_spec='${libname}${release}${shared_ext}$major'
15798 if test "X$HPUX_IA64_MODE" = X32; then
15799 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15801 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15807 hardcode_into_libs=yes
15808 dynamic_linker="$host_os dld.sl"
15809 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15812 soname_spec='${libname}${release}${shared_ext}$major'
15813 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15818 dynamic_linker="$host_os dld.sl"
15819 shlibpath_var=SHLIB_PATH
15820 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15822 soname_spec='${libname}${release}${shared_ext}$major'
15825 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15826 postinstall_cmds='chmod 555 $lib'
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15834 soname_spec='${libname}${release}${shared_ext}$major'
15835 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15836 shlibpath_var=LD_LIBRARY_PATH
15837 shlibpath_overrides_runpath=no
15838 hardcode_into_libs=yes
15841 irix5* | irix6* | nonstopux*)
15843 nonstopux*) version_type=nonstopux ;;
15845 if test "$lt_cv_prog_gnu_ld" = yes; then
15853 soname_spec='${libname}${release}${shared_ext}$major'
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15856 irix5* | nonstopux*)
15857 libsuff= shlibsuff=
15860 case $LD in # libtool.m4 will add one of these switches to LD
15861 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15862 libsuff= shlibsuff= libmagic=32-bit;;
15863 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15864 libsuff=32 shlibsuff=N32 libmagic=N32;;
15865 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15866 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15867 *) libsuff= shlibsuff= libmagic=never-match;;
15871 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15872 shlibpath_overrides_runpath=no
15873 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15874 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15875 hardcode_into_libs=yes
15878 # No shared lib support for Linux oldld, aout, or coff.
15879 linux*oldld* | linux*aout* | linux*coff*)
15883 # This must be Linux ELF.
15884 linux* | k*bsd*-gnu)
15888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15889 soname_spec='${libname}${release}${shared_ext}$major'
15890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15891 shlibpath_var=LD_LIBRARY_PATH
15892 shlibpath_overrides_runpath=no
15893 # This implies no fast_install, which is unacceptable.
15894 # Some rework will be needed to allow for fast_install
15895 # before this can be enabled.
15896 hardcode_into_libs=yes
15898 # Append ld.so.conf contents to the search path
15899 if test -f /etc/ld.so.conf; then
15900 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' ' '`
15901 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15904 # We used to test for /lib/ld.so.1 and disable shared libraries on
15905 # powerpc, because MkLinux only supported shared libraries with the
15906 # GNU dynamic linker. Since this was broken with cross compilers,
15907 # most powerpc-linux boxes support dynamic linking these days and
15908 # people can always --disable-shared, the test was removed, and we
15909 # assume the GNU/Linux dynamic linker is in use.
15910 dynamic_linker='GNU/Linux ld.so'
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 shlibpath_var=LD_LIBRARY_PATH
15920 shlibpath_overrides_runpath=no
15921 hardcode_into_libs=yes
15922 dynamic_linker='NetBSD ld.elf_so'
15929 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15932 dynamic_linker='NetBSD (a.out) ld.so'
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15935 soname_spec='${libname}${release}${shared_ext}$major'
15936 dynamic_linker='NetBSD ld.elf_so'
15938 shlibpath_var=LD_LIBRARY_PATH
15939 shlibpath_overrides_runpath=yes
15940 hardcode_into_libs=yes
15945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15946 shlibpath_var=LD_LIBRARY_PATH
15947 shlibpath_overrides_runpath=yes
15954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15955 soname_spec='${libname}${release}${shared_ext}$major'
15956 shlibpath_var=LD_LIBRARY_PATH
15957 shlibpath_overrides_runpath=yes
15962 sys_lib_dlsearch_path_spec="/usr/lib"
15964 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15966 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15967 *) need_version=no ;;
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15971 shlibpath_var=LD_LIBRARY_PATH
15972 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15974 openbsd2.[89] | openbsd2.[89].*)
15975 shlibpath_overrides_runpath=no
15978 shlibpath_overrides_runpath=yes
15982 shlibpath_overrides_runpath=yes
15987 libname_spec='$name'
15990 library_names_spec='$libname${shared_ext} $libname.a'
15991 dynamic_linker='OS/2 ld.exe'
15992 shlibpath_var=LIBPATH
15995 osf3* | osf4* | osf5*)
15999 soname_spec='${libname}${release}${shared_ext}$major'
16000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16001 shlibpath_var=LD_LIBRARY_PATH
16002 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16003 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16011 soname_spec='${libname}${release}${shared_ext}$major'
16012 shlibpath_var=LD_LIBRARY_PATH
16013 shlibpath_overrides_runpath=yes
16014 hardcode_into_libs=yes
16015 # ldd complains unless libraries are executable
16016 postinstall_cmds='chmod +x $lib'
16021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16022 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16023 shlibpath_var=LD_LIBRARY_PATH
16024 shlibpath_overrides_runpath=yes
16025 if test "$with_gnu_ld" = yes; then
16033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16034 soname_spec='${libname}${release}${shared_ext}$major'
16035 shlibpath_var=LD_LIBRARY_PATH
16036 case $host_vendor in
16038 shlibpath_overrides_runpath=no
16040 export_dynamic_flag_spec='${wl}-Blargedynsym'
16041 runpath_var=LD_RUN_PATH
16049 shlibpath_overrides_runpath=no
16050 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16056 if test -d /usr/nec ;then
16058 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16059 soname_spec='$libname${shared_ext}.$major'
16060 shlibpath_var=LD_LIBRARY_PATH
16064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16065 version_type=freebsd-elf
16068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16069 soname_spec='${libname}${release}${shared_ext}$major'
16070 shlibpath_var=LD_LIBRARY_PATH
16071 hardcode_into_libs=yes
16072 if test "$with_gnu_ld" = yes; then
16073 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16074 shlibpath_overrides_runpath=no
16076 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16077 shlibpath_overrides_runpath=yes
16080 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16084 sys_lib_dlsearch_path_spec='/usr/lib'
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090 soname_spec='${libname}${release}${shared_ext}$major'
16091 shlibpath_var=LD_LIBRARY_PATH
16098 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16099 echo "${ECHO_T}$dynamic_linker" >&6
16100 test "$dynamic_linker" = no && can_build_shared=no
16102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16103 if test "$GCC" = yes; then
16104 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16107 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16108 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16109 hardcode_action_F77=
16110 if test -n "$hardcode_libdir_flag_spec_F77" || \
16111 test -n "$runpath_var_F77" || \
16112 test "X$hardcode_automatic_F77" = "Xyes" ; then
16114 # We can hardcode non-existant directories.
16115 if test "$hardcode_direct_F77" != no &&
16116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16117 # have to relink, otherwise we might link with an installed library
16118 # when we should be linking with a yet-to-be-installed one
16119 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16120 test "$hardcode_minus_L_F77" != no; then
16121 # Linking always hardcodes the temporary library directory.
16122 hardcode_action_F77=relink
16124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16125 hardcode_action_F77=immediate
16128 # We cannot hardcode anything, or else we can only hardcode existing
16130 hardcode_action_F77=unsupported
16132 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16133 echo "${ECHO_T}$hardcode_action_F77" >&6
16135 if test "$hardcode_action_F77" = relink; then
16136 # Fast installation is not supported
16137 enable_fast_install=no
16138 elif test "$shlibpath_overrides_runpath" = yes ||
16139 test "$enable_shared" = no; then
16140 # Fast installation is not necessary
16141 enable_fast_install=needless
16145 # The else clause should only fire when bootstrapping the
16146 # libtool distribution, otherwise you forgot to ship ltmain.sh
16147 # with your package, and you will get complaints that there are
16148 # no rules to generate ltmain.sh.
16149 if test -f "$ltmain"; then
16150 # See if we are running on zsh, and set the options which allow our commands through
16151 # without removal of \ escapes.
16152 if test -n "${ZSH_VERSION+set}" ; then
16153 setopt NO_GLOB_SUBST
16155 # Now quote all the things that may contain metacharacters while being
16156 # careful not to overquote the AC_SUBSTed values. We take copies of the
16157 # variables and quote the copies for generation of the libtool script.
16158 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16160 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16161 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16162 deplibs_check_method reload_flag reload_cmds need_locks \
16163 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16164 lt_cv_sys_global_symbol_to_c_name_address \
16165 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16166 old_postinstall_cmds old_postuninstall_cmds \
16170 lt_prog_compiler_wl_F77 \
16171 lt_prog_compiler_pic_F77 \
16172 lt_prog_compiler_static_F77 \
16173 lt_prog_compiler_no_builtin_flag_F77 \
16174 export_dynamic_flag_spec_F77 \
16175 thread_safe_flag_spec_F77 \
16176 whole_archive_flag_spec_F77 \
16177 enable_shared_with_static_runtimes_F77 \
16178 old_archive_cmds_F77 \
16179 old_archive_from_new_cmds_F77 \
16180 predep_objects_F77 \
16181 postdep_objects_F77 \
16184 compiler_lib_search_path_F77 \
16186 archive_expsym_cmds_F77 \
16187 postinstall_cmds_F77 \
16188 postuninstall_cmds_F77 \
16189 old_archive_from_expsyms_cmds_F77 \
16190 allow_undefined_flag_F77 \
16191 no_undefined_flag_F77 \
16192 export_symbols_cmds_F77 \
16193 hardcode_libdir_flag_spec_F77 \
16194 hardcode_libdir_flag_spec_ld_F77 \
16195 hardcode_libdir_separator_F77 \
16196 hardcode_automatic_F77 \
16198 module_expsym_cmds_F77 \
16199 lt_cv_prog_compiler_c_o_F77 \
16200 exclude_expsyms_F77 \
16201 include_expsyms_F77; do
16204 old_archive_cmds_F77 | \
16205 old_archive_from_new_cmds_F77 | \
16206 archive_cmds_F77 | \
16207 archive_expsym_cmds_F77 | \
16208 module_cmds_F77 | \
16209 module_expsym_cmds_F77 | \
16210 old_archive_from_expsyms_cmds_F77 | \
16211 export_symbols_cmds_F77 | \
16212 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16213 postinstall_cmds | postuninstall_cmds | \
16214 old_postinstall_cmds | old_postuninstall_cmds | \
16215 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16216 # Double-quote double-evaled strings.
16217 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16220 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16226 *'\$0 --fallback-echo"')
16227 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16233 cat <<__EOF__ >> "$cfgfile"
16234 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16236 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16238 # Shell to use when invoking shell scripts.
16241 # Whether or not to build shared libraries.
16242 build_libtool_libs=$enable_shared
16244 # Whether or not to build static libraries.
16245 build_old_libs=$enable_static
16247 # Whether or not to add -lc for building shared libraries.
16248 build_libtool_need_lc=$archive_cmds_need_lc_F77
16250 # Whether or not to disallow shared libs when runtime libs are static
16251 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16253 # Whether or not to optimize for fast installation.
16254 fast_install=$enable_fast_install
16257 host_alias=$host_alias
16261 # The build system.
16262 build_alias=$build_alias
16266 # An echo program that does not interpret backslashes.
16271 AR_FLAGS=$lt_AR_FLAGS
16276 # LTCC compiler flags.
16277 LTCFLAGS=$lt_LTCFLAGS
16279 # A language-specific compiler.
16280 CC=$lt_compiler_F77
16282 # Is the compiler the GNU C compiler?
16288 # The linker used to build libraries.
16291 # Whether we need hard or soft links.
16294 # A BSD-compatible nm program.
16297 # A symbol stripping program
16300 # Used to examine libraries when file_magic_cmd begins "file"
16301 MAGIC_CMD=$MAGIC_CMD
16303 # Used on cygwin: DLL creation program.
16306 # Used on cygwin: object dumper.
16309 # Used on cygwin: assembler.
16312 # The name of the directory that contains temporary libtool files.
16315 # How to create reloadable object files.
16316 reload_flag=$lt_reload_flag
16317 reload_cmds=$lt_reload_cmds
16319 # How to pass a linker flag through the compiler.
16320 wl=$lt_lt_prog_compiler_wl_F77
16322 # Object file suffix (normally "o").
16323 objext="$ac_objext"
16325 # Old archive suffix (normally "a").
16328 # Shared library suffix (normally ".so").
16329 shrext_cmds='$shrext_cmds'
16331 # Executable file suffix (normally "").
16334 # Additional compiler flags for building library objects.
16335 pic_flag=$lt_lt_prog_compiler_pic_F77
16338 # What is the maximum length of a command?
16339 max_cmd_len=$lt_cv_sys_max_cmd_len
16341 # Does compiler simultaneously support -c and -o options?
16342 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16344 # Must we lock files when doing compilation?
16345 need_locks=$lt_need_locks
16347 # Do we need the lib prefix for modules?
16348 need_lib_prefix=$need_lib_prefix
16350 # Do we need a version for libraries?
16351 need_version=$need_version
16353 # Whether dlopen is supported.
16354 dlopen_support=$enable_dlopen
16356 # Whether dlopen of programs is supported.
16357 dlopen_self=$enable_dlopen_self
16359 # Whether dlopen of statically linked programs is supported.
16360 dlopen_self_static=$enable_dlopen_self_static
16362 # Compiler flag to prevent dynamic linking.
16363 link_static_flag=$lt_lt_prog_compiler_static_F77
16365 # Compiler flag to turn off builtin functions.
16366 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16368 # Compiler flag to allow reflexive dlopens.
16369 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16371 # Compiler flag to generate shared objects directly from archives.
16372 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16374 # Compiler flag to generate thread-safe objects.
16375 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16377 # Library versioning type.
16378 version_type=$version_type
16380 # Format of library name prefix.
16381 libname_spec=$lt_libname_spec
16383 # List of archive names. First name is the real one, the rest are links.
16384 # The last name is the one that the linker finds with -lNAME.
16385 library_names_spec=$lt_library_names_spec
16387 # The coded name of the library, if different from the real name.
16388 soname_spec=$lt_soname_spec
16390 # Commands used to build and install an old-style archive.
16392 old_archive_cmds=$lt_old_archive_cmds_F77
16393 old_postinstall_cmds=$lt_old_postinstall_cmds
16394 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16396 # Create an old-style archive from a shared archive.
16397 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16399 # Create a temporary old-style archive to link instead of a shared archive.
16400 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16402 # Commands used to build and install a shared archive.
16403 archive_cmds=$lt_archive_cmds_F77
16404 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16405 postinstall_cmds=$lt_postinstall_cmds
16406 postuninstall_cmds=$lt_postuninstall_cmds
16408 # Commands used to build a loadable module (assumed same as above if empty)
16409 module_cmds=$lt_module_cmds_F77
16410 module_expsym_cmds=$lt_module_expsym_cmds_F77
16412 # Commands to strip libraries.
16413 old_striplib=$lt_old_striplib
16414 striplib=$lt_striplib
16416 # Dependencies to place before the objects being linked to create a
16418 predep_objects=$lt_predep_objects_F77
16420 # Dependencies to place after the objects being linked to create a
16422 postdep_objects=$lt_postdep_objects_F77
16424 # Dependencies to place before the objects being linked to create a
16426 predeps=$lt_predeps_F77
16428 # Dependencies to place after the objects being linked to create a
16430 postdeps=$lt_postdeps_F77
16432 # The library search path used internally by the compiler when linking
16433 # a shared library.
16434 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16436 # Method to check whether dependent libraries are shared objects.
16437 deplibs_check_method=$lt_deplibs_check_method
16439 # Command to use when deplibs_check_method == file_magic.
16440 file_magic_cmd=$lt_file_magic_cmd
16442 # Flag that allows shared libraries with undefined symbols to be built.
16443 allow_undefined_flag=$lt_allow_undefined_flag_F77
16445 # Flag that forces no undefined symbols.
16446 no_undefined_flag=$lt_no_undefined_flag_F77
16448 # Commands used to finish a libtool library installation in a directory.
16449 finish_cmds=$lt_finish_cmds
16451 # Same as above, but a single script fragment to be evaled but not shown.
16452 finish_eval=$lt_finish_eval
16454 # Take the output of nm and produce a listing of raw symbols and C names.
16455 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16457 # Transform the output of nm in a proper C declaration
16458 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16460 # Transform the output of nm in a C name address pair
16461 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16463 # This is the shared library runtime path variable.
16464 runpath_var=$runpath_var
16466 # This is the shared library path variable.
16467 shlibpath_var=$shlibpath_var
16469 # Is shlibpath searched before the hard-coded library search path?
16470 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16472 # How to hardcode a shared library path into an executable.
16473 hardcode_action=$hardcode_action_F77
16475 # Whether we should hardcode library paths into libraries.
16476 hardcode_into_libs=$hardcode_into_libs
16478 # Flag to hardcode \$libdir into a binary during linking.
16479 # This must work even if \$libdir does not exist.
16480 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16482 # If ld is used when linking, flag to hardcode \$libdir into
16483 # a binary during linking. This must work even if \$libdir does
16485 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16487 # Whether we need a single -rpath flag with a separated argument.
16488 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16490 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16491 # resulting binary.
16492 hardcode_direct=$hardcode_direct_F77
16494 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16495 # resulting binary.
16496 hardcode_minus_L=$hardcode_minus_L_F77
16498 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16499 # the resulting binary.
16500 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16502 # Set to yes if building a shared library automatically hardcodes DIR into the library
16503 # and all subsequent libraries and executables linked against it.
16504 hardcode_automatic=$hardcode_automatic_F77
16506 # Variables whose values should be saved in libtool wrapper scripts and
16507 # restored at relink time.
16508 variables_saved_for_relink="$variables_saved_for_relink"
16510 # Whether libtool must link a program against all its dependency libraries.
16511 link_all_deplibs=$link_all_deplibs_F77
16513 # Compile-time system search path for libraries
16514 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16516 # Run-time system search path for libraries
16517 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16519 # Fix the shell variable \$srcfile for the compiler.
16520 fix_srcfile_path="$fix_srcfile_path_F77"
16522 # Set to yes if exported symbols are required.
16523 always_export_symbols=$always_export_symbols_F77
16525 # The commands to list exported symbols.
16526 export_symbols_cmds=$lt_export_symbols_cmds_F77
16528 # The commands to extract the exported symbol list from a shared archive.
16529 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16531 # Symbols that should not be listed in the preloaded symbols.
16532 exclude_expsyms=$lt_exclude_expsyms_F77
16534 # Symbols that must always be exported.
16535 include_expsyms=$lt_include_expsyms_F77
16537 # ### END LIBTOOL TAG CONFIG: $tagname
16543 # If there is no Makefile yet, we rely on a make rule to execute
16544 # `config.status --recheck' to rerun these tests and create the
16545 # libtool script then.
16546 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16547 if test -f "$ltmain_in"; then
16548 test -f Makefile && make "$ltmain"
16554 ac_cpp='$CPP $CPPFLAGS'
16555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16567 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16571 # Source file extension for Java test sources.
16574 # Object file extension for compiled Java test sources.
16578 # Code to be used in simple compile tests
16579 lt_simple_compile_test_code="class foo {}\n"
16581 # Code to be used in simple link tests
16582 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16584 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16586 # If no C compiler was specified, use CC.
16589 # If no C compiler flags were specified, use CFLAGS.
16590 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16592 # Allow CC to be a program name with arguments.
16596 # save warnings/boilerplate of simple test code
16597 ac_outfile=conftest.$ac_objext
16598 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16599 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16600 _lt_compiler_boilerplate=`cat conftest.err`
16603 ac_outfile=conftest.$ac_objext
16604 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16605 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16606 _lt_linker_boilerplate=`cat conftest.err`
16610 # Allow CC to be a program name with arguments.
16615 for cc_temp in $compiler""; do
16617 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16618 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16623 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16626 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16627 archive_cmds_need_lc_GCJ=no
16629 old_archive_cmds_GCJ=$old_archive_cmds
16632 lt_prog_compiler_no_builtin_flag_GCJ=
16634 if test "$GCC" = yes; then
16635 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16638 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16639 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16640 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16641 echo $ECHO_N "(cached) $ECHO_C" >&6
16643 lt_cv_prog_compiler_rtti_exceptions=no
16644 ac_outfile=conftest.$ac_objext
16645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16646 lt_compiler_flag="-fno-rtti -fno-exceptions"
16647 # Insert the option either (1) after the last *FLAGS variable, or
16648 # (2) before a word containing "conftest.", or (3) at the end.
16649 # Note that $ac_compile itself does not contain backslashes and begins
16650 # with a dollar sign (not a hyphen), so the echo should work correctly.
16651 # The option is referenced via a variable to avoid confusing sed.
16652 lt_compile=`echo "$ac_compile" | $SED \
16653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16655 -e 's:$: $lt_compiler_flag:'`
16656 (eval echo "\"\$as_me:16656: $lt_compile\"" >&5)
16657 (eval "$lt_compile" 2>conftest.err)
16659 cat conftest.err >&5
16660 echo "$as_me:16660: \$? = $ac_status" >&5
16661 if (exit $ac_status) && test -s "$ac_outfile"; then
16662 # The compiler can only warn and ignore the option if not recognized
16663 # So say no if there are warnings other than the usual output.
16664 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16666 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16667 lt_cv_prog_compiler_rtti_exceptions=yes
16673 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16674 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16676 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16677 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16684 lt_prog_compiler_wl_GCJ=
16685 lt_prog_compiler_pic_GCJ=
16686 lt_prog_compiler_static_GCJ=
16688 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16689 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16691 if test "$GCC" = yes; then
16692 lt_prog_compiler_wl_GCJ='-Wl,'
16693 lt_prog_compiler_static_GCJ='-static'
16697 # All AIX code is PIC.
16698 if test "$host_cpu" = ia64; then
16699 # AIX 5 now supports IA64 processor
16700 lt_prog_compiler_static_GCJ='-Bstatic'
16705 # FIXME: we need at least 68020 code to build shared libraries, but
16706 # adding the `-m68020' flag to GCC prevents building anything better,
16708 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16711 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16712 # PIC is the default for these OSes.
16715 mingw* | pw32* | os2*)
16716 # This hack is so that the source file can tell whether it is being
16717 # built for inclusion in a dll (and should export symbols for example).
16718 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16721 darwin* | rhapsody*)
16722 # PIC is the default on this platform
16723 # Common symbols not allowed in MH_DYLIB files
16724 lt_prog_compiler_pic_GCJ='-fno-common'
16728 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16729 # Instead, we relocate shared libraries at runtime.
16733 # Just because we use GCC doesn't mean we suddenly get shared libraries
16734 # on systems that don't support them.
16735 lt_prog_compiler_can_build_shared_GCJ=no
16740 if test -d /usr/nec; then
16741 lt_prog_compiler_pic_GCJ=-Kconform_pic
16746 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16747 # not for PA HP-UX.
16753 lt_prog_compiler_pic_GCJ='-fPIC'
16759 lt_prog_compiler_pic_GCJ='-fPIC'
16763 # PORTME Check for flag to pass linker flags through the system compiler.
16766 lt_prog_compiler_wl_GCJ='-Wl,'
16767 if test "$host_cpu" = ia64; then
16768 # AIX 5 now supports IA64 processor
16769 lt_prog_compiler_static_GCJ='-Bstatic'
16771 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16775 # PIC is the default on this platform
16776 # Common symbols not allowed in MH_DYLIB files
16777 case $cc_basename in
16779 lt_prog_compiler_pic_GCJ='-qnocommon'
16780 lt_prog_compiler_wl_GCJ='-Wl,'
16785 mingw* | pw32* | os2*)
16786 # This hack is so that the source file can tell whether it is being
16787 # built for inclusion in a dll (and should export symbols for example).
16788 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16791 hpux9* | hpux10* | hpux11*)
16792 lt_prog_compiler_wl_GCJ='-Wl,'
16793 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16794 # not for PA HP-UX.
16800 lt_prog_compiler_pic_GCJ='+Z'
16803 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16804 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16807 irix5* | irix6* | nonstopux*)
16808 lt_prog_compiler_wl_GCJ='-Wl,'
16809 # PIC (with -KPIC) is the default.
16810 lt_prog_compiler_static_GCJ='-non_shared'
16814 lt_prog_compiler_pic_GCJ='-KPIC'
16815 lt_prog_compiler_static_GCJ='-Bstatic'
16818 linux* | k*bsd*-gnu)
16819 case $cc_basename in
16821 lt_prog_compiler_wl_GCJ='-Wl,'
16822 lt_prog_compiler_pic_GCJ='-KPIC'
16823 lt_prog_compiler_static_GCJ='-static'
16825 pgcc* | pgf77* | pgf90* | pgf95*)
16826 # Portland Group compilers (*not* the Pentium gcc compiler,
16827 # which looks to be a dead project)
16828 lt_prog_compiler_wl_GCJ='-Wl,'
16829 lt_prog_compiler_pic_GCJ='-fpic'
16830 lt_prog_compiler_static_GCJ='-Bstatic'
16833 lt_prog_compiler_wl_GCJ='-Wl,'
16834 # All Alpha code is PIC.
16835 lt_prog_compiler_static_GCJ='-non_shared'
16840 osf3* | osf4* | osf5*)
16841 lt_prog_compiler_wl_GCJ='-Wl,'
16842 # All OSF/1 code is PIC.
16843 lt_prog_compiler_static_GCJ='-non_shared'
16847 lt_prog_compiler_pic_GCJ='-KPIC'
16848 lt_prog_compiler_static_GCJ='-Bstatic'
16849 case $cc_basename in
16850 f77* | f90* | f95*)
16851 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16853 lt_prog_compiler_wl_GCJ='-Wl,';;
16858 lt_prog_compiler_wl_GCJ='-Qoption ld '
16859 lt_prog_compiler_pic_GCJ='-PIC'
16860 lt_prog_compiler_static_GCJ='-Bstatic'
16863 sysv4 | sysv4.2uw2* | sysv4.3*)
16864 lt_prog_compiler_wl_GCJ='-Wl,'
16865 lt_prog_compiler_pic_GCJ='-KPIC'
16866 lt_prog_compiler_static_GCJ='-Bstatic'
16870 if test -d /usr/nec ;then
16871 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16872 lt_prog_compiler_static_GCJ='-Bstatic'
16876 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16877 lt_prog_compiler_wl_GCJ='-Wl,'
16878 lt_prog_compiler_pic_GCJ='-KPIC'
16879 lt_prog_compiler_static_GCJ='-Bstatic'
16883 lt_prog_compiler_wl_GCJ='-Wl,'
16884 lt_prog_compiler_can_build_shared_GCJ=no
16888 lt_prog_compiler_pic_GCJ='-pic'
16889 lt_prog_compiler_static_GCJ='-Bstatic'
16893 lt_prog_compiler_can_build_shared_GCJ=no
16898 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16899 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16902 # Check to make sure the PIC flag actually works.
16904 if test -n "$lt_prog_compiler_pic_GCJ"; then
16906 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16907 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16908 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16909 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 lt_prog_compiler_pic_works_GCJ=no
16912 ac_outfile=conftest.$ac_objext
16913 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16914 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16915 # Insert the option either (1) after the last *FLAGS variable, or
16916 # (2) before a word containing "conftest.", or (3) at the end.
16917 # Note that $ac_compile itself does not contain backslashes and begins
16918 # with a dollar sign (not a hyphen), so the echo should work correctly.
16919 # The option is referenced via a variable to avoid confusing sed.
16920 lt_compile=`echo "$ac_compile" | $SED \
16921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16923 -e 's:$: $lt_compiler_flag:'`
16924 (eval echo "\"\$as_me:16924: $lt_compile\"" >&5)
16925 (eval "$lt_compile" 2>conftest.err)
16927 cat conftest.err >&5
16928 echo "$as_me:16928: \$? = $ac_status" >&5
16929 if (exit $ac_status) && test -s "$ac_outfile"; then
16930 # The compiler can only warn and ignore the option if not recognized
16931 # So say no if there are warnings other than the usual output.
16932 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16933 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16934 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16935 lt_prog_compiler_pic_works_GCJ=yes
16941 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16942 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16944 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16945 case $lt_prog_compiler_pic_GCJ in
16947 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16950 lt_prog_compiler_pic_GCJ=
16951 lt_prog_compiler_can_build_shared_GCJ=no
16956 # For platforms which do not support PIC, -DPIC is meaningless:
16958 lt_prog_compiler_pic_GCJ=
16961 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16966 # Check to make sure the static flag actually works.
16968 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16969 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16970 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16971 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16972 echo $ECHO_N "(cached) $ECHO_C" >&6
16974 lt_prog_compiler_static_works_GCJ=no
16975 save_LDFLAGS="$LDFLAGS"
16976 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16977 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16978 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16979 # The linker can only warn and ignore the option if not recognized
16980 # So say no if there are warnings
16981 if test -s conftest.err; then
16982 # Append any errors to the config.log.
16983 cat conftest.err 1>&5
16984 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16986 if diff conftest.exp conftest.er2 >/dev/null; then
16987 lt_prog_compiler_static_works_GCJ=yes
16990 lt_prog_compiler_static_works_GCJ=yes
16994 LDFLAGS="$save_LDFLAGS"
16997 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16998 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17000 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17003 lt_prog_compiler_static_GCJ=
17007 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17008 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17009 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 lt_cv_prog_compiler_c_o_GCJ=no
17013 $rm -r conftest 2>/dev/null
17017 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17019 lt_compiler_flag="-o out/conftest2.$ac_objext"
17020 # Insert the option either (1) after the last *FLAGS variable, or
17021 # (2) before a word containing "conftest.", or (3) at the end.
17022 # Note that $ac_compile itself does not contain backslashes and begins
17023 # with a dollar sign (not a hyphen), so the echo should work correctly.
17024 lt_compile=`echo "$ac_compile" | $SED \
17025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17027 -e 's:$: $lt_compiler_flag:'`
17028 (eval echo "\"\$as_me:17028: $lt_compile\"" >&5)
17029 (eval "$lt_compile" 2>out/conftest.err)
17031 cat out/conftest.err >&5
17032 echo "$as_me:17032: \$? = $ac_status" >&5
17033 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17035 # The compiler can only warn and ignore the option if not recognized
17036 # So say no if there are warnings
17037 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17038 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17039 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17040 lt_cv_prog_compiler_c_o_GCJ=yes
17045 # SGI C++ compiler will create directory out/ii_files/ for
17046 # template instantiation
17047 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17048 $rm out/* && rmdir out
17054 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17055 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17058 hard_links="nottested"
17059 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17060 # do not overwrite the value of need_locks provided by the user
17061 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17062 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17065 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17067 ln conftest.a conftest.b 2>&5 || hard_links=no
17068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17069 echo "$as_me:$LINENO: result: $hard_links" >&5
17070 echo "${ECHO_T}$hard_links" >&6
17071 if test "$hard_links" = no; then
17072 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17073 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17080 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17081 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17084 allow_undefined_flag_GCJ=
17085 enable_shared_with_static_runtimes_GCJ=no
17087 archive_expsym_cmds_GCJ=
17088 old_archive_From_new_cmds_GCJ=
17089 old_archive_from_expsyms_cmds_GCJ=
17090 export_dynamic_flag_spec_GCJ=
17091 whole_archive_flag_spec_GCJ=
17092 thread_safe_flag_spec_GCJ=
17093 hardcode_libdir_flag_spec_GCJ=
17094 hardcode_libdir_flag_spec_ld_GCJ=
17095 hardcode_libdir_separator_GCJ=
17096 hardcode_direct_GCJ=no
17097 hardcode_minus_L_GCJ=no
17098 hardcode_shlibpath_var_GCJ=unsupported
17099 link_all_deplibs_GCJ=unknown
17100 hardcode_automatic_GCJ=no
17102 module_expsym_cmds_GCJ=
17103 always_export_symbols_GCJ=no
17104 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17105 # include_expsyms should be a list of space-separated symbols to be *always*
17106 # included in the symbol list
17107 include_expsyms_GCJ=
17108 # exclude_expsyms can be an extended regexp of symbols to exclude
17109 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17110 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17111 # as well as any symbol that contains `d'.
17112 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17113 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17114 # platforms (ab)use it in PIC code, but their linkers get confused if
17115 # the symbol is explicitly referenced. Since portable code cannot
17116 # rely on this symbol name, it's probably fine to never include it in
17117 # preloaded symbol tables.
17118 extract_expsyms_cmds=
17119 # Just being paranoid about ensuring that cc_basename is set.
17120 for cc_temp in $compiler""; do
17122 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17123 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17128 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17131 cygwin* | mingw* | pw32*)
17132 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17133 # When not using gcc, we currently assume that we are using
17134 # Microsoft Visual C++.
17135 if test "$GCC" != yes; then
17140 # we just hope/assume this is gcc and not c89 (= MSVC++)
17149 if test "$with_gnu_ld" = yes; then
17150 # If archive_cmds runs LD, not CC, wlarc should be empty
17153 # Set some defaults for GNU ld with shared library support. These
17154 # are reset later if shared libraries are not supported. Putting them
17155 # here allows them to be overridden if necessary.
17156 runpath_var=LD_RUN_PATH
17157 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17158 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17159 # ancient GNU ld didn't support --whole-archive et. al.
17160 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17161 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17163 whole_archive_flag_spec_GCJ=
17165 supports_anon_versioning=no
17166 case `$LD -v 2>/dev/null` in
17167 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17168 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17169 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17170 *\ 2.11.*) ;; # other 2.11 versions
17171 *) supports_anon_versioning=yes ;;
17174 # See if GNU ld supports shared libraries.
17176 aix3* | aix4* | aix5*)
17177 # On AIX/PPC, the GNU linker is very broken
17178 if test "$host_cpu" != ia64; then
17182 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17183 *** to be unable to reliably create shared libraries on AIX.
17184 *** Therefore, libtool is disabling shared libraries support. If you
17185 *** really care for shared libraries, you may want to modify your PATH
17186 *** so that a non-GNU linker is found, and then restart.
17193 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)'
17194 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17195 hardcode_minus_L_GCJ=yes
17197 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17198 # that the semantics of dynamic libraries on AmigaOS, at least up
17199 # to version 4, is to share data among multiple programs linked
17200 # with the same dynamic library. Since this doesn't match the
17201 # behavior of shared libraries on other platforms, we can't use
17207 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17208 allow_undefined_flag_GCJ=unsupported
17209 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17210 # support --undefined. This deserves some investigation. FIXME
17211 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17217 cygwin* | mingw* | pw32*)
17218 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17219 # as there is no search path for DLLs.
17220 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17221 allow_undefined_flag_GCJ=unsupported
17222 always_export_symbols_GCJ=no
17223 enable_shared_with_static_runtimes_GCJ=yes
17224 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17226 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17227 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17228 # If the export-symbols file already is a .def file (1st line
17229 # is EXPORTS), use it as is; otherwise, prepend...
17230 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17231 cp $export_symbols $output_objdir/$soname.def;
17233 echo EXPORTS > $output_objdir/$soname.def;
17234 cat $export_symbols >> $output_objdir/$soname.def;
17236 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17243 hardcode_direct_GCJ=no
17244 hardcode_shlibpath_var_GCJ=no
17245 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17246 export_dynamic_flag_spec_GCJ='${wl}-E'
17247 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17248 # Instead, shared libraries are loaded at an image base (0x10000000 by
17249 # default) and relocated if they conflict, which is a slow very memory
17250 # consuming and fragmenting process. To avoid this, we pick a random,
17251 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17252 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17253 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'
17254 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'
17257 linux* | k*bsd*-gnu)
17258 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17260 case $cc_basename,$host_cpu in
17261 pgcc*) # Portland Group C compiler
17262 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'
17263 tmp_addflag=' $pic_flag'
17265 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17266 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'
17267 tmp_addflag=' $pic_flag -Mnomain' ;;
17268 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17269 tmp_addflag=' -i_dynamic' ;;
17270 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17271 tmp_addflag=' -i_dynamic -nofor_main' ;;
17272 ifc* | ifort*) # Intel Fortran compiler
17273 tmp_addflag=' -nofor_main' ;;
17275 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17277 if test $supports_anon_versioning = yes; then
17278 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17279 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17280 $echo "local: *; };" >> $output_objdir/$libname.ver~
17281 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17283 link_all_deplibs_GCJ=no
17289 netbsd* | netbsdelf*-gnu)
17290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17291 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17294 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17295 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17300 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17304 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17305 *** create shared libraries on Solaris systems. Therefore, libtool
17306 *** is disabling shared libraries support. We urge you to upgrade GNU
17307 *** binutils to release 2.9.1 or newer. Another option is to modify
17308 *** your PATH or compiler configuration so that the native linker is
17309 *** used, and then restart.
17312 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17313 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17314 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17320 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17321 case `$LD -v 2>&1` in
17322 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17326 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17327 *** reliably create shared libraries on SCO systems. Therefore, libtool
17328 *** is disabling shared libraries support. We urge you to upgrade GNU
17329 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17330 *** your PATH or compiler configuration so that the native linker is
17331 *** used, and then restart.
17336 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17337 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17338 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17339 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17348 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17350 hardcode_direct_GCJ=yes
17351 hardcode_shlibpath_var_GCJ=no
17355 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17356 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17357 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17364 if test "$ld_shlibs_GCJ" = no; then
17366 hardcode_libdir_flag_spec_GCJ=
17367 export_dynamic_flag_spec_GCJ=
17368 whole_archive_flag_spec_GCJ=
17371 # PORTME fill in a description of your system's linker (not GNU ld)
17374 allow_undefined_flag_GCJ=unsupported
17375 always_export_symbols_GCJ=yes
17376 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'
17377 # Note: this linker hardcodes the directories in LIBPATH if there
17378 # are no directories specified by -L.
17379 hardcode_minus_L_GCJ=yes
17380 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17381 # Neither direct hardcoding nor static linking is supported with a
17383 hardcode_direct_GCJ=unsupported
17388 if test "$host_cpu" = ia64; then
17389 # On IA64, the linker does run time linking by default, so we don't
17390 # have to do anything special.
17391 aix_use_runtimelinking=no
17392 exp_sym_flag='-Bexport'
17395 # If we're using GNU nm, then we don't want the "-C" option.
17396 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17397 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17398 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'
17400 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'
17402 aix_use_runtimelinking=no
17404 # Test if we are trying to use run time linking or normal
17405 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17406 # need to do runtime linking.
17407 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17408 for ld_flag in $LDFLAGS; do
17409 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17410 aix_use_runtimelinking=yes
17417 exp_sym_flag='-bexport'
17418 no_entry_flag='-bnoentry'
17421 # When large executables or shared objects are built, AIX ld can
17422 # have problems creating the table of contents. If linking a library
17423 # or program results in "error TOC overflow" add -mminimal-toc to
17424 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17425 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17427 archive_cmds_GCJ=''
17428 hardcode_direct_GCJ=yes
17429 hardcode_libdir_separator_GCJ=':'
17430 link_all_deplibs_GCJ=yes
17432 if test "$GCC" = yes; then
17433 case $host_os in aix4.[012]|aix4.[012].*)
17434 # We only want to do this on AIX 4.2 and lower, the check
17435 # below for broken collect2 doesn't work under 4.3+
17436 collect2name=`${CC} -print-prog-name=collect2`
17437 if test -f "$collect2name" && \
17438 strings "$collect2name" | grep resolve_lib_name >/dev/null
17440 # We have reworked collect2
17441 hardcode_direct_GCJ=yes
17443 # We have old collect2
17444 hardcode_direct_GCJ=unsupported
17445 # It fails to find uninstalled libraries when the uninstalled
17446 # path is not listed in the libpath. Setting hardcode_minus_L
17447 # to unsupported forces relinking
17448 hardcode_minus_L_GCJ=yes
17449 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17450 hardcode_libdir_separator_GCJ=
17454 shared_flag='-shared'
17455 if test "$aix_use_runtimelinking" = yes; then
17456 shared_flag="$shared_flag "'${wl}-G'
17460 if test "$host_cpu" = ia64; then
17461 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17462 # chokes on -Wl,-G. The following line is correct:
17465 if test "$aix_use_runtimelinking" = yes; then
17466 shared_flag='${wl}-G'
17468 shared_flag='${wl}-bM:SRE'
17473 # It seems that -bexpall does not export symbols beginning with
17474 # underscore (_), so it is better to generate a list of symbols to export.
17475 always_export_symbols_GCJ=yes
17476 if test "$aix_use_runtimelinking" = yes; then
17477 # Warning - without using the other runtime loading flags (-brtl),
17478 # -berok will link without error, but may produce a broken library.
17479 allow_undefined_flag_GCJ='-berok'
17480 # Determine the default libpath from the value encoded in an empty executable.
17481 cat >conftest.$ac_ext <<_ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17496 rm -f conftest.$ac_objext conftest$ac_exeext
17497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17498 (eval $ac_link) 2>conftest.er1
17500 grep -v '^ *+' conftest.er1 >conftest.err
17502 cat conftest.err >&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } &&
17505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; } &&
17511 { ac_try='test -s conftest$ac_exeext'
17512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17513 (eval $ac_try) 2>&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; }; then
17518 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17520 # Check for a 64-bit object if we didn't find anything.
17521 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; }
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17528 rm -f conftest.err conftest.$ac_objext \
17529 conftest$ac_exeext conftest.$ac_ext
17530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17532 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17533 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"
17535 if test "$host_cpu" = ia64; then
17536 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17537 allow_undefined_flag_GCJ="-z nodefs"
17538 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"
17540 # Determine the default libpath from the value encoded in an empty executable.
17541 cat >conftest.$ac_ext <<_ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17556 rm -f conftest.$ac_objext conftest$ac_exeext
17557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17558 (eval $ac_link) 2>conftest.er1
17560 grep -v '^ *+' conftest.er1 >conftest.err
17562 cat conftest.err >&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } &&
17565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; } &&
17571 { ac_try='test -s conftest$ac_exeext'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17580 # Check for a 64-bit object if we didn't find anything.
17581 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; }
17584 echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.$ac_ext >&5
17588 rm -f conftest.err conftest.$ac_objext \
17589 conftest$ac_exeext conftest.$ac_ext
17590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17592 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17593 # Warning - without using the other run time loading flags,
17594 # -berok will link without error, but may produce a broken library.
17595 no_undefined_flag_GCJ=' ${wl}-bernotok'
17596 allow_undefined_flag_GCJ=' ${wl}-berok'
17597 # Exported symbols can be pulled into shared objects from archives
17598 whole_archive_flag_spec_GCJ='$convenience'
17599 archive_cmds_need_lc_GCJ=yes
17600 # This is similar to how AIX traditionally builds its shared libraries.
17601 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'
17607 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)'
17608 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17609 hardcode_minus_L_GCJ=yes
17610 # see comment about different semantics on the GNU ld section
17615 export_dynamic_flag_spec_GCJ=-rdynamic
17618 cygwin* | mingw* | pw32*)
17619 # When not using gcc, we currently assume that we are using
17620 # Microsoft Visual C++.
17621 # hardcode_libdir_flag_spec is actually meaningless, as there is
17622 # no search path for DLLs.
17623 hardcode_libdir_flag_spec_GCJ=' '
17624 allow_undefined_flag_GCJ=unsupported
17625 # Tell ltmain to make .lib files, not .a files.
17627 # Tell ltmain to make .dll files, not .so files.
17629 # FIXME: Setting linknames here is a bad hack.
17630 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17631 # The linker will automatically build a .lib file if we build a DLL.
17632 old_archive_From_new_cmds_GCJ='true'
17633 # FIXME: Should let the user specify the lib program.
17634 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17635 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17636 enable_shared_with_static_runtimes_GCJ=yes
17639 darwin* | rhapsody*)
17641 rhapsody* | darwin1.[012])
17642 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17645 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17646 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17648 case ${MACOSX_DEPLOYMENT_TARGET} in
17650 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17653 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17659 archive_cmds_need_lc_GCJ=no
17660 hardcode_direct_GCJ=no
17661 hardcode_automatic_GCJ=yes
17662 hardcode_shlibpath_var_GCJ=unsupported
17663 whole_archive_flag_spec_GCJ=''
17664 link_all_deplibs_GCJ=yes
17665 if test "$GCC" = yes ; then
17666 output_verbose_link_cmd='echo'
17667 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17668 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17669 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17670 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}'
17671 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}'
17673 case $cc_basename in
17675 output_verbose_link_cmd='echo'
17676 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17677 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17678 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17679 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}'
17680 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17690 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17691 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17692 hardcode_shlibpath_var_GCJ=no
17699 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17700 # support. Future versions do this automatically, but an explicit c++rt0.o
17701 # does not break anything, and helps significantly (at the cost of a little
17704 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17705 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17706 hardcode_direct_GCJ=yes
17707 hardcode_shlibpath_var_GCJ=no
17710 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17712 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17713 hardcode_direct_GCJ=yes
17714 hardcode_minus_L_GCJ=yes
17715 hardcode_shlibpath_var_GCJ=no
17718 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17719 freebsd* | dragonfly*)
17720 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17721 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17722 hardcode_direct_GCJ=yes
17723 hardcode_shlibpath_var_GCJ=no
17727 if test "$GCC" = yes; then
17728 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'
17730 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'
17732 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17733 hardcode_libdir_separator_GCJ=:
17734 hardcode_direct_GCJ=yes
17736 # hardcode_minus_L: Not really in the search PATH,
17737 # but as the default location of the library.
17738 hardcode_minus_L_GCJ=yes
17739 export_dynamic_flag_spec_GCJ='${wl}-E'
17743 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17744 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17746 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17748 if test "$with_gnu_ld" = no; then
17749 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17750 hardcode_libdir_separator_GCJ=:
17752 hardcode_direct_GCJ=yes
17753 export_dynamic_flag_spec_GCJ='${wl}-E'
17755 # hardcode_minus_L: Not really in the search PATH,
17756 # but as the default location of the library.
17757 hardcode_minus_L_GCJ=yes
17762 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17765 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17768 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17771 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17777 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17780 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17783 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17787 if test "$with_gnu_ld" = no; then
17788 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17789 hardcode_libdir_separator_GCJ=:
17793 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17794 hardcode_direct_GCJ=no
17795 hardcode_shlibpath_var_GCJ=no
17798 hardcode_direct_GCJ=yes
17799 export_dynamic_flag_spec_GCJ='${wl}-E'
17801 # hardcode_minus_L: Not really in the search PATH,
17802 # but as the default location of the library.
17803 hardcode_minus_L_GCJ=yes
17809 irix5* | irix6* | nonstopux*)
17810 if test "$GCC" = yes; then
17811 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'
17813 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'
17814 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17816 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17817 hardcode_libdir_separator_GCJ=:
17818 link_all_deplibs_GCJ=yes
17821 netbsd* | netbsdelf*-gnu)
17822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17823 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17825 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17827 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17828 hardcode_direct_GCJ=yes
17829 hardcode_shlibpath_var_GCJ=no
17833 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17834 hardcode_direct_GCJ=yes
17835 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17836 hardcode_libdir_separator_GCJ=:
17837 hardcode_shlibpath_var_GCJ=no
17841 hardcode_direct_GCJ=yes
17842 hardcode_shlibpath_var_GCJ=no
17843 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17844 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17845 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17846 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17847 export_dynamic_flag_spec_GCJ='${wl}-E'
17850 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17851 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17852 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17855 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17856 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17863 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17864 hardcode_minus_L_GCJ=yes
17865 allow_undefined_flag_GCJ=unsupported
17866 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'
17867 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17871 if test "$GCC" = yes; then
17872 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17873 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'
17875 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17876 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'
17878 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17879 hardcode_libdir_separator_GCJ=:
17882 osf4* | osf5*) # as osf3* with the addition of -msym flag
17883 if test "$GCC" = yes; then
17884 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17885 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'
17886 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17888 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17889 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'
17890 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~
17891 $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'
17893 # Both c and cxx compiler support -rpath directly
17894 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17896 hardcode_libdir_separator_GCJ=:
17900 no_undefined_flag_GCJ=' -z text'
17901 if test "$GCC" = yes; then
17903 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17904 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17905 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17908 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17909 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17910 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17912 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17913 hardcode_shlibpath_var_GCJ=no
17915 solaris2.[0-5] | solaris2.[0-5].*) ;;
17917 # The compiler driver will combine linker options so we
17918 # cannot just pass the convience library names through
17919 # without $wl, iff we do not link with $LD.
17920 # Luckily, gcc supports the same syntax we need for Sun Studio.
17921 # Supported since Solaris 2.6 (maybe 2.5.1?)
17924 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17926 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' ;;
17929 link_all_deplibs_GCJ=yes
17933 if test "x$host_vendor" = xsequent; then
17934 # Use $CC to link under sequent, because it throws in some extra .o
17935 # files that make .init and .fini sections work.
17936 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17938 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17940 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17941 hardcode_direct_GCJ=yes
17942 hardcode_minus_L_GCJ=yes
17943 hardcode_shlibpath_var_GCJ=no
17947 case $host_vendor in
17949 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17950 hardcode_direct_GCJ=yes # is this really true???
17953 ## LD is ld it makes a PLAMLIB
17954 ## CC just makes a GrossModule.
17955 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17956 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17957 hardcode_direct_GCJ=no
17960 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17961 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17964 runpath_var='LD_RUN_PATH'
17965 hardcode_shlibpath_var_GCJ=no
17969 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17970 hardcode_shlibpath_var_GCJ=no
17971 export_dynamic_flag_spec_GCJ='-Bexport'
17975 if test -d /usr/nec; then
17976 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17977 hardcode_shlibpath_var_GCJ=no
17978 runpath_var=LD_RUN_PATH
17979 hardcode_runpath_var=yes
17984 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17985 no_undefined_flag_GCJ='${wl}-z,text'
17986 archive_cmds_need_lc_GCJ=no
17987 hardcode_shlibpath_var_GCJ=no
17988 runpath_var='LD_RUN_PATH'
17990 if test "$GCC" = yes; then
17991 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17992 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17994 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17995 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17999 sysv5* | sco3.2v5* | sco5v6*)
18000 # Note: We can NOT use -z defs as we might desire, because we do not
18001 # link with -lc, and that would cause any symbols used from libc to
18002 # always be unresolved, which means just about no library would
18003 # ever link correctly. If we're not using GNU ld we use -z text
18004 # though, which does catch some bad symbols but isn't as heavy-handed
18006 no_undefined_flag_GCJ='${wl}-z,text'
18007 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18008 archive_cmds_need_lc_GCJ=no
18009 hardcode_shlibpath_var_GCJ=no
18010 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18011 hardcode_libdir_separator_GCJ=':'
18012 link_all_deplibs_GCJ=yes
18013 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18014 runpath_var='LD_RUN_PATH'
18016 if test "$GCC" = yes; then
18017 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18018 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18020 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18021 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18026 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18027 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18028 hardcode_shlibpath_var_GCJ=no
18037 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18038 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18039 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18042 # Do we need to explicitly link libc?
18044 case "x$archive_cmds_need_lc_GCJ" in
18046 # Assume -lc should be added
18047 archive_cmds_need_lc_GCJ=yes
18049 if test "$enable_shared" = yes && test "$GCC" = yes; then
18050 case $archive_cmds_GCJ in
18052 # FIXME: we may have to deal with multi-command sequences.
18055 # Test whether the compiler implicitly links with -lc since on some
18056 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18057 # to ld, don't add -lc before -lgcc.
18058 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18059 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18061 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18064 (eval $ac_compile) 2>&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); } 2>conftest.err; then
18070 libobjs=conftest.$ac_objext
18072 wl=$lt_prog_compiler_wl_GCJ
18073 pic_flag=$lt_prog_compiler_pic_GCJ
18079 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18080 allow_undefined_flag_GCJ=
18081 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18082 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }
18087 archive_cmds_need_lc_GCJ=no
18089 archive_cmds_need_lc_GCJ=yes
18091 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18093 cat conftest.err 1>&5
18096 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18097 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18104 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18105 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18106 library_names_spec=
18107 libname_spec='lib$name'
18111 postuninstall_cmds=
18115 shlibpath_overrides_runpath=unknown
18117 dynamic_linker="$host_os ld.so"
18118 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18119 if test "$GCC" = yes; then
18120 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18121 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18122 # if the path contains ";" then we assume it to be the separator
18123 # otherwise default to the standard path separator (i.e. ":") - it is
18124 # assumed that no part of a normal pathname contains ";" but that should
18125 # okay in the real world where ";" in dirpaths is itself problematic.
18126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18131 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18133 need_lib_prefix=unknown
18134 hardcode_into_libs=no
18136 # when you set need_version to no, make sure it does not cause -set_version
18137 # flags to be left without arguments
18138 need_version=unknown
18143 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18144 shlibpath_var=LIBPATH
18146 # AIX 3 has no versioning support, so we append a major version to the name.
18147 soname_spec='${libname}${release}${shared_ext}$major'
18154 hardcode_into_libs=yes
18155 if test "$host_cpu" = ia64; then
18156 # AIX 5 supports IA64
18157 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18158 shlibpath_var=LD_LIBRARY_PATH
18160 # With GCC up to 2.95.x, collect2 would create an import file
18161 # for dependence libraries. The import file would start with
18162 # the line `#! .'. This would cause the generated library to
18163 # depend on `.', always an invalid library. This was fixed in
18164 # development snapshots of GCC prior to 3.0.
18166 aix4 | aix4.[01] | aix4.[01].*)
18167 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18169 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18172 can_build_shared=no
18176 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18177 # soname into executable. Probably we can add versioning support to
18178 # collect2, so additional links can be useful in future.
18179 if test "$aix_use_runtimelinking" = yes; then
18180 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18181 # instead of lib<name>.a to let people know that these are not
18182 # typical AIX shared libraries.
18183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18185 # We preserve .a as extension for shared libraries through AIX4.2
18186 # and later when we are not doing run time linking.
18187 library_names_spec='${libname}${release}.a $libname.a'
18188 soname_spec='${libname}${release}${shared_ext}$major'
18190 shlibpath_var=LIBPATH
18195 library_names_spec='$libname.ixlibrary $libname.a'
18196 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18197 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'
18201 library_names_spec='${libname}${shared_ext}'
18202 dynamic_linker="$host_os ld.so"
18203 shlibpath_var=LIBRARY_PATH
18209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18210 soname_spec='${libname}${release}${shared_ext}$major'
18211 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18212 shlibpath_var=LD_LIBRARY_PATH
18213 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18214 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18215 # the default ld.so.conf also contains /usr/contrib/lib and
18216 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18217 # libtool to hard-code these into programs
18220 cygwin* | mingw* | pw32*)
18221 version_type=windows
18226 case $GCC,$host_os in
18227 yes,cygwin* | yes,mingw* | yes,pw32*)
18228 library_names_spec='$libname.dll.a'
18229 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18230 postinstall_cmds='base_file=`basename \${file}`~
18231 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18232 dldir=$destdir/`dirname \$dlpath`~
18233 test -d \$dldir || mkdir -p \$dldir~
18234 $install_prog $dir/$dlname \$dldir/$dlname~
18235 chmod a+x \$dldir/$dlname'
18236 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18237 dlpath=$dir/\$dldll~
18239 shlibpath_overrides_runpath=yes
18243 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18244 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18245 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18248 # MinGW DLLs use traditional 'lib' prefix
18249 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18250 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18251 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18252 # It is most probably a Windows format PATH printed by
18253 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18254 # path with ; separators, and with drive letters. We can handle the
18255 # drive letters (cygwin fileutils understands them), so leave them,
18256 # especially as we might pass files found there to a mingw objdump,
18257 # which wouldn't understand a cygwinified path. Ahh.
18258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18260 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18264 # pw32 DLLs use 'pw' prefix rather than 'lib'
18265 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18271 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18274 dynamic_linker='Win32 ld.exe'
18275 # FIXME: first we should search . and the directory the executable is in
18279 darwin* | rhapsody*)
18280 dynamic_linker="$host_os dyld"
18281 version_type=darwin
18284 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18285 soname_spec='${libname}${release}${major}$shared_ext'
18286 shlibpath_overrides_runpath=yes
18287 shlibpath_var=DYLD_LIBRARY_PATH
18288 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18289 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18290 if test "$GCC" = yes; then
18291 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"`
18293 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18295 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18303 soname_spec='${libname}${release}${shared_ext}$major'
18304 shlibpath_var=LD_LIBRARY_PATH
18311 freebsd* | dragonfly*)
18312 # DragonFly does not have aout. When/if they implement a new
18313 # versioning mechanism, adjust this.
18314 if test -x /usr/bin/objformat; then
18315 objformat=`/usr/bin/objformat`
18318 freebsd[123]*) objformat=aout ;;
18319 *) objformat=elf ;;
18322 version_type=freebsd-$objformat
18323 case $version_type in
18325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18330 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18334 shlibpath_var=LD_LIBRARY_PATH
18337 shlibpath_overrides_runpath=yes
18339 freebsd3.[01]* | freebsdelf3.[01]*)
18340 shlibpath_overrides_runpath=yes
18341 hardcode_into_libs=yes
18343 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18344 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18345 shlibpath_overrides_runpath=no
18346 hardcode_into_libs=yes
18348 freebsd*) # from 4.6 on
18349 shlibpath_overrides_runpath=yes
18350 hardcode_into_libs=yes
18359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18360 soname_spec='${libname}${release}${shared_ext}$major'
18361 shlibpath_var=LD_LIBRARY_PATH
18362 hardcode_into_libs=yes
18365 hpux9* | hpux10* | hpux11*)
18366 # Give a soname corresponding to the major version so that dld.sl refuses to
18367 # link against other versions.
18374 hardcode_into_libs=yes
18375 dynamic_linker="$host_os dld.so"
18376 shlibpath_var=LD_LIBRARY_PATH
18377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18379 soname_spec='${libname}${release}${shared_ext}$major'
18380 if test "X$HPUX_IA64_MODE" = X32; then
18381 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18383 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18389 hardcode_into_libs=yes
18390 dynamic_linker="$host_os dld.sl"
18391 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18394 soname_spec='${libname}${release}${shared_ext}$major'
18395 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18400 dynamic_linker="$host_os dld.sl"
18401 shlibpath_var=SHLIB_PATH
18402 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18404 soname_spec='${libname}${release}${shared_ext}$major'
18407 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18408 postinstall_cmds='chmod 555 $lib'
18415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18416 soname_spec='${libname}${release}${shared_ext}$major'
18417 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18418 shlibpath_var=LD_LIBRARY_PATH
18419 shlibpath_overrides_runpath=no
18420 hardcode_into_libs=yes
18423 irix5* | irix6* | nonstopux*)
18425 nonstopux*) version_type=nonstopux ;;
18427 if test "$lt_cv_prog_gnu_ld" = yes; then
18435 soname_spec='${libname}${release}${shared_ext}$major'
18436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18438 irix5* | nonstopux*)
18439 libsuff= shlibsuff=
18442 case $LD in # libtool.m4 will add one of these switches to LD
18443 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18444 libsuff= shlibsuff= libmagic=32-bit;;
18445 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18446 libsuff=32 shlibsuff=N32 libmagic=N32;;
18447 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18448 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18449 *) libsuff= shlibsuff= libmagic=never-match;;
18453 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18454 shlibpath_overrides_runpath=no
18455 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18456 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18457 hardcode_into_libs=yes
18460 # No shared lib support for Linux oldld, aout, or coff.
18461 linux*oldld* | linux*aout* | linux*coff*)
18465 # This must be Linux ELF.
18466 linux* | k*bsd*-gnu)
18470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18471 soname_spec='${libname}${release}${shared_ext}$major'
18472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18473 shlibpath_var=LD_LIBRARY_PATH
18474 shlibpath_overrides_runpath=no
18475 # This implies no fast_install, which is unacceptable.
18476 # Some rework will be needed to allow for fast_install
18477 # before this can be enabled.
18478 hardcode_into_libs=yes
18480 # Append ld.so.conf contents to the search path
18481 if test -f /etc/ld.so.conf; then
18482 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' ' '`
18483 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18486 # We used to test for /lib/ld.so.1 and disable shared libraries on
18487 # powerpc, because MkLinux only supported shared libraries with the
18488 # GNU dynamic linker. Since this was broken with cross compilers,
18489 # most powerpc-linux boxes support dynamic linking these days and
18490 # people can always --disable-shared, the test was removed, and we
18491 # assume the GNU/Linux dynamic linker is in use.
18492 dynamic_linker='GNU/Linux ld.so'
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 shlibpath_var=LD_LIBRARY_PATH
18502 shlibpath_overrides_runpath=no
18503 hardcode_into_libs=yes
18504 dynamic_linker='NetBSD ld.elf_so'
18511 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18514 dynamic_linker='NetBSD (a.out) ld.so'
18516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18517 soname_spec='${libname}${release}${shared_ext}$major'
18518 dynamic_linker='NetBSD ld.elf_so'
18520 shlibpath_var=LD_LIBRARY_PATH
18521 shlibpath_overrides_runpath=yes
18522 hardcode_into_libs=yes
18527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18528 shlibpath_var=LD_LIBRARY_PATH
18529 shlibpath_overrides_runpath=yes
18536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18537 soname_spec='${libname}${release}${shared_ext}$major'
18538 shlibpath_var=LD_LIBRARY_PATH
18539 shlibpath_overrides_runpath=yes
18544 sys_lib_dlsearch_path_spec="/usr/lib"
18546 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18548 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18549 *) need_version=no ;;
18551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18553 shlibpath_var=LD_LIBRARY_PATH
18554 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18556 openbsd2.[89] | openbsd2.[89].*)
18557 shlibpath_overrides_runpath=no
18560 shlibpath_overrides_runpath=yes
18564 shlibpath_overrides_runpath=yes
18569 libname_spec='$name'
18572 library_names_spec='$libname${shared_ext} $libname.a'
18573 dynamic_linker='OS/2 ld.exe'
18574 shlibpath_var=LIBPATH
18577 osf3* | osf4* | osf5*)
18581 soname_spec='${libname}${release}${shared_ext}$major'
18582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18583 shlibpath_var=LD_LIBRARY_PATH
18584 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18585 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18593 soname_spec='${libname}${release}${shared_ext}$major'
18594 shlibpath_var=LD_LIBRARY_PATH
18595 shlibpath_overrides_runpath=yes
18596 hardcode_into_libs=yes
18597 # ldd complains unless libraries are executable
18598 postinstall_cmds='chmod +x $lib'
18603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18604 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18605 shlibpath_var=LD_LIBRARY_PATH
18606 shlibpath_overrides_runpath=yes
18607 if test "$with_gnu_ld" = yes; then
18615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18616 soname_spec='${libname}${release}${shared_ext}$major'
18617 shlibpath_var=LD_LIBRARY_PATH
18618 case $host_vendor in
18620 shlibpath_overrides_runpath=no
18622 export_dynamic_flag_spec='${wl}-Blargedynsym'
18623 runpath_var=LD_RUN_PATH
18631 shlibpath_overrides_runpath=no
18632 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18638 if test -d /usr/nec ;then
18640 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18641 soname_spec='$libname${shared_ext}.$major'
18642 shlibpath_var=LD_LIBRARY_PATH
18646 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18647 version_type=freebsd-elf
18650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18651 soname_spec='${libname}${release}${shared_ext}$major'
18652 shlibpath_var=LD_LIBRARY_PATH
18653 hardcode_into_libs=yes
18654 if test "$with_gnu_ld" = yes; then
18655 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18656 shlibpath_overrides_runpath=no
18658 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18659 shlibpath_overrides_runpath=yes
18662 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18666 sys_lib_dlsearch_path_spec='/usr/lib'
18671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18672 soname_spec='${libname}${release}${shared_ext}$major'
18673 shlibpath_var=LD_LIBRARY_PATH
18680 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18681 echo "${ECHO_T}$dynamic_linker" >&6
18682 test "$dynamic_linker" = no && can_build_shared=no
18684 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18685 if test "$GCC" = yes; then
18686 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18689 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18690 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18691 hardcode_action_GCJ=
18692 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18693 test -n "$runpath_var_GCJ" || \
18694 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18696 # We can hardcode non-existant directories.
18697 if test "$hardcode_direct_GCJ" != no &&
18698 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18699 # have to relink, otherwise we might link with an installed library
18700 # when we should be linking with a yet-to-be-installed one
18701 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18702 test "$hardcode_minus_L_GCJ" != no; then
18703 # Linking always hardcodes the temporary library directory.
18704 hardcode_action_GCJ=relink
18706 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18707 hardcode_action_GCJ=immediate
18710 # We cannot hardcode anything, or else we can only hardcode existing
18712 hardcode_action_GCJ=unsupported
18714 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18715 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18717 if test "$hardcode_action_GCJ" = relink; then
18718 # Fast installation is not supported
18719 enable_fast_install=no
18720 elif test "$shlibpath_overrides_runpath" = yes ||
18721 test "$enable_shared" = no; then
18722 # Fast installation is not necessary
18723 enable_fast_install=needless
18727 # The else clause should only fire when bootstrapping the
18728 # libtool distribution, otherwise you forgot to ship ltmain.sh
18729 # with your package, and you will get complaints that there are
18730 # no rules to generate ltmain.sh.
18731 if test -f "$ltmain"; then
18732 # See if we are running on zsh, and set the options which allow our commands through
18733 # without removal of \ escapes.
18734 if test -n "${ZSH_VERSION+set}" ; then
18735 setopt NO_GLOB_SUBST
18737 # Now quote all the things that may contain metacharacters while being
18738 # careful not to overquote the AC_SUBSTed values. We take copies of the
18739 # variables and quote the copies for generation of the libtool script.
18740 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18742 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18743 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18744 deplibs_check_method reload_flag reload_cmds need_locks \
18745 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18746 lt_cv_sys_global_symbol_to_c_name_address \
18747 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18748 old_postinstall_cmds old_postuninstall_cmds \
18752 lt_prog_compiler_wl_GCJ \
18753 lt_prog_compiler_pic_GCJ \
18754 lt_prog_compiler_static_GCJ \
18755 lt_prog_compiler_no_builtin_flag_GCJ \
18756 export_dynamic_flag_spec_GCJ \
18757 thread_safe_flag_spec_GCJ \
18758 whole_archive_flag_spec_GCJ \
18759 enable_shared_with_static_runtimes_GCJ \
18760 old_archive_cmds_GCJ \
18761 old_archive_from_new_cmds_GCJ \
18762 predep_objects_GCJ \
18763 postdep_objects_GCJ \
18766 compiler_lib_search_path_GCJ \
18768 archive_expsym_cmds_GCJ \
18769 postinstall_cmds_GCJ \
18770 postuninstall_cmds_GCJ \
18771 old_archive_from_expsyms_cmds_GCJ \
18772 allow_undefined_flag_GCJ \
18773 no_undefined_flag_GCJ \
18774 export_symbols_cmds_GCJ \
18775 hardcode_libdir_flag_spec_GCJ \
18776 hardcode_libdir_flag_spec_ld_GCJ \
18777 hardcode_libdir_separator_GCJ \
18778 hardcode_automatic_GCJ \
18780 module_expsym_cmds_GCJ \
18781 lt_cv_prog_compiler_c_o_GCJ \
18782 exclude_expsyms_GCJ \
18783 include_expsyms_GCJ; do
18786 old_archive_cmds_GCJ | \
18787 old_archive_from_new_cmds_GCJ | \
18788 archive_cmds_GCJ | \
18789 archive_expsym_cmds_GCJ | \
18790 module_cmds_GCJ | \
18791 module_expsym_cmds_GCJ | \
18792 old_archive_from_expsyms_cmds_GCJ | \
18793 export_symbols_cmds_GCJ | \
18794 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18795 postinstall_cmds | postuninstall_cmds | \
18796 old_postinstall_cmds | old_postuninstall_cmds | \
18797 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18798 # Double-quote double-evaled strings.
18799 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18802 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18808 *'\$0 --fallback-echo"')
18809 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18815 cat <<__EOF__ >> "$cfgfile"
18816 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18818 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18820 # Shell to use when invoking shell scripts.
18823 # Whether or not to build shared libraries.
18824 build_libtool_libs=$enable_shared
18826 # Whether or not to build static libraries.
18827 build_old_libs=$enable_static
18829 # Whether or not to add -lc for building shared libraries.
18830 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18832 # Whether or not to disallow shared libs when runtime libs are static
18833 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18835 # Whether or not to optimize for fast installation.
18836 fast_install=$enable_fast_install
18839 host_alias=$host_alias
18843 # The build system.
18844 build_alias=$build_alias
18848 # An echo program that does not interpret backslashes.
18853 AR_FLAGS=$lt_AR_FLAGS
18858 # LTCC compiler flags.
18859 LTCFLAGS=$lt_LTCFLAGS
18861 # A language-specific compiler.
18862 CC=$lt_compiler_GCJ
18864 # Is the compiler the GNU C compiler?
18870 # The linker used to build libraries.
18873 # Whether we need hard or soft links.
18876 # A BSD-compatible nm program.
18879 # A symbol stripping program
18882 # Used to examine libraries when file_magic_cmd begins "file"
18883 MAGIC_CMD=$MAGIC_CMD
18885 # Used on cygwin: DLL creation program.
18888 # Used on cygwin: object dumper.
18891 # Used on cygwin: assembler.
18894 # The name of the directory that contains temporary libtool files.
18897 # How to create reloadable object files.
18898 reload_flag=$lt_reload_flag
18899 reload_cmds=$lt_reload_cmds
18901 # How to pass a linker flag through the compiler.
18902 wl=$lt_lt_prog_compiler_wl_GCJ
18904 # Object file suffix (normally "o").
18905 objext="$ac_objext"
18907 # Old archive suffix (normally "a").
18910 # Shared library suffix (normally ".so").
18911 shrext_cmds='$shrext_cmds'
18913 # Executable file suffix (normally "").
18916 # Additional compiler flags for building library objects.
18917 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18920 # What is the maximum length of a command?
18921 max_cmd_len=$lt_cv_sys_max_cmd_len
18923 # Does compiler simultaneously support -c and -o options?
18924 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18926 # Must we lock files when doing compilation?
18927 need_locks=$lt_need_locks
18929 # Do we need the lib prefix for modules?
18930 need_lib_prefix=$need_lib_prefix
18932 # Do we need a version for libraries?
18933 need_version=$need_version
18935 # Whether dlopen is supported.
18936 dlopen_support=$enable_dlopen
18938 # Whether dlopen of programs is supported.
18939 dlopen_self=$enable_dlopen_self
18941 # Whether dlopen of statically linked programs is supported.
18942 dlopen_self_static=$enable_dlopen_self_static
18944 # Compiler flag to prevent dynamic linking.
18945 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18947 # Compiler flag to turn off builtin functions.
18948 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18950 # Compiler flag to allow reflexive dlopens.
18951 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18953 # Compiler flag to generate shared objects directly from archives.
18954 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18956 # Compiler flag to generate thread-safe objects.
18957 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18959 # Library versioning type.
18960 version_type=$version_type
18962 # Format of library name prefix.
18963 libname_spec=$lt_libname_spec
18965 # List of archive names. First name is the real one, the rest are links.
18966 # The last name is the one that the linker finds with -lNAME.
18967 library_names_spec=$lt_library_names_spec
18969 # The coded name of the library, if different from the real name.
18970 soname_spec=$lt_soname_spec
18972 # Commands used to build and install an old-style archive.
18974 old_archive_cmds=$lt_old_archive_cmds_GCJ
18975 old_postinstall_cmds=$lt_old_postinstall_cmds
18976 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18978 # Create an old-style archive from a shared archive.
18979 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18981 # Create a temporary old-style archive to link instead of a shared archive.
18982 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18984 # Commands used to build and install a shared archive.
18985 archive_cmds=$lt_archive_cmds_GCJ
18986 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18987 postinstall_cmds=$lt_postinstall_cmds
18988 postuninstall_cmds=$lt_postuninstall_cmds
18990 # Commands used to build a loadable module (assumed same as above if empty)
18991 module_cmds=$lt_module_cmds_GCJ
18992 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18994 # Commands to strip libraries.
18995 old_striplib=$lt_old_striplib
18996 striplib=$lt_striplib
18998 # Dependencies to place before the objects being linked to create a
19000 predep_objects=$lt_predep_objects_GCJ
19002 # Dependencies to place after the objects being linked to create a
19004 postdep_objects=$lt_postdep_objects_GCJ
19006 # Dependencies to place before the objects being linked to create a
19008 predeps=$lt_predeps_GCJ
19010 # Dependencies to place after the objects being linked to create a
19012 postdeps=$lt_postdeps_GCJ
19014 # The library search path used internally by the compiler when linking
19015 # a shared library.
19016 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19018 # Method to check whether dependent libraries are shared objects.
19019 deplibs_check_method=$lt_deplibs_check_method
19021 # Command to use when deplibs_check_method == file_magic.
19022 file_magic_cmd=$lt_file_magic_cmd
19024 # Flag that allows shared libraries with undefined symbols to be built.
19025 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19027 # Flag that forces no undefined symbols.
19028 no_undefined_flag=$lt_no_undefined_flag_GCJ
19030 # Commands used to finish a libtool library installation in a directory.
19031 finish_cmds=$lt_finish_cmds
19033 # Same as above, but a single script fragment to be evaled but not shown.
19034 finish_eval=$lt_finish_eval
19036 # Take the output of nm and produce a listing of raw symbols and C names.
19037 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19039 # Transform the output of nm in a proper C declaration
19040 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19042 # Transform the output of nm in a C name address pair
19043 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19045 # This is the shared library runtime path variable.
19046 runpath_var=$runpath_var
19048 # This is the shared library path variable.
19049 shlibpath_var=$shlibpath_var
19051 # Is shlibpath searched before the hard-coded library search path?
19052 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19054 # How to hardcode a shared library path into an executable.
19055 hardcode_action=$hardcode_action_GCJ
19057 # Whether we should hardcode library paths into libraries.
19058 hardcode_into_libs=$hardcode_into_libs
19060 # Flag to hardcode \$libdir into a binary during linking.
19061 # This must work even if \$libdir does not exist.
19062 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19064 # If ld is used when linking, flag to hardcode \$libdir into
19065 # a binary during linking. This must work even if \$libdir does
19067 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19069 # Whether we need a single -rpath flag with a separated argument.
19070 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19072 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19073 # resulting binary.
19074 hardcode_direct=$hardcode_direct_GCJ
19076 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19077 # resulting binary.
19078 hardcode_minus_L=$hardcode_minus_L_GCJ
19080 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19081 # the resulting binary.
19082 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19084 # Set to yes if building a shared library automatically hardcodes DIR into the library
19085 # and all subsequent libraries and executables linked against it.
19086 hardcode_automatic=$hardcode_automatic_GCJ
19088 # Variables whose values should be saved in libtool wrapper scripts and
19089 # restored at relink time.
19090 variables_saved_for_relink="$variables_saved_for_relink"
19092 # Whether libtool must link a program against all its dependency libraries.
19093 link_all_deplibs=$link_all_deplibs_GCJ
19095 # Compile-time system search path for libraries
19096 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19098 # Run-time system search path for libraries
19099 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19101 # Fix the shell variable \$srcfile for the compiler.
19102 fix_srcfile_path="$fix_srcfile_path_GCJ"
19104 # Set to yes if exported symbols are required.
19105 always_export_symbols=$always_export_symbols_GCJ
19107 # The commands to list exported symbols.
19108 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19110 # The commands to extract the exported symbol list from a shared archive.
19111 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19113 # Symbols that should not be listed in the preloaded symbols.
19114 exclude_expsyms=$lt_exclude_expsyms_GCJ
19116 # Symbols that must always be exported.
19117 include_expsyms=$lt_include_expsyms_GCJ
19119 # ### END LIBTOOL TAG CONFIG: $tagname
19125 # If there is no Makefile yet, we rely on a make rule to execute
19126 # `config.status --recheck' to rerun these tests and create the
19127 # libtool script then.
19128 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19129 if test -f "$ltmain_in"; then
19130 test -f Makefile && make "$ltmain"
19136 ac_cpp='$CPP $CPPFLAGS'
19137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19152 # Source file extension for RC test sources.
19155 # Object file extension for compiled RC test sources.
19159 # Code to be used in simple compile tests
19160 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19162 # Code to be used in simple link tests
19163 lt_simple_link_test_code="$lt_simple_compile_test_code"
19165 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19167 # If no C compiler was specified, use CC.
19170 # If no C compiler flags were specified, use CFLAGS.
19171 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19173 # Allow CC to be a program name with arguments.
19177 # save warnings/boilerplate of simple test code
19178 ac_outfile=conftest.$ac_objext
19179 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19180 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19181 _lt_compiler_boilerplate=`cat conftest.err`
19184 ac_outfile=conftest.$ac_objext
19185 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19186 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19187 _lt_linker_boilerplate=`cat conftest.err`
19191 # Allow CC to be a program name with arguments.
19196 for cc_temp in $compiler""; do
19198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19204 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19206 lt_cv_prog_compiler_c_o_RC=yes
19208 # The else clause should only fire when bootstrapping the
19209 # libtool distribution, otherwise you forgot to ship ltmain.sh
19210 # with your package, and you will get complaints that there are
19211 # no rules to generate ltmain.sh.
19212 if test -f "$ltmain"; then
19213 # See if we are running on zsh, and set the options which allow our commands through
19214 # without removal of \ escapes.
19215 if test -n "${ZSH_VERSION+set}" ; then
19216 setopt NO_GLOB_SUBST
19218 # Now quote all the things that may contain metacharacters while being
19219 # careful not to overquote the AC_SUBSTed values. We take copies of the
19220 # variables and quote the copies for generation of the libtool script.
19221 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19223 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19224 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19225 deplibs_check_method reload_flag reload_cmds need_locks \
19226 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19227 lt_cv_sys_global_symbol_to_c_name_address \
19228 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19229 old_postinstall_cmds old_postuninstall_cmds \
19233 lt_prog_compiler_wl_RC \
19234 lt_prog_compiler_pic_RC \
19235 lt_prog_compiler_static_RC \
19236 lt_prog_compiler_no_builtin_flag_RC \
19237 export_dynamic_flag_spec_RC \
19238 thread_safe_flag_spec_RC \
19239 whole_archive_flag_spec_RC \
19240 enable_shared_with_static_runtimes_RC \
19241 old_archive_cmds_RC \
19242 old_archive_from_new_cmds_RC \
19243 predep_objects_RC \
19244 postdep_objects_RC \
19247 compiler_lib_search_path_RC \
19249 archive_expsym_cmds_RC \
19250 postinstall_cmds_RC \
19251 postuninstall_cmds_RC \
19252 old_archive_from_expsyms_cmds_RC \
19253 allow_undefined_flag_RC \
19254 no_undefined_flag_RC \
19255 export_symbols_cmds_RC \
19256 hardcode_libdir_flag_spec_RC \
19257 hardcode_libdir_flag_spec_ld_RC \
19258 hardcode_libdir_separator_RC \
19259 hardcode_automatic_RC \
19261 module_expsym_cmds_RC \
19262 lt_cv_prog_compiler_c_o_RC \
19263 exclude_expsyms_RC \
19264 include_expsyms_RC; do
19267 old_archive_cmds_RC | \
19268 old_archive_from_new_cmds_RC | \
19269 archive_cmds_RC | \
19270 archive_expsym_cmds_RC | \
19272 module_expsym_cmds_RC | \
19273 old_archive_from_expsyms_cmds_RC | \
19274 export_symbols_cmds_RC | \
19275 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19276 postinstall_cmds | postuninstall_cmds | \
19277 old_postinstall_cmds | old_postuninstall_cmds | \
19278 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19279 # Double-quote double-evaled strings.
19280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19283 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19289 *'\$0 --fallback-echo"')
19290 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19296 cat <<__EOF__ >> "$cfgfile"
19297 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19299 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19301 # Shell to use when invoking shell scripts.
19304 # Whether or not to build shared libraries.
19305 build_libtool_libs=$enable_shared
19307 # Whether or not to build static libraries.
19308 build_old_libs=$enable_static
19310 # Whether or not to add -lc for building shared libraries.
19311 build_libtool_need_lc=$archive_cmds_need_lc_RC
19313 # Whether or not to disallow shared libs when runtime libs are static
19314 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19316 # Whether or not to optimize for fast installation.
19317 fast_install=$enable_fast_install
19320 host_alias=$host_alias
19324 # The build system.
19325 build_alias=$build_alias
19329 # An echo program that does not interpret backslashes.
19334 AR_FLAGS=$lt_AR_FLAGS
19339 # LTCC compiler flags.
19340 LTCFLAGS=$lt_LTCFLAGS
19342 # A language-specific compiler.
19345 # Is the compiler the GNU C compiler?
19351 # The linker used to build libraries.
19354 # Whether we need hard or soft links.
19357 # A BSD-compatible nm program.
19360 # A symbol stripping program
19363 # Used to examine libraries when file_magic_cmd begins "file"
19364 MAGIC_CMD=$MAGIC_CMD
19366 # Used on cygwin: DLL creation program.
19369 # Used on cygwin: object dumper.
19372 # Used on cygwin: assembler.
19375 # The name of the directory that contains temporary libtool files.
19378 # How to create reloadable object files.
19379 reload_flag=$lt_reload_flag
19380 reload_cmds=$lt_reload_cmds
19382 # How to pass a linker flag through the compiler.
19383 wl=$lt_lt_prog_compiler_wl_RC
19385 # Object file suffix (normally "o").
19386 objext="$ac_objext"
19388 # Old archive suffix (normally "a").
19391 # Shared library suffix (normally ".so").
19392 shrext_cmds='$shrext_cmds'
19394 # Executable file suffix (normally "").
19397 # Additional compiler flags for building library objects.
19398 pic_flag=$lt_lt_prog_compiler_pic_RC
19401 # What is the maximum length of a command?
19402 max_cmd_len=$lt_cv_sys_max_cmd_len
19404 # Does compiler simultaneously support -c and -o options?
19405 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19407 # Must we lock files when doing compilation?
19408 need_locks=$lt_need_locks
19410 # Do we need the lib prefix for modules?
19411 need_lib_prefix=$need_lib_prefix
19413 # Do we need a version for libraries?
19414 need_version=$need_version
19416 # Whether dlopen is supported.
19417 dlopen_support=$enable_dlopen
19419 # Whether dlopen of programs is supported.
19420 dlopen_self=$enable_dlopen_self
19422 # Whether dlopen of statically linked programs is supported.
19423 dlopen_self_static=$enable_dlopen_self_static
19425 # Compiler flag to prevent dynamic linking.
19426 link_static_flag=$lt_lt_prog_compiler_static_RC
19428 # Compiler flag to turn off builtin functions.
19429 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19431 # Compiler flag to allow reflexive dlopens.
19432 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19434 # Compiler flag to generate shared objects directly from archives.
19435 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19437 # Compiler flag to generate thread-safe objects.
19438 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19440 # Library versioning type.
19441 version_type=$version_type
19443 # Format of library name prefix.
19444 libname_spec=$lt_libname_spec
19446 # List of archive names. First name is the real one, the rest are links.
19447 # The last name is the one that the linker finds with -lNAME.
19448 library_names_spec=$lt_library_names_spec
19450 # The coded name of the library, if different from the real name.
19451 soname_spec=$lt_soname_spec
19453 # Commands used to build and install an old-style archive.
19455 old_archive_cmds=$lt_old_archive_cmds_RC
19456 old_postinstall_cmds=$lt_old_postinstall_cmds
19457 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19459 # Create an old-style archive from a shared archive.
19460 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19462 # Create a temporary old-style archive to link instead of a shared archive.
19463 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19465 # Commands used to build and install a shared archive.
19466 archive_cmds=$lt_archive_cmds_RC
19467 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19468 postinstall_cmds=$lt_postinstall_cmds
19469 postuninstall_cmds=$lt_postuninstall_cmds
19471 # Commands used to build a loadable module (assumed same as above if empty)
19472 module_cmds=$lt_module_cmds_RC
19473 module_expsym_cmds=$lt_module_expsym_cmds_RC
19475 # Commands to strip libraries.
19476 old_striplib=$lt_old_striplib
19477 striplib=$lt_striplib
19479 # Dependencies to place before the objects being linked to create a
19481 predep_objects=$lt_predep_objects_RC
19483 # Dependencies to place after the objects being linked to create a
19485 postdep_objects=$lt_postdep_objects_RC
19487 # Dependencies to place before the objects being linked to create a
19489 predeps=$lt_predeps_RC
19491 # Dependencies to place after the objects being linked to create a
19493 postdeps=$lt_postdeps_RC
19495 # The library search path used internally by the compiler when linking
19496 # a shared library.
19497 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19499 # Method to check whether dependent libraries are shared objects.
19500 deplibs_check_method=$lt_deplibs_check_method
19502 # Command to use when deplibs_check_method == file_magic.
19503 file_magic_cmd=$lt_file_magic_cmd
19505 # Flag that allows shared libraries with undefined symbols to be built.
19506 allow_undefined_flag=$lt_allow_undefined_flag_RC
19508 # Flag that forces no undefined symbols.
19509 no_undefined_flag=$lt_no_undefined_flag_RC
19511 # Commands used to finish a libtool library installation in a directory.
19512 finish_cmds=$lt_finish_cmds
19514 # Same as above, but a single script fragment to be evaled but not shown.
19515 finish_eval=$lt_finish_eval
19517 # Take the output of nm and produce a listing of raw symbols and C names.
19518 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19520 # Transform the output of nm in a proper C declaration
19521 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19523 # Transform the output of nm in a C name address pair
19524 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19526 # This is the shared library runtime path variable.
19527 runpath_var=$runpath_var
19529 # This is the shared library path variable.
19530 shlibpath_var=$shlibpath_var
19532 # Is shlibpath searched before the hard-coded library search path?
19533 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19535 # How to hardcode a shared library path into an executable.
19536 hardcode_action=$hardcode_action_RC
19538 # Whether we should hardcode library paths into libraries.
19539 hardcode_into_libs=$hardcode_into_libs
19541 # Flag to hardcode \$libdir into a binary during linking.
19542 # This must work even if \$libdir does not exist.
19543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19545 # If ld is used when linking, flag to hardcode \$libdir into
19546 # a binary during linking. This must work even if \$libdir does
19548 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19550 # Whether we need a single -rpath flag with a separated argument.
19551 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19553 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19554 # resulting binary.
19555 hardcode_direct=$hardcode_direct_RC
19557 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19558 # resulting binary.
19559 hardcode_minus_L=$hardcode_minus_L_RC
19561 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19562 # the resulting binary.
19563 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19565 # Set to yes if building a shared library automatically hardcodes DIR into the library
19566 # and all subsequent libraries and executables linked against it.
19567 hardcode_automatic=$hardcode_automatic_RC
19569 # Variables whose values should be saved in libtool wrapper scripts and
19570 # restored at relink time.
19571 variables_saved_for_relink="$variables_saved_for_relink"
19573 # Whether libtool must link a program against all its dependency libraries.
19574 link_all_deplibs=$link_all_deplibs_RC
19576 # Compile-time system search path for libraries
19577 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19579 # Run-time system search path for libraries
19580 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19582 # Fix the shell variable \$srcfile for the compiler.
19583 fix_srcfile_path="$fix_srcfile_path_RC"
19585 # Set to yes if exported symbols are required.
19586 always_export_symbols=$always_export_symbols_RC
19588 # The commands to list exported symbols.
19589 export_symbols_cmds=$lt_export_symbols_cmds_RC
19591 # The commands to extract the exported symbol list from a shared archive.
19592 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19594 # Symbols that should not be listed in the preloaded symbols.
19595 exclude_expsyms=$lt_exclude_expsyms_RC
19597 # Symbols that must always be exported.
19598 include_expsyms=$lt_include_expsyms_RC
19600 # ### END LIBTOOL TAG CONFIG: $tagname
19606 # If there is no Makefile yet, we rely on a make rule to execute
19607 # `config.status --recheck' to rerun these tests and create the
19608 # libtool script then.
19609 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19610 if test -f "$ltmain_in"; then
19611 test -f Makefile && make "$ltmain"
19617 ac_cpp='$CPP $CPPFLAGS'
19618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19627 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19628 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19629 { (exit 1); exit 1; }; }
19633 # Append the new tag name to the list of available tags.
19634 if test -n "$tagname" ; then
19635 available_tags="$available_tags $tagname"
19641 # Now substitute the updated list of available tags.
19642 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19643 mv "${ofile}T" "$ofile"
19647 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19648 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19649 { (exit 1); exit 1; }; }
19655 # This can be used to rebuild libtool when needed
19656 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19658 # Always use our own libtool.
19659 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19661 # Prevent multiple expansion
19683 if test "x$cross_compiling" = "xno"; then
19684 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
19686 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
19691 if test -n "$ac_tool_prefix"; then
19692 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19693 set dummy ${ac_tool_prefix}ar; ac_word=$2
19694 echo "$as_me:$LINENO: checking for $ac_word" >&5
19695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19696 if test "${ac_cv_prog_AR+set}" = set; then
19697 echo $ECHO_N "(cached) $ECHO_C" >&6
19699 if test -n "$AR"; then
19700 ac_cv_prog_AR="$AR" # Let the user override the test.
19702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19703 for as_dir in $PATH
19706 test -z "$as_dir" && as_dir=.
19707 for ac_exec_ext in '' $ac_executable_extensions; do
19708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19709 ac_cv_prog_AR="${ac_tool_prefix}ar"
19710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19719 if test -n "$AR"; then
19720 echo "$as_me:$LINENO: result: $AR" >&5
19721 echo "${ECHO_T}$AR" >&6
19723 echo "$as_me:$LINENO: result: no" >&5
19724 echo "${ECHO_T}no" >&6
19728 if test -z "$ac_cv_prog_AR"; then
19730 # Extract the first word of "ar", so it can be a program name with args.
19731 set dummy ar; ac_word=$2
19732 echo "$as_me:$LINENO: checking for $ac_word" >&5
19733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19734 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19735 echo $ECHO_N "(cached) $ECHO_C" >&6
19737 if test -n "$ac_ct_AR"; then
19738 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19741 for as_dir in $PATH
19744 test -z "$as_dir" && as_dir=.
19745 for ac_exec_ext in '' $ac_executable_extensions; do
19746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19747 ac_cv_prog_ac_ct_AR="ar"
19748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19756 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19757 if test -n "$ac_ct_AR"; then
19758 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19759 echo "${ECHO_T}$ac_ct_AR" >&6
19761 echo "$as_me:$LINENO: result: no" >&5
19762 echo "${ECHO_T}no" >&6
19767 AR="$ac_cv_prog_AR"
19770 if test -n "$ac_tool_prefix"; then
19771 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
19772 set dummy ${ac_tool_prefix}ld; ac_word=$2
19773 echo "$as_me:$LINENO: checking for $ac_word" >&5
19774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19775 if test "${ac_cv_prog_LD+set}" = set; then
19776 echo $ECHO_N "(cached) $ECHO_C" >&6
19778 if test -n "$LD"; then
19779 ac_cv_prog_LD="$LD" # Let the user override the test.
19781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19782 for as_dir in $PATH
19785 test -z "$as_dir" && as_dir=.
19786 for ac_exec_ext in '' $ac_executable_extensions; do
19787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19788 ac_cv_prog_LD="${ac_tool_prefix}ld"
19789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19798 if test -n "$LD"; then
19799 echo "$as_me:$LINENO: result: $LD" >&5
19800 echo "${ECHO_T}$LD" >&6
19802 echo "$as_me:$LINENO: result: no" >&5
19803 echo "${ECHO_T}no" >&6
19807 if test -z "$ac_cv_prog_LD"; then
19809 # Extract the first word of "ld", so it can be a program name with args.
19810 set dummy ld; ac_word=$2
19811 echo "$as_me:$LINENO: checking for $ac_word" >&5
19812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19813 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
19814 echo $ECHO_N "(cached) $ECHO_C" >&6
19816 if test -n "$ac_ct_LD"; then
19817 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
19819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19820 for as_dir in $PATH
19823 test -z "$as_dir" && as_dir=.
19824 for ac_exec_ext in '' $ac_executable_extensions; do
19825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19826 ac_cv_prog_ac_ct_LD="ld"
19827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19835 ac_ct_LD=$ac_cv_prog_ac_ct_LD
19836 if test -n "$ac_ct_LD"; then
19837 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
19838 echo "${ECHO_T}$ac_ct_LD" >&6
19840 echo "$as_me:$LINENO: result: no" >&5
19841 echo "${ECHO_T}no" >&6
19846 LD="$ac_cv_prog_LD"
19850 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19851 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19852 if test "${ac_cv_header_stdc+set}" = set; then
19853 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 cat >conftest.$ac_ext <<_ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 #include <stdlib.h>
19862 #include <stdarg.h>
19863 #include <string.h>
19874 rm -f conftest.$ac_objext
19875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19876 (eval $ac_compile) 2>conftest.er1
19878 grep -v '^ *+' conftest.er1 >conftest.err
19880 cat conftest.err >&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } &&
19883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; } &&
19889 { ac_try='test -s conftest.$ac_objext'
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; }; then
19895 ac_cv_header_stdc=yes
19897 echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19900 ac_cv_header_stdc=no
19902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19904 if test $ac_cv_header_stdc = yes; then
19905 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19906 cat >conftest.$ac_ext <<_ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h. */
19912 #include <string.h>
19915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19916 $EGREP "memchr" >/dev/null 2>&1; then
19919 ac_cv_header_stdc=no
19925 if test $ac_cv_header_stdc = yes; then
19926 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19927 cat >conftest.$ac_ext <<_ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h. */
19933 #include <stdlib.h>
19936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19937 $EGREP "free" >/dev/null 2>&1; then
19940 ac_cv_header_stdc=no
19946 if test $ac_cv_header_stdc = yes; then
19947 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19948 if test "$cross_compiling" = yes; then
19951 cat >conftest.$ac_ext <<_ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19958 #if ((' ' & 0x0FF) == 0x020)
19959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19962 # define ISLOWER(c) \
19963 (('a' <= (c) && (c) <= 'i') \
19964 || ('j' <= (c) && (c) <= 'r') \
19965 || ('s' <= (c) && (c) <= 'z'))
19966 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19974 for (i = 0; i < 256; i++)
19975 if (XOR (islower (i), ISLOWER (i))
19976 || toupper (i) != TOUPPER (i))
19981 rm -f conftest$ac_exeext
19982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19983 (eval $ac_link) 2>&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988 (eval $ac_try) 2>&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; }; then
19994 echo "$as_me: program exited with status $ac_status" >&5
19995 echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19998 ( exit $ac_status )
19999 ac_cv_header_stdc=no
20001 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20005 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20006 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20007 if test $ac_cv_header_stdc = yes; then
20009 cat >>confdefs.h <<\_ACEOF
20010 #define STDC_HEADERS 1
20016 echo "$as_me:$LINENO: checking for GNU libc2" >&5
20017 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6
20018 if test "${knfsd_cv_glibc2+set}" = set; then
20019 echo $ECHO_N "(cached) $ECHO_C" >&6
20021 cat >conftest.$ac_ext <<_ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20028 #include <features.h>
20029 #if !defined(__GLIBC__)
20034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20037 grep -v '^ *+' conftest.er1 >conftest.err
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } >/dev/null; then
20042 if test -s conftest.err; then
20043 ac_cpp_err=$ac_c_preproc_warn_flag
20044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20051 if test -z "$ac_cpp_err"; then
20052 knfsd_cv_glibc2=yes
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20059 rm -f conftest.err conftest.$ac_ext
20062 echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20063 echo "${ECHO_T}$knfsd_cv_glibc2" >&6
20064 if test $knfsd_cv_glibc2 = yes; then
20065 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20066 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20070 echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20071 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6
20072 if test "${knfsd_cv_bsd_signals+set}" = set; then
20073 echo $ECHO_N "(cached) $ECHO_C" >&6
20075 if test "$cross_compiling" = yes; then
20076 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20077 See \`config.log' for more details." >&5
20078 echo "$as_me: error: cannot run test program while cross compiling
20079 See \`config.log' for more details." >&2;}
20080 { (exit 1); exit 1; }; }
20082 cat >conftest.$ac_ext <<_ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h. */
20089 #include <signal.h>
20090 #include <unistd.h>
20091 #include <sys/wait.h>
20093 static int counter = 0;
20094 static RETSIGTYPE handler(int num) { counter++; }
20099 if ((s = fork()) < 0) return 1;
20101 if (wait(&s) < 0) return 1;
20102 return WIFSIGNALED(s)? 1 : 0;
20105 signal(SIGHUP, handler);
20106 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20107 return (counter == 2)? 0 : 1;
20111 rm -f conftest$ac_exeext
20112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20113 (eval $ac_link) 2>&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118 (eval $ac_try) 2>&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; }; then
20122 knfsd_cv_bsd_signals=yes
20124 echo "$as_me: program exited with status $ac_status" >&5
20125 echo "$as_me: failed program was:" >&5
20126 sed 's/^/| /' conftest.$ac_ext >&5
20128 ( exit $ac_status )
20129 knfsd_cv_bsd_signals=no
20131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20134 echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20135 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6
20136 test $knfsd_cv_bsd_signals = yes &&
20137 cat >>confdefs.h <<\_ACEOF
20138 #define HAVE_BSD_SIGNALS 1
20143 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
20144 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
20145 if test "${ac_cv_lib_socket_main+set}" = set; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20148 ac_check_lib_save_LIBS=$LIBS
20149 LIBS="-lsocket $LIBS"
20150 cat >conftest.$ac_ext <<_ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20166 rm -f conftest.$ac_objext conftest$ac_exeext
20167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20168 (eval $ac_link) 2>conftest.er1
20170 grep -v '^ *+' conftest.er1 >conftest.err
20172 cat conftest.err >&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } &&
20175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177 (eval $ac_try) 2>&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; } &&
20181 { ac_try='test -s conftest$ac_exeext'
20182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20183 (eval $ac_try) 2>&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); }; }; then
20187 ac_cv_lib_socket_main=yes
20189 echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20192 ac_cv_lib_socket_main=no
20194 rm -f conftest.err conftest.$ac_objext \
20195 conftest$ac_exeext conftest.$ac_ext
20196 LIBS=$ac_check_lib_save_LIBS
20198 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
20199 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
20200 if test $ac_cv_lib_socket_main = yes; then
20204 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
20205 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
20206 if test "${ac_cv_lib_nsl_main+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20209 ac_check_lib_save_LIBS=$LIBS
20211 cat >conftest.$ac_ext <<_ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h. */
20227 rm -f conftest.$ac_objext conftest$ac_exeext
20228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20229 (eval $ac_link) 2>conftest.er1
20231 grep -v '^ *+' conftest.er1 >conftest.err
20233 cat conftest.err >&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); } &&
20236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20238 (eval $ac_try) 2>&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); }; } &&
20242 { ac_try='test -s conftest$ac_exeext'
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; }; then
20248 ac_cv_lib_nsl_main=yes
20250 echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20253 ac_cv_lib_nsl_main=no
20255 rm -f conftest.err conftest.$ac_objext \
20256 conftest$ac_exeext conftest.$ac_ext
20257 LIBS=$ac_check_lib_save_LIBS
20259 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
20260 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
20261 if test $ac_cv_lib_nsl_main = yes; then
20265 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
20266 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
20267 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
20268 echo $ECHO_N "(cached) $ECHO_C" >&6
20270 ac_check_lib_save_LIBS=$LIBS
20271 LIBS="-lcrypt $LIBS"
20272 cat >conftest.$ac_ext <<_ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h. */
20279 /* Override any gcc2 internal prototype to avoid an error. */
20283 /* We use char because int might match the return type of a gcc2
20284 builtin and then its argument prototype would still apply. */
20294 rm -f conftest.$ac_objext conftest$ac_exeext
20295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20296 (eval $ac_link) 2>conftest.er1
20298 grep -v '^ *+' conftest.er1 >conftest.err
20300 cat conftest.err >&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } &&
20303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; } &&
20309 { ac_try='test -s conftest$ac_exeext'
20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; }; then
20315 ac_cv_lib_crypt_crypt=yes
20317 echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20320 ac_cv_lib_crypt_crypt=no
20322 rm -f conftest.err conftest.$ac_objext \
20323 conftest$ac_exeext conftest.$ac_ext
20324 LIBS=$ac_check_lib_save_LIBS
20326 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
20327 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
20328 if test $ac_cv_lib_crypt_crypt = yes; then
20332 if test "$enable_nfsv4" = yes; then
20333 echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
20334 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6
20335 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
20338 ac_check_lib_save_LIBS=$LIBS
20339 LIBS="-levent $LIBS"
20340 cat >conftest.$ac_ext <<_ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h. */
20347 /* Override any gcc2 internal prototype to avoid an error. */
20351 /* We use char because int might match the return type of a gcc2
20352 builtin and then its argument prototype would still apply. */
20353 char event_dispatch ();
20362 rm -f conftest.$ac_objext conftest$ac_exeext
20363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20364 (eval $ac_link) 2>conftest.er1
20366 grep -v '^ *+' conftest.er1 >conftest.err
20368 cat conftest.err >&5
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); } &&
20371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; } &&
20377 { ac_try='test -s conftest$ac_exeext'
20378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379 (eval $ac_try) 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; }; then
20383 ac_cv_lib_event_event_dispatch=yes
20385 echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20388 ac_cv_lib_event_event_dispatch=no
20390 rm -f conftest.err conftest.$ac_objext \
20391 conftest$ac_exeext conftest.$ac_ext
20392 LIBS=$ac_check_lib_save_LIBS
20394 echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
20395 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6
20396 if test $ac_cv_lib_event_event_dispatch = yes; then
20399 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
20400 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
20401 { (exit 1); exit 1; }; }
20404 echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
20405 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6
20406 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
20407 echo $ECHO_N "(cached) $ECHO_C" >&6
20409 ac_check_lib_save_LIBS=$LIBS
20410 LIBS="-lnfsidmap $LIBS"
20411 cat >conftest.$ac_ext <<_ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20418 /* Override any gcc2 internal prototype to avoid an error. */
20422 /* We use char because int might match the return type of a gcc2
20423 builtin and then its argument prototype would still apply. */
20424 char nfs4_init_name_mapping ();
20428 nfs4_init_name_mapping ();
20433 rm -f conftest.$ac_objext conftest$ac_exeext
20434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20435 (eval $ac_link) 2>conftest.er1
20437 grep -v '^ *+' conftest.er1 >conftest.err
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } &&
20442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444 (eval $ac_try) 2>&5
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; } &&
20448 { ac_try='test -s conftest$ac_exeext'
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; }; then
20454 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20459 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
20461 rm -f conftest.err conftest.$ac_objext \
20462 conftest$ac_exeext conftest.$ac_ext
20463 LIBS=$ac_check_lib_save_LIBS
20465 echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
20466 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6
20467 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
20470 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
20471 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
20472 { (exit 1); exit 1; }; }
20476 for ac_header in event.h
20478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20480 echo "$as_me:$LINENO: checking for $ac_header" >&5
20481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20483 echo $ECHO_N "(cached) $ECHO_C" >&6
20485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20488 # Is the header compilable?
20489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20491 cat >conftest.$ac_ext <<_ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h. */
20497 $ac_includes_default
20498 #include <$ac_header>
20500 rm -f conftest.$ac_objext
20501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20502 (eval $ac_compile) 2>conftest.er1
20504 grep -v '^ *+' conftest.er1 >conftest.err
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } &&
20509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511 (eval $ac_try) 2>&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; } &&
20515 { ac_try='test -s conftest.$ac_objext'
20516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517 (eval $ac_try) 2>&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); }; }; then
20521 ac_header_compiler=yes
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20526 ac_header_compiler=no
20528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20530 echo "${ECHO_T}$ac_header_compiler" >&6
20532 # Is the header present?
20533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20535 cat >conftest.$ac_ext <<_ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20541 #include <$ac_header>
20543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20546 grep -v '^ *+' conftest.er1 >conftest.err
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } >/dev/null; then
20551 if test -s conftest.err; then
20552 ac_cpp_err=$ac_c_preproc_warn_flag
20553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20560 if test -z "$ac_cpp_err"; then
20561 ac_header_preproc=yes
20563 echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20566 ac_header_preproc=no
20568 rm -f conftest.err conftest.$ac_ext
20569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20570 echo "${ECHO_T}$ac_header_preproc" >&6
20572 # So? What about this header?
20573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20579 ac_header_preproc=yes
20582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20596 ## ------------------------------- ##
20597 ## Report this to nfs@lists.sf.net ##
20598 ## ------------------------------- ##
20601 sed "s/^/$as_me: WARNING: /" >&2
20604 echo "$as_me:$LINENO: checking for $ac_header" >&5
20605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20607 echo $ECHO_N "(cached) $ECHO_C" >&6
20609 eval "$as_ac_Header=\$ac_header_preproc"
20611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20616 cat >>confdefs.h <<_ACEOF
20617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20621 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
20622 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
20623 { (exit 1); exit 1; }; }
20629 for ac_header in nfsidmap.h
20631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20641 # Is the header compilable?
20642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20644 cat >conftest.$ac_ext <<_ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h. */
20650 $ac_includes_default
20651 #include <$ac_header>
20653 rm -f conftest.$ac_objext
20654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20655 (eval $ac_compile) 2>conftest.er1
20657 grep -v '^ *+' conftest.er1 >conftest.err
20659 cat conftest.err >&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } &&
20662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20664 (eval $ac_try) 2>&5
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); }; } &&
20668 { ac_try='test -s conftest.$ac_objext'
20669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670 (eval $ac_try) 2>&5
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; }; then
20674 ac_header_compiler=yes
20676 echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20679 ac_header_compiler=no
20681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20683 echo "${ECHO_T}$ac_header_compiler" >&6
20685 # Is the header present?
20686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20688 cat >conftest.$ac_ext <<_ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20694 #include <$ac_header>
20696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20699 grep -v '^ *+' conftest.er1 >conftest.err
20701 cat conftest.err >&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); } >/dev/null; then
20704 if test -s conftest.err; then
20705 ac_cpp_err=$ac_c_preproc_warn_flag
20706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20713 if test -z "$ac_cpp_err"; then
20714 ac_header_preproc=yes
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20719 ac_header_preproc=no
20721 rm -f conftest.err conftest.$ac_ext
20722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20723 echo "${ECHO_T}$ac_header_preproc" >&6
20725 # So? What about this header?
20726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20732 ac_header_preproc=yes
20735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20749 ## ------------------------------- ##
20750 ## Report this to nfs@lists.sf.net ##
20751 ## ------------------------------- ##
20754 sed "s/^/$as_me: WARNING: /" >&2
20757 echo "$as_me:$LINENO: checking for $ac_header" >&5
20758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20760 echo $ECHO_N "(cached) $ECHO_C" >&6
20762 eval "$as_ac_Header=\$ac_header_preproc"
20764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20769 cat >>confdefs.h <<_ACEOF
20770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20774 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
20775 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
20776 { (exit 1); exit 1; }; }
20782 if test "$knfsd_cv_glibc2" = no; then
20783 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
20784 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
20785 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
20786 echo $ECHO_N "(cached) $ECHO_C" >&6
20788 ac_check_lib_save_LIBS=$LIBS
20790 cat >conftest.$ac_ext <<_ACEOF
20793 cat confdefs.h >>conftest.$ac_ext
20794 cat >>conftest.$ac_ext <<_ACEOF
20795 /* end confdefs.h. */
20797 /* Override any gcc2 internal prototype to avoid an error. */
20801 /* We use char because int might match the return type of a gcc2
20802 builtin and then its argument prototype would still apply. */
20812 rm -f conftest.$ac_objext conftest$ac_exeext
20813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20814 (eval $ac_link) 2>conftest.er1
20816 grep -v '^ *+' conftest.er1 >conftest.err
20818 cat conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } &&
20821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20823 (eval $ac_try) 2>&5
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); }; } &&
20827 { ac_try='test -s conftest$ac_exeext'
20828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20829 (eval $ac_try) 2>&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); }; }; then
20833 ac_cv_lib_bsd_daemon=yes
20835 echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20838 ac_cv_lib_bsd_daemon=no
20840 rm -f conftest.err conftest.$ac_objext \
20841 conftest$ac_exeext conftest.$ac_ext
20842 LIBS=$ac_check_lib_save_LIBS
20844 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
20845 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
20846 if test $ac_cv_lib_bsd_daemon = yes; then
20856 if test "$enable_gss" = yes; then
20858 for ac_header in nfsidmap.h
20860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20862 echo "$as_me:$LINENO: checking for $ac_header" >&5
20863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20870 # Is the header compilable?
20871 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20873 cat >conftest.$ac_ext <<_ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h. */
20879 $ac_includes_default
20880 #include <$ac_header>
20882 rm -f conftest.$ac_objext
20883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20884 (eval $ac_compile) 2>conftest.er1
20886 grep -v '^ *+' conftest.er1 >conftest.err
20888 cat conftest.err >&5
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); } &&
20891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893 (eval $ac_try) 2>&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); }; } &&
20897 { ac_try='test -s conftest.$ac_objext'
20898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20899 (eval $ac_try) 2>&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); }; }; then
20903 ac_header_compiler=yes
20905 echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20908 ac_header_compiler=no
20910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20912 echo "${ECHO_T}$ac_header_compiler" >&6
20914 # Is the header present?
20915 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20917 cat >conftest.$ac_ext <<_ACEOF
20920 cat confdefs.h >>conftest.$ac_ext
20921 cat >>conftest.$ac_ext <<_ACEOF
20922 /* end confdefs.h. */
20923 #include <$ac_header>
20925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20928 grep -v '^ *+' conftest.er1 >conftest.err
20930 cat conftest.err >&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } >/dev/null; then
20933 if test -s conftest.err; then
20934 ac_cpp_err=$ac_c_preproc_warn_flag
20935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20942 if test -z "$ac_cpp_err"; then
20943 ac_header_preproc=yes
20945 echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20948 ac_header_preproc=no
20950 rm -f conftest.err conftest.$ac_ext
20951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20952 echo "${ECHO_T}$ac_header_preproc" >&6
20954 # So? What about this header?
20955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20961 ac_header_preproc=yes
20964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20971 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20978 ## ------------------------------- ##
20979 ## Report this to nfs@lists.sf.net ##
20980 ## ------------------------------- ##
20983 sed "s/^/$as_me: WARNING: /" >&2
20986 echo "$as_me:$LINENO: checking for $ac_header" >&5
20987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20989 echo $ECHO_N "(cached) $ECHO_C" >&6
20991 eval "$as_ac_Header=\$ac_header_preproc"
20993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20998 cat >>confdefs.h <<_ACEOF
20999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21003 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
21004 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
21005 { (exit 1); exit 1; }; }
21011 for ac_header in spkm3.h
21013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21015 echo "$as_me:$LINENO: checking for $ac_header" >&5
21016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21018 echo $ECHO_N "(cached) $ECHO_C" >&6
21020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21023 # Is the header compilable?
21024 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21026 cat >conftest.$ac_ext <<_ACEOF
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h. */
21032 $ac_includes_default
21033 #include <$ac_header>
21035 rm -f conftest.$ac_objext
21036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21037 (eval $ac_compile) 2>conftest.er1
21039 grep -v '^ *+' conftest.er1 >conftest.err
21041 cat conftest.err >&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } &&
21044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21046 (eval $ac_try) 2>&5
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); }; } &&
21050 { ac_try='test -s conftest.$ac_objext'
21051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21052 (eval $ac_try) 2>&5
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); }; }; then
21056 ac_header_compiler=yes
21058 echo "$as_me: failed program was:" >&5
21059 sed 's/^/| /' conftest.$ac_ext >&5
21061 ac_header_compiler=no
21063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21065 echo "${ECHO_T}$ac_header_compiler" >&6
21067 # Is the header present?
21068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21070 cat >conftest.$ac_ext <<_ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h. */
21076 #include <$ac_header>
21078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21081 grep -v '^ *+' conftest.er1 >conftest.err
21083 cat conftest.err >&5
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); } >/dev/null; then
21086 if test -s conftest.err; then
21087 ac_cpp_err=$ac_c_preproc_warn_flag
21088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21095 if test -z "$ac_cpp_err"; then
21096 ac_header_preproc=yes
21098 echo "$as_me: failed program was:" >&5
21099 sed 's/^/| /' conftest.$ac_ext >&5
21101 ac_header_preproc=no
21103 rm -f conftest.err conftest.$ac_ext
21104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21105 echo "${ECHO_T}$ac_header_preproc" >&6
21107 # So? What about this header?
21108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21114 ac_header_preproc=yes
21117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21131 ## ------------------------------- ##
21132 ## Report this to nfs@lists.sf.net ##
21133 ## ------------------------------- ##
21136 sed "s/^/$as_me: WARNING: /" >&2
21139 echo "$as_me:$LINENO: checking for $ac_header" >&5
21140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21142 echo $ECHO_N "(cached) $ECHO_C" >&6
21144 eval "$as_ac_Header=\$ac_header_preproc"
21146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21151 cat >>confdefs.h <<_ACEOF
21152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21156 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
21157 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
21164 echo "$as_me:$LINENO: checking for Kerberos v5" >&5
21165 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6
21167 # Check whether --with-krb5 or --without-krb5 was given.
21168 if test "${with_krb5+set}" = set; then
21169 withval="$with_krb5"
21175 krb5_with="$withval"
21181 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
21182 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
21184 if test -f $dir/bin/krb5-config; then
21185 K5CONFIG=$dir/bin/krb5-config
21186 elif test -f "/usr/kerberos/bin/krb5-config"; then
21187 K5CONFIG="/usr/kerberos/bin/krb5-config"
21188 elif test -f "/usr/lib/mit/bin/krb5-config"; then
21189 K5CONFIG="/usr/lib/mit/bin/krb5-config"
21191 if test "$K5CONFIG" != ""; then
21192 KRBCFLAGS=`$K5CONFIG --cflags`
21193 KRBLIBS=`$K5CONFIG --libs gssapi`
21194 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
21196 cat >>confdefs.h <<_ACEOF
21197 #define KRB5_VERSION $K5VERS
21200 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
21201 \( -f $dir/lib/libgssapi_krb5.a -o \
21202 -f $dir/lib/libgssapi_krb5.so \) ; then
21204 cat >>confdefs.h <<\_ACEOF
21205 #define HAVE_KRB5 1
21209 if test $K5VERS -le 131; then
21211 cat >>confdefs.h <<\_ACEOF
21212 #define USE_GSS_KRB5_CCACHE_NAME 1
21216 gssapi_lib=gssapi_krb5
21218 elif test \( -f $dir/include/heim_err.h -o\
21219 -f $dir/include/heimdal/heim_err.h \) -a \
21220 -f $dir/lib/libroken.a; then
21222 cat >>confdefs.h <<\_ACEOF
21223 #define HAVE_HEIMDAL 1
21232 if test "x$KRBDIR" = "x"; then
21233 if test "x$krb5_with" = "x"; then
21234 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
21235 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
21236 { (exit 1); exit 1; }; }
21238 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
21239 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
21240 { (exit 1); exit 1; }; }
21243 echo "$as_me:$LINENO: result: $KRBDIR" >&5
21244 echo "${ECHO_T}$KRBDIR" >&6
21246 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
21247 echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
21248 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6
21249 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21250 echo $ECHO_N "(cached) $ECHO_C" >&6
21252 ac_check_lib_save_LIBS=$LIBS
21253 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21254 cat >conftest.$ac_ext <<_ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h. */
21261 /* Override any gcc2 internal prototype to avoid an error. */
21265 /* We use char because int might match the return type of a gcc2
21266 builtin and then its argument prototype would still apply. */
21267 char gss_krb5_export_lucid_sec_context ();
21271 gss_krb5_export_lucid_sec_context ();
21276 rm -f conftest.$ac_objext conftest$ac_exeext
21277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21278 (eval $ac_link) 2>conftest.er1
21280 grep -v '^ *+' conftest.er1 >conftest.err
21282 cat conftest.err >&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } &&
21285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287 (eval $ac_try) 2>&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); }; } &&
21291 { ac_try='test -s conftest$ac_exeext'
21292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21293 (eval $ac_try) 2>&5
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); }; }; then
21297 eval "$as_ac_Lib=yes"
21299 echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21302 eval "$as_ac_Lib=no"
21304 rm -f conftest.err conftest.$ac_objext \
21305 conftest$ac_exeext conftest.$ac_ext
21306 LIBS=$ac_check_lib_save_LIBS
21308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21309 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21310 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21312 cat >>confdefs.h <<\_ACEOF
21313 #define HAVE_LUCID_CONTEXT_SUPPORT 1
21318 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
21319 echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
21320 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6
21321 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21322 echo $ECHO_N "(cached) $ECHO_C" >&6
21324 ac_check_lib_save_LIBS=$LIBS
21325 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21326 cat >conftest.$ac_ext <<_ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21333 /* Override any gcc2 internal prototype to avoid an error. */
21337 /* We use char because int might match the return type of a gcc2
21338 builtin and then its argument prototype would still apply. */
21339 char gss_krb5_set_allowable_enctypes ();
21343 gss_krb5_set_allowable_enctypes ();
21348 rm -f conftest.$ac_objext conftest$ac_exeext
21349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21350 (eval $ac_link) 2>conftest.er1
21352 grep -v '^ *+' conftest.er1 >conftest.err
21354 cat conftest.err >&5
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } &&
21357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21359 (eval $ac_try) 2>&5
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); }; } &&
21363 { ac_try='test -s conftest$ac_exeext'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
21369 eval "$as_ac_Lib=yes"
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21374 eval "$as_ac_Lib=no"
21376 rm -f conftest.err conftest.$ac_objext \
21377 conftest$ac_exeext conftest.$ac_ext
21378 LIBS=$ac_check_lib_save_LIBS
21380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21381 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21382 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21384 cat >>confdefs.h <<\_ACEOF
21385 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
21390 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
21391 echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
21392 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6
21393 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21394 echo $ECHO_N "(cached) $ECHO_C" >&6
21396 ac_check_lib_save_LIBS=$LIBS
21397 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21398 cat >conftest.$ac_ext <<_ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h. */
21405 /* Override any gcc2 internal prototype to avoid an error. */
21409 /* We use char because int might match the return type of a gcc2
21410 builtin and then its argument prototype would still apply. */
21411 char gss_krb5_ccache_name ();
21415 gss_krb5_ccache_name ();
21420 rm -f conftest.$ac_objext conftest$ac_exeext
21421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21422 (eval $ac_link) 2>conftest.er1
21424 grep -v '^ *+' conftest.er1 >conftest.err
21426 cat conftest.err >&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } &&
21429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; } &&
21435 { ac_try='test -s conftest$ac_exeext'
21436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; }; then
21441 eval "$as_ac_Lib=yes"
21443 echo "$as_me: failed program was:" >&5
21444 sed 's/^/| /' conftest.$ac_ext >&5
21446 eval "$as_ac_Lib=no"
21448 rm -f conftest.err conftest.$ac_objext \
21449 conftest$ac_exeext conftest.$ac_ext
21450 LIBS=$ac_check_lib_save_LIBS
21452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21453 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21454 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21456 cat >>confdefs.h <<\_ACEOF
21457 #define HAVE_GSS_KRB5_CCACHE_NAME 1
21463 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
21464 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
21465 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
21475 echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
21476 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6
21477 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
21478 echo $ECHO_N "(cached) $ECHO_C" >&6
21480 ac_check_lib_save_LIBS=$LIBS
21481 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
21482 cat >conftest.$ac_ext <<_ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h. */
21489 /* Override any gcc2 internal prototype to avoid an error. */
21493 /* We use char because int might match the return type of a gcc2
21494 builtin and then its argument prototype would still apply. */
21495 char authgss_create_default ();
21499 authgss_create_default ();
21504 rm -f conftest.$ac_objext conftest$ac_exeext
21505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21506 (eval $ac_link) 2>conftest.er1
21508 grep -v '^ *+' conftest.er1 >conftest.err
21510 cat conftest.err >&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); } &&
21513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
21519 { ac_try='test -s conftest$ac_exeext'
21520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521 (eval $ac_try) 2>&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; }; then
21525 ac_cv_lib_rpcsecgss_authgss_create_default=yes
21527 echo "$as_me: failed program was:" >&5
21528 sed 's/^/| /' conftest.$ac_ext >&5
21530 ac_cv_lib_rpcsecgss_authgss_create_default=no
21532 rm -f conftest.err conftest.$ac_objext \
21533 conftest$ac_exeext conftest.$ac_ext
21534 LIBS=$ac_check_lib_save_LIBS
21536 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
21537 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6
21538 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
21541 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
21542 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
21543 { (exit 1); exit 1; }; }
21546 echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
21547 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6
21548 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
21549 echo $ECHO_N "(cached) $ECHO_C" >&6
21551 ac_check_lib_save_LIBS=$LIBS
21552 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
21553 cat >conftest.$ac_ext <<_ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h. */
21560 /* Override any gcc2 internal prototype to avoid an error. */
21564 /* We use char because int might match the return type of a gcc2
21565 builtin and then its argument prototype would still apply. */
21566 char authgss_set_debug_level ();
21570 authgss_set_debug_level ();
21575 rm -f conftest.$ac_objext conftest$ac_exeext
21576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21577 (eval $ac_link) 2>conftest.er1
21579 grep -v '^ *+' conftest.er1 >conftest.err
21581 cat conftest.err >&5
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); } &&
21584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21586 (eval $ac_try) 2>&5
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); }; } &&
21590 { ac_try='test -s conftest$ac_exeext'
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; }; then
21596 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
21598 echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21601 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
21603 rm -f conftest.err conftest.$ac_objext \
21604 conftest$ac_exeext conftest.$ac_ext
21605 LIBS=$ac_check_lib_save_LIBS
21607 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
21608 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6
21609 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
21611 cat >>confdefs.h <<\_ACEOF
21612 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
21642 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
21643 malloc.h memory.h netdb.h netinet/in.h paths.h \
21644 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
21645 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
21646 syslog.h unistd.h com_err.h et/com_err.h
21648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21650 echo "$as_me:$LINENO: checking for $ac_header" >&5
21651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21653 echo $ECHO_N "(cached) $ECHO_C" >&6
21655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21658 # Is the header compilable?
21659 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21661 cat >conftest.$ac_ext <<_ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21667 $ac_includes_default
21668 #include <$ac_header>
21670 rm -f conftest.$ac_objext
21671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21672 (eval $ac_compile) 2>conftest.er1
21674 grep -v '^ *+' conftest.er1 >conftest.err
21676 cat conftest.err >&5
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); } &&
21679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681 (eval $ac_try) 2>&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; } &&
21685 { ac_try='test -s conftest.$ac_objext'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; }; then
21691 ac_header_compiler=yes
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21696 ac_header_compiler=no
21698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21700 echo "${ECHO_T}$ac_header_compiler" >&6
21702 # Is the header present?
21703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21705 cat >conftest.$ac_ext <<_ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h. */
21711 #include <$ac_header>
21713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21716 grep -v '^ *+' conftest.er1 >conftest.err
21718 cat conftest.err >&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } >/dev/null; then
21721 if test -s conftest.err; then
21722 ac_cpp_err=$ac_c_preproc_warn_flag
21723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21730 if test -z "$ac_cpp_err"; then
21731 ac_header_preproc=yes
21733 echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21736 ac_header_preproc=no
21738 rm -f conftest.err conftest.$ac_ext
21739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21740 echo "${ECHO_T}$ac_header_preproc" >&6
21742 # So? What about this header?
21743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21749 ac_header_preproc=yes
21752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21766 ## ------------------------------- ##
21767 ## Report this to nfs@lists.sf.net ##
21768 ## ------------------------------- ##
21771 sed "s/^/$as_me: WARNING: /" >&2
21774 echo "$as_me:$LINENO: checking for $ac_header" >&5
21775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21777 echo $ECHO_N "(cached) $ECHO_C" >&6
21779 eval "$as_ac_Header=\$ac_header_preproc"
21781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21786 cat >>confdefs.h <<_ACEOF
21787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21795 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21796 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21797 if test "${ac_cv_c_const+set}" = set; then
21798 echo $ECHO_N "(cached) $ECHO_C" >&6
21800 cat >conftest.$ac_ext <<_ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h. */
21810 /* FIXME: Include the comments suggested by Paul. */
21811 #ifndef __cplusplus
21812 /* Ultrix mips cc rejects this. */
21813 typedef int charset[2];
21815 /* SunOS 4.1.1 cc rejects this. */
21816 char const *const *ccp;
21818 /* NEC SVR4.0.2 mips cc rejects this. */
21819 struct point {int x, y;};
21820 static struct point const zero = {0,0};
21821 /* AIX XL C 1.02.0.0 rejects this.
21822 It does not let you subtract one const X* pointer from another in
21823 an arm of an if-expression whose if-part is not a constant
21825 const char *g = "string";
21826 ccp = &g + (g ? g-g : 0);
21827 /* HPUX 7.0 cc rejects these. */
21830 ccp = (char const *const *) p;
21831 { /* SCO 3.2v4 cc rejects this. */
21833 char const *s = 0 ? (char *) 0 : (char const *) 0;
21837 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21838 int x[] = {25, 17};
21839 const int *foo = &x[0];
21842 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21843 typedef const int *iptr;
21847 { /* AIX XL C 1.02.0.0 rejects this saying
21848 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21849 struct s { int j; const int *ap[3]; };
21850 struct s *b; b->j = 5;
21852 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21853 const int foo = 10;
21861 rm -f conftest.$ac_objext
21862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21863 (eval $ac_compile) 2>conftest.er1
21865 grep -v '^ *+' conftest.er1 >conftest.err
21867 cat conftest.err >&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); } &&
21870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21872 (eval $ac_try) 2>&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); }; } &&
21876 { ac_try='test -s conftest.$ac_objext'
21877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878 (eval $ac_try) 2>&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); }; }; then
21884 echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21891 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21892 echo "${ECHO_T}$ac_cv_c_const" >&6
21893 if test $ac_cv_c_const = no; then
21895 cat >>confdefs.h <<\_ACEOF
21901 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21902 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21903 if test "${ac_cv_type_uid_t+set}" = set; then
21904 echo $ECHO_N "(cached) $ECHO_C" >&6
21906 cat >conftest.$ac_ext <<_ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h. */
21912 #include <sys/types.h>
21915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21916 $EGREP "uid_t" >/dev/null 2>&1; then
21917 ac_cv_type_uid_t=yes
21919 ac_cv_type_uid_t=no
21924 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21925 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21926 if test $ac_cv_type_uid_t = no; then
21928 cat >>confdefs.h <<\_ACEOF
21933 cat >>confdefs.h <<\_ACEOF
21939 echo "$as_me:$LINENO: checking for inline" >&5
21940 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21941 if test "${ac_cv_c_inline+set}" = set; then
21942 echo $ECHO_N "(cached) $ECHO_C" >&6
21945 for ac_kw in inline __inline__ __inline; do
21946 cat >conftest.$ac_ext <<_ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h. */
21952 #ifndef __cplusplus
21954 static $ac_kw foo_t static_foo () {return 0; }
21955 $ac_kw foo_t foo () {return 0; }
21959 rm -f conftest.$ac_objext
21960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21961 (eval $ac_compile) 2>conftest.er1
21963 grep -v '^ *+' conftest.er1 >conftest.err
21965 cat conftest.err >&5
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } &&
21968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; } &&
21974 { ac_try='test -s conftest.$ac_objext'
21975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976 (eval $ac_try) 2>&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; }; then
21980 ac_cv_c_inline=$ac_kw; break
21982 echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21990 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21991 echo "${ECHO_T}$ac_cv_c_inline" >&6
21994 case $ac_cv_c_inline in
21997 case $ac_cv_c_inline in
21999 *) ac_val=$ac_cv_c_inline;;
22001 cat >>confdefs.h <<_ACEOF
22002 #ifndef __cplusplus
22003 #define inline $ac_val
22009 echo "$as_me:$LINENO: checking for off_t" >&5
22010 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22011 if test "${ac_cv_type_off_t+set}" = set; then
22012 echo $ECHO_N "(cached) $ECHO_C" >&6
22014 cat >conftest.$ac_ext <<_ACEOF
22017 cat confdefs.h >>conftest.$ac_ext
22018 cat >>conftest.$ac_ext <<_ACEOF
22019 /* end confdefs.h. */
22020 $ac_includes_default
22026 if (sizeof (off_t))
22032 rm -f conftest.$ac_objext
22033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22034 (eval $ac_compile) 2>conftest.er1
22036 grep -v '^ *+' conftest.er1 >conftest.err
22038 cat conftest.err >&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } &&
22041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043 (eval $ac_try) 2>&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); }; } &&
22047 { ac_try='test -s conftest.$ac_objext'
22048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22049 (eval $ac_try) 2>&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); }; }; then
22053 ac_cv_type_off_t=yes
22055 echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22058 ac_cv_type_off_t=no
22060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22062 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22063 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22064 if test $ac_cv_type_off_t = yes; then
22068 cat >>confdefs.h <<_ACEOF
22074 echo "$as_me:$LINENO: checking for pid_t" >&5
22075 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22076 if test "${ac_cv_type_pid_t+set}" = set; then
22077 echo $ECHO_N "(cached) $ECHO_C" >&6
22079 cat >conftest.$ac_ext <<_ACEOF
22082 cat confdefs.h >>conftest.$ac_ext
22083 cat >>conftest.$ac_ext <<_ACEOF
22084 /* end confdefs.h. */
22085 $ac_includes_default
22091 if (sizeof (pid_t))
22097 rm -f conftest.$ac_objext
22098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22099 (eval $ac_compile) 2>conftest.er1
22101 grep -v '^ *+' conftest.er1 >conftest.err
22103 cat conftest.err >&5
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } &&
22106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; } &&
22112 { ac_try='test -s conftest.$ac_objext'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; }; then
22118 ac_cv_type_pid_t=yes
22120 echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22123 ac_cv_type_pid_t=no
22125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22127 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22128 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22129 if test $ac_cv_type_pid_t = yes; then
22133 cat >>confdefs.h <<_ACEOF
22139 echo "$as_me:$LINENO: checking for size_t" >&5
22140 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22141 if test "${ac_cv_type_size_t+set}" = set; then
22142 echo $ECHO_N "(cached) $ECHO_C" >&6
22144 cat >conftest.$ac_ext <<_ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h. */
22150 $ac_includes_default
22156 if (sizeof (size_t))
22162 rm -f conftest.$ac_objext
22163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22164 (eval $ac_compile) 2>conftest.er1
22166 grep -v '^ *+' conftest.er1 >conftest.err
22168 cat conftest.err >&5
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } &&
22171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22173 (eval $ac_try) 2>&5
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); }; } &&
22177 { ac_try='test -s conftest.$ac_objext'
22178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22179 (eval $ac_try) 2>&5
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); }; }; then
22183 ac_cv_type_size_t=yes
22185 echo "$as_me: failed program was:" >&5
22186 sed 's/^/| /' conftest.$ac_ext >&5
22188 ac_cv_type_size_t=no
22190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22192 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22193 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22194 if test $ac_cv_type_size_t = yes; then
22198 cat >>confdefs.h <<_ACEOF
22199 #define size_t unsigned
22204 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22205 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22206 if test "${ac_cv_header_time+set}" = set; then
22207 echo $ECHO_N "(cached) $ECHO_C" >&6
22209 cat >conftest.$ac_ext <<_ACEOF
22212 cat confdefs.h >>conftest.$ac_ext
22213 cat >>conftest.$ac_ext <<_ACEOF
22214 /* end confdefs.h. */
22215 #include <sys/types.h>
22216 #include <sys/time.h>
22222 if ((struct tm *) 0)
22228 rm -f conftest.$ac_objext
22229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22230 (eval $ac_compile) 2>conftest.er1
22232 grep -v '^ *+' conftest.er1 >conftest.err
22234 cat conftest.err >&5
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); } &&
22237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239 (eval $ac_try) 2>&5
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); }; } &&
22243 { ac_try='test -s conftest.$ac_objext'
22244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245 (eval $ac_try) 2>&5
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); }; }; then
22249 ac_cv_header_time=yes
22251 echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22254 ac_cv_header_time=no
22256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22258 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22259 echo "${ECHO_T}$ac_cv_header_time" >&6
22260 if test $ac_cv_header_time = yes; then
22262 cat >>confdefs.h <<\_ACEOF
22263 #define TIME_WITH_SYS_TIME 1
22268 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22269 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22270 if test "${ac_cv_struct_tm+set}" = set; then
22271 echo $ECHO_N "(cached) $ECHO_C" >&6
22273 cat >conftest.$ac_ext <<_ACEOF
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h. */
22279 #include <sys/types.h>
22285 struct tm *tp; tp->tm_sec;
22290 rm -f conftest.$ac_objext
22291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22292 (eval $ac_compile) 2>conftest.er1
22294 grep -v '^ *+' conftest.er1 >conftest.err
22296 cat conftest.err >&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); } &&
22299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22301 (eval $ac_try) 2>&5
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); }; } &&
22305 { ac_try='test -s conftest.$ac_objext'
22306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22307 (eval $ac_try) 2>&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); }; }; then
22311 ac_cv_struct_tm=time.h
22313 echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22316 ac_cv_struct_tm=sys/time.h
22318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22320 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22321 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22322 if test $ac_cv_struct_tm = sys/time.h; then
22324 cat >>confdefs.h <<\_ACEOF
22325 #define TM_IN_SYS_TIME 1
22331 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22332 # for constant arguments. Useless!
22333 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22334 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22335 if test "${ac_cv_working_alloca_h+set}" = set; then
22336 echo $ECHO_N "(cached) $ECHO_C" >&6
22338 cat >conftest.$ac_ext <<_ACEOF
22341 cat confdefs.h >>conftest.$ac_ext
22342 cat >>conftest.$ac_ext <<_ACEOF
22343 /* end confdefs.h. */
22344 #include <alloca.h>
22348 char *p = (char *) alloca (2 * sizeof (int));
22353 rm -f conftest.$ac_objext conftest$ac_exeext
22354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22355 (eval $ac_link) 2>conftest.er1
22357 grep -v '^ *+' conftest.er1 >conftest.err
22359 cat conftest.err >&5
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); } &&
22362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22364 (eval $ac_try) 2>&5
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); }; } &&
22368 { ac_try='test -s conftest$ac_exeext'
22369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370 (eval $ac_try) 2>&5
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); }; }; then
22374 ac_cv_working_alloca_h=yes
22376 echo "$as_me: failed program was:" >&5
22377 sed 's/^/| /' conftest.$ac_ext >&5
22379 ac_cv_working_alloca_h=no
22381 rm -f conftest.err conftest.$ac_objext \
22382 conftest$ac_exeext conftest.$ac_ext
22384 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22385 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22386 if test $ac_cv_working_alloca_h = yes; then
22388 cat >>confdefs.h <<\_ACEOF
22389 #define HAVE_ALLOCA_H 1
22394 echo "$as_me:$LINENO: checking for alloca" >&5
22395 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22396 if test "${ac_cv_func_alloca_works+set}" = set; then
22397 echo $ECHO_N "(cached) $ECHO_C" >&6
22399 cat >conftest.$ac_ext <<_ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h. */
22406 # define alloca __builtin_alloca
22409 # include <malloc.h>
22410 # define alloca _alloca
22413 # include <alloca.h>
22418 # ifndef alloca /* predefined by HP cc +Olibcalls */
22429 char *p = (char *) alloca (1);
22434 rm -f conftest.$ac_objext conftest$ac_exeext
22435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22436 (eval $ac_link) 2>conftest.er1
22438 grep -v '^ *+' conftest.er1 >conftest.err
22440 cat conftest.err >&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } &&
22443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445 (eval $ac_try) 2>&5
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); }; } &&
22449 { ac_try='test -s conftest$ac_exeext'
22450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451 (eval $ac_try) 2>&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); }; }; then
22455 ac_cv_func_alloca_works=yes
22457 echo "$as_me: failed program was:" >&5
22458 sed 's/^/| /' conftest.$ac_ext >&5
22460 ac_cv_func_alloca_works=no
22462 rm -f conftest.err conftest.$ac_objext \
22463 conftest$ac_exeext conftest.$ac_ext
22465 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22466 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22468 if test $ac_cv_func_alloca_works = yes; then
22470 cat >>confdefs.h <<\_ACEOF
22471 #define HAVE_ALLOCA 1
22475 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22476 # that cause trouble. Some versions do not even contain alloca or
22477 # contain a buggy version. If you still want to use their alloca,
22478 # use ar to extract alloca.o from them instead of compiling alloca.c.
22480 ALLOCA=alloca.$ac_objext
22482 cat >>confdefs.h <<\_ACEOF
22487 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22488 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22489 if test "${ac_cv_os_cray+set}" = set; then
22490 echo $ECHO_N "(cached) $ECHO_C" >&6
22492 cat >conftest.$ac_ext <<_ACEOF
22495 cat confdefs.h >>conftest.$ac_ext
22496 cat >>conftest.$ac_ext <<_ACEOF
22497 /* end confdefs.h. */
22498 #if defined(CRAY) && ! defined(CRAY2)
22505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22506 $EGREP "webecray" >/dev/null 2>&1; then
22514 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22515 echo "${ECHO_T}$ac_cv_os_cray" >&6
22516 if test $ac_cv_os_cray = yes; then
22517 for ac_func in _getb67 GETB67 getb67; do
22518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22519 echo "$as_me:$LINENO: checking for $ac_func" >&5
22520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22521 if eval "test \"\${$as_ac_var+set}\" = set"; then
22522 echo $ECHO_N "(cached) $ECHO_C" >&6
22524 cat >conftest.$ac_ext <<_ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h. */
22530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22532 #define $ac_func innocuous_$ac_func
22534 /* System header to define __stub macros and hopefully few prototypes,
22535 which can conflict with char $ac_func (); below.
22536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22537 <limits.h> exists even on freestanding compilers. */
22540 # include <limits.h>
22542 # include <assert.h>
22547 /* Override any gcc2 internal prototype to avoid an error. */
22552 /* We use char because int might match the return type of a gcc2
22553 builtin and then its argument prototype would still apply. */
22555 /* The GNU C library defines this for functions which it implements
22556 to always fail with ENOSYS. Some functions are actually named
22557 something starting with __ and the normal name is an alias. */
22558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22561 char (*f) () = $ac_func;
22570 return f != $ac_func;
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 eval "$as_ac_var=yes"
22598 echo "$as_me: failed program was:" >&5
22599 sed 's/^/| /' conftest.$ac_ext >&5
22601 eval "$as_ac_var=no"
22603 rm -f conftest.err conftest.$ac_objext \
22604 conftest$ac_exeext conftest.$ac_ext
22606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22608 if test `eval echo '${'$as_ac_var'}'` = yes; then
22610 cat >>confdefs.h <<_ACEOF
22611 #define CRAY_STACKSEG_END $ac_func
22620 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22621 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22622 if test "${ac_cv_c_stack_direction+set}" = set; then
22623 echo $ECHO_N "(cached) $ECHO_C" >&6
22625 if test "$cross_compiling" = yes; then
22626 ac_cv_c_stack_direction=0
22628 cat >conftest.$ac_ext <<_ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h. */
22635 find_stack_direction ()
22637 static char *addr = 0;
22642 return find_stack_direction ();
22645 return (&dummy > addr) ? 1 : -1;
22651 exit (find_stack_direction () < 0);
22654 rm -f conftest$ac_exeext
22655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22656 (eval $ac_link) 2>&5
22658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22661 (eval $ac_try) 2>&5
22663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664 (exit $ac_status); }; }; then
22665 ac_cv_c_stack_direction=1
22667 echo "$as_me: program exited with status $ac_status" >&5
22668 echo "$as_me: failed program was:" >&5
22669 sed 's/^/| /' conftest.$ac_ext >&5
22671 ( exit $ac_status )
22672 ac_cv_c_stack_direction=-1
22674 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22677 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22678 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22680 cat >>confdefs.h <<_ACEOF
22681 #define STACK_DIRECTION $ac_cv_c_stack_direction
22692 ac_header_dirent=no
22693 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22694 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22695 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22696 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
22697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22698 echo $ECHO_N "(cached) $ECHO_C" >&6
22700 cat >conftest.$ac_ext <<_ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h. */
22706 #include <sys/types.h>
22718 rm -f conftest.$ac_objext
22719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22720 (eval $ac_compile) 2>conftest.er1
22722 grep -v '^ *+' conftest.er1 >conftest.err
22724 cat conftest.err >&5
22725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726 (exit $ac_status); } &&
22727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22729 (eval $ac_try) 2>&5
22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732 (exit $ac_status); }; } &&
22733 { ac_try='test -s conftest.$ac_objext'
22734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22735 (eval $ac_try) 2>&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); }; }; then
22739 eval "$as_ac_Header=yes"
22741 echo "$as_me: failed program was:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22744 eval "$as_ac_Header=no"
22746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22751 cat >>confdefs.h <<_ACEOF
22752 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22755 ac_header_dirent=$ac_hdr; break
22759 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22760 if test $ac_header_dirent = dirent.h; then
22761 echo "$as_me:$LINENO: checking for library containing opendir" >&5
22762 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
22763 if test "${ac_cv_search_opendir+set}" = set; then
22764 echo $ECHO_N "(cached) $ECHO_C" >&6
22766 ac_func_search_save_LIBS=$LIBS
22767 ac_cv_search_opendir=no
22768 cat >conftest.$ac_ext <<_ACEOF
22771 cat confdefs.h >>conftest.$ac_ext
22772 cat >>conftest.$ac_ext <<_ACEOF
22773 /* end confdefs.h. */
22775 /* Override any gcc2 internal prototype to avoid an error. */
22779 /* We use char because int might match the return type of a gcc2
22780 builtin and then its argument prototype would still apply. */
22790 rm -f conftest.$ac_objext conftest$ac_exeext
22791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22792 (eval $ac_link) 2>conftest.er1
22794 grep -v '^ *+' conftest.er1 >conftest.err
22796 cat conftest.err >&5
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); } &&
22799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22801 (eval $ac_try) 2>&5
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); }; } &&
22805 { ac_try='test -s conftest$ac_exeext'
22806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22807 (eval $ac_try) 2>&5
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); }; }; then
22811 ac_cv_search_opendir="none required"
22813 echo "$as_me: failed program was:" >&5
22814 sed 's/^/| /' conftest.$ac_ext >&5
22817 rm -f conftest.err conftest.$ac_objext \
22818 conftest$ac_exeext conftest.$ac_ext
22819 if test "$ac_cv_search_opendir" = no; then
22820 for ac_lib in dir; do
22821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22822 cat >conftest.$ac_ext <<_ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h. */
22829 /* Override any gcc2 internal prototype to avoid an error. */
22833 /* We use char because int might match the return type of a gcc2
22834 builtin and then its argument prototype would still apply. */
22844 rm -f conftest.$ac_objext conftest$ac_exeext
22845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22846 (eval $ac_link) 2>conftest.er1
22848 grep -v '^ *+' conftest.er1 >conftest.err
22850 cat conftest.err >&5
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); } &&
22853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22855 (eval $ac_try) 2>&5
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); }; } &&
22859 { ac_try='test -s conftest$ac_exeext'
22860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22861 (eval $ac_try) 2>&5
22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); }; }; then
22865 ac_cv_search_opendir="-l$ac_lib"
22868 echo "$as_me: failed program was:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22872 rm -f conftest.err conftest.$ac_objext \
22873 conftest$ac_exeext conftest.$ac_ext
22876 LIBS=$ac_func_search_save_LIBS
22878 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22879 echo "${ECHO_T}$ac_cv_search_opendir" >&6
22880 if test "$ac_cv_search_opendir" != no; then
22881 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
22886 echo "$as_me:$LINENO: checking for library containing opendir" >&5
22887 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
22888 if test "${ac_cv_search_opendir+set}" = set; then
22889 echo $ECHO_N "(cached) $ECHO_C" >&6
22891 ac_func_search_save_LIBS=$LIBS
22892 ac_cv_search_opendir=no
22893 cat >conftest.$ac_ext <<_ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22900 /* Override any gcc2 internal prototype to avoid an error. */
22904 /* We use char because int might match the return type of a gcc2
22905 builtin and then its argument prototype would still apply. */
22915 rm -f conftest.$ac_objext conftest$ac_exeext
22916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22917 (eval $ac_link) 2>conftest.er1
22919 grep -v '^ *+' conftest.er1 >conftest.err
22921 cat conftest.err >&5
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); } &&
22924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926 (eval $ac_try) 2>&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); }; } &&
22930 { ac_try='test -s conftest$ac_exeext'
22931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22932 (eval $ac_try) 2>&5
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); }; }; then
22936 ac_cv_search_opendir="none required"
22938 echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22942 rm -f conftest.err conftest.$ac_objext \
22943 conftest$ac_exeext conftest.$ac_ext
22944 if test "$ac_cv_search_opendir" = no; then
22945 for ac_lib in x; do
22946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22947 cat >conftest.$ac_ext <<_ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h. */
22954 /* Override any gcc2 internal prototype to avoid an error. */
22958 /* We use char because int might match the return type of a gcc2
22959 builtin and then its argument prototype would still apply. */
22969 rm -f conftest.$ac_objext conftest$ac_exeext
22970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22971 (eval $ac_link) 2>conftest.er1
22973 grep -v '^ *+' conftest.er1 >conftest.err
22975 cat conftest.err >&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } &&
22978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22980 (eval $ac_try) 2>&5
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); }; } &&
22984 { ac_try='test -s conftest$ac_exeext'
22985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22986 (eval $ac_try) 2>&5
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); }; }; then
22990 ac_cv_search_opendir="-l$ac_lib"
22993 echo "$as_me: failed program was:" >&5
22994 sed 's/^/| /' conftest.$ac_ext >&5
22997 rm -f conftest.err conftest.$ac_objext \
22998 conftest$ac_exeext conftest.$ac_ext
23001 LIBS=$ac_func_search_save_LIBS
23003 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23004 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23005 if test "$ac_cv_search_opendir" != no; then
23006 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23012 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
23013 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
23014 if test "${ac_cv_func_closedir_void+set}" = set; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23017 if test "$cross_compiling" = yes; then
23018 ac_cv_func_closedir_void=yes
23020 cat >conftest.$ac_ext <<_ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23026 $ac_includes_default
23027 #include <$ac_header_dirent>
23028 #ifndef __cplusplus
23035 exit (closedir (opendir (".")) != 0);
23040 rm -f conftest$ac_exeext
23041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23042 (eval $ac_link) 2>&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047 (eval $ac_try) 2>&5
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); }; }; then
23051 ac_cv_func_closedir_void=no
23053 echo "$as_me: program exited with status $ac_status" >&5
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23057 ( exit $ac_status )
23058 ac_cv_func_closedir_void=yes
23060 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23063 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
23064 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
23065 if test $ac_cv_func_closedir_void = yes; then
23067 cat >>confdefs.h <<\_ACEOF
23068 #define CLOSEDIR_VOID 1
23073 echo "$as_me:$LINENO: checking for error_at_line" >&5
23074 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
23075 if test "${ac_cv_lib_error_at_line+set}" = set; then
23076 echo $ECHO_N "(cached) $ECHO_C" >&6
23078 cat >conftest.$ac_ext <<_ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h. */
23084 $ac_includes_default
23088 error_at_line (0, 0, "", 0, "");
23093 rm -f conftest.$ac_objext conftest$ac_exeext
23094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23095 (eval $ac_link) 2>conftest.er1
23097 grep -v '^ *+' conftest.er1 >conftest.err
23099 cat conftest.err >&5
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); } &&
23102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104 (eval $ac_try) 2>&5
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); }; } &&
23108 { ac_try='test -s conftest$ac_exeext'
23109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23110 (eval $ac_try) 2>&5
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); }; }; then
23114 ac_cv_lib_error_at_line=yes
23116 echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23119 ac_cv_lib_error_at_line=no
23121 rm -f conftest.err conftest.$ac_objext \
23122 conftest$ac_exeext conftest.$ac_ext
23124 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
23125 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
23126 if test $ac_cv_lib_error_at_line = no; then
23128 "error.$ac_objext" | \
23129 *" error.$ac_objext" | \
23130 "error.$ac_objext "* | \
23131 *" error.$ac_objext "* ) ;;
23132 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
23139 for ac_header in unistd.h vfork.h
23141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23143 echo "$as_me:$LINENO: checking for $ac_header" >&5
23144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23146 echo $ECHO_N "(cached) $ECHO_C" >&6
23148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23151 # Is the header compilable?
23152 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23154 cat >conftest.$ac_ext <<_ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h. */
23160 $ac_includes_default
23161 #include <$ac_header>
23163 rm -f conftest.$ac_objext
23164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23165 (eval $ac_compile) 2>conftest.er1
23167 grep -v '^ *+' conftest.er1 >conftest.err
23169 cat conftest.err >&5
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); } &&
23172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174 (eval $ac_try) 2>&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); }; } &&
23178 { ac_try='test -s conftest.$ac_objext'
23179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180 (eval $ac_try) 2>&5
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); }; }; then
23184 ac_header_compiler=yes
23186 echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23189 ac_header_compiler=no
23191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23193 echo "${ECHO_T}$ac_header_compiler" >&6
23195 # Is the header present?
23196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23198 cat >conftest.$ac_ext <<_ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h. */
23204 #include <$ac_header>
23206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23209 grep -v '^ *+' conftest.er1 >conftest.err
23211 cat conftest.err >&5
23212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 (exit $ac_status); } >/dev/null; then
23214 if test -s conftest.err; then
23215 ac_cpp_err=$ac_c_preproc_warn_flag
23216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23223 if test -z "$ac_cpp_err"; then
23224 ac_header_preproc=yes
23226 echo "$as_me: failed program was:" >&5
23227 sed 's/^/| /' conftest.$ac_ext >&5
23229 ac_header_preproc=no
23231 rm -f conftest.err conftest.$ac_ext
23232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23233 echo "${ECHO_T}$ac_header_preproc" >&6
23235 # So? What about this header?
23236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23242 ac_header_preproc=yes
23245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23259 ## ------------------------------- ##
23260 ## Report this to nfs@lists.sf.net ##
23261 ## ------------------------------- ##
23264 sed "s/^/$as_me: WARNING: /" >&2
23267 echo "$as_me:$LINENO: checking for $ac_header" >&5
23268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23270 echo $ECHO_N "(cached) $ECHO_C" >&6
23272 eval "$as_ac_Header=\$ac_header_preproc"
23274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23279 cat >>confdefs.h <<_ACEOF
23280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23289 for ac_func in fork vfork
23291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23292 echo "$as_me:$LINENO: checking for $ac_func" >&5
23293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23294 if eval "test \"\${$as_ac_var+set}\" = set"; then
23295 echo $ECHO_N "(cached) $ECHO_C" >&6
23297 cat >conftest.$ac_ext <<_ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h. */
23303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23305 #define $ac_func innocuous_$ac_func
23307 /* System header to define __stub macros and hopefully few prototypes,
23308 which can conflict with char $ac_func (); below.
23309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23310 <limits.h> exists even on freestanding compilers. */
23313 # include <limits.h>
23315 # include <assert.h>
23320 /* Override any gcc2 internal prototype to avoid an error. */
23325 /* We use char because int might match the return type of a gcc2
23326 builtin and then its argument prototype would still apply. */
23328 /* The GNU C library defines this for functions which it implements
23329 to always fail with ENOSYS. Some functions are actually named
23330 something starting with __ and the normal name is an alias. */
23331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23334 char (*f) () = $ac_func;
23343 return f != $ac_func;
23348 rm -f conftest.$ac_objext conftest$ac_exeext
23349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23350 (eval $ac_link) 2>conftest.er1
23352 grep -v '^ *+' conftest.er1 >conftest.err
23354 cat conftest.err >&5
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); } &&
23357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359 (eval $ac_try) 2>&5
23361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); }; } &&
23363 { ac_try='test -s conftest$ac_exeext'
23364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365 (eval $ac_try) 2>&5
23367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 (exit $ac_status); }; }; then
23369 eval "$as_ac_var=yes"
23371 echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23374 eval "$as_ac_var=no"
23376 rm -f conftest.err conftest.$ac_objext \
23377 conftest$ac_exeext conftest.$ac_ext
23379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23381 if test `eval echo '${'$as_ac_var'}'` = yes; then
23382 cat >>confdefs.h <<_ACEOF
23383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23389 if test "x$ac_cv_func_fork" = xyes; then
23390 echo "$as_me:$LINENO: checking for working fork" >&5
23391 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23392 if test "${ac_cv_func_fork_works+set}" = set; then
23393 echo $ECHO_N "(cached) $ECHO_C" >&6
23395 if test "$cross_compiling" = yes; then
23396 ac_cv_func_fork_works=cross
23398 cat >conftest.$ac_ext <<_ACEOF
23401 cat confdefs.h >>conftest.$ac_ext
23402 cat >>conftest.$ac_ext <<_ACEOF
23403 /* end confdefs.h. */
23404 $ac_includes_default
23409 /* By Ruediger Kuhlmann. */
23418 rm -f conftest$ac_exeext
23419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23420 (eval $ac_link) 2>&5
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23425 (eval $ac_try) 2>&5
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); }; }; then
23429 ac_cv_func_fork_works=yes
23431 echo "$as_me: program exited with status $ac_status" >&5
23432 echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23435 ( exit $ac_status )
23436 ac_cv_func_fork_works=no
23438 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23441 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23442 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
23445 ac_cv_func_fork_works=$ac_cv_func_fork
23447 if test "x$ac_cv_func_fork_works" = xcross; then
23449 *-*-amigaos* | *-*-msdosdjgpp*)
23450 # Override, as these systems have only a dummy fork() stub
23451 ac_cv_func_fork_works=no
23454 ac_cv_func_fork_works=yes
23457 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23458 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23460 ac_cv_func_vfork_works=$ac_cv_func_vfork
23461 if test "x$ac_cv_func_vfork" = xyes; then
23462 echo "$as_me:$LINENO: checking for working vfork" >&5
23463 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
23464 if test "${ac_cv_func_vfork_works+set}" = set; then
23465 echo $ECHO_N "(cached) $ECHO_C" >&6
23467 if test "$cross_compiling" = yes; then
23468 ac_cv_func_vfork_works=cross
23470 cat >conftest.$ac_ext <<_ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h. */
23476 /* Thanks to Paul Eggert for this test. */
23478 #include <stdlib.h>
23479 #include <sys/types.h>
23480 #include <sys/stat.h>
23481 #include <sys/wait.h>
23483 # include <unistd.h>
23486 # include <vfork.h>
23488 /* On some sparc systems, changes by the child to local and incoming
23489 argument registers are propagated back to the parent. The compiler
23490 is told about this with #include <vfork.h>, but some compilers
23491 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23492 static variable whose address is put into a register that is
23493 clobbered by the vfork. */
23496 sparc_address_test (int arg)
23498 sparc_address_test (arg) int arg;
23501 static pid_t child;
23519 pid_t parent = getpid ();
23522 sparc_address_test (0);
23527 /* Here is another test for sparc vfork register problems. This
23528 test uses lots of local variables, at least as many local
23529 variables as main has allocated so far including compiler
23530 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23531 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23532 reuse the register of parent for one of the local variables,
23533 since it will think that parent can't possibly be used any more
23534 in this routine. Assigning to the local variable will thus
23535 munge parent in the parent process. */
23537 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23538 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23539 /* Convince the compiler that p..p7 are live; otherwise, it might
23540 use the same hardware register for all 8 local variables. */
23541 if (p != p1 || p != p2 || p != p3 || p != p4
23542 || p != p5 || p != p6 || p != p7)
23545 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23546 from child file descriptors. If the child closes a descriptor
23547 before it execs or exits, this munges the parent's descriptor
23548 as well. Test for this by closing stdout in the child. */
23549 _exit(close(fileno(stdout)) != 0);
23554 while (wait(&status) != child)
23557 /* Was there some problem with vforking? */
23560 /* Did the child fail? (This shouldn't happen.) */
23563 /* Did the vfork/compiler bug occur? */
23564 || parent != getpid()
23566 /* Did the file descriptor bug occur? */
23567 || fstat(fileno(stdout), &st) != 0
23572 rm -f conftest$ac_exeext
23573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23574 (eval $ac_link) 2>&5
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23579 (eval $ac_try) 2>&5
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); }; }; then
23583 ac_cv_func_vfork_works=yes
23585 echo "$as_me: program exited with status $ac_status" >&5
23586 echo "$as_me: failed program was:" >&5
23587 sed 's/^/| /' conftest.$ac_ext >&5
23589 ( exit $ac_status )
23590 ac_cv_func_vfork_works=no
23592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23595 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23596 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23599 if test "x$ac_cv_func_fork_works" = xcross; then
23600 ac_cv_func_vfork_works=$ac_cv_func_vfork
23601 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23602 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23605 if test "x$ac_cv_func_vfork_works" = xyes; then
23607 cat >>confdefs.h <<\_ACEOF
23608 #define HAVE_WORKING_VFORK 1
23613 cat >>confdefs.h <<\_ACEOF
23618 if test "x$ac_cv_func_fork_works" = xyes; then
23620 cat >>confdefs.h <<\_ACEOF
23621 #define HAVE_WORKING_FORK 1
23626 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
23627 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
23628 if test "${ac_cv_type_getgroups+set}" = set; then
23629 echo $ECHO_N "(cached) $ECHO_C" >&6
23631 if test "$cross_compiling" = yes; then
23632 ac_cv_type_getgroups=cross
23634 cat >conftest.$ac_ext <<_ACEOF
23637 cat confdefs.h >>conftest.$ac_ext
23638 cat >>conftest.$ac_ext <<_ACEOF
23639 /* end confdefs.h. */
23640 /* Thanks to Mike Rendell for this test. */
23641 #include <sys/types.h>
23644 #define MAX(x, y) ((x) > (y) ? (x) : (y))
23649 gid_t gidset[NGID];
23651 union { gid_t gval; long lval; } val;
23654 for (i = 0; i < NGID; i++)
23655 gidset[i] = val.gval;
23656 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
23658 /* Exit non-zero if getgroups seems to require an array of ints. This
23659 happens when gid_t is short but getgroups modifies an array of ints. */
23660 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
23663 rm -f conftest$ac_exeext
23664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23665 (eval $ac_link) 2>&5
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23670 (eval $ac_try) 2>&5
23672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673 (exit $ac_status); }; }; then
23674 ac_cv_type_getgroups=gid_t
23676 echo "$as_me: program exited with status $ac_status" >&5
23677 echo "$as_me: failed program was:" >&5
23678 sed 's/^/| /' conftest.$ac_ext >&5
23680 ( exit $ac_status )
23681 ac_cv_type_getgroups=int
23683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23685 if test $ac_cv_type_getgroups = cross; then
23686 cat >conftest.$ac_ext <<_ACEOF
23689 cat confdefs.h >>conftest.$ac_ext
23690 cat >>conftest.$ac_ext <<_ACEOF
23691 /* end confdefs.h. */
23692 #include <unistd.h>
23695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23696 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
23697 ac_cv_type_getgroups=gid_t
23699 ac_cv_type_getgroups=int
23705 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
23706 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
23708 cat >>confdefs.h <<_ACEOF
23709 #define GETGROUPS_T $ac_cv_type_getgroups
23713 echo "$as_me:$LINENO: checking for getgroups" >&5
23714 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
23715 if test "${ac_cv_func_getgroups+set}" = set; then
23716 echo $ECHO_N "(cached) $ECHO_C" >&6
23718 cat >conftest.$ac_ext <<_ACEOF
23721 cat confdefs.h >>conftest.$ac_ext
23722 cat >>conftest.$ac_ext <<_ACEOF
23723 /* end confdefs.h. */
23724 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
23725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23726 #define getgroups innocuous_getgroups
23728 /* System header to define __stub macros and hopefully few prototypes,
23729 which can conflict with char getgroups (); below.
23730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23731 <limits.h> exists even on freestanding compilers. */
23734 # include <limits.h>
23736 # include <assert.h>
23741 /* Override any gcc2 internal prototype to avoid an error. */
23746 /* We use char because int might match the return type of a gcc2
23747 builtin and then its argument prototype would still apply. */
23749 /* The GNU C library defines this for functions which it implements
23750 to always fail with ENOSYS. Some functions are actually named
23751 something starting with __ and the normal name is an alias. */
23752 #if defined (__stub_getgroups) || defined (__stub___getgroups)
23755 char (*f) () = getgroups;
23764 return f != getgroups;
23769 rm -f conftest.$ac_objext conftest$ac_exeext
23770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23771 (eval $ac_link) 2>conftest.er1
23773 grep -v '^ *+' conftest.er1 >conftest.err
23775 cat conftest.err >&5
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); } &&
23778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780 (eval $ac_try) 2>&5
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); }; } &&
23784 { ac_try='test -s conftest$ac_exeext'
23785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23786 (eval $ac_try) 2>&5
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); }; }; then
23790 ac_cv_func_getgroups=yes
23792 echo "$as_me: failed program was:" >&5
23793 sed 's/^/| /' conftest.$ac_ext >&5
23795 ac_cv_func_getgroups=no
23797 rm -f conftest.err conftest.$ac_objext \
23798 conftest$ac_exeext conftest.$ac_ext
23800 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
23801 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
23804 # If we don't yet have getgroups, see if it's in -lbsd.
23805 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
23807 if test $ac_cv_func_getgroups = no; then
23808 echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
23809 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
23810 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
23811 echo $ECHO_N "(cached) $ECHO_C" >&6
23813 ac_check_lib_save_LIBS=$LIBS
23815 cat >conftest.$ac_ext <<_ACEOF
23818 cat confdefs.h >>conftest.$ac_ext
23819 cat >>conftest.$ac_ext <<_ACEOF
23820 /* end confdefs.h. */
23822 /* Override any gcc2 internal prototype to avoid an error. */
23826 /* We use char because int might match the return type of a gcc2
23827 builtin and then its argument prototype would still apply. */
23837 rm -f conftest.$ac_objext conftest$ac_exeext
23838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23839 (eval $ac_link) 2>conftest.er1
23841 grep -v '^ *+' conftest.er1 >conftest.err
23843 cat conftest.err >&5
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); } &&
23846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23848 (eval $ac_try) 2>&5
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); }; } &&
23852 { ac_try='test -s conftest$ac_exeext'
23853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23854 (eval $ac_try) 2>&5
23856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); }; }; then
23858 ac_cv_lib_bsd_getgroups=yes
23860 echo "$as_me: failed program was:" >&5
23861 sed 's/^/| /' conftest.$ac_ext >&5
23863 ac_cv_lib_bsd_getgroups=no
23865 rm -f conftest.err conftest.$ac_objext \
23866 conftest$ac_exeext conftest.$ac_ext
23867 LIBS=$ac_check_lib_save_LIBS
23869 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
23870 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
23871 if test $ac_cv_lib_bsd_getgroups = yes; then
23872 GETGROUPS_LIB=-lbsd
23877 # Run the program to test the functionality of the system-supplied
23878 # getgroups function only if there is such a function.
23879 if test $ac_cv_func_getgroups = yes; then
23880 echo "$as_me:$LINENO: checking for working getgroups" >&5
23881 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
23882 if test "${ac_cv_func_getgroups_works+set}" = set; then
23883 echo $ECHO_N "(cached) $ECHO_C" >&6
23885 if test "$cross_compiling" = yes; then
23886 ac_cv_func_getgroups_works=no
23888 cat >conftest.$ac_ext <<_ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h. */
23894 $ac_includes_default
23898 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
23899 exit (getgroups (0, 0) == -1 ? 1 : 0);
23904 rm -f conftest$ac_exeext
23905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23906 (eval $ac_link) 2>&5
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23911 (eval $ac_try) 2>&5
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); }; }; then
23915 ac_cv_func_getgroups_works=yes
23917 echo "$as_me: program exited with status $ac_status" >&5
23918 echo "$as_me: failed program was:" >&5
23919 sed 's/^/| /' conftest.$ac_ext >&5
23921 ( exit $ac_status )
23922 ac_cv_func_getgroups_works=no
23924 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23928 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
23929 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
23930 if test $ac_cv_func_getgroups_works = yes; then
23932 cat >>confdefs.h <<\_ACEOF
23933 #define HAVE_GETGROUPS 1
23940 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
23941 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
23942 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
23943 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
23944 echo $ECHO_N "(cached) $ECHO_C" >&6
23946 ac_check_lib_save_LIBS=$LIBS
23948 cat >conftest.$ac_ext <<_ACEOF
23951 cat confdefs.h >>conftest.$ac_ext
23952 cat >>conftest.$ac_ext <<_ACEOF
23953 /* end confdefs.h. */
23955 /* Override any gcc2 internal prototype to avoid an error. */
23959 /* We use char because int might match the return type of a gcc2
23960 builtin and then its argument prototype would still apply. */
23970 rm -f conftest.$ac_objext conftest$ac_exeext
23971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23972 (eval $ac_link) 2>conftest.er1
23974 grep -v '^ *+' conftest.er1 >conftest.err
23976 cat conftest.err >&5
23977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978 (exit $ac_status); } &&
23979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23981 (eval $ac_try) 2>&5
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); }; } &&
23985 { ac_try='test -s conftest$ac_exeext'
23986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23987 (eval $ac_try) 2>&5
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); }; }; then
23991 ac_cv_lib_sun_getmntent=yes
23993 echo "$as_me: failed program was:" >&5
23994 sed 's/^/| /' conftest.$ac_ext >&5
23996 ac_cv_lib_sun_getmntent=no
23998 rm -f conftest.err conftest.$ac_objext \
23999 conftest$ac_exeext conftest.$ac_ext
24000 LIBS=$ac_check_lib_save_LIBS
24002 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
24003 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
24004 if test $ac_cv_lib_sun_getmntent = yes; then
24007 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
24008 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
24009 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
24010 echo $ECHO_N "(cached) $ECHO_C" >&6
24012 ac_check_lib_save_LIBS=$LIBS
24014 cat >conftest.$ac_ext <<_ACEOF
24017 cat confdefs.h >>conftest.$ac_ext
24018 cat >>conftest.$ac_ext <<_ACEOF
24019 /* end confdefs.h. */
24021 /* Override any gcc2 internal prototype to avoid an error. */
24025 /* We use char because int might match the return type of a gcc2
24026 builtin and then its argument prototype would still apply. */
24036 rm -f conftest.$ac_objext conftest$ac_exeext
24037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24038 (eval $ac_link) 2>conftest.er1
24040 grep -v '^ *+' conftest.er1 >conftest.err
24042 cat conftest.err >&5
24043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); } &&
24045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24047 (eval $ac_try) 2>&5
24049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); }; } &&
24051 { ac_try='test -s conftest$ac_exeext'
24052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24053 (eval $ac_try) 2>&5
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); }; }; then
24057 ac_cv_lib_seq_getmntent=yes
24059 echo "$as_me: failed program was:" >&5
24060 sed 's/^/| /' conftest.$ac_ext >&5
24062 ac_cv_lib_seq_getmntent=no
24064 rm -f conftest.err conftest.$ac_objext \
24065 conftest$ac_exeext conftest.$ac_ext
24066 LIBS=$ac_check_lib_save_LIBS
24068 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
24069 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
24070 if test $ac_cv_lib_seq_getmntent = yes; then
24073 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
24074 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
24075 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
24076 echo $ECHO_N "(cached) $ECHO_C" >&6
24078 ac_check_lib_save_LIBS=$LIBS
24080 cat >conftest.$ac_ext <<_ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h. */
24087 /* Override any gcc2 internal prototype to avoid an error. */
24091 /* We use char because int might match the return type of a gcc2
24092 builtin and then its argument prototype would still apply. */
24102 rm -f conftest.$ac_objext conftest$ac_exeext
24103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24104 (eval $ac_link) 2>conftest.er1
24106 grep -v '^ *+' conftest.er1 >conftest.err
24108 cat conftest.err >&5
24109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110 (exit $ac_status); } &&
24111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24113 (eval $ac_try) 2>&5
24115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116 (exit $ac_status); }; } &&
24117 { ac_try='test -s conftest$ac_exeext'
24118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24119 (eval $ac_try) 2>&5
24121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122 (exit $ac_status); }; }; then
24123 ac_cv_lib_gen_getmntent=yes
24125 echo "$as_me: failed program was:" >&5
24126 sed 's/^/| /' conftest.$ac_ext >&5
24128 ac_cv_lib_gen_getmntent=no
24130 rm -f conftest.err conftest.$ac_objext \
24131 conftest$ac_exeext conftest.$ac_ext
24132 LIBS=$ac_check_lib_save_LIBS
24134 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
24135 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
24136 if test $ac_cv_lib_gen_getmntent = yes; then
24145 for ac_func in getmntent
24147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24148 echo "$as_me:$LINENO: checking for $ac_func" >&5
24149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24150 if eval "test \"\${$as_ac_var+set}\" = set"; then
24151 echo $ECHO_N "(cached) $ECHO_C" >&6
24153 cat >conftest.$ac_ext <<_ACEOF
24156 cat confdefs.h >>conftest.$ac_ext
24157 cat >>conftest.$ac_ext <<_ACEOF
24158 /* end confdefs.h. */
24159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24161 #define $ac_func innocuous_$ac_func
24163 /* System header to define __stub macros and hopefully few prototypes,
24164 which can conflict with char $ac_func (); below.
24165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24166 <limits.h> exists even on freestanding compilers. */
24169 # include <limits.h>
24171 # include <assert.h>
24176 /* 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. */
24184 /* The GNU C library defines this for functions which it implements
24185 to always fail with ENOSYS. Some functions are actually named
24186 something starting with __ and the normal name is an alias. */
24187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24190 char (*f) () = $ac_func;
24199 return f != $ac_func;
24204 rm -f conftest.$ac_objext conftest$ac_exeext
24205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24206 (eval $ac_link) 2>conftest.er1
24208 grep -v '^ *+' conftest.er1 >conftest.err
24210 cat conftest.err >&5
24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); } &&
24213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24215 (eval $ac_try) 2>&5
24217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218 (exit $ac_status); }; } &&
24219 { ac_try='test -s conftest$ac_exeext'
24220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24221 (eval $ac_try) 2>&5
24223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224 (exit $ac_status); }; }; then
24225 eval "$as_ac_var=yes"
24227 echo "$as_me: failed program was:" >&5
24228 sed 's/^/| /' conftest.$ac_ext >&5
24230 eval "$as_ac_var=no"
24232 rm -f conftest.err conftest.$ac_objext \
24233 conftest$ac_exeext conftest.$ac_ext
24235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24237 if test `eval echo '${'$as_ac_var'}'` = yes; then
24238 cat >>confdefs.h <<_ACEOF
24239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24246 if test $ac_cv_c_compiler_gnu = yes; then
24247 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
24248 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
24249 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
24250 echo $ECHO_N "(cached) $ECHO_C" >&6
24252 ac_pattern="Autoconf.*'x'"
24253 cat >conftest.$ac_ext <<_ACEOF
24256 cat confdefs.h >>conftest.$ac_ext
24257 cat >>conftest.$ac_ext <<_ACEOF
24258 /* end confdefs.h. */
24262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24263 $EGREP "$ac_pattern" >/dev/null 2>&1; then
24264 ac_cv_prog_gcc_traditional=yes
24266 ac_cv_prog_gcc_traditional=no
24271 if test $ac_cv_prog_gcc_traditional = no; then
24272 cat >conftest.$ac_ext <<_ACEOF
24275 cat confdefs.h >>conftest.$ac_ext
24276 cat >>conftest.$ac_ext <<_ACEOF
24277 /* end confdefs.h. */
24278 #include <termio.h>
24281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24282 $EGREP "$ac_pattern" >/dev/null 2>&1; then
24283 ac_cv_prog_gcc_traditional=yes
24289 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
24290 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
24291 if test $ac_cv_prog_gcc_traditional = yes; then
24292 CC="$CC -traditional"
24296 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24297 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24298 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24299 echo $ECHO_N "(cached) $ECHO_C" >&6
24301 rm -f conftest.sym conftest.file
24302 echo >conftest.file
24303 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24304 if test "$cross_compiling" = yes; then
24305 ac_cv_func_lstat_dereferences_slashed_symlink=no
24307 cat >conftest.$ac_ext <<_ACEOF
24310 cat confdefs.h >>conftest.$ac_ext
24311 cat >>conftest.$ac_ext <<_ACEOF
24312 /* end confdefs.h. */
24313 $ac_includes_default
24318 /* Linux will dereference the symlink and fail.
24319 That is better in the sense that it means we will not
24320 have to compile and use the lstat wrapper. */
24321 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24326 rm -f conftest$ac_exeext
24327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24328 (eval $ac_link) 2>&5
24330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24333 (eval $ac_try) 2>&5
24335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336 (exit $ac_status); }; }; then
24337 ac_cv_func_lstat_dereferences_slashed_symlink=yes
24339 echo "$as_me: program exited with status $ac_status" >&5
24340 echo "$as_me: failed program was:" >&5
24341 sed 's/^/| /' conftest.$ac_ext >&5
24343 ( exit $ac_status )
24344 ac_cv_func_lstat_dereferences_slashed_symlink=no
24346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24349 # If the `ln -s' command failed, then we probably don't even
24350 # have an lstat function.
24351 ac_cv_func_lstat_dereferences_slashed_symlink=no
24353 rm -f conftest.sym conftest.file
24356 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24357 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24359 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24361 cat >>confdefs.h <<_ACEOF
24362 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24366 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24368 "lstat.$ac_objext" | \
24369 *" lstat.$ac_objext" | \
24370 "lstat.$ac_objext "* | \
24371 *" lstat.$ac_objext "* ) ;;
24372 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24377 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
24378 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
24379 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
24380 echo $ECHO_N "(cached) $ECHO_C" >&6
24382 if test "$cross_compiling" = yes; then
24383 ac_cv_func_lstat_empty_string_bug=yes
24385 cat >conftest.$ac_ext <<_ACEOF
24388 cat confdefs.h >>conftest.$ac_ext
24389 cat >>conftest.$ac_ext <<_ACEOF
24390 /* end confdefs.h. */
24391 $ac_includes_default
24396 exit (lstat ("", &sbuf) ? 1 : 0);
24401 rm -f conftest$ac_exeext
24402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24403 (eval $ac_link) 2>&5
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24408 (eval $ac_try) 2>&5
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); }; }; then
24412 ac_cv_func_lstat_empty_string_bug=yes
24414 echo "$as_me: program exited with status $ac_status" >&5
24415 echo "$as_me: failed program was:" >&5
24416 sed 's/^/| /' conftest.$ac_ext >&5
24418 ( exit $ac_status )
24419 ac_cv_func_lstat_empty_string_bug=no
24421 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24424 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
24425 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
24426 if test $ac_cv_func_lstat_empty_string_bug = yes; then
24428 "lstat.$ac_objext" | \
24429 *" lstat.$ac_objext" | \
24430 "lstat.$ac_objext "* | \
24431 *" lstat.$ac_objext "* ) ;;
24432 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24436 cat >>confdefs.h <<_ACEOF
24437 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
24442 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24443 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24444 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24445 echo $ECHO_N "(cached) $ECHO_C" >&6
24447 rm -f conftest.sym conftest.file
24448 echo >conftest.file
24449 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24450 if test "$cross_compiling" = yes; then
24451 ac_cv_func_lstat_dereferences_slashed_symlink=no
24453 cat >conftest.$ac_ext <<_ACEOF
24456 cat confdefs.h >>conftest.$ac_ext
24457 cat >>conftest.$ac_ext <<_ACEOF
24458 /* end confdefs.h. */
24459 $ac_includes_default
24464 /* Linux will dereference the symlink and fail.
24465 That is better in the sense that it means we will not
24466 have to compile and use the lstat wrapper. */
24467 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24472 rm -f conftest$ac_exeext
24473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24474 (eval $ac_link) 2>&5
24476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 (eval $ac_try) 2>&5
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; }; then
24483 ac_cv_func_lstat_dereferences_slashed_symlink=yes
24485 echo "$as_me: program exited with status $ac_status" >&5
24486 echo "$as_me: failed program was:" >&5
24487 sed 's/^/| /' conftest.$ac_ext >&5
24489 ( exit $ac_status )
24490 ac_cv_func_lstat_dereferences_slashed_symlink=no
24492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24495 # If the `ln -s' command failed, then we probably don't even
24496 # have an lstat function.
24497 ac_cv_func_lstat_dereferences_slashed_symlink=no
24499 rm -f conftest.sym conftest.file
24502 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24503 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24505 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24507 cat >>confdefs.h <<_ACEOF
24508 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24512 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24514 "lstat.$ac_objext" | \
24515 *" lstat.$ac_objext" | \
24516 "lstat.$ac_objext "* | \
24517 *" lstat.$ac_objext "* ) ;;
24518 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24523 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24524 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
24525 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24526 echo $ECHO_N "(cached) $ECHO_C" >&6
24528 cat >conftest.$ac_ext <<_ACEOF
24531 cat confdefs.h >>conftest.$ac_ext
24532 cat >>conftest.$ac_ext <<_ACEOF
24533 /* end confdefs.h. */
24534 #include <sys/types.h>
24538 return makedev(0, 0);
24543 rm -f conftest.$ac_objext conftest$ac_exeext
24544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24545 (eval $ac_link) 2>conftest.er1
24547 grep -v '^ *+' conftest.er1 >conftest.err
24549 cat conftest.err >&5
24550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551 (exit $ac_status); } &&
24552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24554 (eval $ac_try) 2>&5
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); }; } &&
24558 { ac_try='test -s conftest$ac_exeext'
24559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24560 (eval $ac_try) 2>&5
24562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563 (exit $ac_status); }; }; then
24564 ac_cv_header_sys_types_h_makedev=yes
24566 echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.$ac_ext >&5
24569 ac_cv_header_sys_types_h_makedev=no
24571 rm -f conftest.err conftest.$ac_objext \
24572 conftest$ac_exeext conftest.$ac_ext
24575 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24576 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
24578 if test $ac_cv_header_sys_types_h_makedev = no; then
24579 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24580 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24581 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
24582 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24583 echo $ECHO_N "(cached) $ECHO_C" >&6
24585 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24586 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
24588 # Is the header compilable?
24589 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24590 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
24591 cat >conftest.$ac_ext <<_ACEOF
24594 cat confdefs.h >>conftest.$ac_ext
24595 cat >>conftest.$ac_ext <<_ACEOF
24596 /* end confdefs.h. */
24597 $ac_includes_default
24598 #include <sys/mkdev.h>
24600 rm -f conftest.$ac_objext
24601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24602 (eval $ac_compile) 2>conftest.er1
24604 grep -v '^ *+' conftest.er1 >conftest.err
24606 cat conftest.err >&5
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); } &&
24609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24611 (eval $ac_try) 2>&5
24613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614 (exit $ac_status); }; } &&
24615 { ac_try='test -s conftest.$ac_objext'
24616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24617 (eval $ac_try) 2>&5
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); }; }; then
24621 ac_header_compiler=yes
24623 echo "$as_me: failed program was:" >&5
24624 sed 's/^/| /' conftest.$ac_ext >&5
24626 ac_header_compiler=no
24628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24630 echo "${ECHO_T}$ac_header_compiler" >&6
24632 # Is the header present?
24633 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24634 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
24635 cat >conftest.$ac_ext <<_ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h. */
24641 #include <sys/mkdev.h>
24643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24646 grep -v '^ *+' conftest.er1 >conftest.err
24648 cat conftest.err >&5
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); } >/dev/null; then
24651 if test -s conftest.err; then
24652 ac_cpp_err=$ac_c_preproc_warn_flag
24653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24660 if test -z "$ac_cpp_err"; then
24661 ac_header_preproc=yes
24663 echo "$as_me: failed program was:" >&5
24664 sed 's/^/| /' conftest.$ac_ext >&5
24666 ac_header_preproc=no
24668 rm -f conftest.err conftest.$ac_ext
24669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24670 echo "${ECHO_T}$ac_header_preproc" >&6
24672 # So? What about this header?
24673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24675 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
24676 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24677 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
24678 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
24679 ac_header_preproc=yes
24682 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
24683 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
24684 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
24685 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
24686 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
24687 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
24688 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
24689 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
24690 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
24691 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
24692 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
24693 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
24696 ## ------------------------------- ##
24697 ## Report this to nfs@lists.sf.net ##
24698 ## ------------------------------- ##
24701 sed "s/^/$as_me: WARNING: /" >&2
24704 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24705 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
24706 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24707 echo $ECHO_N "(cached) $ECHO_C" >&6
24709 ac_cv_header_sys_mkdev_h=$ac_header_preproc
24711 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24712 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
24715 if test $ac_cv_header_sys_mkdev_h = yes; then
24717 cat >>confdefs.h <<\_ACEOF
24718 #define MAJOR_IN_MKDEV 1
24725 if test $ac_cv_header_sys_mkdev_h = no; then
24726 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24727 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24728 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
24729 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24730 echo $ECHO_N "(cached) $ECHO_C" >&6
24732 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24733 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
24735 # Is the header compilable?
24736 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
24737 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
24738 cat >conftest.$ac_ext <<_ACEOF
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h. */
24744 $ac_includes_default
24745 #include <sys/sysmacros.h>
24747 rm -f conftest.$ac_objext
24748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24749 (eval $ac_compile) 2>conftest.er1
24751 grep -v '^ *+' conftest.er1 >conftest.err
24753 cat conftest.err >&5
24754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); } &&
24756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24758 (eval $ac_try) 2>&5
24760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); }; } &&
24762 { ac_try='test -s conftest.$ac_objext'
24763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24764 (eval $ac_try) 2>&5
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); }; }; then
24768 ac_header_compiler=yes
24770 echo "$as_me: failed program was:" >&5
24771 sed 's/^/| /' conftest.$ac_ext >&5
24773 ac_header_compiler=no
24775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24777 echo "${ECHO_T}$ac_header_compiler" >&6
24779 # Is the header present?
24780 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
24781 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
24782 cat >conftest.$ac_ext <<_ACEOF
24785 cat confdefs.h >>conftest.$ac_ext
24786 cat >>conftest.$ac_ext <<_ACEOF
24787 /* end confdefs.h. */
24788 #include <sys/sysmacros.h>
24790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24793 grep -v '^ *+' conftest.er1 >conftest.err
24795 cat conftest.err >&5
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); } >/dev/null; then
24798 if test -s conftest.err; then
24799 ac_cpp_err=$ac_c_preproc_warn_flag
24800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24807 if test -z "$ac_cpp_err"; then
24808 ac_header_preproc=yes
24810 echo "$as_me: failed program was:" >&5
24811 sed 's/^/| /' conftest.$ac_ext >&5
24813 ac_header_preproc=no
24815 rm -f conftest.err conftest.$ac_ext
24816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24817 echo "${ECHO_T}$ac_header_preproc" >&6
24819 # So? What about this header?
24820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24822 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
24823 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24824 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
24825 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
24826 ac_header_preproc=yes
24829 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
24830 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
24831 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
24832 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
24833 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
24834 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
24835 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
24836 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
24837 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
24838 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
24839 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
24840 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
24843 ## ------------------------------- ##
24844 ## Report this to nfs@lists.sf.net ##
24845 ## ------------------------------- ##
24848 sed "s/^/$as_me: WARNING: /" >&2
24851 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24852 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
24853 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24854 echo $ECHO_N "(cached) $ECHO_C" >&6
24856 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
24858 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24859 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
24862 if test $ac_cv_header_sys_sysmacros_h = yes; then
24864 cat >>confdefs.h <<\_ACEOF
24865 #define MAJOR_IN_SYSMACROS 1
24875 echo "$as_me:$LINENO: checking for working memcmp" >&5
24876 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
24877 if test "${ac_cv_func_memcmp_working+set}" = set; then
24878 echo $ECHO_N "(cached) $ECHO_C" >&6
24880 if test "$cross_compiling" = yes; then
24881 ac_cv_func_memcmp_working=no
24883 cat >conftest.$ac_ext <<_ACEOF
24886 cat confdefs.h >>conftest.$ac_ext
24887 cat >>conftest.$ac_ext <<_ACEOF
24888 /* end confdefs.h. */
24889 $ac_includes_default
24894 /* Some versions of memcmp are not 8-bit clean. */
24895 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
24896 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24899 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24900 or more and with at least one buffer not starting on a 4-byte boundary.
24901 William Lewis provided this test program. */
24906 for (i = 0; i < 4; i++)
24910 strcpy (a, "--------01111111");
24911 strcpy (b, "--------10000000");
24912 if (memcmp (a, b, 16) >= 0)
24922 rm -f conftest$ac_exeext
24923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24924 (eval $ac_link) 2>&5
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24929 (eval $ac_try) 2>&5
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); }; }; then
24933 ac_cv_func_memcmp_working=yes
24935 echo "$as_me: program exited with status $ac_status" >&5
24936 echo "$as_me: failed program was:" >&5
24937 sed 's/^/| /' conftest.$ac_ext >&5
24939 ( exit $ac_status )
24940 ac_cv_func_memcmp_working=no
24942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24945 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24946 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
24947 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
24948 "memcmp.$ac_objext" | \
24949 *" memcmp.$ac_objext" | \
24950 "memcmp.$ac_objext "* | \
24951 *" memcmp.$ac_objext "* ) ;;
24952 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
24959 for ac_header in sys/select.h sys/socket.h
24961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24963 echo "$as_me:$LINENO: checking for $ac_header" >&5
24964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24966 echo $ECHO_N "(cached) $ECHO_C" >&6
24968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24971 # Is the header compilable?
24972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24974 cat >conftest.$ac_ext <<_ACEOF
24977 cat confdefs.h >>conftest.$ac_ext
24978 cat >>conftest.$ac_ext <<_ACEOF
24979 /* end confdefs.h. */
24980 $ac_includes_default
24981 #include <$ac_header>
24983 rm -f conftest.$ac_objext
24984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24985 (eval $ac_compile) 2>conftest.er1
24987 grep -v '^ *+' conftest.er1 >conftest.err
24989 cat conftest.err >&5
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); } &&
24992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24994 (eval $ac_try) 2>&5
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); }; } &&
24998 { ac_try='test -s conftest.$ac_objext'
24999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25000 (eval $ac_try) 2>&5
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); }; }; then
25004 ac_header_compiler=yes
25006 echo "$as_me: failed program was:" >&5
25007 sed 's/^/| /' conftest.$ac_ext >&5
25009 ac_header_compiler=no
25011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25013 echo "${ECHO_T}$ac_header_compiler" >&6
25015 # Is the header present?
25016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25018 cat >conftest.$ac_ext <<_ACEOF
25021 cat confdefs.h >>conftest.$ac_ext
25022 cat >>conftest.$ac_ext <<_ACEOF
25023 /* end confdefs.h. */
25024 #include <$ac_header>
25026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25029 grep -v '^ *+' conftest.er1 >conftest.err
25031 cat conftest.err >&5
25032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033 (exit $ac_status); } >/dev/null; then
25034 if test -s conftest.err; then
25035 ac_cpp_err=$ac_c_preproc_warn_flag
25036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25043 if test -z "$ac_cpp_err"; then
25044 ac_header_preproc=yes
25046 echo "$as_me: failed program was:" >&5
25047 sed 's/^/| /' conftest.$ac_ext >&5
25049 ac_header_preproc=no
25051 rm -f conftest.err conftest.$ac_ext
25052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25053 echo "${ECHO_T}$ac_header_preproc" >&6
25055 # So? What about this header?
25056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25062 ac_header_preproc=yes
25065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25072 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25079 ## ------------------------------- ##
25080 ## Report this to nfs@lists.sf.net ##
25081 ## ------------------------------- ##
25084 sed "s/^/$as_me: WARNING: /" >&2
25087 echo "$as_me:$LINENO: checking for $ac_header" >&5
25088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25090 echo $ECHO_N "(cached) $ECHO_C" >&6
25092 eval "$as_ac_Header=\$ac_header_preproc"
25094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25099 cat >>confdefs.h <<_ACEOF
25100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25107 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25108 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25109 if test "${ac_cv_func_select_args+set}" = set; then
25110 echo $ECHO_N "(cached) $ECHO_C" >&6
25112 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25113 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25114 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25115 cat >conftest.$ac_ext <<_ACEOF
25118 cat confdefs.h >>conftest.$ac_ext
25119 cat >>conftest.$ac_ext <<_ACEOF
25120 /* end confdefs.h. */
25121 $ac_includes_default
25122 #if HAVE_SYS_SELECT_H
25123 # include <sys/select.h>
25125 #if HAVE_SYS_SOCKET_H
25126 # include <sys/socket.h>
25132 extern int select ($ac_arg1,
25133 $ac_arg234, $ac_arg234, $ac_arg234,
25139 rm -f conftest.$ac_objext
25140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25141 (eval $ac_compile) 2>conftest.er1
25143 grep -v '^ *+' conftest.er1 >conftest.err
25145 cat conftest.err >&5
25146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147 (exit $ac_status); } &&
25148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25150 (eval $ac_try) 2>&5
25152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); }; } &&
25154 { ac_try='test -s conftest.$ac_objext'
25155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25156 (eval $ac_try) 2>&5
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); }; }; then
25160 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25162 echo "$as_me: failed program was:" >&5
25163 sed 's/^/| /' conftest.$ac_ext >&5
25166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25170 # Provide a safe default value.
25171 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25174 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25175 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25176 ac_save_IFS=$IFS; IFS=','
25177 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25181 cat >>confdefs.h <<_ACEOF
25182 #define SELECT_TYPE_ARG1 $1
25186 cat >>confdefs.h <<_ACEOF
25187 #define SELECT_TYPE_ARG234 ($2)
25191 cat >>confdefs.h <<_ACEOF
25192 #define SELECT_TYPE_ARG5 ($3)
25197 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25198 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
25199 if test "${ac_cv_type_signal+set}" = set; then
25200 echo $ECHO_N "(cached) $ECHO_C" >&6
25202 cat >conftest.$ac_ext <<_ACEOF
25205 cat confdefs.h >>conftest.$ac_ext
25206 cat >>conftest.$ac_ext <<_ACEOF
25207 /* end confdefs.h. */
25208 #include <sys/types.h>
25209 #include <signal.h>
25214 extern "C" void (*signal (int, void (*)(int)))(int);
25216 void (*signal ()) ();
25227 rm -f conftest.$ac_objext
25228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25229 (eval $ac_compile) 2>conftest.er1
25231 grep -v '^ *+' conftest.er1 >conftest.err
25233 cat conftest.err >&5
25234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235 (exit $ac_status); } &&
25236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25238 (eval $ac_try) 2>&5
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); }; } &&
25242 { ac_try='test -s conftest.$ac_objext'
25243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244 (eval $ac_try) 2>&5
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); }; }; then
25248 ac_cv_type_signal=void
25250 echo "$as_me: failed program was:" >&5
25251 sed 's/^/| /' conftest.$ac_ext >&5
25253 ac_cv_type_signal=int
25255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25257 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25258 echo "${ECHO_T}$ac_cv_type_signal" >&6
25260 cat >>confdefs.h <<_ACEOF
25261 #define RETSIGTYPE $ac_cv_type_signal
25265 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
25266 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
25267 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
25268 echo $ECHO_N "(cached) $ECHO_C" >&6
25270 if test "$cross_compiling" = yes; then
25271 ac_cv_func_stat_empty_string_bug=yes
25273 cat >conftest.$ac_ext <<_ACEOF
25276 cat confdefs.h >>conftest.$ac_ext
25277 cat >>conftest.$ac_ext <<_ACEOF
25278 /* end confdefs.h. */
25279 $ac_includes_default
25284 exit (stat ("", &sbuf) ? 1 : 0);
25289 rm -f conftest$ac_exeext
25290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25291 (eval $ac_link) 2>&5
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296 (eval $ac_try) 2>&5
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); }; }; then
25300 ac_cv_func_stat_empty_string_bug=yes
25302 echo "$as_me: program exited with status $ac_status" >&5
25303 echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25306 ( exit $ac_status )
25307 ac_cv_func_stat_empty_string_bug=no
25309 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25312 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
25313 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
25314 if test $ac_cv_func_stat_empty_string_bug = yes; then
25316 "stat.$ac_objext" | \
25317 *" stat.$ac_objext" | \
25318 "stat.$ac_objext "* | \
25319 *" stat.$ac_objext "* ) ;;
25320 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
25324 cat >>confdefs.h <<_ACEOF
25325 #define HAVE_STAT_EMPTY_STRING_BUG 1
25331 for ac_func in vprintf
25333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25334 echo "$as_me:$LINENO: checking for $ac_func" >&5
25335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25336 if eval "test \"\${$as_ac_var+set}\" = set"; then
25337 echo $ECHO_N "(cached) $ECHO_C" >&6
25339 cat >conftest.$ac_ext <<_ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h. */
25345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25347 #define $ac_func innocuous_$ac_func
25349 /* System header to define __stub macros and hopefully few prototypes,
25350 which can conflict with char $ac_func (); below.
25351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25352 <limits.h> exists even on freestanding compilers. */
25355 # include <limits.h>
25357 # include <assert.h>
25362 /* Override any gcc2 internal prototype to avoid an error. */
25367 /* We use char because int might match the return type of a gcc2
25368 builtin and then its argument prototype would still apply. */
25370 /* The GNU C library defines this for functions which it implements
25371 to always fail with ENOSYS. Some functions are actually named
25372 something starting with __ and the normal name is an alias. */
25373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25376 char (*f) () = $ac_func;
25385 return f != $ac_func;
25390 rm -f conftest.$ac_objext conftest$ac_exeext
25391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25392 (eval $ac_link) 2>conftest.er1
25394 grep -v '^ *+' conftest.er1 >conftest.err
25396 cat conftest.err >&5
25397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398 (exit $ac_status); } &&
25399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25401 (eval $ac_try) 2>&5
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); }; } &&
25405 { ac_try='test -s conftest$ac_exeext'
25406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25407 (eval $ac_try) 2>&5
25409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410 (exit $ac_status); }; }; then
25411 eval "$as_ac_var=yes"
25413 echo "$as_me: failed program was:" >&5
25414 sed 's/^/| /' conftest.$ac_ext >&5
25416 eval "$as_ac_var=no"
25418 rm -f conftest.err conftest.$ac_objext \
25419 conftest$ac_exeext conftest.$ac_ext
25421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25423 if test `eval echo '${'$as_ac_var'}'` = yes; then
25424 cat >>confdefs.h <<_ACEOF
25425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25428 echo "$as_me:$LINENO: checking for _doprnt" >&5
25429 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
25430 if test "${ac_cv_func__doprnt+set}" = set; then
25431 echo $ECHO_N "(cached) $ECHO_C" >&6
25433 cat >conftest.$ac_ext <<_ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h. */
25439 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25441 #define _doprnt innocuous__doprnt
25443 /* System header to define __stub macros and hopefully few prototypes,
25444 which can conflict with char _doprnt (); below.
25445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25446 <limits.h> exists even on freestanding compilers. */
25449 # include <limits.h>
25451 # include <assert.h>
25456 /* Override any gcc2 internal prototype to avoid an error. */
25461 /* We use char because int might match the return type of a gcc2
25462 builtin and then its argument prototype would still apply. */
25464 /* The GNU C library defines this for functions which it implements
25465 to always fail with ENOSYS. Some functions are actually named
25466 something starting with __ and the normal name is an alias. */
25467 #if defined (__stub__doprnt) || defined (__stub____doprnt)
25470 char (*f) () = _doprnt;
25479 return f != _doprnt;
25484 rm -f conftest.$ac_objext conftest$ac_exeext
25485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25486 (eval $ac_link) 2>conftest.er1
25488 grep -v '^ *+' conftest.er1 >conftest.err
25490 cat conftest.err >&5
25491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); } &&
25493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25495 (eval $ac_try) 2>&5
25497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498 (exit $ac_status); }; } &&
25499 { ac_try='test -s conftest$ac_exeext'
25500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25501 (eval $ac_try) 2>&5
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); }; }; then
25505 ac_cv_func__doprnt=yes
25507 echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25510 ac_cv_func__doprnt=no
25512 rm -f conftest.err conftest.$ac_objext \
25513 conftest$ac_exeext conftest.$ac_ext
25515 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25516 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
25517 if test $ac_cv_func__doprnt = yes; then
25519 cat >>confdefs.h <<\_ACEOF
25520 #define HAVE_DOPRNT 1
25556 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
25557 gethostbyaddr gethostbyname gethostname getmntent \
25558 gettimeofday hasmntopt inet_ntoa memset mkdir pathconf \
25559 realpath rmdir select socket strcasecmp strchr strdup \
25560 strerror strrchr strtol strtoul
25562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25563 echo "$as_me:$LINENO: checking for $ac_func" >&5
25564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25565 if eval "test \"\${$as_ac_var+set}\" = set"; then
25566 echo $ECHO_N "(cached) $ECHO_C" >&6
25568 cat >conftest.$ac_ext <<_ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h. */
25574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25576 #define $ac_func innocuous_$ac_func
25578 /* System header to define __stub macros and hopefully few prototypes,
25579 which can conflict with char $ac_func (); below.
25580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25581 <limits.h> exists even on freestanding compilers. */
25584 # include <limits.h>
25586 # include <assert.h>
25591 /* Override any gcc2 internal prototype to avoid an error. */
25596 /* We use char because int might match the return type of a gcc2
25597 builtin and then its argument prototype would still apply. */
25599 /* The GNU C library defines this for functions which it implements
25600 to always fail with ENOSYS. Some functions are actually named
25601 something starting with __ and the normal name is an alias. */
25602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25605 char (*f) () = $ac_func;
25614 return f != $ac_func;
25619 rm -f conftest.$ac_objext conftest$ac_exeext
25620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25621 (eval $ac_link) 2>conftest.er1
25623 grep -v '^ *+' conftest.er1 >conftest.err
25625 cat conftest.err >&5
25626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627 (exit $ac_status); } &&
25628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25630 (eval $ac_try) 2>&5
25632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633 (exit $ac_status); }; } &&
25634 { ac_try='test -s conftest$ac_exeext'
25635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25636 (eval $ac_try) 2>&5
25638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); }; }; then
25640 eval "$as_ac_var=yes"
25642 echo "$as_me: failed program was:" >&5
25643 sed 's/^/| /' conftest.$ac_ext >&5
25645 eval "$as_ac_var=no"
25647 rm -f conftest.err conftest.$ac_objext \
25648 conftest$ac_exeext conftest.$ac_ext
25650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25652 if test `eval echo '${'$as_ac_var'}'` = yes; then
25653 cat >>confdefs.h <<_ACEOF
25654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25662 echo "$as_me:$LINENO: checking for short" >&5
25663 echo $ECHO_N "checking for short... $ECHO_C" >&6
25664 if test "${ac_cv_type_short+set}" = set; then
25665 echo $ECHO_N "(cached) $ECHO_C" >&6
25667 cat >conftest.$ac_ext <<_ACEOF
25670 cat confdefs.h >>conftest.$ac_ext
25671 cat >>conftest.$ac_ext <<_ACEOF
25672 /* end confdefs.h. */
25673 $ac_includes_default
25679 if (sizeof (short))
25685 rm -f conftest.$ac_objext
25686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25687 (eval $ac_compile) 2>conftest.er1
25689 grep -v '^ *+' conftest.er1 >conftest.err
25691 cat conftest.err >&5
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); } &&
25694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25696 (eval $ac_try) 2>&5
25698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699 (exit $ac_status); }; } &&
25700 { ac_try='test -s conftest.$ac_objext'
25701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25702 (eval $ac_try) 2>&5
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); }; }; then
25706 ac_cv_type_short=yes
25708 echo "$as_me: failed program was:" >&5
25709 sed 's/^/| /' conftest.$ac_ext >&5
25711 ac_cv_type_short=no
25713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25715 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
25716 echo "${ECHO_T}$ac_cv_type_short" >&6
25718 echo "$as_me:$LINENO: checking size of short" >&5
25719 echo $ECHO_N "checking size of short... $ECHO_C" >&6
25720 if test "${ac_cv_sizeof_short+set}" = set; then
25721 echo $ECHO_N "(cached) $ECHO_C" >&6
25723 if test "$ac_cv_type_short" = yes; then
25724 # The cast to unsigned long works around a bug in the HP C Compiler
25725 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25726 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25727 # This bug is HP SR number 8606223364.
25728 if test "$cross_compiling" = yes; then
25729 # Depending upon the size, compute the lo and hi bounds.
25730 cat >conftest.$ac_ext <<_ACEOF
25733 cat confdefs.h >>conftest.$ac_ext
25734 cat >>conftest.$ac_ext <<_ACEOF
25735 /* end confdefs.h. */
25736 $ac_includes_default
25740 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
25747 rm -f conftest.$ac_objext
25748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25749 (eval $ac_compile) 2>conftest.er1
25751 grep -v '^ *+' conftest.er1 >conftest.err
25753 cat conftest.err >&5
25754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755 (exit $ac_status); } &&
25756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758 (eval $ac_try) 2>&5
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); }; } &&
25762 { ac_try='test -s conftest.$ac_objext'
25763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764 (eval $ac_try) 2>&5
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); }; }; then
25770 cat >conftest.$ac_ext <<_ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h. */
25776 $ac_includes_default
25780 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
25787 rm -f conftest.$ac_objext
25788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25789 (eval $ac_compile) 2>conftest.er1
25791 grep -v '^ *+' conftest.er1 >conftest.err
25793 cat conftest.err >&5
25794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795 (exit $ac_status); } &&
25796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25798 (eval $ac_try) 2>&5
25800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); }; } &&
25802 { ac_try='test -s conftest.$ac_objext'
25803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25804 (eval $ac_try) 2>&5
25806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807 (exit $ac_status); }; }; then
25808 ac_hi=$ac_mid; break
25810 echo "$as_me: failed program was:" >&5
25811 sed 's/^/| /' conftest.$ac_ext >&5
25813 ac_lo=`expr $ac_mid + 1`
25814 if test $ac_lo -le $ac_mid; then
25818 ac_mid=`expr 2 '*' $ac_mid + 1`
25820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25823 echo "$as_me: failed program was:" >&5
25824 sed 's/^/| /' conftest.$ac_ext >&5
25826 cat >conftest.$ac_ext <<_ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h. */
25832 $ac_includes_default
25836 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
25843 rm -f conftest.$ac_objext
25844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25845 (eval $ac_compile) 2>conftest.er1
25847 grep -v '^ *+' conftest.er1 >conftest.err
25849 cat conftest.err >&5
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); } &&
25852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25854 (eval $ac_try) 2>&5
25856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857 (exit $ac_status); }; } &&
25858 { ac_try='test -s conftest.$ac_objext'
25859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25860 (eval $ac_try) 2>&5
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); }; }; then
25866 cat >conftest.$ac_ext <<_ACEOF
25869 cat confdefs.h >>conftest.$ac_ext
25870 cat >>conftest.$ac_ext <<_ACEOF
25871 /* end confdefs.h. */
25872 $ac_includes_default
25876 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
25883 rm -f conftest.$ac_objext
25884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25885 (eval $ac_compile) 2>conftest.er1
25887 grep -v '^ *+' conftest.er1 >conftest.err
25889 cat conftest.err >&5
25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891 (exit $ac_status); } &&
25892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25894 (eval $ac_try) 2>&5
25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); }; } &&
25898 { ac_try='test -s conftest.$ac_objext'
25899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25900 (eval $ac_try) 2>&5
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); }; }; then
25904 ac_lo=$ac_mid; break
25906 echo "$as_me: failed program was:" >&5
25907 sed 's/^/| /' conftest.$ac_ext >&5
25909 ac_hi=`expr '(' $ac_mid ')' - 1`
25910 if test $ac_mid -le $ac_hi; then
25914 ac_mid=`expr 2 '*' $ac_mid`
25916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25919 echo "$as_me: failed program was:" >&5
25920 sed 's/^/| /' conftest.$ac_ext >&5
25924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25927 # Binary search between lo and hi bounds.
25928 while test "x$ac_lo" != "x$ac_hi"; do
25929 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25930 cat >conftest.$ac_ext <<_ACEOF
25933 cat confdefs.h >>conftest.$ac_ext
25934 cat >>conftest.$ac_ext <<_ACEOF
25935 /* end confdefs.h. */
25936 $ac_includes_default
25940 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
25947 rm -f conftest.$ac_objext
25948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25949 (eval $ac_compile) 2>conftest.er1
25951 grep -v '^ *+' conftest.er1 >conftest.err
25953 cat conftest.err >&5
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); } &&
25956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25958 (eval $ac_try) 2>&5
25960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961 (exit $ac_status); }; } &&
25962 { ac_try='test -s conftest.$ac_objext'
25963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964 (eval $ac_try) 2>&5
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); }; }; then
25970 echo "$as_me: failed program was:" >&5
25971 sed 's/^/| /' conftest.$ac_ext >&5
25973 ac_lo=`expr '(' $ac_mid ')' + 1`
25975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25978 ?*) ac_cv_sizeof_short=$ac_lo;;
25979 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
25980 See \`config.log' for more details." >&5
25981 echo "$as_me: error: cannot compute sizeof (short), 77
25982 See \`config.log' for more details." >&2;}
25983 { (exit 1); exit 1; }; } ;;
25986 if test "$cross_compiling" = yes; then
25987 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
25988 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
25989 { (exit 1); exit 1; }; }
25991 cat >conftest.$ac_ext <<_ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h. */
25997 $ac_includes_default
25998 long longval () { return (long) (sizeof (short)); }
25999 unsigned long ulongval () { return (long) (sizeof (short)); }
26001 #include <stdlib.h>
26006 FILE *f = fopen ("conftest.val", "w");
26009 if (((long) (sizeof (short))) < 0)
26011 long i = longval ();
26012 if (i != ((long) (sizeof (short))))
26014 fprintf (f, "%ld\n", i);
26018 unsigned long i = ulongval ();
26019 if (i != ((long) (sizeof (short))))
26021 fprintf (f, "%lu\n", i);
26023 exit (ferror (f) || fclose (f) != 0);
26029 rm -f conftest$ac_exeext
26030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26031 (eval $ac_link) 2>&5
26033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036 (eval $ac_try) 2>&5
26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); }; }; then
26040 ac_cv_sizeof_short=`cat conftest.val`
26042 echo "$as_me: program exited with status $ac_status" >&5
26043 echo "$as_me: failed program was:" >&5
26044 sed 's/^/| /' conftest.$ac_ext >&5
26046 ( exit $ac_status )
26047 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
26048 See \`config.log' for more details." >&5
26049 echo "$as_me: error: cannot compute sizeof (short), 77
26050 See \`config.log' for more details." >&2;}
26051 { (exit 1); exit 1; }; }
26053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26058 ac_cv_sizeof_short=0
26061 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26062 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
26063 cat >>confdefs.h <<_ACEOF
26064 #define SIZEOF_SHORT $ac_cv_sizeof_short
26068 echo "$as_me:$LINENO: checking for int" >&5
26069 echo $ECHO_N "checking for int... $ECHO_C" >&6
26070 if test "${ac_cv_type_int+set}" = set; then
26071 echo $ECHO_N "(cached) $ECHO_C" >&6
26073 cat >conftest.$ac_ext <<_ACEOF
26076 cat confdefs.h >>conftest.$ac_ext
26077 cat >>conftest.$ac_ext <<_ACEOF
26078 /* end confdefs.h. */
26079 $ac_includes_default
26091 rm -f conftest.$ac_objext
26092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26093 (eval $ac_compile) 2>conftest.er1
26095 grep -v '^ *+' conftest.er1 >conftest.err
26097 cat conftest.err >&5
26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); } &&
26100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26102 (eval $ac_try) 2>&5
26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); }; } &&
26106 { ac_try='test -s conftest.$ac_objext'
26107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26108 (eval $ac_try) 2>&5
26110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); }; }; then
26114 echo "$as_me: failed program was:" >&5
26115 sed 's/^/| /' conftest.$ac_ext >&5
26119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26121 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26122 echo "${ECHO_T}$ac_cv_type_int" >&6
26124 echo "$as_me:$LINENO: checking size of int" >&5
26125 echo $ECHO_N "checking size of int... $ECHO_C" >&6
26126 if test "${ac_cv_sizeof_int+set}" = set; then
26127 echo $ECHO_N "(cached) $ECHO_C" >&6
26129 if test "$ac_cv_type_int" = yes; then
26130 # The cast to unsigned long works around a bug in the HP C Compiler
26131 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26132 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26133 # This bug is HP SR number 8606223364.
26134 if test "$cross_compiling" = yes; then
26135 # Depending upon the size, compute the lo and hi bounds.
26136 cat >conftest.$ac_ext <<_ACEOF
26139 cat confdefs.h >>conftest.$ac_ext
26140 cat >>conftest.$ac_ext <<_ACEOF
26141 /* end confdefs.h. */
26142 $ac_includes_default
26146 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
26153 rm -f conftest.$ac_objext
26154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26155 (eval $ac_compile) 2>conftest.er1
26157 grep -v '^ *+' conftest.er1 >conftest.err
26159 cat conftest.err >&5
26160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161 (exit $ac_status); } &&
26162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26164 (eval $ac_try) 2>&5
26166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167 (exit $ac_status); }; } &&
26168 { ac_try='test -s conftest.$ac_objext'
26169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26170 (eval $ac_try) 2>&5
26172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173 (exit $ac_status); }; }; then
26176 cat >conftest.$ac_ext <<_ACEOF
26179 cat confdefs.h >>conftest.$ac_ext
26180 cat >>conftest.$ac_ext <<_ACEOF
26181 /* end confdefs.h. */
26182 $ac_includes_default
26186 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26193 rm -f conftest.$ac_objext
26194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26195 (eval $ac_compile) 2>conftest.er1
26197 grep -v '^ *+' conftest.er1 >conftest.err
26199 cat conftest.err >&5
26200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201 (exit $ac_status); } &&
26202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26204 (eval $ac_try) 2>&5
26206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26207 (exit $ac_status); }; } &&
26208 { ac_try='test -s conftest.$ac_objext'
26209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26210 (eval $ac_try) 2>&5
26212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213 (exit $ac_status); }; }; then
26214 ac_hi=$ac_mid; break
26216 echo "$as_me: failed program was:" >&5
26217 sed 's/^/| /' conftest.$ac_ext >&5
26219 ac_lo=`expr $ac_mid + 1`
26220 if test $ac_lo -le $ac_mid; then
26224 ac_mid=`expr 2 '*' $ac_mid + 1`
26226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26229 echo "$as_me: failed program was:" >&5
26230 sed 's/^/| /' conftest.$ac_ext >&5
26232 cat >conftest.$ac_ext <<_ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h. */
26238 $ac_includes_default
26242 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
26249 rm -f conftest.$ac_objext
26250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26251 (eval $ac_compile) 2>conftest.er1
26253 grep -v '^ *+' conftest.er1 >conftest.err
26255 cat conftest.err >&5
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); } &&
26258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26260 (eval $ac_try) 2>&5
26262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263 (exit $ac_status); }; } &&
26264 { ac_try='test -s conftest.$ac_objext'
26265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26266 (eval $ac_try) 2>&5
26268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); }; }; then
26272 cat >conftest.$ac_ext <<_ACEOF
26275 cat confdefs.h >>conftest.$ac_ext
26276 cat >>conftest.$ac_ext <<_ACEOF
26277 /* end confdefs.h. */
26278 $ac_includes_default
26282 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
26289 rm -f conftest.$ac_objext
26290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26291 (eval $ac_compile) 2>conftest.er1
26293 grep -v '^ *+' conftest.er1 >conftest.err
26295 cat conftest.err >&5
26296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297 (exit $ac_status); } &&
26298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26300 (eval $ac_try) 2>&5
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); }; } &&
26304 { ac_try='test -s conftest.$ac_objext'
26305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26306 (eval $ac_try) 2>&5
26308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309 (exit $ac_status); }; }; then
26310 ac_lo=$ac_mid; break
26312 echo "$as_me: failed program was:" >&5
26313 sed 's/^/| /' conftest.$ac_ext >&5
26315 ac_hi=`expr '(' $ac_mid ')' - 1`
26316 if test $ac_mid -le $ac_hi; then
26320 ac_mid=`expr 2 '*' $ac_mid`
26322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26325 echo "$as_me: failed program was:" >&5
26326 sed 's/^/| /' conftest.$ac_ext >&5
26330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26333 # Binary search between lo and hi bounds.
26334 while test "x$ac_lo" != "x$ac_hi"; do
26335 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26336 cat >conftest.$ac_ext <<_ACEOF
26339 cat confdefs.h >>conftest.$ac_ext
26340 cat >>conftest.$ac_ext <<_ACEOF
26341 /* end confdefs.h. */
26342 $ac_includes_default
26346 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26353 rm -f conftest.$ac_objext
26354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26355 (eval $ac_compile) 2>conftest.er1
26357 grep -v '^ *+' conftest.er1 >conftest.err
26359 cat conftest.err >&5
26360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); } &&
26362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26364 (eval $ac_try) 2>&5
26366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367 (exit $ac_status); }; } &&
26368 { ac_try='test -s conftest.$ac_objext'
26369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26370 (eval $ac_try) 2>&5
26372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373 (exit $ac_status); }; }; then
26376 echo "$as_me: failed program was:" >&5
26377 sed 's/^/| /' conftest.$ac_ext >&5
26379 ac_lo=`expr '(' $ac_mid ')' + 1`
26381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26384 ?*) ac_cv_sizeof_int=$ac_lo;;
26385 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26386 See \`config.log' for more details." >&5
26387 echo "$as_me: error: cannot compute sizeof (int), 77
26388 See \`config.log' for more details." >&2;}
26389 { (exit 1); exit 1; }; } ;;
26392 if test "$cross_compiling" = yes; then
26393 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26394 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26395 { (exit 1); exit 1; }; }
26397 cat >conftest.$ac_ext <<_ACEOF
26400 cat confdefs.h >>conftest.$ac_ext
26401 cat >>conftest.$ac_ext <<_ACEOF
26402 /* end confdefs.h. */
26403 $ac_includes_default
26404 long longval () { return (long) (sizeof (int)); }
26405 unsigned long ulongval () { return (long) (sizeof (int)); }
26407 #include <stdlib.h>
26412 FILE *f = fopen ("conftest.val", "w");
26415 if (((long) (sizeof (int))) < 0)
26417 long i = longval ();
26418 if (i != ((long) (sizeof (int))))
26420 fprintf (f, "%ld\n", i);
26424 unsigned long i = ulongval ();
26425 if (i != ((long) (sizeof (int))))
26427 fprintf (f, "%lu\n", i);
26429 exit (ferror (f) || fclose (f) != 0);
26435 rm -f conftest$ac_exeext
26436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26437 (eval $ac_link) 2>&5
26439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26442 (eval $ac_try) 2>&5
26444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445 (exit $ac_status); }; }; then
26446 ac_cv_sizeof_int=`cat conftest.val`
26448 echo "$as_me: program exited with status $ac_status" >&5
26449 echo "$as_me: failed program was:" >&5
26450 sed 's/^/| /' conftest.$ac_ext >&5
26452 ( exit $ac_status )
26453 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26454 See \`config.log' for more details." >&5
26455 echo "$as_me: error: cannot compute sizeof (int), 77
26456 See \`config.log' for more details." >&2;}
26457 { (exit 1); exit 1; }; }
26459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26467 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
26468 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
26469 cat >>confdefs.h <<_ACEOF
26470 #define SIZEOF_INT $ac_cv_sizeof_int
26474 echo "$as_me:$LINENO: checking for long" >&5
26475 echo $ECHO_N "checking for long... $ECHO_C" >&6
26476 if test "${ac_cv_type_long+set}" = set; then
26477 echo $ECHO_N "(cached) $ECHO_C" >&6
26479 cat >conftest.$ac_ext <<_ACEOF
26482 cat confdefs.h >>conftest.$ac_ext
26483 cat >>conftest.$ac_ext <<_ACEOF
26484 /* end confdefs.h. */
26485 $ac_includes_default
26497 rm -f conftest.$ac_objext
26498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26499 (eval $ac_compile) 2>conftest.er1
26501 grep -v '^ *+' conftest.er1 >conftest.err
26503 cat conftest.err >&5
26504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); } &&
26506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26508 (eval $ac_try) 2>&5
26510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511 (exit $ac_status); }; } &&
26512 { ac_try='test -s conftest.$ac_objext'
26513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26514 (eval $ac_try) 2>&5
26516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517 (exit $ac_status); }; }; then
26518 ac_cv_type_long=yes
26520 echo "$as_me: failed program was:" >&5
26521 sed 's/^/| /' conftest.$ac_ext >&5
26525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26527 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
26528 echo "${ECHO_T}$ac_cv_type_long" >&6
26530 echo "$as_me:$LINENO: checking size of long" >&5
26531 echo $ECHO_N "checking size of long... $ECHO_C" >&6
26532 if test "${ac_cv_sizeof_long+set}" = set; then
26533 echo $ECHO_N "(cached) $ECHO_C" >&6
26535 if test "$ac_cv_type_long" = yes; then
26536 # The cast to unsigned long works around a bug in the HP C Compiler
26537 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26538 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26539 # This bug is HP SR number 8606223364.
26540 if test "$cross_compiling" = yes; then
26541 # Depending upon the size, compute the lo and hi bounds.
26542 cat >conftest.$ac_ext <<_ACEOF
26545 cat confdefs.h >>conftest.$ac_ext
26546 cat >>conftest.$ac_ext <<_ACEOF
26547 /* end confdefs.h. */
26548 $ac_includes_default
26552 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
26559 rm -f conftest.$ac_objext
26560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26561 (eval $ac_compile) 2>conftest.er1
26563 grep -v '^ *+' conftest.er1 >conftest.err
26565 cat conftest.err >&5
26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); } &&
26568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26570 (eval $ac_try) 2>&5
26572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); }; } &&
26574 { ac_try='test -s conftest.$ac_objext'
26575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26576 (eval $ac_try) 2>&5
26578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579 (exit $ac_status); }; }; then
26582 cat >conftest.$ac_ext <<_ACEOF
26585 cat confdefs.h >>conftest.$ac_ext
26586 cat >>conftest.$ac_ext <<_ACEOF
26587 /* end confdefs.h. */
26588 $ac_includes_default
26592 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26599 rm -f conftest.$ac_objext
26600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26601 (eval $ac_compile) 2>conftest.er1
26603 grep -v '^ *+' conftest.er1 >conftest.err
26605 cat conftest.err >&5
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); } &&
26608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610 (eval $ac_try) 2>&5
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); }; } &&
26614 { ac_try='test -s conftest.$ac_objext'
26615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616 (eval $ac_try) 2>&5
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); }; }; then
26620 ac_hi=$ac_mid; break
26622 echo "$as_me: failed program was:" >&5
26623 sed 's/^/| /' conftest.$ac_ext >&5
26625 ac_lo=`expr $ac_mid + 1`
26626 if test $ac_lo -le $ac_mid; then
26630 ac_mid=`expr 2 '*' $ac_mid + 1`
26632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26635 echo "$as_me: failed program was:" >&5
26636 sed 's/^/| /' conftest.$ac_ext >&5
26638 cat >conftest.$ac_ext <<_ACEOF
26641 cat confdefs.h >>conftest.$ac_ext
26642 cat >>conftest.$ac_ext <<_ACEOF
26643 /* end confdefs.h. */
26644 $ac_includes_default
26648 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
26655 rm -f conftest.$ac_objext
26656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26657 (eval $ac_compile) 2>conftest.er1
26659 grep -v '^ *+' conftest.er1 >conftest.err
26661 cat conftest.err >&5
26662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663 (exit $ac_status); } &&
26664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26666 (eval $ac_try) 2>&5
26668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669 (exit $ac_status); }; } &&
26670 { ac_try='test -s conftest.$ac_objext'
26671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26672 (eval $ac_try) 2>&5
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); }; }; then
26678 cat >conftest.$ac_ext <<_ACEOF
26681 cat confdefs.h >>conftest.$ac_ext
26682 cat >>conftest.$ac_ext <<_ACEOF
26683 /* end confdefs.h. */
26684 $ac_includes_default
26688 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
26695 rm -f conftest.$ac_objext
26696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26697 (eval $ac_compile) 2>conftest.er1
26699 grep -v '^ *+' conftest.er1 >conftest.err
26701 cat conftest.err >&5
26702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703 (exit $ac_status); } &&
26704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26706 (eval $ac_try) 2>&5
26708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709 (exit $ac_status); }; } &&
26710 { ac_try='test -s conftest.$ac_objext'
26711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26712 (eval $ac_try) 2>&5
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); }; }; then
26716 ac_lo=$ac_mid; break
26718 echo "$as_me: failed program was:" >&5
26719 sed 's/^/| /' conftest.$ac_ext >&5
26721 ac_hi=`expr '(' $ac_mid ')' - 1`
26722 if test $ac_mid -le $ac_hi; then
26726 ac_mid=`expr 2 '*' $ac_mid`
26728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26731 echo "$as_me: failed program was:" >&5
26732 sed 's/^/| /' conftest.$ac_ext >&5
26736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26739 # Binary search between lo and hi bounds.
26740 while test "x$ac_lo" != "x$ac_hi"; do
26741 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26742 cat >conftest.$ac_ext <<_ACEOF
26745 cat confdefs.h >>conftest.$ac_ext
26746 cat >>conftest.$ac_ext <<_ACEOF
26747 /* end confdefs.h. */
26748 $ac_includes_default
26752 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26759 rm -f conftest.$ac_objext
26760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26761 (eval $ac_compile) 2>conftest.er1
26763 grep -v '^ *+' conftest.er1 >conftest.err
26765 cat conftest.err >&5
26766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); } &&
26768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26770 (eval $ac_try) 2>&5
26772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); }; } &&
26774 { ac_try='test -s conftest.$ac_objext'
26775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26776 (eval $ac_try) 2>&5
26778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779 (exit $ac_status); }; }; then
26782 echo "$as_me: failed program was:" >&5
26783 sed 's/^/| /' conftest.$ac_ext >&5
26785 ac_lo=`expr '(' $ac_mid ')' + 1`
26787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26790 ?*) ac_cv_sizeof_long=$ac_lo;;
26791 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
26792 See \`config.log' for more details." >&5
26793 echo "$as_me: error: cannot compute sizeof (long), 77
26794 See \`config.log' for more details." >&2;}
26795 { (exit 1); exit 1; }; } ;;
26798 if test "$cross_compiling" = yes; then
26799 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26800 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26801 { (exit 1); exit 1; }; }
26803 cat >conftest.$ac_ext <<_ACEOF
26806 cat confdefs.h >>conftest.$ac_ext
26807 cat >>conftest.$ac_ext <<_ACEOF
26808 /* end confdefs.h. */
26809 $ac_includes_default
26810 long longval () { return (long) (sizeof (long)); }
26811 unsigned long ulongval () { return (long) (sizeof (long)); }
26813 #include <stdlib.h>
26818 FILE *f = fopen ("conftest.val", "w");
26821 if (((long) (sizeof (long))) < 0)
26823 long i = longval ();
26824 if (i != ((long) (sizeof (long))))
26826 fprintf (f, "%ld\n", i);
26830 unsigned long i = ulongval ();
26831 if (i != ((long) (sizeof (long))))
26833 fprintf (f, "%lu\n", i);
26835 exit (ferror (f) || fclose (f) != 0);
26841 rm -f conftest$ac_exeext
26842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26843 (eval $ac_link) 2>&5
26845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26848 (eval $ac_try) 2>&5
26850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); }; }; then
26852 ac_cv_sizeof_long=`cat conftest.val`
26854 echo "$as_me: program exited with status $ac_status" >&5
26855 echo "$as_me: failed program was:" >&5
26856 sed 's/^/| /' conftest.$ac_ext >&5
26858 ( exit $ac_status )
26859 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
26860 See \`config.log' for more details." >&5
26861 echo "$as_me: error: cannot compute sizeof (long), 77
26862 See \`config.log' for more details." >&2;}
26863 { (exit 1); exit 1; }; }
26865 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26870 ac_cv_sizeof_long=0
26873 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26874 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
26875 cat >>confdefs.h <<_ACEOF
26876 #define SIZEOF_LONG $ac_cv_sizeof_long
26880 echo "$as_me:$LINENO: checking for size_t" >&5
26881 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26882 if test "${ac_cv_type_size_t+set}" = set; then
26883 echo $ECHO_N "(cached) $ECHO_C" >&6
26885 cat >conftest.$ac_ext <<_ACEOF
26888 cat confdefs.h >>conftest.$ac_ext
26889 cat >>conftest.$ac_ext <<_ACEOF
26890 /* end confdefs.h. */
26891 $ac_includes_default
26897 if (sizeof (size_t))
26903 rm -f conftest.$ac_objext
26904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26905 (eval $ac_compile) 2>conftest.er1
26907 grep -v '^ *+' conftest.er1 >conftest.err
26909 cat conftest.err >&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); } &&
26912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26914 (eval $ac_try) 2>&5
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); }; } &&
26918 { ac_try='test -s conftest.$ac_objext'
26919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26920 (eval $ac_try) 2>&5
26922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923 (exit $ac_status); }; }; then
26924 ac_cv_type_size_t=yes
26926 echo "$as_me: failed program was:" >&5
26927 sed 's/^/| /' conftest.$ac_ext >&5
26929 ac_cv_type_size_t=no
26931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26933 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26934 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26936 echo "$as_me:$LINENO: checking size of size_t" >&5
26937 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
26938 if test "${ac_cv_sizeof_size_t+set}" = set; then
26939 echo $ECHO_N "(cached) $ECHO_C" >&6
26941 if test "$ac_cv_type_size_t" = yes; then
26942 # The cast to unsigned long works around a bug in the HP C Compiler
26943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26945 # This bug is HP SR number 8606223364.
26946 if test "$cross_compiling" = yes; then
26947 # Depending upon the size, compute the lo and hi bounds.
26948 cat >conftest.$ac_ext <<_ACEOF
26951 cat confdefs.h >>conftest.$ac_ext
26952 cat >>conftest.$ac_ext <<_ACEOF
26953 /* end confdefs.h. */
26954 $ac_includes_default
26958 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
26965 rm -f conftest.$ac_objext
26966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26967 (eval $ac_compile) 2>conftest.er1
26969 grep -v '^ *+' conftest.er1 >conftest.err
26971 cat conftest.err >&5
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); } &&
26974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26976 (eval $ac_try) 2>&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); }; } &&
26980 { ac_try='test -s conftest.$ac_objext'
26981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26982 (eval $ac_try) 2>&5
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); }; }; then
26988 cat >conftest.$ac_ext <<_ACEOF
26991 cat confdefs.h >>conftest.$ac_ext
26992 cat >>conftest.$ac_ext <<_ACEOF
26993 /* end confdefs.h. */
26994 $ac_includes_default
26998 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27005 rm -f conftest.$ac_objext
27006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27007 (eval $ac_compile) 2>conftest.er1
27009 grep -v '^ *+' conftest.er1 >conftest.err
27011 cat conftest.err >&5
27012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); } &&
27014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27016 (eval $ac_try) 2>&5
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); }; } &&
27020 { ac_try='test -s conftest.$ac_objext'
27021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27022 (eval $ac_try) 2>&5
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); }; }; then
27026 ac_hi=$ac_mid; break
27028 echo "$as_me: failed program was:" >&5
27029 sed 's/^/| /' conftest.$ac_ext >&5
27031 ac_lo=`expr $ac_mid + 1`
27032 if test $ac_lo -le $ac_mid; then
27036 ac_mid=`expr 2 '*' $ac_mid + 1`
27038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27041 echo "$as_me: failed program was:" >&5
27042 sed 's/^/| /' conftest.$ac_ext >&5
27044 cat >conftest.$ac_ext <<_ACEOF
27047 cat confdefs.h >>conftest.$ac_ext
27048 cat >>conftest.$ac_ext <<_ACEOF
27049 /* end confdefs.h. */
27050 $ac_includes_default
27054 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
27061 rm -f conftest.$ac_objext
27062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27063 (eval $ac_compile) 2>conftest.er1
27065 grep -v '^ *+' conftest.er1 >conftest.err
27067 cat conftest.err >&5
27068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); } &&
27070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27072 (eval $ac_try) 2>&5
27074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); }; } &&
27076 { ac_try='test -s conftest.$ac_objext'
27077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27078 (eval $ac_try) 2>&5
27080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081 (exit $ac_status); }; }; then
27084 cat >conftest.$ac_ext <<_ACEOF
27087 cat confdefs.h >>conftest.$ac_ext
27088 cat >>conftest.$ac_ext <<_ACEOF
27089 /* end confdefs.h. */
27090 $ac_includes_default
27094 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
27101 rm -f conftest.$ac_objext
27102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27103 (eval $ac_compile) 2>conftest.er1
27105 grep -v '^ *+' conftest.er1 >conftest.err
27107 cat conftest.err >&5
27108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109 (exit $ac_status); } &&
27110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27112 (eval $ac_try) 2>&5
27114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115 (exit $ac_status); }; } &&
27116 { ac_try='test -s conftest.$ac_objext'
27117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27118 (eval $ac_try) 2>&5
27120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121 (exit $ac_status); }; }; then
27122 ac_lo=$ac_mid; break
27124 echo "$as_me: failed program was:" >&5
27125 sed 's/^/| /' conftest.$ac_ext >&5
27127 ac_hi=`expr '(' $ac_mid ')' - 1`
27128 if test $ac_mid -le $ac_hi; then
27132 ac_mid=`expr 2 '*' $ac_mid`
27134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27137 echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27145 # Binary search between lo and hi bounds.
27146 while test "x$ac_lo" != "x$ac_hi"; do
27147 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27148 cat >conftest.$ac_ext <<_ACEOF
27151 cat confdefs.h >>conftest.$ac_ext
27152 cat >>conftest.$ac_ext <<_ACEOF
27153 /* end confdefs.h. */
27154 $ac_includes_default
27158 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27165 rm -f conftest.$ac_objext
27166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27167 (eval $ac_compile) 2>conftest.er1
27169 grep -v '^ *+' conftest.er1 >conftest.err
27171 cat conftest.err >&5
27172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173 (exit $ac_status); } &&
27174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27176 (eval $ac_try) 2>&5
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); }; } &&
27180 { ac_try='test -s conftest.$ac_objext'
27181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27182 (eval $ac_try) 2>&5
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); }; }; then
27188 echo "$as_me: failed program was:" >&5
27189 sed 's/^/| /' conftest.$ac_ext >&5
27191 ac_lo=`expr '(' $ac_mid ')' + 1`
27193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27196 ?*) ac_cv_sizeof_size_t=$ac_lo;;
27197 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27198 See \`config.log' for more details." >&5
27199 echo "$as_me: error: cannot compute sizeof (size_t), 77
27200 See \`config.log' for more details." >&2;}
27201 { (exit 1); exit 1; }; } ;;
27204 if test "$cross_compiling" = yes; then
27205 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27206 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27207 { (exit 1); exit 1; }; }
27209 cat >conftest.$ac_ext <<_ACEOF
27212 cat confdefs.h >>conftest.$ac_ext
27213 cat >>conftest.$ac_ext <<_ACEOF
27214 /* end confdefs.h. */
27215 $ac_includes_default
27216 long longval () { return (long) (sizeof (size_t)); }
27217 unsigned long ulongval () { return (long) (sizeof (size_t)); }
27219 #include <stdlib.h>
27224 FILE *f = fopen ("conftest.val", "w");
27227 if (((long) (sizeof (size_t))) < 0)
27229 long i = longval ();
27230 if (i != ((long) (sizeof (size_t))))
27232 fprintf (f, "%ld\n", i);
27236 unsigned long i = ulongval ();
27237 if (i != ((long) (sizeof (size_t))))
27239 fprintf (f, "%lu\n", i);
27241 exit (ferror (f) || fclose (f) != 0);
27247 rm -f conftest$ac_exeext
27248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27249 (eval $ac_link) 2>&5
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27254 (eval $ac_try) 2>&5
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); }; }; then
27258 ac_cv_sizeof_size_t=`cat conftest.val`
27260 echo "$as_me: program exited with status $ac_status" >&5
27261 echo "$as_me: failed program was:" >&5
27262 sed 's/^/| /' conftest.$ac_ext >&5
27264 ( exit $ac_status )
27265 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27266 See \`config.log' for more details." >&5
27267 echo "$as_me: error: cannot compute sizeof (size_t), 77
27268 See \`config.log' for more details." >&2;}
27269 { (exit 1); exit 1; }; }
27271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27276 ac_cv_sizeof_size_t=0
27279 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27280 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
27281 cat >>confdefs.h <<_ACEOF
27282 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27288 cat >>confdefs.h <<_ACEOF
27289 #define NFS_STATEDIR "$statedir"
27293 if test "x$cross_compiling" = "xno"; then
27294 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
27295 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
27296 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
27297 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
27299 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
27300 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
27301 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
27302 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
27317 ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
27322 my_am_cflags="-Wall $ARCHFLAGS -pipe"
27324 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
27326 AM_CFLAGS="$my_am_cflags"
27329 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
27330 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
27333 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"
27335 cat >confcache <<\_ACEOF
27336 # This file is a shell script that caches the results of configure
27337 # tests run on this system so they can be shared between configure
27338 # scripts and configure runs, see configure's option --config-cache.
27339 # It is not useful on other systems. If it contains results you don't
27340 # want to keep, you may remove or edit it.
27342 # config.status only pays attention to the cache file if you give it
27343 # the --recheck option to rerun configure.
27345 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27346 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27347 # following values.
27351 # The following way of writing the cache mishandles newlines in values,
27352 # but we know of no workaround that is simple, portable, and efficient.
27353 # So, don't put newlines in cache variables' values.
27354 # Ultrix sh set writes to stderr and can't be redirected directly,
27355 # and sets the high bit in the cache file unless we assign to the vars.
27358 case `(ac_space=' '; set | grep ac_space) 2>&1` in
27360 # `set' does not quote correctly, so add quotes (double-quote
27361 # substitution turns \\\\ into \\, and sed turns \\ into \).
27364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27367 # `set' quotes correctly as required by POSIX, so do not add quotes.
27369 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27376 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27378 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27380 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27381 if test -w $cache_file; then
27382 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27383 cat confcache >$cache_file
27385 echo "not updating unwritable cache $cache_file"
27390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27391 # Let make expand exec_prefix.
27392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27394 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27395 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27396 # trailing colons and then remove the whole line if VPATH becomes empty
27397 # (actually we leave an empty line to preserve line numbers).
27398 if test "x$srcdir" = x.; then
27399 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27400 s/:*\$(srcdir):*/:/;
27401 s/:*\${srcdir}:*/:/;
27403 s/^\([^=]*=[ ]*\):*/\1/;
27409 DEFS=-DHAVE_CONFIG_H
27413 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27414 # 1. Remove the extension, and $U if already installed.
27415 ac_i=`echo "$ac_i" |
27416 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27418 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27419 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27421 LIBOBJS=$ac_libobjs
27423 LTLIBOBJS=$ac_ltlibobjs
27426 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
27427 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
27428 Usually this means the macro was only invoked conditionally." >&5
27429 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
27430 Usually this means the macro was only invoked conditionally." >&2;}
27431 { (exit 1); exit 1; }; }
27433 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
27434 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
27435 Usually this means the macro was only invoked conditionally." >&5
27436 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
27437 Usually this means the macro was only invoked conditionally." >&2;}
27438 { (exit 1); exit 1; }; }
27440 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
27441 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
27442 Usually this means the macro was only invoked conditionally." >&5
27443 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
27444 Usually this means the macro was only invoked conditionally." >&2;}
27445 { (exit 1); exit 1; }; }
27447 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27448 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27449 Usually this means the macro was only invoked conditionally." >&5
27450 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27451 Usually this means the macro was only invoked conditionally." >&2;}
27452 { (exit 1); exit 1; }; }
27454 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27455 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27456 Usually this means the macro was only invoked conditionally." >&5
27457 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27458 Usually this means the macro was only invoked conditionally." >&2;}
27459 { (exit 1); exit 1; }; }
27461 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27462 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27463 Usually this means the macro was only invoked conditionally." >&5
27464 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27465 Usually this means the macro was only invoked conditionally." >&2;}
27466 { (exit 1); exit 1; }; }
27468 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27469 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27470 Usually this means the macro was only invoked conditionally." >&5
27471 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27472 Usually this means the macro was only invoked conditionally." >&2;}
27473 { (exit 1); exit 1; }; }
27476 : ${CONFIG_STATUS=./config.status}
27477 ac_clean_files_save=$ac_clean_files
27478 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27479 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27480 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27481 cat >$CONFIG_STATUS <<_ACEOF
27483 # Generated by $as_me.
27484 # Run this file to recreate the current configuration.
27485 # Compiler output produced by configure, useful for debugging
27486 # configure, is in config.log if it exists.
27489 ac_cs_recheck=false
27491 SHELL=\${CONFIG_SHELL-$SHELL}
27494 cat >>$CONFIG_STATUS <<\_ACEOF
27495 ## --------------------- ##
27496 ## M4sh Initialization. ##
27497 ## --------------------- ##
27499 # Be Bourne compatible
27500 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27503 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27504 # is contrary to our usage. Disable this feature.
27505 alias -g '${1+"$@"}'='"$@"'
27506 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27509 DUALCASE=1; export DUALCASE # for MKS sh
27511 # Support unset when possible.
27512 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27519 # Work around bugs in pre-3.0 UWIN ksh.
27520 $as_unset ENV MAIL MAILPATH
27527 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27528 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27529 LC_TELEPHONE LC_TIME
27531 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27532 eval $as_var=C; export $as_var
27538 # Required to use basename.
27539 if expr a : '\(a\)' >/dev/null 2>&1; then
27545 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27546 as_basename=basename
27552 # Name of the executable.
27553 as_me=`$as_basename "$0" ||
27554 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27555 X"$0" : 'X\(//\)$' \| \
27556 X"$0" : 'X\(/\)$' \| \
27557 . : '\(.\)' 2>/dev/null ||
27559 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27560 /^X\/\(\/\/\)$/{ s//\1/; q; }
27561 /^X\/\(\/\).*/{ s//\1/; q; }
27565 # PATH needs CR, and LINENO needs CR and PATH.
27566 # Avoid depending upon Character Ranges.
27567 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27568 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27569 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27570 as_cr_digits='0123456789'
27571 as_cr_alnum=$as_cr_Letters$as_cr_digits
27573 # The user is always right.
27574 if test "${PATH_SEPARATOR+set}" != set; then
27575 echo "#! /bin/sh" >conf$$.sh
27576 echo "exit 0" >>conf$$.sh
27578 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27587 as_lineno_1=$LINENO
27588 as_lineno_2=$LINENO
27589 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27590 test "x$as_lineno_1" != "x$as_lineno_2" &&
27591 test "x$as_lineno_3" = "x$as_lineno_2" || {
27592 # Find who we are. Look in the path if we contain no path at all
27595 *[\\/]* ) as_myself=$0 ;;
27596 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27597 for as_dir in $PATH
27600 test -z "$as_dir" && as_dir=.
27601 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27606 # We did not find ourselves, most probably we were run as `sh COMMAND'
27607 # in which case we are not to be found in the path.
27608 if test "x$as_myself" = x; then
27611 if test ! -f "$as_myself"; then
27612 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27613 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27614 { (exit 1); exit 1; }; }
27616 case $CONFIG_SHELL in
27618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27619 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27622 test -z "$as_dir" && as_dir=.
27623 for as_base in sh bash ksh sh5; do
27626 if ("$as_dir/$as_base" -c '
27627 as_lineno_1=$LINENO
27628 as_lineno_2=$LINENO
27629 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27630 test "x$as_lineno_1" != "x$as_lineno_2" &&
27631 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
27632 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27633 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27634 CONFIG_SHELL=$as_dir/$as_base
27635 export CONFIG_SHELL
27636 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27644 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27645 # uniformly replaced by the line number. The first 'sed' inserts a
27646 # line-number line before each line; the second 'sed' does the real
27647 # work. The second script uses 'N' to pair each line-number line
27648 # with the numbered line, and appends trailing '-' during
27649 # substitution so that $LINENO is not a special case at line end.
27650 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27651 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
27652 sed '=' <$as_myself |
27657 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27660 s,^['$as_cr_digits']*\n,,
27661 ' >$as_me.lineno &&
27662 chmod +x $as_me.lineno ||
27663 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27664 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27665 { (exit 1); exit 1; }; }
27667 # Don't try to exec as it changes $[0], causing all sort of problems
27668 # (the dirname of $[0] is not the place where we might find the
27669 # original and so on. Autoconf is especially sensible to this).
27671 # Exit status is that of the last command.
27676 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27677 *c*,-n*) ECHO_N= ECHO_C='
27679 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27680 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
27683 if expr a : '\(a\)' >/dev/null 2>&1; then
27689 rm -f conf$$ conf$$.exe conf$$.file
27691 if ln -s conf$$.file conf$$ 2>/dev/null; then
27692 # We could just check for DJGPP; but this test a) works b) is more generic
27693 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27694 if test -f conf$$.exe; then
27695 # Don't use ln at all; we don't have any links
27700 elif ln conf$$.file conf$$ 2>/dev/null; then
27705 rm -f conf$$ conf$$.exe conf$$.file
27707 if mkdir -p . 2>/dev/null; then
27710 test -d ./-p && rmdir ./-p
27714 as_executable_p="test -f"
27716 # Sed expression to map a string onto a valid CPP name.
27717 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27719 # Sed expression to map a string onto a valid variable name.
27720 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27724 # We need space, tab and new line, in precisely that order.
27734 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27735 # report actual input values of CONFIG_FILES etc. instead of their
27736 # values after options handling. Logging --version etc. is OK.
27740 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27741 ## Running $as_me. ##
27746 This file was extended by linux nfs-utils $as_me 1.0.8-rc2, which was
27747 generated by GNU Autoconf 2.59. Invocation command line was
27749 CONFIG_FILES = $CONFIG_FILES
27750 CONFIG_HEADERS = $CONFIG_HEADERS
27751 CONFIG_LINKS = $CONFIG_LINKS
27752 CONFIG_COMMANDS = $CONFIG_COMMANDS
27756 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27760 # Files that config.status was made for.
27761 if test -n "$ac_config_files"; then
27762 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27765 if test -n "$ac_config_headers"; then
27766 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27769 if test -n "$ac_config_links"; then
27770 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27773 if test -n "$ac_config_commands"; then
27774 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27777 cat >>$CONFIG_STATUS <<\_ACEOF
27780 \`$as_me' instantiates files from templates according to the
27781 current configuration.
27783 Usage: $0 [OPTIONS] [FILE]...
27785 -h, --help print this help, then exit
27786 -V, --version print version number, then exit
27787 -q, --quiet do not print progress messages
27788 -d, --debug don't remove temporary files
27789 --recheck update $as_me by reconfiguring in the same conditions
27790 --file=FILE[:TEMPLATE]
27791 instantiate the configuration file FILE
27792 --header=FILE[:TEMPLATE]
27793 instantiate the configuration header FILE
27795 Configuration files:
27798 Configuration headers:
27801 Configuration commands:
27804 Report bugs to <bug-autoconf@gnu.org>."
27807 cat >>$CONFIG_STATUS <<_ACEOF
27809 linux nfs-utils config.status 1.0.8-rc2
27810 configured by $0, generated by GNU Autoconf 2.59,
27811 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27813 Copyright (C) 2003 Free Software Foundation, Inc.
27814 This config.status script is free software; the Free Software Foundation
27815 gives unlimited permission to copy, distribute and modify it."
27820 cat >>$CONFIG_STATUS <<\_ACEOF
27821 # If no file are specified by the user, then we need to provide default
27822 # value. By we need to know if files were specified by the user.
27828 ac_option=`expr "x$1" : 'x\([^=]*\)='`
27829 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27837 *) # This is not an option, so the user has probably given explicit
27840 ac_need_defaults=false;;
27844 # Handling of the options.
27846 cat >>$CONFIG_STATUS <<\_ACEOF
27847 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27849 --version | --vers* | -V )
27850 echo "$ac_cs_version"; exit 0 ;;
27852 # Conflict between --help and --header
27853 { { echo "$as_me:$LINENO: error: ambiguous option: $1
27854 Try \`$0 --help' for more information." >&5
27855 echo "$as_me: error: ambiguous option: $1
27856 Try \`$0 --help' for more information." >&2;}
27857 { (exit 1); exit 1; }; };;
27858 --help | --hel | -h )
27859 echo "$ac_cs_usage"; exit 0 ;;
27860 --debug | --d* | -d )
27862 --file | --fil | --fi | --f )
27864 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27865 ac_need_defaults=false;;
27866 --header | --heade | --head | --hea )
27868 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27869 ac_need_defaults=false;;
27870 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27871 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27874 # This is an error.
27875 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27876 Try \`$0 --help' for more information." >&5
27877 echo "$as_me: error: unrecognized option: $1
27878 Try \`$0 --help' for more information." >&2;}
27879 { (exit 1); exit 1; }; } ;;
27881 *) ac_config_targets="$ac_config_targets $1" ;;
27887 ac_configure_extra_args=
27889 if $ac_cs_silent; then
27891 ac_configure_extra_args="$ac_configure_extra_args --silent"
27895 cat >>$CONFIG_STATUS <<_ACEOF
27896 if \$ac_cs_recheck; then
27897 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27898 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27903 cat >>$CONFIG_STATUS <<_ACEOF
27905 # INIT-COMMANDS section.
27908 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27914 cat >>$CONFIG_STATUS <<\_ACEOF
27915 for ac_config_target in $ac_config_targets
27917 case "$ac_config_target" in
27918 # Handling of arguments.
27919 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27920 "linux-nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
27921 "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
27922 "support/export/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
27923 "support/include/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
27924 "support/include/rpcsvc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
27925 "support/include/sys/fs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
27926 "support/include/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
27927 "support/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
27928 "support/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
27929 "support/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
27930 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27931 "tools/getiversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
27932 "tools/getkversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
27933 "tools/locktest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
27934 "tools/nlmtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
27935 "tools/rpcdebug/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
27936 "tools/rpcgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
27937 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
27938 "utils/exportfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
27939 "utils/gssd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
27940 "utils/idmapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
27941 "utils/lockd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
27942 "utils/mountd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
27943 "utils/nfsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
27944 "utils/nfsstat/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
27945 "utils/nhfsstone/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
27946 "utils/rquotad/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
27947 "utils/showmount/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
27948 "utils/statd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
27949 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27950 "support/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
27951 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27952 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27953 { (exit 1); exit 1; }; };;
27957 # If the user did not use the arguments to specify the items to instantiate,
27958 # then the envvar interface is used. Set only those that are not.
27959 # We use the long form for the default assignment because of an extremely
27960 # bizarre bug on SunOS 4.1.3.
27961 if $ac_need_defaults; then
27962 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27963 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27964 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27967 # Have a temporary directory for convenience. Make it in the build tree
27968 # simply because there is no reason to put it here, and in addition,
27969 # creating and moving files from /tmp can sometimes cause problems.
27970 # Create a temporary directory, and hook for its removal unless debugging.
27973 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27974 trap '{ (exit 1); exit 1; }' 1 2 13 15
27977 # Create a (secure) tmp directory for tmp files.
27980 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27981 test -n "$tmp" && test -d "$tmp"
27984 tmp=./confstat$$-$RANDOM
27985 (umask 077 && mkdir $tmp)
27988 echo "$me: cannot create a temporary directory in ." >&2
27989 { (exit 1); exit 1; }
27994 cat >>$CONFIG_STATUS <<_ACEOF
27997 # CONFIG_FILES section.
28000 # No need to generate the scripts if there are no CONFIG_FILES.
28001 # This happens for instance when ./config.status config.h
28002 if test -n "\$CONFIG_FILES"; then
28003 # Protect against being on the right side of a sed subst in config.status.
28004 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28005 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28006 s,@SHELL@,$SHELL,;t t
28007 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28008 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28009 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28010 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28011 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28012 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28013 s,@exec_prefix@,$exec_prefix,;t t
28014 s,@prefix@,$prefix,;t t
28015 s,@program_transform_name@,$program_transform_name,;t t
28016 s,@bindir@,$bindir,;t t
28017 s,@sbindir@,$sbindir,;t t
28018 s,@libexecdir@,$libexecdir,;t t
28019 s,@datadir@,$datadir,;t t
28020 s,@sysconfdir@,$sysconfdir,;t t
28021 s,@sharedstatedir@,$sharedstatedir,;t t
28022 s,@localstatedir@,$localstatedir,;t t
28023 s,@libdir@,$libdir,;t t
28024 s,@includedir@,$includedir,;t t
28025 s,@oldincludedir@,$oldincludedir,;t t
28026 s,@infodir@,$infodir,;t t
28027 s,@mandir@,$mandir,;t t
28028 s,@build_alias@,$build_alias,;t t
28029 s,@host_alias@,$host_alias,;t t
28030 s,@target_alias@,$target_alias,;t t
28031 s,@DEFS@,$DEFS,;t t
28032 s,@ECHO_C@,$ECHO_C,;t t
28033 s,@ECHO_N@,$ECHO_N,;t t
28034 s,@ECHO_T@,$ECHO_T,;t t
28035 s,@LIBS@,$LIBS,;t t
28036 s,@build@,$build,;t t
28037 s,@build_cpu@,$build_cpu,;t t
28038 s,@build_vendor@,$build_vendor,;t t
28039 s,@build_os@,$build_os,;t t
28040 s,@host@,$host,;t t
28041 s,@host_cpu@,$host_cpu,;t t
28042 s,@host_vendor@,$host_vendor,;t t
28043 s,@host_os@,$host_os,;t t
28044 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28045 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28046 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28047 s,@CYGPATH_W@,$CYGPATH_W,;t t
28048 s,@PACKAGE@,$PACKAGE,;t t
28049 s,@VERSION@,$VERSION,;t t
28050 s,@ACLOCAL@,$ACLOCAL,;t t
28051 s,@AUTOCONF@,$AUTOCONF,;t t
28052 s,@AUTOMAKE@,$AUTOMAKE,;t t
28053 s,@AUTOHEADER@,$AUTOHEADER,;t t
28054 s,@MAKEINFO@,$MAKEINFO,;t t
28055 s,@install_sh@,$install_sh,;t t
28056 s,@STRIP@,$STRIP,;t t
28057 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28058 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28059 s,@mkdir_p@,$mkdir_p,;t t
28061 s,@SET_MAKE@,$SET_MAKE,;t t
28062 s,@am__leading_dot@,$am__leading_dot,;t t
28063 s,@AMTAR@,$AMTAR,;t t
28064 s,@am__tar@,$am__tar,;t t
28065 s,@am__untar@,$am__untar,;t t
28066 s,@RELEASE@,$RELEASE,;t t
28067 s,@statedir@,$statedir,;t t
28068 s,@statduser@,$statduser,;t t
28069 s,@enable_nfsv3@,$enable_nfsv3,;t t
28070 s,@IDMAPD@,$IDMAPD,;t t
28071 s,@enable_nfsv4@,$enable_nfsv4,;t t
28072 s,@CONFIG_NFSV4_TRUE@,$CONFIG_NFSV4_TRUE,;t t
28073 s,@CONFIG_NFSV4_FALSE@,$CONFIG_NFSV4_FALSE,;t t
28074 s,@GSSD@,$GSSD,;t t
28075 s,@SVCGSSD@,$SVCGSSD,;t t
28076 s,@enable_gss@,$enable_gss,;t t
28077 s,@CONFIG_GSS_TRUE@,$CONFIG_GSS_TRUE,;t t
28078 s,@CONFIG_GSS_FALSE@,$CONFIG_GSS_FALSE,;t t
28079 s,@kprefix@,$kprefix,;t t
28080 s,@secure_statd@,$secure_statd,;t t
28081 s,@CONFIG_RQUOTAD_TRUE@,$CONFIG_RQUOTAD_TRUE,;t t
28082 s,@CONFIG_RQUOTAD_FALSE@,$CONFIG_RQUOTAD_FALSE,;t t
28084 s,@CFLAGS@,$CFLAGS,;t t
28085 s,@LDFLAGS@,$LDFLAGS,;t t
28086 s,@CPPFLAGS@,$CPPFLAGS,;t t
28087 s,@ac_ct_CC@,$ac_ct_CC,;t t
28088 s,@EXEEXT@,$EXEEXT,;t t
28089 s,@OBJEXT@,$OBJEXT,;t t
28090 s,@DEPDIR@,$DEPDIR,;t t
28091 s,@am__include@,$am__include,;t t
28092 s,@am__quote@,$am__quote,;t t
28093 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28094 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28095 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28096 s,@CCDEPMODE@,$CCDEPMODE,;t t
28097 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28098 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28099 s,@LIBWRAP@,$LIBWRAP,;t t
28101 s,@CXXFLAGS@,$CXXFLAGS,;t t
28102 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28103 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28104 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28105 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28107 s,@LN_S@,$LN_S,;t t
28108 s,@EGREP@,$EGREP,;t t
28109 s,@ECHO@,$ECHO,;t t
28111 s,@ac_ct_AR@,$ac_ct_AR,;t t
28112 s,@RANLIB@,$RANLIB,;t t
28113 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28114 s,@CXXCPP@,$CXXCPP,;t t
28116 s,@FFLAGS@,$FFLAGS,;t t
28117 s,@ac_ct_F77@,$ac_ct_F77,;t t
28118 s,@LIBTOOL@,$LIBTOOL,;t t
28119 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
28121 s,@ac_ct_LD@,$ac_ct_LD,;t t
28122 s,@LIBSOCKET@,$LIBSOCKET,;t t
28123 s,@LIBNSL@,$LIBNSL,;t t
28124 s,@LIBCRYPT@,$LIBCRYPT,;t t
28125 s,@LIBBSD@,$LIBBSD,;t t
28126 s,@KRBDIR@,$KRBDIR,;t t
28127 s,@KRBLIBS@,$KRBLIBS,;t t
28128 s,@KRBCFLAGS@,$KRBCFLAGS,;t t
28129 s,@K5VERS@,$K5VERS,;t t
28130 s,@ALLOCA@,$ALLOCA,;t t
28131 s,@LIBOBJS@,$LIBOBJS,;t t
28132 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
28133 s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
28134 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
28135 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
28136 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
28137 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
28138 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
28139 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28144 cat >>$CONFIG_STATUS <<\_ACEOF
28145 # Split the substitutions into bite-sized pieces for seds with
28146 # small command number limits, like on Digital OSF/1 and HP-UX.
28147 ac_max_sed_lines=48
28148 ac_sed_frag=1 # Number of current file.
28149 ac_beg=1 # First line for current file.
28150 ac_end=$ac_max_sed_lines # Line after last line for current file.
28153 while $ac_more_lines; do
28154 if test $ac_beg -gt 1; then
28155 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28157 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28159 if test ! -s $tmp/subs.frag; then
28160 ac_more_lines=false
28162 # The purpose of the label and of the branching condition is to
28163 # speed up the sed processing (if there are no `@' at all, there
28164 # is no need to browse any of the substitutions).
28165 # These are the two extra sed commands mentioned above.
28167 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28168 if test -z "$ac_sed_cmds"; then
28169 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28171 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28173 ac_sed_frag=`expr $ac_sed_frag + 1`
28175 ac_end=`expr $ac_end + $ac_max_sed_lines`
28178 if test -z "$ac_sed_cmds"; then
28181 fi # test -n "$CONFIG_FILES"
28184 cat >>$CONFIG_STATUS <<\_ACEOF
28185 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28186 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28188 - | *:- | *:-:* ) # input from stdin
28190 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28191 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28192 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28193 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28194 * ) ac_file_in=$ac_file.in ;;
28197 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28198 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28199 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28200 X"$ac_file" : 'X\(//\)[^/]' \| \
28201 X"$ac_file" : 'X\(//\)$' \| \
28202 X"$ac_file" : 'X\(/\)' \| \
28203 . : '\(.\)' 2>/dev/null ||
28205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28206 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28207 /^X\(\/\/\)$/{ s//\1/; q; }
28208 /^X\(\/\).*/{ s//\1/; q; }
28210 { if $as_mkdir_p; then
28215 while test ! -d "$as_dir"; do
28216 as_dirs="$as_dir $as_dirs"
28217 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28218 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28219 X"$as_dir" : 'X\(//\)[^/]' \| \
28220 X"$as_dir" : 'X\(//\)$' \| \
28221 X"$as_dir" : 'X\(/\)' \| \
28222 . : '\(.\)' 2>/dev/null ||
28224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28226 /^X\(\/\/\)$/{ s//\1/; q; }
28227 /^X\(\/\).*/{ s//\1/; q; }
28230 test ! -n "$as_dirs" || mkdir $as_dirs
28231 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28232 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28233 { (exit 1); exit 1; }; }; }
28237 if test "$ac_dir" != .; then
28238 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28239 # A "../" for each directory in $ac_dir_suffix.
28240 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28242 ac_dir_suffix= ac_top_builddir=
28246 .) # No --srcdir option. We are building in place.
28248 if test -z "$ac_top_builddir"; then
28251 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28253 [\\/]* | ?:[\\/]* ) # Absolute path.
28254 ac_srcdir=$srcdir$ac_dir_suffix;
28255 ac_top_srcdir=$srcdir ;;
28256 *) # Relative path.
28257 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28258 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28261 # Do not use `cd foo && pwd` to compute absolute paths, because
28262 # the directories may not exist.
28264 .) ac_abs_builddir="$ac_dir";;
28267 .) ac_abs_builddir=`pwd`;;
28268 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28269 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28272 case $ac_abs_builddir in
28273 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28275 case ${ac_top_builddir}. in
28276 .) ac_abs_top_builddir=$ac_abs_builddir;;
28277 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28278 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28281 case $ac_abs_builddir in
28282 .) ac_abs_srcdir=$ac_srcdir;;
28285 .) ac_abs_srcdir=$ac_abs_builddir;;
28286 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28287 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28290 case $ac_abs_builddir in
28291 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28293 case $ac_top_srcdir in
28294 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28295 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28296 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28302 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28303 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28306 # Let's still pretend it is `configure' which instantiates (i.e., don't
28307 # use $as_me), people would be surprised to read:
28308 # /* config.h. Generated by config.status. */
28309 if test x"$ac_file" = x-; then
28312 configure_input="$ac_file. "
28314 configure_input=$configure_input"Generated from `echo $ac_file_in |
28315 sed 's,.*/,,'` by configure."
28317 # First look for the input files in the build tree, otherwise in the
28319 ac_file_inputs=`IFS=:
28320 for f in $ac_file_in; do
28322 -) echo $tmp/stdin ;;
28324 # Absolute (can't be DOS-style, as IFS=:)
28325 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28326 echo "$as_me: error: cannot find input file: $f" >&2;}
28327 { (exit 1); exit 1; }; }
28330 if test -f "$f"; then
28333 elif test -f "$srcdir/$f"; then
28338 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28339 echo "$as_me: error: cannot find input file: $f" >&2;}
28340 { (exit 1); exit 1; }; }
28343 done` || { (exit 1); exit 1; }
28345 if test x"$ac_file" != x-; then
28346 { echo "$as_me:$LINENO: creating $ac_file" >&5
28347 echo "$as_me: creating $ac_file" >&6;}
28351 cat >>$CONFIG_STATUS <<_ACEOF
28355 cat >>$CONFIG_STATUS <<\_ACEOF
28357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28358 s,@configure_input@,$configure_input,;t t
28359 s,@srcdir@,$ac_srcdir,;t t
28360 s,@abs_srcdir@,$ac_abs_srcdir,;t t
28361 s,@top_srcdir@,$ac_top_srcdir,;t t
28362 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28363 s,@builddir@,$ac_builddir,;t t
28364 s,@abs_builddir@,$ac_abs_builddir,;t t
28365 s,@top_builddir@,$ac_top_builddir,;t t
28366 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28367 s,@INSTALL@,$ac_INSTALL,;t t
28368 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28370 if test x"$ac_file" != x-; then
28371 mv $tmp/out $ac_file
28379 cat >>$CONFIG_STATUS <<\_ACEOF
28382 # CONFIG_HEADER section.
28385 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28386 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28388 # ac_d sets the value in "#define NAME VALUE" lines.
28389 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
28390 ac_dB='[ ].*$,\1#\2'
28393 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28394 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
28395 ac_uB='$,\1#\2define\3'
28399 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28400 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28402 - | *:- | *:-:* ) # input from stdin
28404 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28405 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28406 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28407 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28408 * ) ac_file_in=$ac_file.in ;;
28411 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28412 echo "$as_me: creating $ac_file" >&6;}
28414 # First look for the input files in the build tree, otherwise in the
28416 ac_file_inputs=`IFS=:
28417 for f in $ac_file_in; do
28419 -) echo $tmp/stdin ;;
28421 # Absolute (can't be DOS-style, as IFS=:)
28422 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28423 echo "$as_me: error: cannot find input file: $f" >&2;}
28424 { (exit 1); exit 1; }; }
28425 # Do quote $f, to prevent DOS paths from being IFS'd.
28428 if test -f "$f"; then
28431 elif test -f "$srcdir/$f"; then
28436 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28437 echo "$as_me: error: cannot find input file: $f" >&2;}
28438 { (exit 1); exit 1; }; }
28441 done` || { (exit 1); exit 1; }
28442 # Remove the trailing spaces.
28443 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
28447 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28448 # `conftest.undefs', that substitutes the proper values into
28449 # config.h.in to produce config.h. The first handles `#define'
28450 # templates, and the second `#undef' templates.
28451 # And first: Protect against being on the right side of a sed subst in
28452 # config.status. Protect against being in an unquoted here document
28453 # in config.status.
28454 rm -f conftest.defines conftest.undefs
28455 # Using a here document instead of a string reduces the quoting nightmare.
28456 # Putting comments in sed scripts is not portable.
28458 # `end' is used to avoid that the second main sed command (meant for
28459 # 0-ary CPP macros) applies to n-ary macro definitions.
28460 # See the Autoconf documentation for `clear'.
28461 cat >confdef2sed.sed <<\_ACEOF
28466 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28468 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28471 # If some macros were called several times there might be several times
28472 # the same #defines, which is useless. Nevertheless, we may not want to
28473 # sort them, since we want the *last* AC-DEFINE to be honored.
28474 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28475 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28476 rm -f confdef2sed.sed
28478 # This sed command replaces #undef with comments. This is necessary, for
28479 # example, in the case of _POSIX_SOURCE, which is predefined and required
28480 # on some systems where configure will not decide to define it.
28481 cat >>conftest.undefs <<\_ACEOF
28482 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28485 # Break up conftest.defines because some shells have a limit on the size
28486 # of here documents, and old seds have small limits too (100 cmds).
28487 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28488 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28489 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28490 echo ' :' >>$CONFIG_STATUS
28491 rm -f conftest.tail
28492 while grep . conftest.defines >/dev/null
28494 # Write a limited-size here document to $tmp/defines.sed.
28495 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28496 # Speed up: don't consider the non `#define' lines.
28497 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
28498 # Work around the forget-to-reset-the-flag bug.
28499 echo 't clr' >>$CONFIG_STATUS
28500 echo ': clr' >>$CONFIG_STATUS
28501 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28503 sed -f $tmp/defines.sed $tmp/in >$tmp/out
28505 mv $tmp/out $tmp/in
28507 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28508 rm -f conftest.defines
28509 mv conftest.tail conftest.defines
28511 rm -f conftest.defines
28512 echo ' fi # grep' >>$CONFIG_STATUS
28513 echo >>$CONFIG_STATUS
28515 # Break up conftest.undefs because some shells have a limit on the size
28516 # of here documents, and old seds have small limits too (100 cmds).
28517 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
28518 rm -f conftest.tail
28519 while grep . conftest.undefs >/dev/null
28521 # Write a limited-size here document to $tmp/undefs.sed.
28522 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28523 # Speed up: don't consider the non `#undef'
28524 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
28525 # Work around the forget-to-reset-the-flag bug.
28526 echo 't clr' >>$CONFIG_STATUS
28527 echo ': clr' >>$CONFIG_STATUS
28528 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28530 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28532 mv $tmp/out $tmp/in
28534 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28535 rm -f conftest.undefs
28536 mv conftest.tail conftest.undefs
28538 rm -f conftest.undefs
28540 cat >>$CONFIG_STATUS <<\_ACEOF
28541 # Let's still pretend it is `configure' which instantiates (i.e., don't
28542 # use $as_me), people would be surprised to read:
28543 # /* config.h. Generated by config.status. */
28544 if test x"$ac_file" = x-; then
28545 echo "/* Generated by configure. */" >$tmp/config.h
28547 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
28549 cat $tmp/in >>$tmp/config.h
28551 if test x"$ac_file" != x-; then
28552 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28553 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28554 echo "$as_me: $ac_file is unchanged" >&6;}
28556 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28557 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28558 X"$ac_file" : 'X\(//\)[^/]' \| \
28559 X"$ac_file" : 'X\(//\)$' \| \
28560 X"$ac_file" : 'X\(/\)' \| \
28561 . : '\(.\)' 2>/dev/null ||
28563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28565 /^X\(\/\/\)$/{ s//\1/; q; }
28566 /^X\(\/\).*/{ s//\1/; q; }
28568 { if $as_mkdir_p; then
28573 while test ! -d "$as_dir"; do
28574 as_dirs="$as_dir $as_dirs"
28575 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28577 X"$as_dir" : 'X\(//\)[^/]' \| \
28578 X"$as_dir" : 'X\(//\)$' \| \
28579 X"$as_dir" : 'X\(/\)' \| \
28580 . : '\(.\)' 2>/dev/null ||
28582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28584 /^X\(\/\/\)$/{ s//\1/; q; }
28585 /^X\(\/\).*/{ s//\1/; q; }
28588 test ! -n "$as_dirs" || mkdir $as_dirs
28589 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28590 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28591 { (exit 1); exit 1; }; }; }
28594 mv $tmp/config.h $ac_file
28598 rm -f $tmp/config.h
28600 # Compute $ac_file's index in $config_headers.
28602 for _am_header in $config_headers :; do
28603 case $_am_header in
28604 $ac_file | $ac_file:* )
28607 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28610 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28611 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28612 X$ac_file : 'X\(//\)[^/]' \| \
28613 X$ac_file : 'X\(//\)$' \| \
28614 X$ac_file : 'X\(/\)' \| \
28615 . : '\(.\)' 2>/dev/null ||
28617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28618 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28619 /^X\(\/\/\)$/{ s//\1/; q; }
28620 /^X\(\/\).*/{ s//\1/; q; }
28621 s/.*/./; q'`/stamp-h$_am_stamp_count
28624 cat >>$CONFIG_STATUS <<\_ACEOF
28627 # CONFIG_COMMANDS section.
28629 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28630 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28631 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28632 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28633 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28634 X"$ac_dest" : 'X\(//\)[^/]' \| \
28635 X"$ac_dest" : 'X\(//\)$' \| \
28636 X"$ac_dest" : 'X\(/\)' \| \
28637 . : '\(.\)' 2>/dev/null ||
28639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28640 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28641 /^X\(\/\/\)$/{ s//\1/; q; }
28642 /^X\(\/\).*/{ s//\1/; q; }
28644 { if $as_mkdir_p; then
28649 while test ! -d "$as_dir"; do
28650 as_dirs="$as_dir $as_dirs"
28651 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28652 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28653 X"$as_dir" : 'X\(//\)[^/]' \| \
28654 X"$as_dir" : 'X\(//\)$' \| \
28655 X"$as_dir" : 'X\(/\)' \| \
28656 . : '\(.\)' 2>/dev/null ||
28658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28659 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28660 /^X\(\/\/\)$/{ s//\1/; q; }
28661 /^X\(\/\).*/{ s//\1/; q; }
28664 test ! -n "$as_dirs" || mkdir $as_dirs
28665 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28666 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28667 { (exit 1); exit 1; }; }; }
28671 if test "$ac_dir" != .; then
28672 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28673 # A "../" for each directory in $ac_dir_suffix.
28674 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28676 ac_dir_suffix= ac_top_builddir=
28680 .) # No --srcdir option. We are building in place.
28682 if test -z "$ac_top_builddir"; then
28685 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28687 [\\/]* | ?:[\\/]* ) # Absolute path.
28688 ac_srcdir=$srcdir$ac_dir_suffix;
28689 ac_top_srcdir=$srcdir ;;
28690 *) # Relative path.
28691 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28692 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28695 # Do not use `cd foo && pwd` to compute absolute paths, because
28696 # the directories may not exist.
28698 .) ac_abs_builddir="$ac_dir";;
28701 .) ac_abs_builddir=`pwd`;;
28702 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28703 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28706 case $ac_abs_builddir in
28707 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28709 case ${ac_top_builddir}. in
28710 .) ac_abs_top_builddir=$ac_abs_builddir;;
28711 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28712 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28715 case $ac_abs_builddir in
28716 .) ac_abs_srcdir=$ac_srcdir;;
28719 .) ac_abs_srcdir=$ac_abs_builddir;;
28720 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28721 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28724 case $ac_abs_builddir in
28725 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28727 case $ac_top_srcdir in
28728 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28729 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28730 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28735 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28736 echo "$as_me: executing $ac_dest commands" >&6;}
28738 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28739 # Strip MF so we end up with the name of the file.
28740 mf=`echo "$mf" | sed -e 's/:.*$//'`
28741 # Check whether this is an Automake generated Makefile or not.
28742 # We used to match only the files named `Makefile.in', but
28743 # some people rename them; so instead we look at the file content.
28744 # Grep'ing the first line is not enough: some people post-process
28745 # each Makefile.in and add a new line on top of each file to say so.
28746 # So let's grep whole file.
28747 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28748 dirpart=`(dirname "$mf") 2>/dev/null ||
28749 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28750 X"$mf" : 'X\(//\)[^/]' \| \
28751 X"$mf" : 'X\(//\)$' \| \
28752 X"$mf" : 'X\(/\)' \| \
28753 . : '\(.\)' 2>/dev/null ||
28755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28757 /^X\(\/\/\)$/{ s//\1/; q; }
28758 /^X\(\/\).*/{ s//\1/; q; }
28763 # Extract the definition of DEPDIR, am__include, and am__quote
28764 # from the Makefile without running `make'.
28765 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28766 test -z "$DEPDIR" && continue
28767 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28768 test -z "am__include" && continue
28769 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28770 # When using ansi2knr, U may be empty or an underscore; expand it
28771 U=`sed -n 's/^U = //p' < "$mf"`
28772 # Find all dependency output files, they are included files with
28773 # $(DEPDIR) in their names. We invoke sed twice because it is the
28774 # simplest approach to changing $(DEPDIR) to its actual value in the
28776 for file in `sed -n "
28777 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28778 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28779 # Make sure the directory exists.
28780 test -f "$dirpart/$file" && continue
28781 fdir=`(dirname "$file") 2>/dev/null ||
28782 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28783 X"$file" : 'X\(//\)[^/]' \| \
28784 X"$file" : 'X\(//\)$' \| \
28785 X"$file" : 'X\(/\)' \| \
28786 . : '\(.\)' 2>/dev/null ||
28788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28790 /^X\(\/\/\)$/{ s//\1/; q; }
28791 /^X\(\/\).*/{ s//\1/; q; }
28793 { if $as_mkdir_p; then
28794 mkdir -p $dirpart/$fdir
28796 as_dir=$dirpart/$fdir
28798 while test ! -d "$as_dir"; do
28799 as_dirs="$as_dir $as_dirs"
28800 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28801 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28802 X"$as_dir" : 'X\(//\)[^/]' \| \
28803 X"$as_dir" : 'X\(//\)$' \| \
28804 X"$as_dir" : 'X\(/\)' \| \
28805 . : '\(.\)' 2>/dev/null ||
28807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28809 /^X\(\/\/\)$/{ s//\1/; q; }
28810 /^X\(\/\).*/{ s//\1/; q; }
28813 test ! -n "$as_dirs" || mkdir $as_dirs
28814 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28815 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28816 { (exit 1); exit 1; }; }; }
28818 # echo "creating $dirpart/$file"
28819 echo '# dummy' > "$dirpart/$file"
28827 cat >>$CONFIG_STATUS <<\_ACEOF
28829 { (exit 0); exit 0; }
28831 chmod +x $CONFIG_STATUS
28832 ac_clean_files=$ac_clean_files_save
28835 # configure is writing to config.log, and then calls config.status.
28836 # config.status does its own redirection, appending to config.log.
28837 # Unfortunately, on DOS this fails, as config.log is still kept open
28838 # by configure, so config.status won't be able to write to it; its
28839 # output is simply discarded. So we exec the FD to /dev/null,
28840 # effectively closing config.log, so it can be properly (re)opened and
28841 # appended to by config.status. When coming back to configure, we
28842 # need to make the FD available again.
28843 if test "$no_create" != yes; then
28845 ac_config_status_args=
28846 test "$silent" = yes &&
28847 ac_config_status_args="$ac_config_status_args --quiet"
28849 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28851 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28852 # would make configure fail if this is the last instruction.
28853 $ac_cs_success || { (exit 1); exit 1; }